This template is protected from editing.
Difference between revisions of "Template:Mw-langlink"
Moussekateer (talk | contribs) (Add User:Darkid changes for supporting lang subpages more than 1 level deep) |
|||
Line 4: | Line 4: | ||
| Talk | | Talk | ||
| Category | | Category | ||
+ | | User | ||
| blank | | blank | ||
| none | | none | ||
| {{ns:0}} = {{#switch:{{{en|}}} | | {{ns:0}} = {{#switch:{{{en|}}} | ||
− | | true = {{ | + | | true = {{FULLPAGENAME}} |
− | + | | #default = {{#ifexist:{{#switch:{{SUBPAGENAME}} | |
− | | {{ | + | |ar|cs|da|de|en|es|fi|fr|ja|ko|nl|no|pl|pt|pt-br|ro|ru|tr|sv|zh-hans|zh-hant = {{#titleparts:{{FULLPAGENAME}}|1}} |
− | + | | #default = {{FULLPAGENAME}} | |
− | + | }}/{{{1|}}}|{{#switch:{{{SUBPAGENAME}} | |
− | + | |ar|cs|da|de|en|es|fi|fr|ja|ko|nl|no|pl|pt|pt-br|ro|ru|tr|sv|zh-hans|zh-hant = {{#titleparts:{{FULLPAGENAME}}|1}} | |
− | | #default = -}}<noinclude>{{protected|small=1}} | + | | #default = {{FULLPAGENAME}} |
+ | }}/{{{1|}}}|-}} <!-- End #ifexist --> | ||
+ | }} | ||
+ | | #default = - | ||
+ | }}<noinclude>{{protected|small=1}} | ||
== Usage == | == Usage == | ||
* {{tlx|mw-langlink|2=fr}} on [[Hats]] will display the text "{{code|Hats/fr}}" (no link). See talk. | * {{tlx|mw-langlink|2=fr}} on [[Hats]] will display the text "{{code|Hats/fr}}" (no link). See talk. |