|
|
| (One intermediate revision by the same user not shown) |
| Line 1: |
Line 1: |
| {{Infobox
| |
| | headerstyle=background:#eee
| |
|
| |
|
| | title = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}, <sup>{{{mass_number|0}}}</sup>{{{symbol|Xx}}} | | <noinclude> |
| | image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless]]}} | | {{Documentation}} |
| | caption = {{{image_caption|}}} | | <!-- WikiMD editors - add categories and interwikis to the /doc subpage, not here! --> |
| | </noinclude><includeonly>{{Infobox |
| | | name = {{subst:PAGENAME}} |
| | | title = Infobox isotope |
| | | above = {{{name|{{subst:PAGENAME}}}}} |
| | | image = [[File:{{{image|}}}|frameless]] |
| | | caption = {{{caption|}}} |
| | | label1 = General |
| | | data1 = |
| | {{!}}- |
| | {{!}} Symbol |
| | {{!}} {{{symbol|}}} |
| | {{!}}- |
| | {{!}} Atomic Number |
| | {{!}} {{{atomic number|}}} |
| | {{!}}- |
| | {{!}} Atomic Mass |
| | {{!}} {{{atomic mass|}}} |
| | {{!}}- |
| | {{!}} Neutrons |
| | {{!}} {{{neutrons|}}} |
| | {{!}}- |
| | {{!}} Protons |
| | {{!}} {{{protons|}}} |
| | {{!}}- |
| | {{!}} Nuclide Data |
| | {{!}}- |
| | {{!}} Half-life |
| | {{!}} {{{half-life|}}} |
| | {{!}}- |
| | {{!}} Decay mode |
| | {{!}} {{{decay mode|}}} |
| | {{!}}- |
| | {{!}} Daughter isotopes |
| | {{!}} {{{daughter isotopes|}}} |
| | {{!}}- |
| | {{!}} Spin |
| | {{!}} {{{spin|}}} |
| | {{!}}- |
| | {{!}} Excess energy |
| | {{!}} {{{excess energy|}}} |
| | {{!}}- |
| | {{!}} Binding energy |
| | {{!}} {{{binding energy|}}} |
| | | label20 = Appearance |
| | | data20 = {{{appearance|}}} |
| | | label21 = Uses |
| | | data21 = {{{uses|}}} |
| | | label22 = Natural abundance |
| | | data22 = {{{natural abundance|}}} |
| | | label23 = Related isotopes |
| | | data23 = {{{related isotopes|}}} |
| | | label24 = Other information |
| | | data24 = {{{other information|}}} |
| | | below = This [[isotope]] related article is a [[stub]]. |
| | }}<noinclude> |
| | [[Category:Isotope templates]] |
| | </noinclude></includeonly> |
| | ``` |
|
| |
|
| | header1 = General
| | This template is designed for creating infoboxes for isotopes on a MediaWiki site similar to Wikipedia. It includes fields for general information about the isotope, such as symbol, atomic number, atomic mass, number of neutrons and protons, as well as specific nuclide data like half-life, decay mode, daughter isotopes, spin, excess energy, and binding energy. Additionally, it allows for the inclusion of appearance, uses, natural abundance, related isotopes, and other relevant information. The template also includes a stub notice encouraging users to expand the article, linking to the concept of a stub on the hypothetical WikiMD. |
| | |
| | label2 = [[Table of nuclides|Symbol]]
| |
| | data2 = <sup>{{{mass_number|}}}</sup>{{{symbol|}}}
| |
| | |
| | label3 = [[List of nuclides|Names]]
| |
| | data3 = {{if empty|{{{name|}}}|{{lc:{{PAGENAME}}}}}}, {{{mass_number}}}{{{symbol}}}, {{{symbol|}}}-{{{mass_number|}}}{{#if:{{{alternate_names|}}}|,<br/>{{{alternate_names}}}}}
| |
| | |
| | label5 = [[Atomic number|Protons]] {{nobold|1=(''Z'')}}
| |
| | data5 = {{{num_protons|}}}
| |
| | |
| | label6 = [[Neutron number|Neutrons]] {{nobold|1=(''N'')}}
| |
| | data6 = {{{num_neutrons|}}}
| |
| <!-- todo/doing: test in sandbox. Mar 2022.
| |
| | label7 = [[Mass number|Mass number]] {{nobold|1=(''Z'' + ''N'')}}
| |
| | data7 = {{#if:{{{num_protons|}}}|{{#if: + {{{num_neutrons|}}}|{{#expr: {{{num_protone|}}} + {{{num_neutrons|}}}}}
| |
| -->
| |
| | header10 = {{#if:{{{abundance|}}}{{{halflife|}}}{{{decay_product|}}}{{{mass|}}}{{{spin|}}}{{{excess_energy|}}}{{{binding_energy|}}}|[[Table of nuclides|Nuclide data]]}}
| |
| | |
| | label11 = [[Natural abundance]]
| |
| | data11 = {{{abundance|}}}
| |
| | |
| | label12 = [[Half-life]] {{nobold|1=(''t''<sub>1/2</sub>)}}
| |
| | data12 = {{{halflife|}}}
| |
| | |
| | label13 = [[Atomic mass|Isotope mass]]
| |
| | data13 = {{#if:{{{mass|}}}|{{{mass|}}} [[Dalton (unit)|Da]]}}
| |
| | |
| | label14 = [[Spin (particle physics){{!}}Spin]]
| |
| | data14 = {{{spin|}}}
| |
| | |
| | label15 = [[Excess energy]]
| |
| | data15 = {{#if:{{{excess_energy|}}}|{{{excess_energy|}}} [[electronvolt|keV]]}}
| |
| | |
| | label16 = [[Binding energy]]
| |
| | data16 = {{#if:{{{binding_energy|}}}|{{{binding_energy|}}} keV}}
| |
| | |
| | label18 = [[Parent isotope]]s
| |
| | data18 = {{#if:{{{parent_symbol|}}}|{{Br separated entries
| |
| |1 = [[{{#if:{{{parent|}}}|{{{parent}}}|{{{parent_symbol}}}-{{{parent_mass}}}}}{{!}}<sup>{{{parent_mass|parent_mass}}}</sup>{{{parent_symbol}}}]]{{Infobox isotope/decay_mode|{{{parent_decay|}}}}}
| |
| |2 = {{#if:{{{parent2_symbol|}}}|[[{{#if:{{{parent2|}}}|{{{parent2}}}|{{{parent2_symbol}}}-{{{parent2_mass}}}}}{{!}}<sup>{{{parent2_mass|parent2_mass}}}</sup>{{{parent2_symbol}}}]]{{Infobox isotope/decay_mode|{{{parent2_decay|}}}}}|}}
| |
| |3 = {{#if:{{{parent3_symbol|}}}|[[{{#if:{{{parent3|}}}|{{{parent3}}}|{{{parent3_symbol}}}-{{{parent3_mass}}}}}{{!}}<sup>{{{parent3_mass|parent3_mass}}}</sup>{{{parent3_symbol}}}]]{{Infobox isotope/decay_mode|{{{parent3_decay|}}}}}|}}
| |
| |4 = {{#if:{{{parent4_symbol|}}}|[[{{#if:{{{parent4|}}}|{{{parent4}}}|{{{parent4_symbol}}}-{{{parent4_mass}}}}}{{!}}<sup>{{{parent4_mass|parent4_mass}}}</sup>{{{parent4_symbol}}}]]{{Infobox isotope/decay_mode|{{{parent4_decay|}}}}}|}}
| |
| }}}}
| |
| | |
| | label19 = [[Decay product]]s
| |
| | data19 = {{#if:{{{decay_symbol|}}}|{{Br separated entries
| |
| |1 = [[{{#if:{{{decay_product|}}}|{{{decay_product}}}|{{{decay_symbol}}}-{{{decay_mass}}}}}|<sup>{{{decay_mass|decay_mass}}}</sup>{{{decay_symbol}}}]]
| |
| |2 = {{#if:{{{decay_product2|}}}|[[{{#if:{{{decay_product2|}}}|{{{decay_product2}}}|{{{decay_symbol2}}}-{{{decay_mass2}}}}}{{!}}<sup>{{{decay_mass2|decay_mass2}}}</sup>{{{decay_symbol2}}}]]}}
| |
| }}}}
| |
| | |
| | header20 = {{#if:{{{decay_mode1|}}}{{{decay_mode2|}}}{{{decay_mode3|}}}{{{decay_mode4|}}}|Decay modes}}
| |
| | |
| | label21 = [[Decay mode]]
| |
| | data21 = {{#if:{{{decay_mode1|}}}|[[Decay energy]] ([[electronvolt|MeV]])}}
| |
| | rowstyle21 = font-weight:bold
| |
| | |
| | label22 = <span style="font-weight:normal">{{{decay_mode1|}}}</span>
| |
| | data22 = {{{decay_energy1|}}}
| |
| | label23 = <span style="font-weight:normal">{{{decay_mode2|}}}</span>
| |
| | data23 = {{{decay_energy2|}}}
| |
| | label24 = <span style="font-weight:normal">{{{decay_mode3|}}}</span>
| |
| | data24 = {{{decay_energy3|}}}
| |
| | label25 = <span style="font-weight:normal">{{{decay_mode4|}}}</span>
| |
| | data25 = {{{decay_energy4|}}}
| |
| | |
| | belowstyle = background:#eee
| |
| | below = {{Infobox element/symbol-to-name|symbol={{{symbol|<noinclude>H</noinclude>}}}|format=wlisotopes, ucfirst}} <br />[[Table of nuclides|Complete table of nuclides]]
| |
| }}<!--
| |
| | |
| -->{{#invoke:Check for unknown parameters|check
| |
| |unknown={{main other|[[Category:Pages using Infobox isotope with unknown parameters|_VALUE_]]}}
| |
| |preview=Page using [[Template:Infobox isotope]] with unknown parameter "_VALUE_"|ignoreblank=y
| |
| | name| mass_number| m| symbol| image| image_caption| alternate_names| num_neutrons| num_protons| abundance| halflife| decay_product| mass| spin| excess_energy| binding_energy
| |
| | parent_symbol| parent| parent_mass| parent_decay| parent2_symbol| parent2| parent2_mass| parent2_decay| parent3_symbol| parent3| parent3_mass| parent3_decay| parent4_symbol| parent4| parent4_mass| parent4_decay
| |
| | decay_symbol| decay_mass| decay_product2| decay_symbol2| decay_mass2| decay_mode1| decay_mode2| decay_mode3| decay_mode4| decay_energy1| decay_energy2| decay_energy3| decay_energy4}}<!--
| |
| -->{{#switch:{{#invoke:string|replace|{{PAGENAME}}|%w+-%d+m?%d?|Element-###|1|false}}
| |
| |Element-###|Deuterium|Tritium=[[Category:Isotope content page]]
| |
| }}<noinclude>{{Documentation}}</noinclude>
| |
```
This template is designed for creating infoboxes for isotopes on a MediaWiki site similar to Wikipedia. It includes fields for general information about the isotope, such as symbol, atomic number, atomic mass, number of neutrons and protons, as well as specific nuclide data like half-life, decay mode, daughter isotopes, spin, excess energy, and binding energy. Additionally, it allows for the inclusion of appearance, uses, natural abundance, related isotopes, and other relevant information. The template also includes a stub notice encouraging users to expand the article, linking to the concept of a stub on the hypothetical WikiMD.