维基百科:格式手册/表格
维基百科,自由的 encyclopedia
表格是以行和列呈现数据或信息的方法。 虽然在维基百科里我们可以用表格来有效地表示不同种类的内容,但只应在适当的时候使用。在一个表格里的信息,有时可以比以散文段落方式或以嵌入列表方式更好。
此条目可参照英语维基百科相应条目来扩充。 (2018年6月30日) |
此维基百科页目前正依照其他维基百科上的内容进行翻译。 (2024年2月20日) |
在编辑时,应避免指示到“条目左侧”或“条目右侧”的表格。由于表格的位置会因手机版本而略有分别,而且对于以其他辅助软件阅读维基百科的使用者来说,这种表示是没有意义的。相反地,每个表格应以标题来让使用者去识别。
格式
主页面:Help:Table
It is recommended that Help:使用维基标记式语言增修表格/1 be used in place of HTML元素s, as they are easier to customize and maintain. A standard "wikitable style" is also available, by adding class="wikitable"
to the top row of the table. The powerful and useful Help:表格 feature can be enabled by adding class="sortable"
to the top row. Extreme caution should be applied if rowspan or colspan is used. It is also possible to combine class, as in class="wikitable sortable"
.