- Note to other users: Please do not edit this page except in preview mode. Use your own sandboxes.
See also:
- Wikipedia:Templates for_discussion/Log/2022 June 19#Template:Import-blanktable
- User:Timeshifter/Sandbox152
- Template talk:Static row numbers#Row hover highlighting
- Phab:T284802: class=mw-datatable should not override the inline background colors set for specific table rows.
- Phab:T287997: Community expectation that mw-datatable styles are loaded on pages which use it
Background colors set for rows
This table excerpt is from the "Top scorers" section of this version of Denmark men's national handball team. It is common in many sport statistics tables to add a background color to some of the rows. In this table excerpt
Without Template:Import-blanktable
{| class="wikitable sortable static-row-numbers" style=text-align:center
Player | Goals | Average | Position | Years |
---|---|---|---|---|
Lars Christiansen | 1503 | 4.45 | W | 1992–2012 |
Mikkel Hansen | 1099 | 5.02 | OB | 2007– |
Erik Veje Rasmussen | 1015 | 4.37 | OB | 1980–1993 |
Michael V. Knudsen | 797 | 3.27 | P | 1999–2014 |
Hans Lindberg | 755 | 2.79 | W | 2003– |
With Template:Import-blanktable and class=tpl-blanktable
{| class="wikitable sortable static-row-numbers tpl-blanktable" style=text-align:center
Player | Goals | Average | Position | Years |
---|---|---|---|---|
Lars Christiansen | 1503 | 4.45 | W | 1992–2012 |
Mikkel Hansen | 1099 | 5.02 | OB | 2007– |
Erik Veje Rasmussen | 1015 | 4.37 | OB | 1980–1993 |
Michael V. Knudsen | 797 | 3.27 | P | 1999–2014 |
Hans Lindberg | 755 | 2.79 | W | 2003– |
Background colors set for individual cells
Without Template:Import-blanktable
{| class="wikitable sortable static-row-numbers" style=text-align:center
Player | Goals | Average | Position | Years |
---|---|---|---|---|
Lars Christiansen | 1503 | 4.45 | W | 1992–2012 |
Mikkel Hansen | 1099 | 5.02 | OB | 2007– |
Erik Veje Rasmussen | 1015 | 4.37 | OB | 1980–1993 |
Michael V. Knudsen | 797 | 3.27 | P | 1999–2014 |
Hans Lindberg | 755 | 2.79 | W | 2003– |
With Template:Import-blanktable and class=tpl-blanktable
{| class="wikitable sortable static-row-numbers tpl-blanktable" style=text-align:center
Player | Goals | Average | Position | Years |
---|---|---|---|---|
Lars Christiansen | 1503 | 4.45 | W | 1992–2012 |
Mikkel Hansen | 1099 | 5.02 | OB | 2007– |
Erik Veje Rasmussen | 1015 | 4.37 | OB | 1980–1993 |
Michael V. Knudsen | 797 | 3.27 | P | 1999–2014 |
Hans Lindberg | 755 | 2.79 | W | 2003– |
Template sets colors for individual cells
These tables are adapted from versions of List of countries by intentional homicide rate. See template: {{ccolor}}
Without Template:Import-blanktable
{| class="wikitable sortable static-row-numbers" style=text-align:right
Location | Rate | Count | Year listed |
---|---|---|---|
Burundi | 6.02 | 635 | 2016 |
Comoros | 7.70 | 60 | 2015 |
Djibouti | 6.48 | 60 | 2015 |
{| class="wikitable sortable static-row-numbers" style=text-align:right
Region | Rate | Homicides |
---|---|---|
Americas | 17.2 | 173,000 |
Africa | 13.0 | 163,000 |
World | 6.1 | 464,000 |
Europe | 3.0 | 22,000 |
Oceania | 2.8 | 1,000 |
Asia | 2.3 | 104,000 |
With Template:Import-blanktable and class=tpl-blanktable
{| class="wikitable sortable static-row-numbers tpl-blanktable" style=text-align:right
Location | Rate | Count | Year listed |
---|---|---|---|
Burundi | 6.02 | 635 | 2016 |
Comoros | 7.70 | 60 | 2015 |
Djibouti | 6.48 | 60 | 2015 |
{| class="wikitable sortable static-row-numbers tpl-blanktable" style=text-align:right
Region | Rate | Homicides |
---|---|---|
Americas | 17.2 | 173,000 |
Africa | 13.0 | 163,000 |
World | 6.1 | 464,000 |
Europe | 3.0 | 22,000 |
Oceania | 2.8 | 1,000 |
Asia | 2.3 | 104,000 |