跳转到内容

Help:使用維基標記式語言增修表格/4

维基百科,自由的百科全书

这是本页的一个历史版本,由Taiwania Justo留言 | 贡献2018年12月27日 (四) 06:46 建立内容为“{{intro to| If a table is created in Visual Editor, the dialog includes a checkbox to "Make table sortable". If you check this…”的新页面)编辑。这可能和当前版本存在着巨大的差异。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)


表格簡介
何謂表格與如何運作

編輯表格
表格的基礎

擴張表格
增加列與欄

可排序表格
給讀者更多選擇

進階格式
使用HTML

總結
回顧您所學到的技巧




If a table is created in Visual Editor, the dialog includes a checkbox to "Make table sortable". 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
|}

Help:使用維基標記式語言增修表格/4/table 1

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.