Changes

Jump to navigation Jump to search
76 bytes added ,  18:47, 4 November 2021
m
Text replacement - "tt>" to "samp>"
Line 4: Line 4:     
==Notes==
 
==Notes==
The template recognizes two special values of season, <tt>Marriage</tt> and <tt>Deviations</tt>, 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]]).
    
==Usage==
 
==Usage==
Line 21: Line 21:  
* '''''season'''''
 
* '''''season'''''
 
** First unnamed parameter, required
 
** First unnamed parameter, required
** The name of the season to be displayed, recognized values: <tt>Spring, Summer, Fall, Winter, All Seasons, Marriage, Deviations</tt>.  <tt>All</tt> and <tt>Any</tt> are recognized as synonyms for <tt>All Seasons</tt>.
+
** The name of the season to be displayed, recognized values: <samp>Spring, Summer, Fall, Winter, All Seasons, Marriage, Deviations</samp>.  <samp>All</samp> and <samp>Any</samp> are recognized as synonyms for <samp>All Seasons</samp>.
 
** Multiple seasons can be specified, separated by commas
 
** Multiple seasons can be specified, separated by commas
 
** If an unrecognized season name is provided, the template will simply print out that name (no link, no icon).
 
** If an unrecognized season name is provided, the template will simply print out that name (no link, no icon).
** The seasons should be provided as plain text (unlinked). However, to allow the template to work regardless of user input choices, links such as <tt><nowiki>[[Spring]]</nowiki></tt> will work. Also, if the <tt>''season''</tt> already contains any type of image link, the template will just return the input value unaltered (in case user input already included the season call, e.g., <tt><nowiki>{{Season|Spring}}</nowiki></tt>.
+
** The seasons should be provided as plain text (unlinked). However, to allow the template to work regardless of user input choices, links such as <samp><nowiki>[[Spring]]</nowiki></samp> will work. Also, if the <samp>''season''</samp> already contains any type of image link, the template will just return the input value unaltered (in case user input already included the season call, e.g., <samp><nowiki>{{Season|Spring}}</nowiki></samp>.
    
* '''''day'''''
 
* '''''day'''''
Line 37: Line 37:  
* '''width=''widthpluspx'''''
 
* '''width=''widthpluspx'''''
 
** Size of icons in pixels ''with px'' (e.g., <nowiki>width=24px</nowiki>).
 
** Size of icons in pixels ''with px'' (e.g., <nowiki>width=24px</nowiki>).
** This is redundant with <tt>size</tt> and inconsistent (expects a different format); only one (preferably <tt>size</tt>) should be used.
+
** This is redundant with <samp>size</samp> and inconsistent (expects a different format); only one (preferably <samp>size</samp>) should be used.
 
** This parameter is included solely for backwards compatibility and is deprecated
 
** This parameter is included solely for backwards compatibility and is deprecated
    
* '''all=''text_for_all'''''
 
* '''all=''text_for_all'''''
** Relevant only if <tt>''season''</tt> is <tt>All Seasons</tt> (or a synonym): when <tt>all</tt> is set, the specified text will be displayed instead of <tt>All</tt>.  Default value is <tt>All</tt>.
+
** Relevant only if <samp>''season''</samp> is <samp>All Seasons</samp> (or a synonym): when <samp>all</samp> is set, the specified text will be displayed instead of <samp>All</samp>.  Default value is <samp>All</samp>.
    
* '''sortkey=true'''
 
* '''sortkey=true'''
** If set, a hidden span containing a numeric sortkey will be added to the output, to improve table sorting. The sortkey will causes seasons to be sorted in order Spring, Summer, Fall, Winter, instead of being sorted alphabetically. Plus any provided <tt>day</tt> will be included in the sortkey.
+
** If set, a hidden span containing a numeric sortkey will be added to the output, to improve table sorting. The sortkey will causes seasons to be sorted in order Spring, Summer, Fall, Winter, instead of being sorted alphabetically. Plus any provided <samp>day</samp> will be included in the sortkey.
    
* '''space=''value'''
 
* '''space=''value'''
Line 54: Line 54:     
* '''no_translate=true'''
 
* '''no_translate=true'''
** When set, any <tt>text_only</tt> return value is provided in English, instead of the wiki-specific language
+
** When set, any <samp>text_only</samp> return value is provided in English, instead of the wiki-specific language
** Only relevant if <tt>text_only</tt> is set.
+
** Only relevant if <samp>text_only</samp> is set.
    
===Examples===
 
===Examples===
107,496

edits

Navigation menu