Template:Mw-langlink: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
m (Fixing "English" of a non-translation subpage linking to root page.)
m (I had the #default and give the wrong result)
 
Line 8: Line 8:
  | {{ns:0}} = {{#switch:{{{en|}}}
  | {{ns:0}} = {{#switch:{{{en|}}}
   | true = {{#switch:{{SUBPAGENAME}}
   | true = {{#switch:{{SUBPAGENAME}}
     | #default = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{BASEPAGENAME}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}
     | #default = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{PAGENAME}}|{{NAMESPACE}}:{{PAGENAME}}}}
     | ar
     | ar
     | cs
     | cs
Line 29: Line 29:
     | sv
     | sv
     | zh-hans
     | zh-hans
     | zh-hant = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{PAGENAME}}|{{NAMESPACE}}:{{PAGENAME}}}}
     | zh-hant = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{BASEPAGENAME}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}
     }}
     }}
   | #default = {{#switch:{{SUBPAGENAME}}
   | #default = {{#switch:{{SUBPAGENAME}}

Latest revision as of 19:26, 26 April 2011

-

Usage

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