Jump to content

Template:Weather inline: Difference between revisions

From Stardew Valley Wiki
imported>BryghtShadow
allow {{{1}}} to be used (eventually, maybe make {{{value}}} deprecated?). template is now case-insensitive.
imported>Margotbean
removed border since images are now 16x16
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{value|{{{1|}}}}}}}}
<includeonly>{{#switch: {{lc:{{{value|{{{1|}}}}}}}}
| sunny = [[File:Sunny.png|border]]&nbsp;[[Sunny]]
| sunny = [[File:Sunny.png]]&nbsp;[[Sunny]]
| rain = [[File:Rain.png|border]]&nbsp;[[Rain]]
| rain = [[File:Rain.png]]&nbsp;[[Rain]]
| pollen = [[File:Pollen_fall.png|border]]&nbsp;[[Pollen]]
| pollen = [[File:Pollen_fall.png]]&nbsp;[[Pollen]]
| storm = [[File:Thunderstorm.png|border]]&nbsp;[[Storm]]
| storm = [[File:Thunderstorm.png]]&nbsp;[[Storm]]
| snow = [[File:Snow.png|border]]&nbsp;[[Snow]]
| snow = [[File:Snow.png]]&nbsp;[[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 07:54, 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 =
  • Springwind =
  • Fallwind =
  • Rain =  Rain
  • Storm =  Storm
  • Snow =  Snow
  • Festival =

Width

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

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

 Snow