close
Sayahna Sayahna
Search

Difference between revisions of "Template:Static column begin 300 rows"


(New template)
 
m (1 revision)
 
(No difference)

Latest revision as of 07:24, 22 August 2014

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

{{Static column begin 300 rows
| 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 300.
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

Code
<!-- Static column begin -->
{{Static column begin 300 rows |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