Difference between revisions of "Template:Weather inline"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Trying to get rid of an extra line-break in an infobox)
Line 1: Line 1:
 
<includeonly>{{#switch: {{lc:{{{value|{{{1|}}}}}}}}
 
<includeonly>{{#switch: {{lc:{{{value|{{{1|}}}}}}}}
| sunny | sun = [[File:Sunny.png]]&nbsp;[[Weather|Sun]]
+
| sunny | sun = [[File:Sunny.png|link=]]&nbsp;[[Weather|Sun]]
| rainy | rain = [[File:Rain.png]]&nbsp;[[Weather|Rain]]
+
| rainy | rain = [[File:Rain.png|link=]]&nbsp;[[Weather|Rain]]
| polleny | pollen | wind | windy = [[File:Pollen_fall.png]]&nbsp;[[Weather|Wind]]<!--it could happen-->
+
| polleny | pollen | wind | windy = [[File:Pollen_fall.png|link=]]&nbsp;[[Weather|Wind]]<!--it could happen-->
| stormy | storm = [[File:Thunderstorm.png]]&nbsp;[[Weather|Storm]]
+
| stormy | storm = [[File:Thunderstorm.png|link=]]&nbsp;[[Weather|Storm]]
| snowy | snow = [[File:Snow.png]]&nbsp;[[Weather|Snow]]
+
| snowy | snow = [[File:Snow.png|link=]]&nbsp;[[Weather|Snow]]
 
| #default = <span style="color:red">WEATHER TEMPLATE ERROR</span>}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 
| #default = <span style="color:red">WEATHER TEMPLATE ERROR</span>}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 21:16, 7 June 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 = WEATHER TEMPLATE ERROR
  • Sun = Sunny.png Sun
  • Springwind = WEATHER TEMPLATE ERROR
  • Fallwind = WEATHER TEMPLATE ERROR
  • Rain = Rain.png Rain
  • Storm = Thunderstorm.png Storm
  • Snow = Snow.png Snow
  • Festival = WEATHER TEMPLATE ERROR

Width

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

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

Snow.png Snow