Difference between revisions of "Template:Season"

From Stardew Valley Wiki
Jump to navigation Jump to search
(More reliable existing-image test; white-space:nowrap because nbsp is not working)
(adding size instead of width (standardize params); null alt (always followed by season text))
Line 42: Line 42:
 
       |Seasons    = All_Seasons_Icon
 
       |Seasons    = All_Seasons_Icon
 
       |Marriage  = Mermaid's Pendant
 
       |Marriage  = Mermaid's Pendant
   }}.png | {{{width|24px}}} | link={{#arrayprint:$slink_text}} | alt={{#arrayprint:$slink_text}}]]&nbsp;<!--
+
   }}.png | {{#if:{{{size|}}}|{{{size}}}px|{{{width|24px}}}}} | link={{#arrayprint:$slink_text}} | alt=]]&nbsp;<!--
  
 
// Add link, with special treatment for text of All Seasons
 
// Add link, with special treatment for text of All Seasons

Revision as of 15:59, 5 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
Template:ParseInputValues
Template:ParseInputValues
Template:ParseInputValues
Template:ParseInputValues