Template:Translation category: Difference between revisions

put the {{ #vardefine: $lang }} outside the other logic, since it always gets defined in one way or another
the only thing {{{project}}} is used for is to suppress this category, so there's no reason to test it for one particular value
Line 29: Line 29:
}}{{
}}{{
#if: {{ #var: $lang }}
#if: {{ #var: $lang }}
| {{ #ifeq: {{{project|}}} | 0
| {{ #if: {{{project|}}} || [[Category:{{ #if: trim | {{{1}}} }}/{{ #var: $lang }}]] }}
  |
  | [[Category:{{ #if: trim | {{{1}}} }}/{{ #var: $lang }}]] }}
| [[Category:{{ #if: trim | {{{1}}} }}]]
| [[Category:{{ #if: trim | {{{1}}} }}]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->