Template:Convert: Difference between revisions

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