Difference between revisions of "Template:ComplexNuclide2"

From blackwiki
Jump to navigation Jump to search
imported>SkyLined
(Created based on {{Nuclide2}} and {{ComplexNuclide}})
 
imported>SkyLined
(Improve #if and #ifeq use and formatting)
Line 3: Line 3:
 
{{Category:Nuclide templates}}
 
{{Category:Nuclide templates}}
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
-->{{#ifeq:{{CheckElement |link={{{link|}}} |{{{1}}} |{{{2|}}} |{{{3|}}} }}|
+
-->{{#if:{{CheckElement |link={{{link|}}} |{{{1}}} |{{{2|}}} |{{{3|}}} }}
|{{PhysicsParticle
+
  |{{CheckElement |link={{{link|}}} |{{{1}}} |{{{2|}}} |{{{3|}}} }}
  |link={{#if:{{{link|}}}||{{LinkForElement |{{{1}}} |{{{2|}}} |{{{3|}}} }} }}
+
  |{{PhysicsParticle
  |{{SymbolForElement |{{{1}}} }}
+
    |link={{#if:{{{link|}}}||{{LinkForElement |{{{1}}} |{{{2|}}} |{{{3|}}} }} }}
  |TL={{#if:{{{2|}}}|{{#expr:{{NeutronsForElement |{{{1}}} }}+{{ProtonsForElement |{{{1}}} }} }}|{{{2|}}} }}{{{3|}}}
+
    |{{SymbolForElement |{{{1}}} }}
  |BL={{ProtonsForElement|{{{1}}}}}
+
    |TL={{#if:{{{2|}}} |{{{2}}} |{{#expr:{{NeutronsForElement |{{{1}}} }}+{{ProtonsForElement |{{{1}}} }} }} }}{{{3|}}}
  |BLc={{DigitsInNumber|{{ProtonsForElement|{{{1}}}}}}}
+
    |BL={{ProtonsForElement|{{{1}}}}}
  |TR={{{charge|}}}
+
    |BLc={{DigitsInNumber|{{ProtonsForElement|{{{1}}}}}}}
  |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}}} }} }} }} }}
+
    |BR={{#expr:{{#if:{{{2|}}} |{{{2}}} |{{#expr:{{NeutronsForElement |{{{1}}} }}+{{ProtonsForElement |{{{1}}} }} }} }}-{{ProtonsForElement |{{{1}}} }} }}
}}
+
    |BRc={{#if: {{{charge|}}} |{{DigitsInNumber |{{#expr:{{#if:{{{2|}}} |{{{2}}} |{{#expr:{{NeutronsForElement |{{{1}}} }}+{{ProtonsForElement |{{{1}}} }} }} }}-{{ProtonsForElement |{{{1}}} }} }} }} }}
|{{CheckElement |link={{{link|}}} |{{{1}}} |{{{2|}}} |{{{3|}}} }}
+
  }}<!--
}}</includeonly>
+
--></includeonly>

Revision as of 11:37, 18 September 2009