This template is protected from editing.
Difference between revisions of "Template:Mw-langlink"
Moussekateer (talk | contribs) m (add Italian) |
(Add TFW as valid namespace, support non-main namespaces (edit by darkid)) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
| Template | | Template | ||
| Help | | Help | ||
+ | | Team Fortress Wiki | ||
| Talk | | Talk | ||
| Category | | Category | ||
Line 7: | Line 8: | ||
| blank | | blank | ||
| none | | none | ||
− | | {{ns:0}} = {{#ifexist:{{# | + | | {{ns:0}} = {{#ifexist:{{#ifeq:{{NAMESPACE}}|{{ns:0}}||{{NAMESPACE}}:}}{{{{if lang|non-en=BASE}}PAGENAME}}{{#if:{{{en|}}}||/{{{1|}}}}} |
− | + | |{{#ifeq:{{NAMESPACE}}|{{ns:0}}||{{NAMESPACE}}:}}{{{{if lang|non-en=BASE}}PAGENAME}}{{#if:{{{en|}}}||/{{{1|}}}}}|-}} <!--End #ifexist --> | |
− | |||
− | |||
− | |||
− | |||
− | |||
| #default = - | | #default = - | ||
}}<noinclude>{{protected|small=1}} | }}<noinclude>{{protected|small=1}} | ||
Line 19: | Line 15: | ||
* {{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. | ||
− | [[Category:Templates | + | [[Category:Templates]] |
− | [[Category:Language templates | + | [[Category:Language templates]] |
− | [[Category:Interface templates | + | [[Category:Interface templates]] |
</noinclude> | </noinclude> |