Difference between revisions of "Template:Number table sorting"

From blackwiki
Jump to navigation Jump to search
test>Jimp
(Undid revision 514735966 by Jimp (talk))
test>Jimp
(now working as intended)
Line 1: Line 1:
{{#if:{{{1|}}}
+
{{number table sorting/{{#iferror:{{#expr:+{{formatnum:{{{1|}}}|R}}}}
|<span style="{{#ifeq:{{{debug|}}}|yes
+
      |error
  |border:1px solid
+
      |Q{{{quiet|no/F{{{format|yes}}}/S{{{scinote|no}}}}}}/{{#expr:{{formatnum:{{{1}}}|R}}<0}}
  |display:none
+
    }}
}}">{{Number table sorting/{{#ifexpr:{{formatnum:{{{1}}}|R}}<0
+
  |{{formatnum:{{{1|}}}|R}}|style={{#ifeq:{{{debug}}}|yes
  |negative
+
      |border:1px solid
  |positive
+
      |display:none
  }}
+
    }}
  |1={{#expr:abs {{formatnum:{{{1}}}|R}}}}
+
   |{{#expr:floor((ln(abs({{formatnum:{{{1}}}|R}}))/ln10)+1E-14)}}|prefix={{{prefix|}}}
}}</span>{{{prefix|}}}{{#ifeq:{{{quiet|}}}|yes
 
  |<!--Null-->
 
  |{{#ifeq:{{{format}}}|no
 
   |{{{1}}}
 
  |{{formatnum:{{{1}}}}}
 
  }}
 
}}
 
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 11:05, 27 September 2012

Template:Number table sorting/error

Template documentation[create]