Template:Static column begin

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

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).

Usage[edit]

{{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[edit]

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 and right. The default value is left.

Example[edit]

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


Number
1
2
Country Capital
The Netherlands Amsterdam (although The Hague is the seat of government)
France Paris

See also[edit]