Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Weather: Difference between revisions

Template page
Remove Roblox asset ID and Lua key from weather data
Add weather colors, TOD and zodiac records, and independent link styling data
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-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 29:
|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 42:
| 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 = A powerful standard weather event.
| description = Storm winds shake the heavens.
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 02:56, 28 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.
}}
Contents