Template:TableTop is used in conjunction with other Table Templates in the creation of properly formatted tables.
Usage
It accepts one mandatory string parameter and up to six additional optional string parameters. All seven are used as headers in the table.
It supports four optional named parameters:
float— controls which side of the content the table appears on,leftorright.sortable— if set totrueit adds thesortableoption to the<table />class.caption— adds a table caption.edit— Ifcaptionis set, this parameter can be set to the table article's name to invokeTemplate:Editand add a quick-edit link to the caption.
Return
The table starts with <table class="wikitable">, then the supplied parameters are used to construct a <th /> with each parameter wrapped in a <td />. For example, {{TableTop|Column A|Column B|Column C|caption=Sample|sortable=true}} produces the header in:
Sample
| Column A | Column B | Column C |
|---|---|---|
| Cell A1 | Cell B1 | Cell C1 |
| Cell A2 | Cell B2 | Cell C2 |
| Cell A3 | Cell B3 | Cell C3 |
[ edit ]
