Difference between revisions of "Template:Ntsh"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(updated code that will fail gracefully)
m (25 revisions from wikipedia:Template:Ntsh)
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#if:{{{1|}}}
+
{{number table sorting/{{#iferror:{{#expr:+{{formatnum:{{{1|}}}|R}}}}
|<span style="{{#ifeq:{{{debug|}}}|yes
+
       |error
  |border:1px solid
+
       |Qyes/{{#expr:{{formatnum:{{{1}}}|R}}<0}}
  |display:none
 
  }}">{{#iferror:{{#expr:{{{1}}}-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>
 +
{{documentation}}
 +
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Latest revision as of 08:33, 15 March 2016

Documentation icon Template documentation[create]