跳至內容

模板:COVID-19 data/text/doc

維基百科,自由的百科全書

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

[編輯]

TemplateData

[編輯]
以下是該模板的模板資料,適用於視覺化編輯器等工具。

COVID-19 data/text模板資料

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
字串建議