Difference between revisions of "Template:Activehs"

From QBWiki
Jump to navigation Jump to search
Line 10: Line 10:
 
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+1}}]]
 
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+1}}]]
 
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+2}}]]
 
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+2}}]]
 +
<!-----><!-----><!----->[[Category:High school players active in {{{2}}}]]
 +
<!-----><!-----><!----->|4=[[Category:High school players active in {{{1}}}]]
 +
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+1}}]]
 +
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+2}}]]
 +
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+3}}]]
 +
<!-----><!-----><!----->[[Category:High school players active in {{{2}}}]]
 +
<!-----><!-----><!----->|5=[[Category:High school players active in {{{1}}}]]
 +
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+1}}]]
 +
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+2}}]]
 +
<!-----><!-----><!----->[[Category:High school players active in {{#expr:{{{1}}}+4}}]]
 
<!-----><!-----><!----->[[Category:High school players active in {{{2}}}]]
 
<!-----><!-----><!----->[[Category:High school players active in {{{2}}}]]
 
<!-----><!-----><!----->|#default=[[Category:High school players active in {{{1}}}]]
 
<!-----><!-----><!----->|#default=[[Category:High school players active in {{{1}}}]]
Line 18: Line 28:
 
*{{{1}}} - start year (inclusive)
 
*{{{1}}} - start year (inclusive)
 
*{{{2}}} - end year (inclusive; optional)
 
*{{{2}}} - end year (inclusive; optional)
 +
 +
The end year can be up to 5 years after the start year - beyond that, the template will revert to only giving the start year.
  
 
===Usage:===
 
===Usage:===
Line 41: Line 53:
 
[[Category: High school players active in 2007]]
 
[[Category: High school players active in 2007]]
 
[[Category: High school players active in 2008]]</nowiki>
 
[[Category: High school players active in 2008]]</nowiki>
 +
|-
 +
|<nowiki>{{activehs|2005|9999}}</nowiki> || <nowiki>[[Category: High school players active in 2005]]</nowiki>
 
|}</noinclude>
 
|}</noinclude>

Revision as of 16:39, 17 March 2021

Shorthand for adding active years for high school player.

  • {{{1}}} - start year (inclusive)
  • {{{2}}} - end year (inclusive; optional)

The end year can be up to 5 years after the start year - beyond that, the template will revert to only giving the start year.

Usage:

input output
{{activehs|2005}} [[Category: High school players active in 2005]]
{{activehs|2005|2005}} [[Category: High school players active in 2005]]
{{activehs|2005|2004}} [[Category: High school players active in 2005]]
{{activehs|2005|2006}} [[Category: High school players active in 2005]] [[Category: High school players active in 2006]]
{{activehs|2005|2007}} [[Category: High school players active in 2005]] [[Category: High school players active in 2006]] [[Category: High school players active in 2007]]
{{activehs|2005|2008}} [[Category: High school players active in 2005]] [[Category: High school players active in 2006]] [[Category: High school players active in 2007]] [[Category: High school players active in 2008]]
{{activehs|2005|9999}} [[Category: High school players active in 2005]]