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)
(update)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{value|{{{1|}}}}}}}}
+
<includeonly><span style="display:inline; margin-right:0; white-space: nowrap;">{{#switch: {{lc:{{{1}}}}}
| sunny | sun = [[File:Sunny.png]]&nbsp;[[Weather|Sun]]
+
|all|any = [[Weather|Any]]
| rainy | rain = [[File:Rain.png]]&nbsp;[[Weather|Rain]]
+
|sun = [[File:Sunny.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Sun]]
| polleny | pollen | wind | windy = [[File:Pollen_fall.png]]&nbsp;[[Weather|Wind]]<!--it could happen-->
+
|springwind = [[File:Pollen spring.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Wind]]
| stormy | storm = [[File:Thunderstorm.png]]&nbsp;[[Weather|Storm]]
+
|rain = [[File:Rain.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Rain]]
| snowy | snow = [[File:Snow.png]]&nbsp;[[Weather|Snow]]
+
|festival = [[File:Festival.png|{{{width|16px}}}|link=]]&nbsp;[[Festivals|Festival]]
| #default = <span style="color:red">WEATHER TEMPLATE ERROR</span>}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
+
|fallwind = [[File:Pollen fall.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Wind]]
 +
|storm = [[File:Thunderstorm.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Storm]]
 +
|snow = [[File:Snow.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Snow]]
 +
|#default = {{ucfirst:{{{1|}}} }}
 +
}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Latest revision as of 18:50, 18 May 2022

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.

Width

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

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

Snow.png Snow