Jump to content

Template:COVID-19 data/text/doc

From Wikipedia, the free encyclopedia

This module and these templates show data on the COVID-19 pandemic.

Core components

[edit]

Tables

[edit]

The body of a table can be made by using the main() function:

{{#invoke:COVID-19 data|main|columns=columns|sort=column to sort by}}

This only generates table contents (the body). Headers and titles can be customised independent of the module, to allow for styling.

Please use the following reference (preferably in the table title), to avoid duplicate references and have automatically updating access date and authors:

<ref name="Template:COVID-19 data">{{COVID-19 data/cite}}</ref>
List
Page C? D? VT? VD? VF? Other? Col? Notes
Template:COVID-19 data Main table
Template:COVID-19 pandemic data Other "hub" template
Template:COVID-19 pandemic death rates Deaths/million
Template:COVID-19 pandemic death rates by country Larger, has row numbers
Template:COVID-19 vaccination data % vaccinated
Template:COVID-19 vaccination data in Africa
Template:COVID-19 vaccination data in North America

References

[edit]


TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:COVID-19 data/text in articles based on its TemplateData.

TemplateData for COVID-19 data/text

Outputs plain text COVID-19 pandemic data.

Template parameters

ParameterDescriptionTypeStatus
Location1

ISO 3166-1 alpha-2 country code of location. Use XW for world, EU for European Union, XC for Northern Cyprus, XK for Kosovo.

Default
XW
Example
XW
Auto value
Stringsuggested
Type2

Type of data to be returned.

Suggested values
cases deaths total_vaccinated fully_vaccinated vaccine_doses percent_vaccinated percent_fully_vaccinated deaths_per_million
Default
cases
Example
cases
Auto value
Stringsuggested
Plain text?plain

Setting this parameter will output plain text (without comma separator).

Default
(comma separator)
Example
1
Auto value
Booleanoptional
No reference?unref

Setting this parameter will not output a reference.

Default
(outputs reference)
Example
1
Booleansuggested
Reference namename

Name of named reference to use.

Stringoptional
Date?date

Setting this parameter will output the date that the data was updated.

Default
(no date)
Example
1
Booleansuggested
Date formatformat

Date format to output the updated date in.

Default
Y-m-d
Example
Y-m-d
Stringsuggested