Template:Weather: Difference between revisions
Template page
More actions
Aurelianus (talk | contribs) Remove Roblox asset ID and Lua key from weather data |
Aurelianus (talk | contribs) Use native image field fallback without ParserFunctions |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
|Name={{{name|{{PAGENAME}}}}} | |Name={{{name|{{PAGENAME}}}}} | ||
|Type={{{type|Standard}}} | |Type={{{type|Standard}}} | ||
|Color={{{color|#c9a75f}}} | |||
|Icon={{{icon|}}} | |||
|Effect={{{effect|None}}} | |Effect={{{effect|None}}} | ||
|LuckFactor={{{luck factor|1}}} | |LuckFactor={{{luck factor|1}}} | ||
|Description={{{description|}}} | |Description={{{description|}}} | ||
}} | }} | ||
<div class="hw-record-banner hw-record-banner--weather hw-weather-type-{{{type|Standard}}}"> | <div class="hw-record-banner hw-record-banner--weather hw-weather-type-{{{type|Standard}}}" style="--hw-weather-color: {{{color|#c9a75f}}};"> | ||
<div class="hw-record-code">WORLD SYSTEM · WEATHER RECORD</div> | <div class="hw-record-code">WORLD SYSTEM · WEATHER RECORD</div> | ||
<div class="hw-record-name">{{{name|{{PAGENAME}}}}}</div> | <div class="hw-record-name">{{{name|{{PAGENAME}}}}}</div> | ||
<div class="hw-record-summary">{{{description|No description available.}}}</div> | <div class="hw-record-summary">{{{description|No description available.}}}</div> | ||
</div> | </div> | ||
<div class="hw-infobox hw-weather-infobox hw-weather-type-{{{type|Standard}}}"> | <div class="hw-infobox hw-weather-infobox hw-weather-type-{{{type|Standard}}}" style="--hw-weather-color: {{{color|#c9a75f}}};"> | ||
<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-infobox-heading">Weather Data</div> | <div class="hw-infobox-heading">Weather Data</div> | ||
<div class="hw-infobox-row"><div class="hw-infobox-label">Luck</div><div class="hw-infobox-value">×{{{luck factor|1}}}</div></div> | <div class="hw-infobox-row"><div class="hw-infobox-label">Luck</div><div class="hw-infobox-value">×{{{luck factor|1}}}</div></div> | ||
<div class="hw-infobox-row"><div class="hw-infobox-label">Icon Asset</div><div class="hw-infobox-value"><code>{{{icon|—}}}</code></div></div> | |||
<div class="hw-infobox-heading">Effect</div> | <div class="hw-infobox-heading">Effect</div> | ||
<div class="hw-infobox-blurb">{{{effect|None}}}</div> | <div class="hw-infobox-blurb">{{{effect|None}}}</div> | ||
| Line 25: | Line 32: | ||
|Name=String | |Name=String | ||
|Type=String | |Type=String | ||
|Color=String | |||
|Icon=String | |||
|Effect=String | |Effect=String | ||
|LuckFactor=Float | |LuckFactor=Float | ||
|Description=Text | |Description=Text | ||
}} | }} | ||
This template stores and displays one centralized weather record. | 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 == | == Usage == | ||
| Line 36: | Line 45: | ||
| name = Storm | | name = Storm | ||
| type = Standard | | type = Standard | ||
| color = #525964 | |||
| icon = 129991496783874 | |||
| effect = 2x Luck | | effect = 2x Luck | ||
| luck factor = 2 | | luck factor = 2 | ||
| description = | | description = Storm winds shake the heavens. | ||
}} | }} | ||
</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”.