This template is protected from editing.

Difference between revisions of "Template:Mw-langlink"

From Team Fortress Wiki
Jump to: navigation, search
m (add Italian)
m (more darkid changes)
Line 7: Line 7:
 
  | blank
 
  | blank
 
  | none
 
  | none
  | {{ns:0}} = {{#ifexist:{{#switch:{{SUBPAGENAME}}
+
  | {{ns:0}} = {{#ifexist:{{{{if lang|non-en=BASE}}PAGENAME}}{{#if:{{{en|}}}||/{{{1|}}}}}
  |ar|cs|da|de|en|es|fi|fr|hu|it|ja|ko|nl|no|pl|pt|pt-br|ro|ru|tr|sv|zh-hans|zh-hant = {{#titleparts:{{FULLPAGENAME}}|-1}}
+
|{{{{if lang|non-en=BASE}}PAGENAME}}{{#if:{{{en|}}}||/{{{1|}}}}}|-}} <!--End #ifexist -->
  | #default = {{FULLPAGENAME}}
 
}}{{#if:{{{en|}}}||/{{{1|}}}}}|{{#switch:{{SUBPAGENAME}}
 
  |ar|cs|da|de|en|es|fi|fr|hu|it|ja|ko|nl|no|pl|pt|pt-br|ro|ru|tr|sv|zh-hans|zh-hant = {{#titleparts:{{FULLPAGENAME}}|-1}}
 
  | #default = {{FULLPAGENAME}}
 
}}{{#if:{{{en|}}}||/{{{1|}}}}}|-}} <!--End #ifexist -->
 
 
  | #default = -
 
  | #default = -
 
}}<noinclude>{{protected|small=1}}
 
}}<noinclude>{{protected|small=1}}

Revision as of 18:02, 29 September 2014

-

Usage

  • {{mw-langlink|fr}} on Hats will display the text "Hats/fr" (no link). See talk.