قالب:Sorting row
Usage
{| class="sortable wikitable"
! A || B || C
|-{{sorting row|3}}
| 1 || 2 || 3
|-
| 4 || 5 || 6
|-
| 7 || 8 || 9
|} |
← |
|
See list of articles transcluding {{Sorting row}}. See transclusion count for Sorting row and Sort row.
Problems
data-sort-type=number etc. must go in the header cell with the sorting icon. See: Help:Sortable tables
So for example, instead of
|- {{sorting row|3}}
Use this sort row instead:
|-
! <br>|| data-sort-type=number| ||Note that data-sort-type=number is in a sorting cell as it must be in the lowest header cell to work. The break <br> is to maintain the height of the sorting row.
To center the sort buttons:
|-
! style=background-position:center|<br>|| style=background-position:center data-sort-type=number| || style=background-position:center|See also
| The above documentation is transcluded from قالب:Sorting row/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |