Template:Weather: Difference between revisions
Template page
More actions
Aurelianus (talk | contribs) Add weather colors, TOD and zodiac records, and independent link styling data |
Aurelianus (talk | contribs) Use native image field fallback without ParserFunctions |
||
| (One intermediate revision by the same user not shown) | |||
| Line 17: | Line 17: | ||
<div class="hw-infobox-title">{{{name|{{PAGENAME}}}}}</div> | <div class="hw-infobox-title">{{{name|{{PAGENAME}}}}}</div> | ||
<div class="hw-infobox-badge">{{{type|Standard}}} weather</div> | <div class="hw-infobox-badge">{{{type|Standard}}} weather</div> | ||
<div class="hw-infobox-image" role="group" aria-label="Image for {{{name|{{PAGENAME}}}}}"> | |||
{{{image|<div class="hw-infobox-image-empty">No Picture Uploaded</div>}}} | |||
</div> | |||
<div class="hw-weather-color-strip" aria-hidden="true"></div> | <div class="hw-weather-color-strip" aria-hidden="true"></div> | ||
<div class="hw-infobox-heading">Weather Data</div> | <div class="hw-infobox-heading">Weather Data</div> | ||
| Line 49: | Line 52: | ||
}} | }} | ||
</pre> | </pre> | ||
Set <code>| image = [[File:Example.png|frameless|600px]]</code> to display an uploaded file in the infobox. Leave it empty to show “No Picture Uploaded”. | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 09:34, 29 July 2026
This template defines the table "Weathers". View table. This template stores and displays one centralized weather record. Color is stored for automatic link styling and is not displayed as an archive table column.
Usage
{{Weather
| name = Storm
| type = Standard
| color = #525964
| icon = 129991496783874
| effect = 2x Luck
| luck factor = 2
| description = Storm winds shake the heavens.
}}
Set | image = File:Example.png to display an uploaded file in the infobox. Leave it empty to show “No Picture Uploaded”.