Template:Mw-langlink: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
m (That's the fix.)
m (Fixing "English" of a non-translation subpage linking to root page.)
Line 7: Line 7:
  | none
  | none
  | {{ns:0}} = {{#switch:{{{en|}}}
  | {{ns:0}} = {{#switch:{{{en|}}}
   | true = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{BASEPAGENAME}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}
   | true = {{#switch:{{SUBPAGENAME}}
    | #default = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{BASEPAGENAME}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}
    | ar
    | cs
    | da
    | de
    | es
    | fi
    | fr
    | hu
    | it
    | ja
    | ko
    | nl
    | no
    | pl
    | pt
    | pt-br
    | ro
    | ru
    | sv
    | zh-hans
    | zh-hant = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{PAGENAME}}|{{NAMESPACE}}:{{PAGENAME}}}}
    }}
   | #default = {{#switch:{{SUBPAGENAME}}
   | #default = {{#switch:{{SUBPAGENAME}}
     |#default = {{#switch:{{NAMESPACE}}
     |#default = {{#switch:{{NAMESPACE}}

Revision as of 19:25, 26 April 2011

-

Usage

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