« Modèle:Pagelang » : différence entre les versions
mAucun résumé des modifications |
further check of valid characters in language codes: only [-.0-9A-Z_a-z] are idempotent in URLENCODE, but we already disallowed uppercase letters and underscore: |
||
Ligne 1 : | Ligne 1 : | ||
{{# | {{#ifeq: {{#titleparts:{{PAGENAME}}||-1}} | ||
| {{#titleparts:{{PAGENAME}}|1}} | | {{#titleparts:{{PAGENAME}}|1}} | ||
| # | | | ||
| {{#ifeq: {{#titleparts:{{PAGENAME}}||-1}} | |||
| {{lc:{{PAGENAME|{{#titleparts:{{PAGENAME}}||-1}}}}}} | |||
}}}}<noinclude>{{Documentation}}</noinclude> | | {{#ifeq: {{#titleparts:{{PAGENAME}}||-1}} | ||
| {{urlencode:{{#titleparts:{{PAGENAME}}||-1}}}} | |||
| {{#ifeq: {{lc:{{#titleparts:{{PAGENAME}}||-1}}}} | |||
| {{ucfirst:{{lc:{{#titleparts:{{PAGENAME}}||-1}}}}}} | |||
| | |||
| {{#titleparts:{{PAGENAME}}||-1}} | |||
}}}}}}}}<noinclude>{{Documentation}}</noinclude> |
Version du 30 janvier 2014 à 16:50
{{#ifeq: {{#titleparts:Pagelang||-1}} | {{#titleparts:Pagelang|1}} | | {{#ifeq: {{#titleparts:Pagelang||-1}}
| modèle:pagename | {{#ifeq: {{#titleparts:Pagelang||-1}} | %7B%7B%23titleparts%3APagelang%7C%7C-1%7D%7D | {{#ifeq: {{#titleparts:pagelang||-1}} | {{#titleparts:pagelang||-1}} | | {{#titleparts:Pagelang||-1}}
}}}}}}}}
Documentation du modèle
[créer]
{{#if:|
[[Category:Template documentation pages{{#translation:}}]] }}