Difference between revisions of "Template:Weather inline/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
(update docs)
Line 1: Line 1:
 +
[[Template:Weather inline|Weather inline]] displays the icon for the requested weather, plus the weather name as a link to the weather article. One or more types of weather may be specified, separated by commas.
 +
 +
The icon and text are enclosed in a nowrap span, so that they are always displayed on the same line.
 +
 +
==Notes==
 +
* Parameters can be entered with or without "y" at the end (''e.g.,'' Sunny or Sun, Rainy or rain, etc.).  Capitalization does not matter.
 +
* There are two different icons for wind, Pollen ([[File:Pollen fall.png]]) and Springwind ([[File:Pollen spring.png]]). Both are displayed using the label Wind.
 +
 +
==Usage==
 +
===Syntax===
 +
Basic usage:
 +
<nowiki>{{</nowiki>[[Template:Weather inline|Weather inline]] | ''weather'' <nowiki>}}</nowiki>
 +
 +
Complete argument list:
 +
<nowiki>{{</nowiki>[[Template:Weather inline|Weather inline]] | ''weather''
 +
          | size=''px'' | width=''widthpluspx'' | all=''text_for_all'' | sortkey=true | space=''value''
 +
          | text_only=true | no_translate=true <nowiki>}}</nowiki>
 +
 +
===Parameters===
 +
There is one unnamed required parameter, ''weather''.  All other parameters are named and optional.  Default value for all arguments is empty, unless specified otherwise.
 +
 +
All parameters other than ''weather'' are identical in meaning to [[Template:Season]]; see Season for documentation.
 +
 
==Usage==
 
==Usage==
Parameters can be entered with or without "y" at the end (''e.g.,'' Sunny or Sun, Rainy or rain, etc.).  Capitalization does not matter.
+
 
 
<pre>*{{Weather inline|sunny}}  
 
<pre>*{{Weather inline|sunny}}  
 
*{{Weather inline|rain}}  
 
*{{Weather inline|rain}}  
Line 8: Line 31:
 
*{{Weather inline|Snowy}}</pre>
 
*{{Weather inline|Snowy}}</pre>
  
*{{Weather inline|sun}}
+
*{{Weather inline|sunny}}
 
*{{Weather inline|rain}}
 
*{{Weather inline|rain}}
 
*{{Weather inline|POLLEN}}
 
*{{Weather inline|POLLEN}}
 
*{{Weather inline|springwind}}
 
*{{Weather inline|springwind}}
*{{Weather inline|storm}}
+
*{{Weather inline|stormy}}
*{{Weather inline|Snow}}
+
*{{Weather inline|Snowy}}
  
<pre>{{Weather inline|sUN}} / {{Weather inline|Rainy}}</pre>
+
<pre>{{Weather inline|sUN, Rainy|space=&#32;/&#32;}}</pre>
{{Weather inline|sun}} / {{Weather inline|rainy}}
+
{{Weather inline|sUN, Rainy|space=&#32;/&#32;}}
 
<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
 
<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>{{Addlanglinks}}</includeonly>
 

Revision as of 23:36, 27 October 2020

Weather inline displays the icon for the requested weather, plus the weather name as a link to the weather article. One or more types of weather may be specified, separated by commas.

The icon and text are enclosed in a nowrap span, so that they are always displayed on the same line.

Notes

  • Parameters can be entered with or without "y" at the end (e.g., Sunny or Sun, Rainy or rain, etc.). Capitalization does not matter.
  • There are two different icons for wind, Pollen (Pollen fall.png) and Springwind (Pollen spring.png). Both are displayed using the label Wind.

Usage

Syntax

Basic usage:

{{Weather inline | weather }}

Complete argument list:

{{Weather inline | weather 
         | size=px | width=widthpluspx | all=text_for_all | sortkey=true | space=value
         | text_only=true | no_translate=true }}

Parameters

There is one unnamed required parameter, weather. All other parameters are named and optional. Default value for all arguments is empty, unless specified otherwise.

All parameters other than weather are identical in meaning to Template:Season; see Season for documentation.

Usage

*{{Weather inline|sunny}} 
*{{Weather inline|rain}} 
*{{Weather inline|POLLEN}} or {{Weather inline|wind}}
*{{Weather inline|springwind}}
*{{Weather inline|stormy}}
*{{Weather inline|Snowy}}
{{Weather inline|sUN, Rainy|space= / }}

SUN, Rainy