Editing Template:Sortable ratio
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
######### | ######### | ||
## ratio template | ## ratio template | ||
#########-->{{#ifeq:{{{text|UNDEFINED}}}|UNDEFINED|{{ratio|{{{1}}}|{{{2}}}|total={{{total|}}}}}|{{ratio|{{{1}}}|{{{2}}}|total={{{total|}}}|text={{{text}}}}}}}</includeonly><noinclude> | #########-->{{#ifeq:{{{text|UNDEFINED}}}|UNDEFINED|{{ratio|{{{1}}}|{{{2}}}|total={{{total|}}}}}|{{ratio|{{{1}}}|{{{2}}}|total={{{total|}}}|text={{{text}}}}}}}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
Usage and output is identical to {{[[template:ratio|ratio]]}}, except this template prepends a hidden decimal number that makes ratios sort correctly in sortable tables. | Usage and output is identical to {{[[template:ratio|ratio]]}}, except this template prepends a hidden decimal number that makes ratios sort correctly in [[Help:Sorting|sortable tables]].</noinclude> | ||
</noinclude> |