Difference between revisions of "Template:Static column begin/doc"
(lol, that didn't make sense) |
m (1 revision) |
(No difference)
|
Latest revision as of 07:26, 22 August 2014
40px | This is a documentation subpage for Template:Static column begin. 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 | 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.