User:Timeshifter/Sandbox173

See COVID-19 pandemic deaths. And: COVID-19 pandemic by country and territory. This sandbox is for the monthly update of the 2022 template used in those articles. The steps start from the bottom of the page. See also:
 * Template:2022 first half. Monthly cumulative COVID-19 death totals by country
 * User:Timeshifter/Sandbox169
 * Help:Table
 * Help:Table
 * Help:Table

Table. Final steps, and convert to scrolling

 * Return to top.

Table was in compressed wikitext format. To make the data cell backgrounds white put the row header cell on a separate line from the data cell line in the wikitext. For each location. To do that use NoteTab Light.

In the table wikitext do a mass replace of
 * }}||

with
 * }}^P|

Remove the "Other" flag wikitext. Leave that cell blank. The "Other" wikitext row is this:
 * ! scope=row | Other

"Holy See" has a specialized link. Its wikitext row is this:
 * ! scope=row | Holy See

See link: Holy See

Copy all the wikitext from the "World" row and above from here: Add the header cell for the latest month. Close the divs at the bottom of the table wikitext.
 * Template:2022 first half. Monthly cumulative COVID-19 death totals by country.

Scrolling table

 * Return to top.

  Sorted by March. Locations link to COVID-19 pages. [expand] [collapse]

Table. Paste flag column in
Return to top.

Visual Editor (VE) is used to paste in the flag column. This works because there is no inline CSS in the flag column. VE can paste in template wikitext, but not inline CSS. In the section above it is NOT necessary to add  to the location links column. The CSS for the scrolling template takes care of that.

Location column. Flags only

 * Return to top.

See:
 * Help:Table
 * Help:Table

Location column. Unedited
Return to top.

Table. Make location names into specialized links

 * Return to top.

See:
 * Help:Table
 * Help:Table

Table. Copied from Tab2wiki
Return to top.

See: Help:Table

I chose the compressed wikitext format at tab2wiki ("Compress table"). I chose "First element in a column is a header". I did not choose "First element in a row is a header".