Template:Infobox weather event/Effects/doc

From The Global Wiki
< Template:Infobox weather event‎ | Effects
Revision as of 01:26, 18 January 2023 by Ofngv (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This subbox provides a tally of weather event effects. This includes direct storm casualties, damages (in USD), affected regions, and infrastructural damages. The |casualties= parameter can be used to combine the |fatalities=, |injuries=, and |missing= parameters, should there be minimal or no casualties.

This box will show damages and losses in United States dollars by default. Adding a |year= parameter will also indicate the year when displaying monetary values for contextualizing cost at a specific point in time.

</syntaxhighlight>

Wikitext Output
<syntaxhighlight lang="text" line>
Overall effects
Casualties37 (22 dead, 14 injured, 1 missing)
Fatalities22
Injuries14
Missing1
Damage$2.4 million (2021 USD)
Economic losses$31 million (2021 USD)
Areas affectedUnited States, Canada, Mexico, Cuba
Power outages163,000
Houses destroyed2,124,000
Overall effects
Casualties37 (22 dead, 14 injured, 1 missing)
Fatalities22
Injuries14
Missing1
Damage$2.4 million (2021 USD)
Economic losses$31 million (2021 USD)
Areas affectedUnited States, Canada, Mexico, Cuba
Power outages163,000
Houses destroyed2,124,000

Damages and economic losses can be set to a different currency using |currency= (or |damage-currency= and |losses-currency=), and a United States dollar-equivalent conversion can be provided. This can help contextualize weather events which impact a specific area. To set the USD conversion by hand, you can use |usd-damages= and |usd-losses= respectively. You can also opt to do these conversions automatically, as long as you provide a year and an ISO country code using |country=.

The |year= parameter need not be the year that the event made impact, but rather a year relatively close to the year that it made impact, such that damages and losses can be calculated automatically.

</syntaxhighlight>

Wikitext Output
<syntaxhighlight lang="text" line>
Overall effects
DamageScript error: No such module "Currency". (US$48,731 in 2021)
Economic lossesScript error: No such module "Currency". (US$629,442 in 2021)
Overall effects
DamageScript error: No such module "Currency". (US$48,731 in 2021)
Economic lossesScript error: No such module "Currency". (US$629,442 in 2021)