This template is protected from editing.
Difference between revisions of "Template:Mw-langlink"
m (rm unnecessary overrides) |
|||
Line 1: | Line 1: | ||
− | {{#switch:{{NAMESPACE}} <!-- Whitelisting certain namespaces --> | + | {{#switch:{{{en|}}} |
+ | | true = {{BASEPAGENAME}} | ||
+ | | #default = {{#switch:{{NAMESPACE}} <!-- Whitelisting certain namespaces --> | ||
| Template | | Template | ||
| Category | | Category | ||
Line 5: | Line 7: | ||
| none | | none | ||
| {{ns:0}} = {{#ifexist:{{BASEPAGENAME}}/{{{1|}}}|{{BASEPAGENAME}}/{{{1|}}}|-}} | | {{ns:0}} = {{#ifexist:{{BASEPAGENAME}}/{{{1|}}}|{{BASEPAGENAME}}/{{{1|}}}|-}} | ||
− | | #default = -}}<noinclude>{{protected|small=1}} | + | | #default = -}} |
+ | }}<noinclude>{{protected|small=1}} | ||
== Usage == | == Usage == | ||
* {{tlx|mw-langlink|2=fr}} on [[Hats]] will display the text "{{code|Hats/fr}}" (no link). See talk. | * {{tlx|mw-langlink|2=fr}} on [[Hats]] will display the text "{{code|Hats/fr}}" (no link). See talk. |