Template:Static column begin
A template for starting a numbered static column in a sorted table.
Note: Also remember to end the static column with {{end}} (see example below).
Contents
Usage
{{Static column begin | rows= | header-text= | header-height= | row-height= | text-align= }} <!-- Your sorted table code here --> {{End}} <!-- Don't forget to add this after your table code! -->
Parameters
All following parameters except text-align are obligatory. Obligatory parameters have no default value, and not specifying them may break the table code.
- Rows
- The number of rows in the column. This must be between 0 and 200.
- Header-text
- The text to show in the column header.
- Header-height
- The height of the column header.
- Row-height
- The height of each row.
- Text-align
- Text alignment. Options are
left
,center
andright
. The default value isleft
.
Example
- Code
<!-- Static column begin --> {{Static column begin |rows=2 |header-text=Number |header-height=30px |row-height=50px |text-align=center}} <!-- Sorted table start --> {| class="wikitable sortable" ! height="30px" |Country !Capital |- style="height:50px" |The Netherlands || Amsterdam (although The Hague is the seat of government) |- style="height:50px" |France || Paris |} <!-- Sorted table end --> {{End}}
- Resulting table
|
|
See also
- Template:Static column row – Template for creating one table row, which this template uses.
The above documentation is transcluded from Template:Static column begin/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. |