Difference between revisions of "Template:Weather inline"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Revamp to have all same features as Template:Season)
m (fix link)
Line 45: Line 45:
 
// Display the normal cases: first display icon (except for Any)<!--
 
// Display the normal cases: first display icon (except for Any)<!--
 
-->{{#ifeq:@weather@|Any||[[File:@[email protected]|
 
-->{{#ifeq:@weather@|Any||[[File:@[email protected]|
       {{#if:{{{size|}}}|{{{size}}}px}} | link={{#arrayprint:$wlink_text}} | alt=]]&nbsp;}}<!--
+
       {{#if:{{{size|}}}|{{{size}}}px}} | link={{#arrayprint:$lang_weatherlink}}| alt=]]&nbsp;}}<!--
  
 
// Add link
 
// Add link

Revision as of 15:47, 12 September 2020

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]]