Template:Convert: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>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.
meta>Plastikspork
Add better sorting for ft and in, ranges, etc.
Line 1: Line 1:
<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>
<includeonly>{{#ifeq:{{{sortable|}}}|on|<span style="display:none">{{padleft:{{FORMATNUM:{{{1}}}|R}}|16|0}}{{#ifeq:{{#expr:{{{3|0}}}*0}}|0|{{padleft:{{FORMATNUM:{{{3}}}|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>

Revision as of 15:22, 28 August 2010