This is the template sandbox page for Template:COVID-19 pandemic (diff). See also the companion subpage for test cases. |
This template is used on approximately 1,600 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Note: Pages have a 2048 kB limit on transclusions. If the limit is broken then the page stops rendering.
{{COVID-19 pandemic}}
uses 310 kB and{{#invoke:COVID-19 pandemic|}}
uses 155 kB of the limit as of January 2024.{{COVID-19 pandemic|short=yes}}
only uses 147 kB and{{#invoke:COVID-19 pandemic||short=yes}}
only uses 73kB by omitting most links under "Locations" and "Data (templates)":
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This template's initial visibility currently defaults to autocollapse
, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state=
parameter may be used:
{{COVID-19 pandemic|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{COVID-19 pandemic|state=expanded}}
will show the template expanded, i.e. fully visible.
- This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter
|name
where name is one of the following words that identify the groups/sections (omit any speech or quotation marks): - timeline
- locations
- impacts
- issues
- variants
- institutions
- people
- data
- For example:
{{COVID-19 pandemic/sandbox |issues}}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
(Click [show] to see example)
Other COVID-19 templates
editFor the sidebar used on many articles see {{COVID-19 pandemic sidebar}}
.
Select [►] to view all other related templates
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
This is the template sandbox page for Template:COVID-19 pandemic (diff). See also the companion subpage for test cases. |
This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation. |
This is a navigational template created using {{navbox}}. It can be transcluded on pages by placing {{COVID-19 pandemic/sandbox}}
below the standard article appendices.
Initial visibility
This template's initial visibility currently defaults to autocollapse
, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state=
parameter may be used:
{{COVID-19 pandemic|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{COVID-19 pandemic|state=expanded}}
will show the template expanded, i.e. fully visible.
Templates using the classes class=navbox
({{navbox}}) or class=nomobile
({{sidebar}}) are not displayed in article space on the mobile web site of English Wikipedia. Mobile page views account for approximately 68% of all page views (90-day average as of September 2024[update]). Briefly, these templates are not included in articles because 1) they are not well designed for mobile, and 2) they significantly increase page sizes—bad for mobile downloads—in a way that is not useful for the mobile use case. You can review/watch phab:T124168 for further discussion.
TemplateData
A navigational box that can be placed at the bottom of articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
State | state | The initial visibility of the navbox
| String | suggested |
Template transclusions
Transclusion maintenance |
---|
Check completeness of transclusions |
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Subpages of this template.