Difference between revisions of "Template:Active"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) (Replaced content with "<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#vardefine:i|{{{1}}}}}{{#while: |{{#ifexpr:{{#var:i}}<={{{2}}}|true}} |[[Category: Players active in {{#var:i}}]]{{#vardefine:...") Tag: Replaced |
Kevin Wang (talk | contribs) m |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|[[Category: Players active in {{#var:i}}]]{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | |[[Category: Players active in {{#var:i}}]]{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | ||
}}|[[Category: Players active in {{{1}}}]]}}}} | }}|[[Category: Players active in {{{1}}}]]}}}} | ||
− | </includeonly><noinclude>Shorthand for adding active years for | + | </includeonly><noinclude>Shorthand for adding active years for players. |
*{{{1}}} - start year (inclusive) | *{{{1}}} - start year (inclusive) | ||
*{{{2}}} - end year (inclusive; optional) | *{{{2}}} - end year (inclusive; optional) | ||
− | |||
− | |||
===Usage:=== | ===Usage:=== |
Latest revision as of 14:40, 7 November 2021
Shorthand for adding active years for players.
- {{{1}}} - start year (inclusive)
- {{{2}}} - end year (inclusive; optional)
Usage:
input | output |
---|---|
{{active|2005}} | [[Category: Players active in 2005]] |
{{active|2005|2005}} | [[Category: Players active in 2005]] |
{{active|2005|2004}} | n/a |
{{active|2005|2006}} | [[Category: Players active in 2005]] [[Category: Players active in 2006]] |
{{active|2005|2007}} | [[Category: Players active in 2005]] [[Category: Players active in 2006]] [[Category: Players active in 2007]] |
{{active|2005|2008}} | [[Category: Players active in 2005]] [[Category: Players active in 2006]] [[Category: Players active in 2007]] [[Category: Players active in 2008]] |