Jump to content

User:Timeshifter/Sandbox144

From Wikipedia, the free encyclopedia

Note: All the tables below (except the last one) have style=text-align:right global style (at top of table wikitext). There is no header text alignment styling in individual header cells. See also: User:Timeshifter/Sandbox150 where there is no text alignment set for anything within the tables there.

Template:Static row numbers. To see the example tables scroll down. See User:Timeshifter/Sandbox145 for a long table for testing sorting speed. See Sandbox147 for multi-row headers at the top and bottom of a table.

Without static-row-numbers template

[edit]
  • Removed {{static row numbers}} line.
  • Removed class=static-row-numbers

This table uses this in the top line of the table wikitext, and just above:

 {{mw-datatable}}
 {|class="wikitable sortable mw-datatable" border=1 style="text-align:right; max-width:25em;"
Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193

With static-row-numbers template

[edit]

This table uses this in the top line of the table wikitext, and just above:

{{static row numbers}}{{mw-datatable}}
{|class="wikitable sortable mw-datatable static-row-numbers" border=1 style="text-align:right; max-width:25em;"
Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193

With template. Removed class=wikitable

[edit]

This table uses this in the top line of the table wikitext, and just above:

{{static row numbers}}{{mw-datatable}}
{|class="sortable mw-datatable static-row-numbers" border=1 style="text-align:right; max-width:25em;"
Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193

With template. Removed all other classes except sortable

[edit]

This table uses this in the top line of the table wikitext, and just above:

{{static row numbers}}
{|class="sortable static-row-numbers" border=1 style="text-align:right; max-width:25em;"

This table's only border formatting is border=1
border=1 is allowed in HTML5, and is fallback HTML for tables viewed in situations where table CSS is blocked, not used, not loading, etc..

Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193

With template. Removed all classes including sortable

[edit]

This table uses this in the top line of the table wikitext, and just above:

{{static row numbers}}
{|class=static-row-numbers border=1 style="text-align:right; max-width:25em;"
Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193

With template. Removed all other classes. Removed border=1

[edit]

This table uses this in the top line of the table wikitext, and just above:

{{static row numbers}}
{|class=static-row-numbers style="text-align:right; max-width:25em;"
Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193

With template. Removed all other classes except sortable. Also removed border=1

[edit]

This table uses this in the top line of the table wikitext, and just above:

{{static row numbers}}
{|class="sortable static-row-numbers" style="text-align:right; max-width:25em;"
Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193

With template. Removed all classes including sortable. CSS border formatting added

[edit]

This table uses this in the top line of the table wikitext, and just above:

{{static row numbers}}
{|class=static-row-numbers style="text-align:right; max-width:25em; border:solid 1px; border-collapse:collapse;"
Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193

With template. Removed all classes including sortable. CSS border formatting added, plus border=1

[edit]

This table uses this in the top line of the table wikitext, and just above:

{{static row numbers}}
{|class=static-row-numbers style="text-align:right; max-width:25em; border:solid 1px; border-collapse:collapse;" border=1
Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193

With template. Removed all classes including sortable. CSS border formatting added, plus border=1. Removed text-align:right

[edit]

This table uses this in the top line of the table wikitext, and just above:

{{static row numbers}}
{|class=static-row-numbers style="max-width:25em; border:solid 1px; border-collapse:collapse;" border=1
Incarceration populations, rates. World Prison Brief
Country, territory, subnational area Rate per 100,000 Prison Population Notes
 Afghanistan 87 30,748
 Albania 164 4,641
 Algeria 153 65,000
 American Samoa (USA) 345 193