Template:Weather: Difference between revisions
Template page
More actions
Aurelianus (talk | contribs) Add reusable infobox picture field and fallback |
Aurelianus (talk | contribs) Use native image field fallback without ParserFunctions |
||
| Line 18: | Line 18: | ||
<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}}}}}"> | <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> | ||
<div class="hw-weather-color-strip" aria-hidden="true"></div> | <div class="hw-weather-color-strip" aria-hidden="true"></div> | ||
| Line 53: | Line 53: | ||
</pre> | </pre> | ||
Set <code>| image = Example.png</code> to display an uploaded file in the infobox. Leave it empty to show “No Picture Uploaded”. | 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”.