Difference between revisions of "Template:Activems"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) (Created page with "<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#vardefine:i|{{{1}}}}}{{#while: |{{#ifexpr:{{#var:i}}<={{{2}}}|true}} |[[Category: Middle school players active in {{#var:i}}]]{{#...") |
Kevin Wang (talk | contribs) |
||
Line 4: | Line 4: | ||
}}|[[Category: Middle school players active in {{{1}}}]]}}}} | }}|[[Category: Middle school players active in {{{1}}}]]}}}} | ||
</includeonly><noinclude>Shorthand for adding active years for middle school players. | </includeonly><noinclude>Shorthand for adding active years for middle school players. | ||
+ | |||
+ | *{{{1}}} - start year (inclusive) | ||
+ | *{{{2}}} - end year (inclusive; optional) | ||
+ | |||
+ | End year can be up to 25 years after start year. | ||
+ | |||
+ | ===Usage:=== | ||
+ | {| class="wikitable" | ||
+ | ! input | ||
+ | ! output | ||
+ | |- | ||
+ | |<nowiki>{{activems|2005}}</nowiki> || <nowiki>[[Category: Middle school players active in 2005]]</nowiki> | ||
+ | |- | ||
+ | |<nowiki>{{activems|2005|2005}}</nowiki> || <nowiki>[[Category: Middle school players active in 2005]]</nowiki> | ||
+ | |- | ||
+ | |<nowiki>{{activems|2005|2004}}</nowiki> || n/a | ||
+ | |- | ||
+ | |<nowiki>{{activems|2005|2006}}</nowiki> || <nowiki>[[Category: Middle school players active in 2005]] | ||
+ | [[Category: Players active in 2006]]</nowiki> | ||
+ | |- | ||
+ | |<nowiki>{{activems|2005|2007}}</nowiki> || <nowiki>[[Category: Middle school players active in 2005]] | ||
+ | [[Category: Players active in 2006]] | ||
+ | [[Category: Players active in 2007]]</nowiki> | ||
+ | |- | ||
+ | |<nowiki>{{activems|2005|2008}}</nowiki> || <nowiki>[[Category: Middle school players active in 2005]] | ||
+ | [[Category: Middle school players active in 2006]] | ||
+ | [[Category: Middle school players active in 2007]] | ||
+ | [[Category: Middle school players active in 2008]]</nowiki> | ||
+ | |}</noinclude> |
Latest revision as of 09:27, 22 March 2021
Shorthand for adding active years for middle school players.
- {{{1}}} - start year (inclusive)
- {{{2}}} - end year (inclusive; optional)
End year can be up to 25 years after start year.
Usage:
input | output |
---|---|
{{activems|2005}} | [[Category: Middle school players active in 2005]] |
{{activems|2005|2005}} | [[Category: Middle school players active in 2005]] |
{{activems|2005|2004}} | n/a |
{{activems|2005|2006}} | [[Category: Middle school players active in 2005]] [[Category: Players active in 2006]] |
{{activems|2005|2007}} | [[Category: Middle school players active in 2005]] [[Category: Players active in 2006]] [[Category: Players active in 2007]] |
{{activems|2005|2008}} | [[Category: Middle school players active in 2005]] [[Category: Middle school players active in 2006]] [[Category: Middle school players active in 2007]] [[Category: Middle school players active in 2008]] |