Help:使用維基標記式語言增修表格/4
外观
如果某個表格由視覺化編輯器產生,在對話視窗當中會有一個可勾選項目「」。If you check this box, then a reader can sort the table by any column, by clicking on the header cell for that column.
Existing tables, or tables created in wikitext can be made sortable by adding the wikitable sortable
class to the top of the table:
{| class="wikitable sortable" |- ! Name ! Data ! More data |- | cats | 273 | 53 |- | dogs | 65 | 8,492 |- | mice | 1,649 | 548 |}
名稱 | 資料 | 更多資料 |
---|---|---|
貓 | 273 | 53 |
狗 | 65 | 8,492 |
老鼠 | 1,649 | 548 |
Clicking on the up/down arrows in a column header will sort the column; clicking again will reverse the sort. Text is sorted alphabetically. Numbers are sorted numerically. Mixed data is sorted alphabetically.
For advanced sort options, see Help:Sorting.