Difference between revisions of "Template:ComplexNuclide2"

From blackwiki
Jump to navigation Jump to search
imported>SkyLined
(Insert comments to fix HTML output issues.)
imported>DePiep
(per Talk:Chemical_formula#Subscript_ambiguity: remove noting number of neutrons subscript right.)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>{{#if:{{CheckElement|link={{{link|}}}|1={{{1}}} }}
[[Category:Nuclide templates]]
+
<!-- checkelem=return
{{Category:Nuclide templates}}
+
-->|<!-- err msg: -->{{CheckElement |link={{{link|}}}|1={{{1}}} }} |
</noinclude><includeonly><!--
+
<!-- checkelem=positive
-->{{#if:{{CheckElement |nocategory={{{nocategory|}}} |link={{{link|}}} |{{{1}}} |{{{2|}}} |{{{3|}}} }}
+
-->{{Physics particle<!--
  |{{CheckElement |nocategory={{{nocategory|}}} |link={{{link|}}} |{{{1}}} |{{{2|}}} |{{{3|}}} }}
+
-->|link={{#if:{{{link|}}}|{{LinkForElement|{{{1}}}|{{{2|}}}|{{{3|}}}}}}}<!--
  |{{PhysicsParticle
+
-->|anti={{{anti|}}}<!--
    |link={{#if:{{{link|}}}|{{LinkForElement |nocategory={{{nocategory|}}} |{{{1}}} |{{{2|}}} |{{{3|}}} }} }}<!--
+
-->|1={{SymbolForElement|{{{1}}}}}<!--
--> |anti={{{anti|}}}<!--
+
TL=isotope (param2):
--> |{{SymbolForElement |nocategory={{{nocategory|}}} |{{{1}}} }}<!--
+
-->|TL={{#if:{{{2|}}}|{{{2}}}|<!-- TL num -->{{#expr:{{NeutronsForElement|{{{1}}}}}+{{ProtonsForElement|{{{1}}}}} }}}}<!-- TL txt -->{{{3|}}}<!-- eo TL
--> |TL={{#if:{{{2|}}} |{{{2}}} |{{#expr:{{NeutronsForElement |nocategory={{{nocategory|}}} |{{{1}}} }}+{{ProtonsForElement|nocategory={{{nocategory|}}} |{{{1}}} }} }} }}{{{3|}}}<!--
+
BL=Z (automated):
--> |BL={{ProtonsForElement |nocategory={{{nocategory|}}}|{{{1}}}}}<!--
+
-->|BL={{ProtonsForElement|{{{1}}}}}<!-- eo BL
--> |BLc={{DigitsInNumber|{{ProtonsForElement |nocategory={{{nocategory|}}} |{{{1}}}}}}}<!--
+
TR=charge
--> |TR={{{charge|}}}<!--
+
-->|TR={{{charge|}}}<!-- eo TR
--> |BR={{#expr:{{#if:{{{2|}}} |{{{2}}} |{{#expr:{{NeutronsForElement |nocategory={{{nocategory|}}} |{{{1}}} }}+{{ProtonsForElement |nocategory={{{nocategory|}}} |{{{1}}} }} }} }}-{{ProtonsForElement |nocategory={{{nocategory|}}} |{{{1}}} }} }}<!--
+
q = number of atoms (in chem formulae)
--> |BRc={{DigitsInNumber |{{#expr:{{#if:{{{2|}}} |{{{2}}} |{{#expr:{{NeutronsForElement |nocategory={{{nocategory|}}} |{{{1}}} }}+{{ProtonsForElement |nocategory={{{nocategory|}}} |{{{1}}} }} }} }}-{{ProtonsForElement |nocategory={{{nocategory|}}} |{{{1}}} }} }} }}<!--
+
-->|BR={{{q|}}}<!--
-->}}<!--
+
-->}}
-->}}</includeonly>
+
<!-- eo checkelem #1 -->}}</includeonly><!--
 +
 
 +
--><noinclude>{{Documentation}}</noinclude>

Latest revision as of 11:20, 13 August 2018