Difference between revisions of "Template:Season/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Description==
 
==Description==
 
This template displays the icon for the requested season, plus the season as a link to its associated article.
 
This template displays the icon for the requested season, plus the season as a link to its associated article.
 
The icon and text are enclosed in a nowrap span, so that they are always displayed on the same line.
 
  
 
==Notes==
 
==Notes==
Line 8: Line 6:
  
 
==Use==
 
==Use==
<pre>{{Season|''season''}}</pre>
+
<pre>{{Season|name of season|day (optional)|width (optional)}}</pre>
 
 
==Parameters==
 
<pre>
 
season = name of season (in English or native language)
 
day = day of season, shown before the name of the season (optional)
 
width = width of image in pixels (optional)
 
</pre>
 
  
 
===Examples===
 
===Examples===
Line 32: Line 23:
 
{{Season|Summer|24}}<br />
 
{{Season|Summer|24}}<br />
  
<includeonly>[[Category:Formatting templates]]{{Addlanglinks}}</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
+
<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 21:28, 8 January 2023

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:
Spring.png Spring
Mermaid's Pendant.png Marriage
Deviations
48 All
Summer.png 24 Summer