Difference between revisions of "Template:Season/doc"
Jump to navigation
Jump to search
Margotbean (talk | contribs) |
Margotbean (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | ==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. | ||
Line 6: | Line 7: | ||
The template recognizes two special values of season, <samp>Marriage</samp> and <samp>Deviations</samp>, for the sake of NPC schedule pages (see [[Template:ScheduleHeader]]). | The template recognizes two special values of season, <samp>Marriage</samp> and <samp>Deviations</samp>, for the sake of NPC schedule pages (see [[Template:ScheduleHeader]]). | ||
− | == | + | ==Use== |
− | + | <pre>{{Season|''season''}}</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 49: | Line 21: | ||
{{Season|Marriage}} | {{Season|Marriage}} | ||
{{Season|Deviations}} | {{Season|Deviations}} | ||
− | {{Season|All| | + | {{Season|All|width=48}} |
{{Season|Summer|24}} | {{Season|Summer|24}} | ||
</pre> | </pre> | ||
Line 57: | Line 29: | ||
{{Season|Marriage}}<br /> | {{Season|Marriage}}<br /> | ||
{{Season|Deviations}}<br /> | {{Season|Deviations}}<br /> | ||
− | {{Season|All| | + | {{Season|All|width=48}}<br /> |
{{Season|Summer|24}}<br /> | {{Season|Summer|24}}<br /> | ||
<includeonly>[[Category:Formatting templates]]{{Addlanglinks}}</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Formatting templates]]{{Addlanglinks}}</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 21:23, 7 May 2022
Description
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
The template recognizes two special values of season, Marriage and Deviations, for the sake of NPC schedule pages (see Template:ScheduleHeader).
Use
{{Season|''season''}}
Parameters
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)
Examples
{{Season|Spring}} {{Season|Marriage}} {{Season|Deviations}} {{Season|All|width=48}} {{Season|Summer|24}}