Difference between revisions of "Template:Mw-langlink"

From Kerbal Space Program Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{#switch:{{NAMESPACE}} <!-- Whitelisting certain namespaces -->
 
{{#switch:{{NAMESPACE}} <!-- Whitelisting certain namespaces -->
| Template
+
| Template
| Help
+
| Help
| Talk
+
| Talk
| Category
+
| Category
| blank
+
| blank
| none
+
| none
| {{ns:0}} = {{#switch:{{{en|}}}
+
| {{ns:0}} = {{#switch:{{{en|}}}
   | true = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{BASEPAGENAME}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}
+
   | true = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{KSPROOTPAGE}}|{{NAMESPACE}}:{{KSPROOTPAGE}}}}
 
   | #default = {{#switch:{{NAMESPACE}}
 
   | #default = {{#switch:{{NAMESPACE}}
     | {{ns:0}} = {{#ifexist:{{BASEPAGENAME}}/{{{1|}}}|{{BASEPAGENAME}}/{{{1|}}}|-}}
+
     | {{ns:0}} = {{#ifexist:{{KSPROOTPAGE}}/{{{1|}}}|{{KSPROOTPAGE}}/{{{1|}}}|-}}
     | #default = {{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1|}}}|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1|}}}|-}}
+
     | #default = {{#ifexist:{{NAMESPACE}}:{{KSPROOTPAGE}}/{{{1|}}}|{{NAMESPACE}}:{{KSPROOTPAGE}}/{{{1|}}}|-}}
 
     }}
 
     }}
 
   }}
 
   }}

Latest revision as of 05:20, 26 September 2012

-

This page has been protected for the following reason:

Interface stuff.-- N3X15 (talk) 07:24, 23 September 2012 (UTC)

Usage

  • Used for the sidebar. Borrowed from Valve's TF2 wiki.