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) |
(Add TFW as valid namespace, support non-main namespaces (edit by darkid)) |
||
(4 intermediate revisions 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}} = {{# | + | | {{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 22: | 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> |