Difference between revisions of "Template:Season"

From Stardew Valley Wiki
Jump to navigation Jump to search
(capitalize because it looks better to me)
(lowercase correction)
Line 1: Line 1:
<includeonly><span style="display:inline; margin-right:0;">{{#switch: {{{1}}}
+
<includeonly><span style="display:inline; margin-right:0;">{{#switch: {{lc:{{{1}}}}}
| Spring   = [[File:Spring.png|{{{width|24px}}}|link=Spring]]&nbsp;[[Spring]]
+
| spring   = [[File:Spring.png|{{{width|24px}}}|link=Spring]]&nbsp;[[Spring]]
| Summer   = [[File:Summer.png|{{{width|24px}}}|link=Summer]]&nbsp;[[Summer]]
+
| summer   = [[File:Summer.png|{{{width|24px}}}|link=Summer]]&nbsp;[[Summer]]
| Fall    = [[File:Fall.png|{{{width|24px}}}|link=Fall]]&nbsp;[[Fall]]
+
| fall | autumn  = [[File:Fall.png|{{{width|24px}}}|link=Fall]]&nbsp;[[Fall]]
| Winter   = [[File:Winter.png|{{{width|24px}}}|link=Winter]]&nbsp;[[Winter]]
+
| winter   = [[File:Winter.png|{{{width|24px}}}|link=Winter]]&nbsp;[[Winter]]
| Marriage = [[File:Mermaid's Pendant.png|{{{width|24px}}}|link=Marriage]]&nbsp;[[Marriage]]
+
| marriage = [[File:Mermaid's Pendant.png|{{{width|24px}}}|link=Marriage]]&nbsp;[[Marriage]]
| Deviations = Deviations
+
| deviations = Deviations
| All | all | any | Any = [[File:All_Seasons_Icon.png|{{{width|24px}}}|link=Seasons]]&nbsp;[[Seasons|All Seasons]]
+
| all | any = [[File:All_Seasons_Icon.png|{{{width|24px}}}|link=Seasons]]&nbsp;[[Seasons|All Seasons]]
|{{{1|}}}}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
+
|{{ucfirst:{{{1|}}} }} }}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 22:22, 17 June 2018

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 Seasons
Summer.png Summer