High School Musical Wiki
Advertisement
High School Musical Wiki

This template is intended to be used within infobox templates, e.g. cast and crew. It converts user value for "season" parameter to linked text.

To add this functionality to an infobox, add format field within season's data tags, e.g.:

<data source="season">
	<label>Season</label>
	<format>{{season switch|{{{season|{{{seasons|}}}}}}}}</format>
</data>


On article pages, users can fill the infobox as normal, i.e. "|season = <user value>". If the <user value> is one that is defined in this template, it converts it to links to the appropriate season(s). If the <user value> is not defined within this template, this template returns the <user value> without any edits.

Notes:

  • All spaces within <user value> are ignored.
  • For one season, defined values include "1", "one", "1st", and "first". This template is case insensitive (i.e. "FiRsT" returns same result as "first").
  • For multiple season, commas, ampersand, and dashes can be used (e.g. "1,2", "1&2", "1-2", "1–2", "1–2").
    • When commas and ampersand are used, all seasons must be listed (e.g. "1,2,4", "2&3&4").
    • When dashes are used, it includes any seasons between the numbers (e.g. "1-4" includes season 2 and 3).


Examples of what this template returns for various <user value>:

  • "|season = 1" → One
  • "|season = T W O" → Two
  • "|season = 2nd" → Two
  • "|season = FiRsT" → One
  • "|season = 1,2,3" → One, Two, Three
  • "|season = 1 & 2" → One, Two
  • "|season = 1-2" → One, Two
  • "|season = 1 – 3" → One, Two, Three
  • "|season = undefined" → undefined
  • "|season = [[Season 2|Two]]" → Two
Advertisement