Difference between revisions of "Template:Pagelang"

From Game Detectives Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (strip indentation whitespaces (template heavily used) to save 15-25 milliseconds per invokation (12-15ms used now), reducing it (in transclusions) to only 11 preprocessor nodes visited, 4 levels, 32 bytes expanded, 2-3 bytes tidied, no costly functions)
m (extract the page lang from a page name in parameter 1 (instead of the current page by default))
Line 1: Line 1:
{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|{{#titleparts:{{PAGENAME}}|1}}||{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|{{lc:{{PAGENAME:{{#titleparts:{{PAGENAME}}||-1}}}}}}|{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|{{urlencode:{{#titleparts:{{PAGENAME}}||-1}}}}|{{#ifeq:{{lc:{{#titleparts:{{PAGENAME}}||-1}}}}|{{ucfirst:{{lc:{{#titleparts:{{PAGENAME}}||-1}}}}}}||{{#switch:{{#titleparts:{{PAGENAME}}||-1}}|doc|layout|sandbox|testcases=|#default={{#titleparts:{{PAGENAME}}||-1}}}}}}}}}}}}<noinclude>{{Documentation}}</noinclude>
+
{{#ifeq:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|{{#titleparts:{{{1|{{PAGENAME}}}}}|1}}||{{#ifeq:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|{{lc:{{PAGENAME:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}}}}}|{{#ifeq:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|{{urlencode:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}}}|{{#ifeq:{{lc:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}}}|{{ucfirst:{{lc:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}}}}}||{{#switch:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|doc|layout|sandbox|testcases=|#default={{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}}}}}}}}}}}<noinclude>{{Documentation}}</noinclude>

Revision as of 17:18, 13 June 2014

<templatestyles src="Module:Documentation/styles.css"></templatestyles>
Template documentation[create] [purge]