Template:Static column begin 300 rows/doc
| 40px | This is a documentation subpage for Template:Static column begin 300 rows. It contains usage information, categories and other content that is not part of the original template page. |
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 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,centerandright. The default value isleft.
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
|
|
See also
- Template:Static column row – Template for creating one table row, which this template uses.