Help:Table/Advanced: Difference between revisions

Content deleted Content added
Tables with sticky headers: rm mention of deprecated template
Line 632:
== Sortable tables ==
{{anchor|Sortable|Sorting|reason=pld section names}}
{{see also|Help:Sortable tables|meta:Help:Sorting}}
 
{{see alsoMain|Help:Sortable tables|metamw:Help:SortingSortable tables}}
See [[Help:Sortable tables]] for details of how to make sortable tables. Tables can be made sortable by adding <code>class=sortable</code> to the top line of the table wikitext. Individual columns can then be excluded from sorting with <code>class=unsortable</code> in the lowest header cell.
 
See [[Help:Sortable tables]] for details of how to make sortable tables. Tables can be made sortable by adding <code>class="wikitable sortable"</code> to the top line of the table wikitext. Individual columns can then be excluded from sorting with <code>class=unsortable</code> in the lowest header cell. '''Note:''': that '''''<code>data-sort-type=''VALUE''</code>''''' must go in the header cell with the sorting icon. That will be the lowest header cell. (See [[Help:Sortable tables#Forcing a column to have a particular data type|Help:Sortable tables § Forcing a column to have a particular data type]]).
 
'''Numerical and year sorting problems'''
 
{{Main|Help:Sortable tables}}
 
== Collapsible tables ==