Difference between revisions of "Template:Ntsh"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(added better error handling)
m (25 revisions from wikipedia:Template:Ntsh)
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<!--
+
{{number table sorting/{{#iferror:{{#expr:+{{formatnum:{{{1|}}}|R}}}}
  error handling needed until misuse is cleaned up
+
      |error
-->{{#if:{{{1|}}}
+
      |Qyes/{{#expr:{{formatnum:{{{1}}}|R}}<0}}
|<span style="{{#ifeq:{{{debug|}}}|yes
 
  |border:1px solid
 
  |display:none
 
  }}">{{#iferror:{{#expr:{{formatnum:{{{1}}}|R}}-1}}
 
    |{{{1}}}[[Category:Articles using Template:Ntsh for a non numeric value]]
 
    |{{Number table sorting/{{#ifexpr:{{formatnum:{{{1}}}|R}}<0
 
      |negative
 
      |positive
 
      }}
 
      |1={{#expr:abs {{formatnum:{{{1}}}|R}}}}
 
 
     }}
 
     }}
  }}</span>{{#ifeq:{{{debug|}}}|yes|&nbsp;{{{1}}}}}
+
  |{{formatnum:{{{1|}}}|R}}|style={{#ifeq:{{{debug}}}|yes
 +
      |border:1px solid;display:inline;
 +
      |display:none
 +
    }}
 +
  |{{#expr:floor((ln(abs({{formatnum:{{{1}}}|R}}))/ln10)+1E-14)}}|prefix={{{prefix|}}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 +
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 08:33, 15 March 2016

Documentation icon Template documentation[create]