Difference between revisions of "Template:ComplexNuclide2"

From blackwiki
Jump to navigation Jump to search
imported>SkyLined
(Created based on {{Nuclide2}} and {{ComplexNuclide}})
 
imported>DePiep
(per Talk:Chemical_formula#Subscript_ambiguity: remove noting number of neutrons subscript right.)
 
(14 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
-->{{#ifeq:{{CheckElement |link={{{link|}}} |{{{1}}} |{{{2|}}} |{{{3|}}} }}|
+
-->{{Physics particle<!--
|{{PhysicsParticle
+
-->|link={{#if:{{{link|}}}|{{LinkForElement|{{{1}}}|{{{2|}}}|{{{3|}}}}}}}<!--
  |link={{#if:{{{link|}}}||{{LinkForElement |{{{1}}} |{{{2|}}} |{{{3|}}} }} }}
+
-->|anti={{{anti|}}}<!--
  |{{SymbolForElement |{{{1}}} }}
+
-->|1={{SymbolForElement|{{{1}}}}}<!--
  |TL={{#if:{{{2|}}}|{{#expr:{{NeutronsForElement |{{{1}}} }}+{{ProtonsForElement |{{{1}}} }} }}|{{{2|}}} }}{{{3|}}}
+
TL=isotope (param2):
  |BL={{ProtonsForElement|{{{1}}}}}
+
-->|TL={{#if:{{{2|}}}|{{{2}}}|<!-- TL num -->{{#expr:{{NeutronsForElement|{{{1}}}}}+{{ProtonsForElement|{{{1}}}}} }}}}<!-- TL txt -->{{{3|}}}<!-- eo TL
  |BLc={{DigitsInNumber|{{ProtonsForElement|{{{1}}}}}}}
+
BL=Z (automated):
  |TR={{{charge|}}}
+
-->|BL={{ProtonsForElement|{{{1}}}}}<!-- eo BL
  |BR={{#expr:{{#if:{{{2|}}} |{{{2}}}|{{#expr:{{NeutronsForElement |{{{1}}} }}+{{ProtonsForElement |{{{1}}} }} }} }}-{{ProtonsForElement |{{{1}}} }} }}
+
TR=charge
  |BRc={{#if: {{{charge|}}} |{{DigitsInNumber |{{#expr:{{#if:{{{2|}}} |{{{2}}}|{{#expr:{{NeutronsForElement |{{{1}}} }}+{{ProtonsForElement |{{{1}}} }} }} }}-{{ProtonsForElement |{{{1}}} }} }} }} }}
+
-->|TR={{{charge|}}}<!-- eo TR
  }}
+
  q = number of atoms (in chem formulae)
|{{CheckElement |link={{{link|}}} |{{{1}}} |{{{2|}}} |{{{3|}}} }}
+
-->|BR={{{q|}}}<!--
}}</includeonly>
+
-->}}
 +
<!-- eo checkelem #1 -->}}</includeonly><!--
 +
 
 +
--><noinclude>{{Documentation}}</noinclude>

Latest revision as of 11:20, 13 August 2018