模板:Table
外觀
用法
[編輯]To specify a straightforward table without needing to input all the wikicode required[來源請求] (in particular the |-
row divisions).
{{Table |type = // default: style="background:transparent;" |title = |hdrs = // first header !! second header !! ... |row1 = // first cell's contents {{!!}} second cell's contents {{!!}} ... ... |row50 = // last possible row }}
All parameters optional.
例子
[編輯]例子1
[編輯]{{Table |hdrs=Timeline |row1=2001 Started research |row2=2002 Published findings}}
Timeline |
---|
2001 Started research |
2002 Published findings |
例子2
[編輯]{{Table |type=class="wikitable sortable" |title=Example Table Two |hdrs=Year!!Comments |row1=2001{{!!}}Started research |row2=2002{{!!}}Published findings |row3=2002{{!!}}Published findings }}
Year | Comments |
---|---|
2001 | Started research |
2002 | Published findings |
2002 | Published findings |
2002 | Published findings |
2002 | Published findingsPublished findings
Published findings Published findings Published findings Published findings Published findings Published findings Published findings Published findings |
2002 | Published findings |
外部連結
[編輯]上述文件嵌入自Template:Table/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |