Template:Sortable ratio

From PS4 Developer wiki
Revision as of 05:03, 30 January 2014 by Euss (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Usage

Usage and output is identical to {{ratio}}, except this template prepends a hidden decimal number that makes ratios sort correctly in sortable tables.

Usage

{{sortable ratio|1|2}}
0.333,  33.3% (1/3)
{{sortable ratio|1|2|text=!!!!!}}
0.333,  33.3!!!!!
{{sortable ratio|1|total=3}}
0.333,  33.3% (1/3)
{{sortable ratio|1|2|round=4}}
0.333,  33.3% (1/3)