Template:Table
Revision as of 21:52, 5 February 2014 by Ostermayer (talk | contribs)
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Usage
To specify a straightforward table without needing to input all the wikicode required (in particular the |- row divisions).
{{Table
|type = // default: style="border:#c9c9c9 1px solid; margin: 1em 1em 1em 0; border-collapse: collapse;"
|title =
|hdrs = // first header !! second header !! ...
|row1 = // first cell's contents {{!!}} second cell's contents {{!!}} ...
...
|row100 = // last possible row
}}
All parameters optional.
Examples
Example One
{{Table
|hdrs=Timeline
|row1=2001 Started research
|row2=2002 Published findings}}
| Timeline |
|---|
| 2001 Started research |
| 2002 Published findings |
Example Two
{{Table
|type=class="wikitable sortable"
|title=Example Table Two
|hdrs=Year!!Comments
|row1=2001{{!!}}Started research
|row2=2002{{!!}}Published findings}}
| Year | Comments |
|---|---|
| 2001 | Started research |
| 2002 | Published findings |
External links
| The above documentation is transcluded from Template:Table/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
