Jump to content

Template:COVID-19 pandemic/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m bypass redirect
document use of module to reduce WP:PEIS.
Line 4: Line 4:
'''{{large|Note:}}''' Pages have a [[Help:Template limits#Post-expand include size|2048 kB limit on transclusions]]. If the limit is broken then the page stops rendering.
'''{{large|Note:}}''' Pages have a [[Help:Template limits#Post-expand include size|2048 kB limit on transclusions]]. If the limit is broken then the page stops rendering.


* <code><nowiki>{{COVID-19 pandemic}}</nowiki></code> uses 582 kB of the limit as of September 2022.
* <code><nowiki>{{COVID-19 pandemic}}</nowiki></code> uses 283 kB and <code><nowiki>{{#invoke:COVID-19 pandemic|}}</nowiki></code> uses 141 kB of the limit as of December 2023.
* <code><nowiki>{{COVID-19 pandemic|short=yes}}</nowiki></code> only uses 234 kB by omitting most links under "Locations" and "Data (templates)":
* <code><nowiki>{{COVID-19 pandemic|short=yes}}</nowiki></code> only uses 147 kB and <code><nowiki>{{#invoke:COVID-19 pandemic||short=yes}}</nowiki></code> only uses 74kB by omitting most links under "Locations" and "Data (templates)":
{{COVID-19 pandemic|short=yes}}
{{#invoke:COVID-19 pandemic||short=yes}}


{{collapsible option}}
{{collapsible option}}


{{collapsible sections option
{{collapsible sections option
|list = {{hlist |timeline |locations |impacts |institutions |issues |people |data}}
|list = {{hlist |timeline |locations |impacts |issues |variants |institutions |people |data}}
|example = issues
|example = issues
}}
}}

Revision as of 01:49, 26 December 2023

Note: Pages have a 2048 kB limit on transclusions. If the limit is broken then the page stops rendering.

  • {{COVID-19 pandemic}} uses 283 kB and {{#invoke:COVID-19 pandemic|}} uses 141 kB of the limit as of December 2023.
  • {{COVID-19 pandemic|short=yes}} only uses 147 kB and {{#invoke:COVID-19 pandemic||short=yes}} only uses 74kB 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.
How to manage this template's collapsible groups/sections option
  • 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/doc |issues}}

(Click [show] to see example)

Other COVID-19 templates

For the sidebar used on many articles see {{COVID-19 pandemic sidebar}}.

Select [►] to view all other related templates