This template is protected from editing.

Difference between revisions of "Template:Mw-langlink"

From Team Fortress Wiki
Jump to: navigation, search
(Add User:Darkid changes for supporting lang subpages more than 1 level deep)
m (fixes for last edit)
Line 10: Line 10:
 
   | true = {{FULLPAGENAME}}
 
   | true = {{FULLPAGENAME}}
 
   | #default = {{#ifexist:{{#switch:{{SUBPAGENAME}}
 
   | #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}}
+
     |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 = {{FULLPAGENAME}}
 
     | #default = {{FULLPAGENAME}}
   }}/{{{1|}}}|{{#switch:{{{SUBPAGENAME}}
+
   }}/{{{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}}
+
     |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 = {{FULLPAGENAME}}
 
     | #default = {{FULLPAGENAME}}
   }}/{{{1|}}}|-}} <!-- End #ifexist -->
+
   }}/{{{1|}}}|-}} <!--End #ifexist -->
 
  }}
 
  }}
 
  | #default = -
 
  | #default = -

Revision as of 00:31, 18 September 2014

-

Usage

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