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 100749459 by David Yamakuchi (Talk) Whoops! had Periodic Table page hardwired in...then it moved!)
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:"{{:{{{1|}}}/Atomic mass}}"|"({{#expr: {{:{{{1|}}}/Atomic mass}}}})"
<includeonly>{{#ifeq:"{{#expr:{{{1}}} round 1}}"|"{{#expr:{{{1}}} round 0}}"|{{#expr: {{{1}}} round 0}}.0|{{#expr:{{{1}}} round 1}}}}</includeonly><noinclude>{{TlDoc}}</noinclude>
|({{#expr:{{:{{{1|}}}/Atomic mass}}}})
|{{#ifeq:{{#expr:{{#expr: {{:{{{1|}}}/Atomic mass}} round {{{2|}}}}}-{{#expr: {{:{{{1|}}}/Atomic mass}} round 0}}round {{{2|}}} }}|0
|{{#expr: {{:{{{1|}}}/Atomic mass}} round 0}}.{{xtrazeros|{{{2|}}}}}
|{{#ifeq:{{#expr:{{#expr: {{:{{{1|}}}/Atomic mass}} round {{#expr:{{{2|}}}-1}}}}-{{#expr: {{:{{{1|}}}/Atomic mass}} round 0}}round {{{2|}}} }}|0
|{{#expr: {{:{{{1|}}}/Atomic mass}} round 0}}.{{xtrazeros|{{#expr:{{{2|}}}-1}}}}
|{{#expr: {{:{{{eName|}}}/Atomic mass}} round {{{MassDecimalPlaces|}}}}}
}}
}}
}}
}}</includeonly><noinclude>This template was customized for {{tl|PTofE}}.</noinclude>

Latest revision as of 15:19, 19 January 2011

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}} }}

58.9