Template:Mw-langlink: Difference between revisions
Jump to navigation
Jump to search
(Stopping the lang nav link to the root page translations of a non-translation sub-page.) |
(Something really broke there.) |
||
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:{{NAMESPACE}} | |||
| {{ns:0}} = {{#ifexist:{{BASEPAGENAME}}/{{{1|}}}|{{BASEPAGENAME}}/{{{1|}}}|-}} | |||
| #default = {{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1|}}}|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1|}}}|-}} | |||
}} | }} | ||
}} | }} |