See: Template:mw-datatable

Background colors set for rows

edit

Return to top.

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

  still active national team players are highlighted
{{Static row numbers}} 
{| 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–

Background colors set for rows. {{mw-datatable}}

edit

Return to top.

{{Static row numbers}}{{mw-datatable}} 
{| class="wikitable sortable static-row-numbers mw-datatable" 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

edit

Return to top.

This is for testing.

{{Static row numbers}} 
{| 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–

Background colors set for individual cells. {{mw-datatable}}

edit

Return to top.

{{Static row numbers}}{{mw-datatable}}
{| class="wikitable sortable static-row-numbers mw-datatable" 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

edit

Return to top.

This is adapted from a version of List of countries by intentional homicide rate. See template: {{ccolor}}

{{static row numbers}}
{| class="wikitable sortable static-row-numbers sort-under" style=text-align:right
Country or subnational area Rate Count Year listed
  Burundi 6.02 635 2016
  Comoros 7.70 60 2015
  Djibouti 6.48 60 2015

Template sets colors for individual cells. {{mw-datatable}}

edit

Return to top.

{{static row numbers}}{{mw-datatable}}{{sort under}}
{| class="wikitable sortable static-row-numbers mw-datatable sort-under" style=text-align:right;
Country or subnational area Rate Count Year listed
  Burundi 6.02 635 2016
  Comoros 7.70 60 2015
  Djibouti 6.48 60 2015