Difference between revisions of "MetricFormat"

From Sega Retro

 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{#ifexpr:{{{1}}} > 1000|{{#vardefine:mvalue|{{#expr:{{{1}}} / 1000}}}}{{#vardefine:munit|k{{{2}}}}}|{{
 
{{#ifexpr:{{{1}}} > 1000|{{#vardefine:mvalue|{{#expr:{{{1}}} / 1000}}}}{{#vardefine:munit|k{{{2}}}}}|{{
#ifexpr:{{{1}}} > 1|{{#vardefine:mvalue|{{{m}}}}}{{#vardefine:munit|{{{2}}}}}|{{
+
#ifexpr:{{{1}}} > 1|{{#vardefine:mvalue|{{{1}}}}}{{#vardefine:munit|{{{2}}}}}|{{
 
#ifexpr:{{{1}}} > 0.001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000}}}}{{#vardefine:munit|m{{{2}}}}}|{{
 
#ifexpr:{{{1}}} > 0.001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000}}}}{{#vardefine:munit|m{{{2}}}}}|{{
 
#ifexpr:{{{1}}} > 0.000001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000000}}}}{{#vardefine:munit|μ{{{2}}}}}|{{
 
#ifexpr:{{{1}}} > 0.000001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000000}}}}{{#vardefine:munit|μ{{{2}}}}}|{{
 
#ifexpr:{{{1}}} > 0.000000001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000000000}}}}{{#vardefine:munit|n{{{2}}}}}
 
#ifexpr:{{{1}}} > 0.000000001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000000000}}}}{{#vardefine:munit|n{{{2}}}}}
|}}}}}}}}}}<noinclude>[[Category:Sega Retro templates]]</noinclude>
+
|}}}}}}}}}}<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 13:06, 1 January 2022

Expression error: Unrecognized punctuation character "{".