This template is protected from editing.

Difference between revisions of "Template:Mw-langlink"

From Team Fortress Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
{{#switch:{{{en|}}}
+
{{#switch:{{NAMESPACE}} <!-- Whitelisting certain namespaces -->
| true = {{FULLPAGENAME}}
 
| #default = {{#switch:{{NAMESPACE}} <!-- Whitelisting certain namespaces -->
 
 
  | Template
 
  | Template
 
  | Category
 
  | Category
 
  | blank
 
  | blank
 
  | none
 
  | none
  | {{ns:0}} = {{#ifexist:{{BASEPAGENAME}}/{{{1|}}}|{{BASEPAGENAME}}/{{{1|}}}|-}}
+
  | {{ns:0}} = {{#switch:{{{en|}}}
  | #default = -}}
+
  | true = {{FULLPAGENAME}}
}}<noinclude>{{protected|small=1}}
+
  | #default = {{#ifexist:{{BASEPAGENAME}}/{{{1|}}}|{{BASEPAGENAME}}/{{{1|}}}|-}}
 +
  }}
 +
  | #default = -}}<noinclude>{{protected|small=1}}
 
== Usage ==
 
== Usage ==
 
* {{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.

Revision as of 23:42, 3 September 2010

-

Usage

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