Template:Table: Difference between revisions
Ostermayer (talk | contribs) No edit summary |
Ostermayer (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{hdrs|}}}{{{row1|}}}||'''<big><span class="error">WARNING You are using the {{tl|table}} template without proper parameters. If the text {{tl|table}} appears in the wiki markup, this is not the proper use of the table template. Either use the proper template parameters, or see [[Help:Tables]] to learn how to create a table without the {{tl|table}} template; the two should not be mixed.</span></big>'''<div style="display: none">}}</includeonly>{| {{{type|style=" | <includeonly>{{#if:{{{hdrs|}}}{{{row1|}}}||'''<big><span class="error">WARNING You are using the {{tl|table}} template without proper parameters. If the text {{tl|table}} appears in the wiki markup, this is not the proper use of the table template. Either use the proper template parameters, or see [[Help:Tables]] to learn how to create a table without the {{tl|table}} template; the two should not be mixed.</span></big>'''<div style="display: none">}}</includeonly>{| {{{type|style="background:transparent;"}}} | ||
<!-----Title-----> | <!-----Title-----> | ||
Revision as of 21:56, 5 February 2014
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. |
