Template:Static row numbers header/doc

< Template:Static row numbers header
Revision as of 20:45, 10 August 2021 by wiki>Timeshifter (→‎Usage: clarify)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This works with Template:Static row numbers. It prevents row numbers from being added to the left of certain rows.

Place it after |-

Static data rows

There are a few tables with static data rows that can't use this template. See the 2021 table in this version of COVID-19 pandemic deaths#2021.

Those static rows at the top under the main header row are rows of data.

To maintain right text alignment in those data cells then simply use class=static-row-header

It can be combined with class=sorttop to keep those rows from sorting.

class="sorttop static-row-header"