This template is protected from editing.

Difference between revisions of "Template:Mw-langlink"

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

Revision as of 00:50, 18 September 2014

-

Usage

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