Jump to content

Template:Season: Difference between revisions

From StepHarvest Wiki
Use real game asset icons
Vertically center season icon in tag
 
Line 1: Line 1:
<includeonly><templatestyles src="Season/styles.css" /><span class="sh-season sh-season-{{lc:{{{1|spring}}}}}">{{#ifexist:File:Season {{lc:{{{1|spring}}}}}.png|[[File:Season {{lc:{{{1|spring}}}}}.png|14px|link=|alt=]]&nbsp;|}}{{ucfirst:{{lc:{{{1|Spring}}}}}}}</span></includeonly><noinclude>
<includeonly><templatestyles src="Season/styles.css" /><span class="sh-season sh-season-{{lc:{{{1|spring}}}}}">{{#ifexist:File:Season {{lc:{{{1|spring}}}}}.png|[[File:Season {{lc:{{{1|spring}}}}}.png|14px|link=|alt=]]|}}{{ucfirst:{{lc:{{{1|Spring}}}}}}}</span></includeonly><noinclude>
Renders an in game season as a colored tag with the season's icon, using the seasonal palette from the game's theme files.
Renders an in game season as a colored tag with the season's icon, using the seasonal palette from the game's theme files.



Latest revision as of 15:38, 11 June 2026

Renders an in game season as a colored tag with the season's icon, using the seasonal palette from the game's theme files.

Usage

{{Season|spring}} {{Season|summer}} {{Season|fall}} {{Season|winter}}

For a comma separated list of seasons (as stored in infobox parameters), use the helper module instead:

{{#invoke:StepHarvest|seasons|spring, fall}}