Difference between revisions of "Template:SortCell"
From Kerbal Space Program Wiki
m |
m (fix) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>data-sort-value="{{{1}}}" | </includeonly><noinclude> | + | <includeonly>data-sort-value="{{{1}}}" | </includeonly><noinclude> |
+ | {{Documentation}} | ||
+ | [[Category:Formatting and function templates]]</noinclude> |
Latest revision as of 21:53, 2 February 2020
Contents
Purpose
This template automatically adds the data sort value for sortable tables. Additional cell properties must be listed before that template and the content of the cell starts directly after that template. If used properly it does not display anything directly (just in the source code).
Usage
# | Optional | Description | Default |
---|---|---|---|
1 | No | Sort value |
Example
{| class="wikitable sortable" ! Name ! Diameter |- | Kerbin | {{SortCell|600000}} 600 km |- | Kerbol | {{SortCell|261600000}} 261.6 Mm |- | Gilly | {{SortCell|13000}} 13 000 m |}
Name | Diameter |
---|---|
Kerbin | 600 km |
Kerbol | 261.6 Mm |
Gilly | 13 000 m |
See also
The above documentation is transcluded from Template:SortCell/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. |