Template:Round1: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>David Yamakuchi
mNo edit summary
imported>David Yamakuchi
m (Undo revision 100354956 by David Yamakuchi (Talk))
Line 1: Line 1:
<includeonly>{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}}}}"
<includeonly>{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}}}}"
   |{{#ifeq:{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MDP|}}} }}|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MDP|}}}-1}} }}
   |{{#ifeq:{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-1}} }}
   |{{#ifeq:"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MDP|}}}-1}} }}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MDP|}}}-2}} }}"
   |{{#ifeq:"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-1}} }}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-2}} }}"
   |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MDP|}}} }}{{#ifeq:{{{MDP|}}}|2|.00|{{#ifeq: "{{:{{{eName|}}}/Atomic mass}}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MDP|}}} }}"||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 {{{MDP|}}} }}{{#ifeq:{{{MDP|}}}|1|.0
   |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}{{#ifeq:{{{MassDecimalPlaces|}}}|1|.0
|{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MDP|}}}}}"
|{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}}}}"
   ||0}}
   ||0}}
}}}}
}}}}
   |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MDP|}}} }}}}
   |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}}}
   |{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"({{#expr: {{:{{{eName|}}}/Atomic mass}}}})"
   |{{#ifeq:"{{:{{{eName|}}}/Atomic mass}}"|"({{#expr: {{:{{{eName|}}}/Atomic mass}}}})"
   |({{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MDP|}}} }})
   |({{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }})
   |{{#ifeq:{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MDP|}}} }}|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MDP|}}}-1}} }}
   |{{#ifeq:{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{#expr:{{{MassDecimalPlaces|}}}-1}} }}
   |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MDP|}}} }}{{#ifeq:{{{MDP|}}}|1|.0|0}}
   |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}{{#ifeq:{{{MassDecimalPlaces|}}}|1|.0|0}}
   |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MDP|}}} }}}}}} }}</includeonly><noinclude>{{TlDoc}}</noinclude>
   |{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}} }}}}}} }}</includeonly><noinclude>{{TlDoc}}</noinclude>

Revision as of 13:28, 18 June 2008

This documentation is transcluded from Template:Round1/doc (edit | history)

This template was constructed to round the atomic mass numbers to one place after the decimal for {{Resizable periodic cell}} (for {{PTofE}}.)

Usage

{{MassRound|{{:Cobalt/Atomic mass}} }}

Expression error: Unrecognized punctuation character "[".0