Template:Number and percent and Template:Number and percent/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
MathXplore (talk | contribs) m Reverted edit by 203.80.166.11 (talk) to last version by Guarapiranga |
Guarapiranga (talk | contribs) Syncing sandbox code with main template (sync-template-sandbox.js) |
||
Line 1: | Line 1: | ||
{{#if:{{{1|}}} |
{{#if:{{{1|}}} |
||
|{{#ifeq:{{{disp|}}}|table|style |
|{{#ifeq:{{{disp|}}}|table|style="text-align:{{{align|right}}}" {{!}}}}{{#ifexpr:{{formatnum:{{{1}}}|R}}<0|−}}{{{prefix|}}}{{formatnum:{{#expr:abs({{formatnum:{{{1}}}|R}})}}}}{{{suffix|}}}<!-- |
||
-->{{# |
-->{{#if:{{{2|}}} |
||
|{{#ifeq:{{{disp|}}}|table |
|||
|{{!!}} style="text-align:{{{align|right}}}" {{!}} {{percentage|1={{{1|}}}|2={{{2|}}}|3={{{3|0}}}|pad={{{pad|}}}}} |
|||
|{{#ifeq:{{{disp|}}}|br()|<br>| }}({{percentage|1={{{1|}}}|2={{{2|}}}|3={{{3|0}}}|pad={{{pad|}}}}}) |
|||
⚫ | |||
| {{!!}} {{#if:{{{total|}}}|{{!!}}}}}} |
|||
}} |
|||
| {{#if:{{{2|}}}|{{#ifeq:{{{disp|}}}|br()|<br>| }}<span style="font-size:{{{size|inherit}}}">({{formatnum:{{percentage|{{{1|}}}|{{{2|}}}|{{{3|}}}|pad={{{pad|}}}|sigfig={{{sigfig|}}}|%={{{%|%}}}|nonscinote={{{nonscinote|}}}}})}}</span>}} |
|||
⚫ | |||
⚫ | |||
⚫ |