Template:Round1: Difference between revisions
Jump to navigation
Jump to search
imported>David Yamakuchi m (Undo revision 100354630 by David Yamakuchi (Talk)) |
imported>David Yamakuchi mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}}}}" | <includeonly>{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"no data"| | ||
|[[Atomic mass{{!}}{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}}}}" | |||
|{{#ifeq:{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-1}} }} | |{{#ifeq:{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-1}} }} | ||
|{{#ifeq:"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-1}} }}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-2}} }}" | |{{#ifeq:"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-1}} }}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-2}} }}" | ||
|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}{{#ifeq:{{{MassDecimalPlaces|}}}|2|.00|{{#ifeq: "{{:{{{eName|}}}/Atomic mass}}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}"||00}}}} | |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}{{#ifeq:{{{MassDecimalPlaces|}}}|2|.00|{{#ifeq: "{{:{{{eName|}}}/Atomic mass}}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}"||00}}}} | ||
|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}{{#ifeq:{{{MassDecimalPlaces|}}}|1|.0 | |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}{{#ifeq:{{{MassDecimalPlaces|}}}|1|.0|0}}}} | ||
|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}}} | |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}}} | ||
|{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"({{#expr: {{:{{{eName|}}}/Atomic mass}}}})" | |{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"({{#expr: {{:{{{eName|}}}/Atomic mass}}}})" | ||
Line 9: | Line 10: | ||
|{{#ifeq:{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-1}} }} | |{{#ifeq:{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-1}} }} | ||
|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}{{#ifeq:{{{MassDecimalPlaces|}}}|1|.0|0}} | |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}{{#ifeq:{{{MassDecimalPlaces|}}}|1|.0|0}} | ||
|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}}}}} }}</includeonly><noinclude>This template was constructed to round the atomic mass numbers to one, two, or more places after the decimal for {{tl|PTofE}} and {{tl|Resizable periodic cell}}. | |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}}}}} }}]] }}</includeonly><noinclude>This template was constructed to round the atomic mass numbers to one, two, or more places after the decimal for {{tl|PTofE}} and {{tl|Resizable periodic cell}}. | ||
Note: If rounding to one or two places, trailing zeros will be added to the number to keep a consistent number of digits.</noinclude> | Note: If rounding to one or two places, trailing zeros will be added to the number to keep a consistent number of digits.</noinclude> |
Revision as of 18:44, 17 June 2008
This template was constructed to round the atomic mass numbers to one, two, or more places after the decimal for {{PTofE}} and {{Resizable periodic cell}}.
Note: If rounding to one or two places, trailing zeros will be added to the number to keep a consistent number of digits.