« Modèle:Pagelang » : différence entre les versions
Remove hardcoded default. The Lua module handles this already. |
This template should return empty string if the pagename does not end with "/en" for consistency |
||
Ligne 1 : | Ligne 1 : | ||
{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}}<noinclude> | {{#ifeq:{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}}|en | ||
|{{#ifeq:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|en | |||
|{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}} | |||
}} | |||
|{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}} | |||
}}<noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Version du 10 novembre 2019 à 01:45
{{#ifeq:|en |{{#ifeq:{{#titleparts:Pagelang||-1}}|en
| }}
| }}
Documentation du modèle
[créer]
{{#if:|
[[Category:Template documentation pages{{#translation:}}]] }}