模板:COVID-19 data/text
775,866,783[1]
![]() | 此模板使用Lua語言: |
This module and these templates show data on the 2019冠狀病毒病疫情.
Core components
[編輯]- Module:COVID-19 data (module)
{{#invoke:COVID-19 data|main|columns=columns|sort=column to sort by}}
(table)
- Template:COVID-19 data (main table)
{{COVID-19 data}}
- Template:COVID-19 data/text (plain text numbers)
{{COVID-19 data/text|location code|type}}
- Template:COVID-19 data/date (date last updated)
{{COVID-19 data/date|format=format}}
- Template:COVID-19 data/cite (citation for data)
{{COVID-19 data/cite}}
- Template:COVID-19 data/data (JSON data)
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>
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
[編輯]- ^ 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-08-17] (英語).
TemplateData
[編輯]Outputs plain text COVID-19 pandemic data.
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
Location | 1 | ISO 3166-1 alpha-2 country code of location. Use XW for world, EU for European Union, XC for Northern Cyprus, XK for Kosovo.
| 字串 | 建議 |
Type | 2 | Type of data to be returned.
| 字串 | 建議 |
Plain text? | plain | Setting this parameter will output plain text (without comma separator).
| 布林值 | 非必填 |
No reference? | unref | Setting this parameter will not output a reference.
| 布林值 | 建議 |
Reference name | name | Name of named reference to use. | 字串 | 非必填 |
Date? | date | Setting this parameter will output the date that the data was updated.
| 布林值 | 建議 |
Date format | format | Date format to output the updated date in.
| 字串 | 建議 |
上述文件嵌入自Template:COVID-19 data/text/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |