Difference between revisions of "Template:High-use/num"
m (1 revision imported) |
m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{#iferror:{{#expr:0+{{{1}}}*1}}|{{#ifeq:{{{1|}}}|risk|a very large number of|many}}|{{#ifeq:{{{2|}}}|yes||approximately }}{{#ifeq:{{#expr:{{#invoke:String|len|{{{1}}}}} < | + | {{#iferror:{{#expr:0+{{{1}}}*1}}|{{#ifeq:{{{1|}}}|risk|a very large number of|many}}|{{#ifeq:{{{2|}}}|yes||approximately }}{{#ifeq:{{#expr:{{#invoke:String|len|{{{1}}}}} < 6}}|1|{{sigfig|{{{1}}}|2}}|{{sigfig|{{{1|}}}|3}}}}{{#ifeq:{{{2|}}}|yes|+}}{{#if:{{{all-pages|}}}| pages, which is ≈{{#expr:({{{1|}}}*100/{{NUMBEROFPAGES:R}}) round 0}}% of all}}}}<noinclude>{{Documentation|content= |
; Examples | ; Examples | ||
: {{#invoke:DemoTemplate|High-use/num|risk}} | : {{#invoke:DemoTemplate|High-use/num|risk}} |
Latest revision as of 18:59, 13 August 2019
{{#iferror:{{#expr:0+{{{1}}}*1}}|{{#ifeq:|risk|a very large number of|many}}|{{#ifeq:|yes||approximately }}{{#ifeq:{{#expr:Lua error: Internal error: The interpreter exited with status 127. < 6}}|1|{{#ifeq:{{{1}}}|0
|0 |{{significant figures/{{#if:2 |rnd |sum }} |1={{{1}}} |2=2 |3={{safesubst:#ifexpr:{{{1}}}=0 |{{safesubst:#ifexpr:abs{{{1}}}1=1 |0 |{{safesubst:#expr:floor((ln(abs{{{1}}}1)/ln10)+1)}} }} |{{#expr:floor((ln(abs({{{1}}}) )/ln 10)+1E((abs{{{1}}}>1E100 or abs{{{1}}}<1E-100)-14))}}
}}
}}
}}|{{#ifeq:|0
|0 |{{significant figures/{{#if:3 |rnd |sum }} |1= |2=3 |3={{safesubst:#ifexpr:=0 |{{safesubst:#ifexpr:abs1=1 |0 |{{safesubst:#expr:floor((ln(abs1)/ln10)+1)}} }} |{{#expr:floor((ln(abs() )/ln 10)+1E((abs>1E100 or abs<1E-100)-14))}}
}}
}}
}}}}{{#ifeq:|yes|+}}{{#if:| pages, which is ≈{{#expr:(*100/24563) round 0}}% of all}}}}{{#switch:<translate></translate> | = Lua error: Internal error: The interpreter exited with status 127. | #default=
Script error: No such module "Template translation".
}}