Template:COVID-19 data/text

维基百科,自由的百科全书

775,335,902[1]

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

This module and these templates show data on the 2019冠状病毒病疫情.

Core components

Tables

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:2019冠狀病毒病病例數 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 * * * *vac() Fallback: VT/VD/VF
Template:COVID-19 vaccination data in Africa % vaccinated
Template:COVID-19 vaccination data in North America

References

  1. ^ Ritchie, Hannah; Mathieu, Edouard; Rodés-Guirao, Lucas; Appel, Cameron; Giattino, Charlie; Ortiz-Ospina, Esteban; Hasell, Joe; Macdonald, Bobbie; Beltekian, Diana; Dattani, Saloni; Roser, Max. Coronavirus Pandemic (COVID-19). Our World in Data. 2020–2021 [2024-04-27] (英语). 

TemplateData

以下是该模板的模板数据,适用于可视化编辑器等工具。

COVID-19 data模板数据

Outputs plain text COVID-19 pandemic data.

模板参数[编辑模板数据]

参数描述类型状态
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.

默认值
XW
示例值
XW
自动值
字符串推荐
Type2

Type of data to be returned.

推荐值
cases deaths total_vaccinated fully_vaccinated vaccine_doses percent_vaccinated percent_fully_vaccinated deaths_per_million
默认值
cases
示例值
cases
自动值
字符串推荐
Plain text?plain

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

默认值
(comma separator)
示例值
1
自动值
布尔可选
No reference?unref

Setting this parameter will not output a reference.

默认值
(outputs reference)
示例值
1
布尔推荐
Reference namename

Name of named reference to use.

字符串可选
Date?date

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

默认值
(no date)
示例值
1
布尔推荐
Date formatformat

Date format to output the updated date in.

默认值
Y-m-d
示例值
Y-m-d
字符串推荐