Difference between revisions of "Template:Weather inline"

From Stardew Valley Wiki
Jump to navigation Jump to search
(switch to new way of handling sortkey, add {{{space}}})
Line 53: Line 53:
 
-->}}}}</span>}}<!--
 
-->}}}}</span>}}<!--
 
-->{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}}|</span>}}
 
-->{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}}|</span>}}
}}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
+
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
{{{{FULLPAGENAME}}/doc}} }}</noinclude>
 

Revision as of 23:42, 24 February 2021

Description

This template displays the icon for the type of weather, plus a link to the associated wiki page.

Use

{{Weather inline|type of weather|width (optional)}}

Valid Parameters

There are 9 valid types of weather. All are case-insensitive.

      | link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
      | link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
      | link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
      | link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
      | link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
      | link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
      | link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
      | link=Weather| alt=]] [[Weather|Template:ParseInputValues]]

Width

Specify the width in pixels, and include "px".

{{Weather inline|Snow|width=24px}}

Template:ParseInputValues[[File:Template:ParseInputValues.png|

      | link=Weather| alt=]] [[Weather|Template:ParseInputValues]]