Template:COVID-19 pandemic death rates by country/doc

From blackwiki
Jump to navigation Jump to search

Script error: No such module "Uses TemplateStyles". This template can be used to quickly update the table of COVID-19 pandemic death rates by country in articles such as COVID-19 pandemic death rates by country, allowing the styling of the raw table to be set by use of WP:TemplateStyles.

For information on updating the template go here. Copy the table right off the source page. Paste it into tab2wiki. Uncheck all boxes except "Compress table". Click "Do it". Delete old table data, and paste in the updated data. Add date.

Add country links and flags if you want. It can be done within the wikitext source editor. First go to editing preferences: Special:Preferences#mw-prefsection-editing. Check the box for: "Enable the editing toolbar. This is sometimes called the '2010 wikitext editor'."

Then click on the wikitext source editing link for the table. Click on "Advanced" in the editing toolbar. Then click on the search-and-replace icon on the right. Put a check in the box called "Treat search string as a regular expression." Fill in the "Search for" box with:

(\|-.*\n\|\s*)([^\|\n]*)

Fill in the "replace with" box with:

$1{{flaglist|$2}}

Then click "Replace all". All, or nearly all, countries will be linked, and have flags.

Change country links to "COVID-19 pandemic in country". Use global find-and-replace in almost any text editor. Or click on the same search-and-replace icon previously discussed. Then uncheck "Treat search string as a regular expression." Replace {{flaglist with:
{{flag+link|COVID-19 pandemic in

Pasting in the amended text works except for Taiwan, Diamond Princess and China. Change:
Taiwan* to Taiwan
in|China to in mainland|China.