Content deleted Content added
Timeshifter (talk | contribs) →Numerical sorting problems: asterisks |
Timeshifter (talk | contribs) →Excluding top rows from sorting: More info |
||
Line 700:
=== Excluding top rows from sorting ===
Table below is an adapted excerpt from an article. '''Sorttop''' is used on the US data row. And the US row is excluded from having a static row number. Note that the "Area" links can't be made bold the normal way. But the whole row can be made bold like this:
<syntaxhighlight lang=wikitext>
|- class="sorttop static-row-numbers-norank" style="font-weight:bold;"
</syntaxhighlight>
{{mw-datatable}}{{table alignment}}{{static row numbers}}{{sticky header}}
{| class="wikitable sortable sticky-header mw-datatable col1left static-row-numbers" style=text-align:right;
|+ Number and percentage of people in poverty by state, D.C., and Puerto Rico. Plus margin of error. 2023.
! Area
! Percent
! Error (±)
! Number
! Error (±)
|- class="sorttop static-row-numbers-norank" style="font-weight:bold;"
| {{flagg|uspeft|pref=Economy of|United States}}
| 12.5
| 0.1
| 40,763,043
| 277,214
|-
| {{flagg|uspeft|pref=Economy of|Puerto Rico}}
| 39.6
| 0.8
| 1,257,607
| 26,856
|-
| {{flagg|uspeft|pref=Economy of|Louisiana}}
| 18.9
| 0.6
| 840,146
| 27,162
|-
| {{flagg|uspeft|pref=Economy of|Mississippi}}
| 18.0
| 0.8
| 512,184
| 21,949
|}
== Configuring the sorting ==
|