Template:Table/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Usage[change source]

To specify a straightforward table without needing to input all the wikicode required[source?] (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.

Examples[change source]

Example One[change source]

{{Table
|hdrs=Timeline
|row1=2001 Started research
|row2=2002 Published findings}}
Timeline
2001 Started research
2002 Published findings

Example Two[change source]

{{Table
|type=class="wikitable sortable"
|title=Example Table Two
|hdrs=Year!!Comments
|row1=2001{{!!}}Started research
|row2=2002{{!!}}Published findings}}
Example Table Two
Year Comments
2001 Started research
2002 Published findings

Other websites[change source]