Author: winne2i
Description:
Column of fixed row numbers.
In tables where we enumerate something we usually add a first column with row numbers. Of course we set it as unsortable (class=unsortable) – BUT it doesn't prevent the column from being sorted while we sort another column. Then the row numbers get all messed up.
There should be an additional parameter (class or something) for setting which column should not be sorted in any circumstance.
(I cannot think of anything more in that column than row numbers…)
Template:Static_row_numbers creates tables with fixed row numbers:
https://en.wikipedia.org/wiki/Template:Static_row_numbers
https://en.wikipedia.org/wiki/Special:WhatLinksHere/Template:Static_row_numbers
A deprecated method is used for tables in this category:
*https://en.wikipedia.org/wiki/Category:Articles_with_tables_with_fixed_row_numbers
Some of the tables in that category have row number columns that do not sort under any circumstance. Some only sort if that particular row number column header is clicked. For example; if ascending or descending ranking is desired. But none of the row number columns sort when other column heads are clicked.
Wikitext of fixed row numbers in a table on Polish Wikipedia below, and in use here:
https://pl.wikipedia.org/wiki/Wikipedia:Kawiarenka/Kwestie_techniczne_dyskusja/Archiwum/2012-grudzie%C5%84#Sortowanie_tabeli
The row number column does not sort under any circumstance.
{| class="wikitable sortable" style="text-align:center;" align="left" !class="unsortable"|№ !color !name !city |- |1||white||John||New York |- |2||green||Alice||Warsaw |- |3||black||Mark||Rennes |}
Th attached chart images show what happens if the row number column is not fixed. For example; if the above table wikitext is used on English Wikipedia.
Attached:
The best patch would add a column of fixed row numbers to any chart. Without having to manually enter the row numbers. Or reenter the numbers after every addition of more rows in the middle of the table.