Template:Democracy Index rating/doc

Displays the rating of a country from The Economist's Democracy Index in a sentence.

Usage
is the name of the country. is the classification; if it is "authoritarian regime", the "a" before it changes to an "an". is the year being rated, which currently should be 2022. If is set to "true", there's a comma instead of a period.

E.g.  displays as:

displays as:

making it better than Alethkar.

The reference made by this may be re-used with the syntax

Articles with anything other than 2022 as the 3rd parameter are in Category:Outdated Democracy Index rating template users.

TemplateData
{	"params": { "1": {			"aliases": [ "country" ],			"description": "the country the template is showing the rating for", "example": "Spain", "type": "string", "required": true },		"2": {			"aliases": [ "classification" ],			"description": "classification of the country: full democracy, flawed democracy, hybrid regime, or authoritarian regime", "example": "full democracy", "type": "string", "required": true, "suggestedvalues": [ "full democracy", "flawed democracy", "hybrid regime", "authoritarian regime" ]		},		"3": {			"aliases": [ "edition rated in" ],			"description": "Year the rating is about; the edition published in 2023 is referred to with \"2022\"", "example": "2022", "type": "string", "required": true },		"4": {			"aliases": [ "display-comma" ],			"description": "If it has a value, there will be a comma at the end of the template rather than a period", "type": "boolean" }	},	"description": "Displays the rating of a country from The Economist's Democracy Index in a sentence.", "paramOrder": [ "1",		"2",		"3",		"4"	] }