Difference between revisions of "Template:Weather inline"

From Stardew Valley Wiki
Jump to navigation Jump to search
(removed border since images are now 16x16)
(Changed from "Sunny" to "Sun" to match the other weather patterns; allowed template to accept any version of weather + y at end; changed all links to Weather since they all redirect to Weather already)
Line 1: Line 1:
 
<includeonly>{{#switch: {{lc:{{{value|{{{1|}}}}}}}}
 
<includeonly>{{#switch: {{lc:{{{value|{{{1|}}}}}}}}
| sunny = [[File:Sunny.png]]&nbsp;[[Sunny]]
+
| sunny | sun = [[File:Sunny.png]]&nbsp;[[Weather|Sun]]
| rain = [[File:Rain.png]]&nbsp;[[Rain]]
+
| rainy | rain = [[File:Rain.png]]&nbsp;[[Weather|Rain]]
| pollen = [[File:Pollen_fall.png]]&nbsp;[[Pollen]]
+
| polleny | pollen = [[File:Pollen_fall.png]]&nbsp;[[Weather|Pollen]]<!--it could happen-->
| storm = [[File:Thunderstorm.png]]&nbsp;[[Storm]]
+
| stormy | storm = [[File:Thunderstorm.png]]&nbsp;[[Weather|Storm]]
| snow = [[File:Snow.png]]&nbsp;[[Snow]]
+
| snowy | snow = [[File:Snow.png]]&nbsp;[[Weather|Snow]]
 
| <span style="color:red">WEATHER TEMPLATE ERROR</span>
 
| <span style="color:red">WEATHER TEMPLATE ERROR</span>
 
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 20:01, 27 January 2017

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.

  • All / Any =
  • Sun = Sunny.png Sun
  • Springwind =
  • Fallwind =
  • Rain = Rain.png Rain
  • Storm = Thunderstorm.png Storm
  • Snow = Snow.png Snow
  • Festival =

Width

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

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

Snow.png Snow