قالب:Sorting row/doc
| هذه صفحة توثيق فرعية لـ قالب: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