Difference between revisions of "Template:SortCell/doc"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page.)
 
m (Edits.)
 
Line 43: Line 43:
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
== See also ==
 
== See also ==
* {{Wikipedia|full=y}}
+
<!--* {{Wikipedia|full=y}} - Unfortunately there is not a Wikipedia template called "SortCell" which can be linked to-->
  
 
[[Category:Formatting and function templates]]
 
[[Category:Formatting and function templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 02:44, 26 January 2020

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