Template:Convert: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
en>LinguistAtLarge (Adding support for the "sortable" parameter. See Template_talk:Convert#Automatically_produce_hidden_output_so_sortable_tables_work_correctly) |
en>Plastikspork (Adding fix to strip whitespace around first and second input as well as unformat numbers in first input (see talk page). Please revert if this causes a problem.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{sortable|}}}|on|<span style="display:none">{{padleft:{{{1}}}|16|0}}</span>}}{{convert/{{{2}}}|{{{1}}}|{{#ifeq:{{#expr:{{{3|0}}}*0}}|0|0}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|r={{#ifeq:{{{sp}}}|us|er|re}}|d=L{{{lk|off}}}A{{{abbr|off}}}D{{{disp|b}}}S{{{adj|{{{sing|off}}}}}}|s={{{sigfig|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude> |
<includeonly>{{#ifeq:{{{sortable|}}}|on|<span style="display:none">{{padleft:{{FORMATNUM:{{{1}}}|R}}|16|0}}</span>}}{{convert/{{#if:1|{{{2}}}}}|{{FORMATNUM:{{{1}}}|R}}|{{#ifeq:{{#expr:{{{3|0}}}*0}}|0|0}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|r={{#ifeq:{{{sp}}}|us|er|re}}|d=L{{{lk|off}}}A{{{abbr|off}}}D{{{disp|b}}}S{{{adj|{{{sing|off}}}}}}|s={{{sigfig|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude> |