Template:Table/doc: Difference between revisions
Ostermayer (talk | contribs) No edit summary |
Ostermayer (talk | contribs) No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
==Usage== | ==Usage== | ||
| Line 10: | Line 9: | ||
<pre> | <pre> | ||
{{Table | {{Table | ||
|type = // default: style=" | |type = // default: style="border:#c9c9c9 1px solid; margin: 1em 1em 1em 0; border-collapse: collapse;" | ||
|title = | |title = | ||
|hdrs = // first header !! second header !! ... | |hdrs = // first header !! second header !! ... | ||
| Line 43: | Line 42: | ||
==External links== | ==External links== | ||
* [http://excel2wiki.net/wikipedia.php Copy & Paste Excel-to-Wiki Converter] | * [http://excel2wiki.net/wikipedia.php Copy & Paste Excel-to-Wiki Converter] | ||
<includeonly> | <includeonly> | ||
[[Category:Table and column templates]] | [[Category:Table and column templates]] | ||
</includeonly> | </includeonly> | ||
Latest revision as of 12:08, 3 November 2014
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}}
class="wikitable"
Example Two
{{Table
|type=class="wikitable sortable"
|title=Example Table Two
|hdrs=Year!!Comments
|row1=2001{{!!}}Started research
|row2=2002{{!!}}Published findings}}
class="wikitable"
