Difference between revisions of "Template:Mw-langlink"
From Kerbal Space Program Wiki
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{NAMESPACE}} <!-- Whitelisting certain namespaces --> | {{#switch:{{NAMESPACE}} <!-- Whitelisting certain namespaces --> | ||
− | + | | Template | |
− | + | | Help | |
− | + | | Talk | |
− | + | | Category | |
− | + | | blank | |
− | + | | none | |
− | + | | {{ns:0}} = {{#switch:{{{en|}}} | |
− | | true = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{ | + | | true = {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{KSPROOTPAGE}}|{{NAMESPACE}}:{{KSPROOTPAGE}}}} |
| #default = {{#switch:{{NAMESPACE}} | | #default = {{#switch:{{NAMESPACE}} | ||
− | | {{ns:0}} = {{#ifexist:{{ | + | | {{ns:0}} = {{#ifexist:{{KSPROOTPAGE}}/{{{1|}}}|{{KSPROOTPAGE}}/{{{1|}}}|-}} |
− | | #default = {{#ifexist:{{NAMESPACE}}:{{ | + | | #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.