Template:COVID-19 data/text/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Tol at 01:46, 16 November 2021 (Tol moved page Template:COVID-19 data/Text/doc to Template:COVID-19 data/text/doc: standardise naming). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Core components

[edit source]

Tables

[edit source]

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 File:OOjs UI icon check-constructive.svg File:OOjs UI icon check-constructive.svg File:OOjs UI icon check-constructive.svg File:OOjs UI icon check-constructive.svg File:OOjs UI icon check-constructive.svg File:OOjs UI icon close-ltr-destructive.svg Main table
Template:COVID-19 pandemic data File:OOjs UI icon check-constructive.svg File:OOjs UI icon check-constructive.svg File:OOjs UI icon check-constructive.svg Other "hub" template
Template:COVID-19 pandemic death rates File:OOjs UI icon check-constructive.svg File:OOjs UI icon check-constructive.svg Deaths/million File:OOjs UI icon check-constructive.svg
Template:COVID-19 pandemic death rates by country File:OOjs UI icon close-ltr-destructive.svg Larger, has row numbers
Template:COVID-19 vaccination data File:OOjs UI icon check-constructive.svg % vaccinated File:OOjs UI icon check-constructive.svg
Template:COVID-19 vaccination data in Africa
Template:COVID-19 vaccination data in North America File:OOjs UI icon check-constructive.svg File:OOjs UI icon check-constructive.svg File:OOjs UI icon close-ltr-destructive.svg

References

[edit source]


TemplateData

[edit source]
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