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: {{#titleparts: {{PAGENAME}} | | -1 }}
#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:{{#if:1|{{{1}}}}}/{{#titleparts: {{PAGENAME}} | | -1 }}]] }}
| yi = {{#ifeq: {{{project|}}} | 0 || [[Category:{{{1}}}/{{#var: $lang }}]] }}
| #default = [[Category:{{#if:1|{{{1}}}}}]]
| #default = [[Category:{{{1}}}]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->