跳转到内容

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

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

这是本页的一个历史版本,由Taiwania Justo留言 | 贡献2018年12月27日 (四) 07:19 (// Edit via Wikiplus)编辑。这可能和当前版本存在着巨大的差异。


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

編輯表格
表格的基礎

擴張表格
增加列與欄

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

進階格式
使用HTML

總結
回顧您所學到的技巧




如果某個表格由視覺化編輯器產生,在對話視窗當中會有一個可開啟項目「可排序」。如果您開啟了這個項目,讀者將能夠依任何欄位自由排列資料的順序,只要點選各欄的表頭格子即可。

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.