Template:Translation category: Difference between revisions
m trim category text |
The highest subpage level isn't always the language. Use the immediately superior subpage name if there is more than one subpage level. E.g.: Minecraft Wiki/"fr" and Minecraft Wiki/"fr"/style |
||
| Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{ | ||
#switch: {{# | #switch: {{#vardefineecho: $lang | {{ | ||
#ifeq: {{ROOTPAGENAME}} | {{BASEPAGENAME}} | |||
| {{SUBPAGENAME}} | |||
| {{SUBPAGENAME:{{BASEPAGENAME}}}} | |||
}} }} | |||
| ar | | ar | ||
| ca | cz | | ca | cz | ||
| Line 18: | Line 22: | ||
| ua | | ua | ||
| vi | | vi | ||
| yi = {{#ifeq: {{{project|}}} | 0 || [[Category: | | yi = {{#ifeq: {{{project|}}} | 0 || [[Category:{{{1}}}/{{#var: $lang }}]] }} | ||
| #default = [[Category: | | #default = [[Category:{{{1}}}]] | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Put categories/interwiki on the documentation page --> | <!-- Put categories/interwiki on the documentation page --> | ||