Template: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

}}
Example Table Two
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

外部链接[编辑]