Difference between revisions of "Template:Season"

From Stardew Valley Wiki
Jump to navigation Jump to search
(new format for list of allowed values; tweaks to parameters)
(Add support for day (e.g., birthday), consistent with french template)
Line 51: Line 51:
 
-->[[File:@[email protected]|
 
-->[[File:@[email protected]|
 
     {{#if:{{{size|}}}|{{{size}}}px|{{{width|24px}}}}} | link={{#arrayprint:$slink_text}} | alt=]]&nbsp;<!--
 
     {{#if:{{{size|}}}|{{{size}}}px|{{{width|24px}}}}} | link={{#arrayprint:$slink_text}} | alt=]]&nbsp;<!--
 +
// Add day if provided
 +
-->{{#if:{{{2|}}}|{{{2}}}&nbsp;}}<!--
  
 
// Add link, with special treatment for text of All Seasons
 
// Add link, with special treatment for text of All Seasons

Revision as of 03:59, 22 September 2020

Description

This template displays the icon for the requested season, plus the season as a link to its associated article.

Notes

The template recognizes two special values of season, Marriage and Deviations, for the sake of NPC schedule pages (see Template:ScheduleHeader).

Use

{{Season|name of season|day (optional)|width (optional)}}

Examples

{{Season|Spring}}
{{Season|Marriage}}
{{Season|Deviations}}
{{Season|All|width=48}}
{{Season|Summer|24}}

Results:
Template:ParseInputValues[[File:Template:ParseInputValues.png|

    24px | link=Template:ParseInputValues | alt=]] [[Template:ParseInputValues|Template:ParseInputValues]]

Template:ParseInputValues[[File:Template:ParseInputValues.png|

    24px | link=Template:ParseInputValues | alt=]] [[Template:ParseInputValues|Template:ParseInputValues]]

Template:ParseInputValues[[File:Template:ParseInputValues.png|

    24px | link=Template:ParseInputValues | alt=]] [[Template:ParseInputValues|Template:ParseInputValues]]

Template:ParseInputValues[[File:Template:ParseInputValues.png|

    48 | link=Template:ParseInputValues | alt=]] [[Template:ParseInputValues|Template:ParseInputValues]]

Template:ParseInputValues[[File:Template:ParseInputValues.png|

    24px | link=Template:ParseInputValues | alt=]] 24 [[Template:ParseInputValues|Template:ParseInputValues]]