Template:Translation category: Difference between revisions
Jump to navigation
Jump to search
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 |
Restore trim |
||
Line 22: | Line 22: | ||
| ua | | ua | ||
| vi | | vi | ||
| yi = {{#ifeq: {{{project|}}} | 0 || [[Category:{{{1}}}/{{#var: $lang }}]] }} | | yi = {{#ifeq: {{{project|}}} | 0 || [[Category:{{#if:1|{{{1}}}}}/{{#var: $lang }}]] }} | ||
| #default = [[Category:{{{1}}}]] | | #default = [[Category:{{#if:1|{{{1}}}}}]] | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Put categories/interwiki on the documentation page --> | <!-- Put categories/interwiki on the documentation page --> |
Revision as of 00:57, 18 January 2015
This template is used to add a category to a template that automatically uses the translation project category for a translation project. Note that this template is useless if you do not have translation projects, so any calls in other templates can be replaced with a direct category link.
Usage
|1=
can be set to the name of the category. It is used directly on main pages, and |1=
/lang
is used on translation projects.
If |project=
has a value, it won't add a category on the translation project pages.
cs:Šablona:Translation category ja:テンプレート:Translation category th:แม่แบบ:Translation category uk:Шаблон:Категорія перекладу
[view] [edit] [history] [refresh]The above documentation is transcluded from Template:Translation category/doc.