Difference between revisions of "Template:Weather inline"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#switch: {{{value}}} | sunny = border Sunny | rain = border Rain | pollen = File:Pollen_fall.png|border...")
 
(update)
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{value}}}
+
<includeonly><span style="display:inline; margin-right:0; white-space: nowrap;">{{#switch: {{lc:{{{1}}}}}
| sunny = [[File:Sunny.png|border]]&nbsp;[[Sunny]]
+
|all|any = [[Weather|Any]]
| rain = [[File:Rain.png|border]]&nbsp;[[Rain]]
+
|sun = [[File:Sunny.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Sun]]
| pollen = [[File:Pollen_fall.png|border]]&nbsp;[[Pollen]]
+
|springwind = [[File:Pollen spring.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Wind]]
| storm = [[File:Thunderstorm.png|border]]&nbsp;[[Storm]]
+
|rain = [[File:Rain.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Rain]]
| snow = [[File:Snow.png|border]]&nbsp;[[Snow]]
+
|festival = [[File:Festival.png|{{{width|16px}}}|link=]]&nbsp;[[Festivals|Festival]]
| <span style="color:red">WEATHER TEMPLATE ERROR</span>
+
|fallwind = [[File:Pollen fall.png|{{{width|16px}}}|link=]]&nbsp;[[Weather|Wind]]
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
+
|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