Template:Catlink: Difference between revisions

Template page
(tweak)
(rm len test)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#fornumargs: number | value | {{#if:{{{1}}}|{{void}}| {{{!}}} }}{{#if:{{{cat}}}|[[:Category:{{#var:value}}{{!}}{{#var:value}}]]|[[{{#var:value}}]]}}}}
{{#fornumargs: number | value | {{#if:{{{prefixpar|}}}|{{#vardefine:encval|{{{prefixpar}}} ({{#var:value}})}}|{{#vardefine:encval|{{#var:value}}}}}} {{#ifeq: {{#var:number}} | 1 |{{void}}| {{!}} }}{{#if:{{{cat|}}}|[[:Category:{{#var:encval}}{{!}}{{#var:value}}]]|[[{{#var:encval}}]]}}}}

Latest revision as of 16:46, 21 February 2021