Template:Democracy Index rating/sandbox
The Economist Intelligence Unit rated {{{1}}} a "{{{2}}}" in {{{3}}}.[1][needs update]
References
[edit source]- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
| This is the template sandbox page for Template:Democracy Index rating (diff). See also the companion subpage for test cases. |
| This template should not be substituted. |
Displays the rating of a country from The Economist's Democracy Index in a sentence.
Usage
[edit source]{{{1}}} is the name of the country. {{{2}}} is the classification; if it is "authoritarian regime", the "a" before it changes to an "an". {{{3}}} is the year being rated, which currently should be 2023. If {{{4}}} is set to "true", there's a comma instead of a period.
E.g. {{Democracy Index rating|Alethkar|authoritarian regime|2023}} displays as:
The Economist Intelligence Unit rated Alethkar an "authoritarian regime" in 2023.[1]
{{Democracy Index rating|Azir|hybrid regime|2023|1}} making it better than Alethkar. displays as:
The Economist Intelligence Unit rated Azir a "hybrid regime" in 2023,[1] making it better than Alethkar.
The reference made by this may be re-used with the syntax <ref name ="democracy-index" />
Articles with anything other than 2023 as the 3rd parameter are in Category:Outdated Democracy Index rating template users.
References
TemplateData
[edit source]TemplateData for Democracy Index rating
Displays the rating of a country from The Economist's Democracy Index in a sentence.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 country | the country the template is showing the rating for
| String | required |
| 2 | 2 classification | classification of the country: full democracy, flawed democracy, hybrid regime, or authoritarian regime
| String | required |
| 3 | 3 edition rated in | Year the rating is about; the edition published in 2023 is referred to with "2022"
| String | required |
| 4 | 4 display-comma | If it has a value, there will be a comma at the end of the template rather than a period | Boolean | optional |