Template:Pagelang: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
imported>Verdy p
m even more restrictive version: only allows lowercase ASCII letters,digits,minus-hyphen or full stop (idempotent if urlencoded), and must start by a letter.
Jalexander (talk | contribs)
m 10 revisions from meta:Template:Pagelang
(4 intermediate revisions by 2 users not shown)
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:{{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}}}}}}
|
| {{#titleparts:{{PAGENAME}}||-1}}
}}}}}}}}<noinclude>{{Documentation}}</noinclude>

Revision as of 23:28, 5 June 2014

Template documentation