Difference between revisions of "Template:Formatnum/SortCell"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "data-sort-value="{{{1}}}" | {{Formatnum|{{{1}}}|{{{2|}}}}}")
 
(+documentation;)
 
Line 1: Line 1:
data-sort-value="{{{1}}}" | {{Formatnum|{{{1}}}|{{{2|}}}}}
+
<includeonly>data-sort-value="{{{1}}}" | {{Formatnum|{{{1}}}|{{{2|}}}}}</includeonly><noinclude>Automatically adds the data sort value for sortable tables. Has the same parameter as {{Tl|Formatnum}}. Additional arguments for the given cell need to be added before that template:
 +
 
 +
<pre>{| class="wikitable sortable"
 +
! Values
 +
|-
 +
| {{Formatnum/SortCell|42}}
 +
|-
 +
| {{Formatnum/SortCell|74}}
 +
|-
 +
| style="background: #FDD" {{Formatnum/SortCell|47}}
 +
|-
 +
| {{Formatnum/SortCell|1337}}
 +
|}</pre>
 +
 
 +
{| class="wikitable sortable"
 +
! Values
 +
|-
 +
| {{Formatnum/SortCell|42}}
 +
|-
 +
| {{Formatnum/SortCell|74}}
 +
|-
 +
| style="background: #FDD" {{Formatnum/SortCell|47}}
 +
|-
 +
| {{Formatnum/SortCell|1337}}
 +
|}
 +
 
 +
[[Category:Templates]]</noinclude>

Latest revision as of 08:53, 3 September 2013

Automatically adds the data sort value for sortable tables. Has the same parameter as {{Formatnum}}. Additional arguments for the given cell need to be added before that template:

{| class="wikitable sortable"
! Values
|-
| {{Formatnum/SortCell|42}}
|-
| {{Formatnum/SortCell|74}}
|-
| style="background: #FDD" {{Formatnum/SortCell|47}}
|-
| {{Formatnum/SortCell|1337}}
|}
Values
42
74
47
1 337