Template:Mw-langlink: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(Putting back broken version, for tests.)
m (That's the fix.)
Line 8: Line 8:
  | {{ns:0}} = {{#switch:{{{en|}}}
  | {{ns:0}} = {{#switch:{{{en|}}}
   | true = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{BASEPAGENAME}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}
   | true = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{BASEPAGENAME}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}
   | #default = {{switch:{{SUBPAGENAME}}
   | #default = {{#switch:{{SUBPAGENAME}}
     |#default = {{#switch:{{NAMESPACE}}
     |#default = {{#switch:{{NAMESPACE}}
       | {{ns:0}} = {{#ifexist:{{PAGENAME}}/{{{1|}}}|{{PAGENAME}}/{{{1|}}}|-}}
       | {{ns:0}} = {{#ifexist:{{PAGENAME}}/{{{1|}}}|{{PAGENAME}}/{{{1|}}}|-}}

Revision as of 19:22, 26 April 2011

-

Usage

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