قالب:Element2
This section:
The Nuclide templates are to be used for displaying nuclide, isotope and element symbols, specifically in formulae. They can optionally link to the page for the specific nuclide, isotope or element. Here is a list of the various templates and some sample output for carbon-12, with and without links enabled:
Template Without link With link |link=yes
{{Chem2}}(to improve) {{Chem2|[[Carbon|C]]}}
C C {{SimpleNuclide}} {{SimpleNuclide|Carbon|12|link=yes}}
12C 12C {{Nuclide}} {{Nuclide|Carbon|12|link=yes}}
126C 126C {{ComplexNuclide}} {{ComplexNuclide|Carbon|12}}
126C 126C {{ComplexNuclide}} {{ComplexNuclide|helium|2|anti=yes|charge=+}}
22He+0 22He+0
المتغيرات
All the templates accept the same arguments.
1 | Required. The name of the element for which to return the isotope symbol |
---|---|
2 | The mass number for the isotope. The default value is the mass number of the most common or stable isotope. |
3 | A string to indicate a nuclear isomer ("m", "m2", etc...) where the nucleus in an excited state. This argument does not require the mass number to be supplied. |
|link=yes
|
Automatically creates a link to the relevant page for the element or isotope. This page may not yet exist for some isotopes, in that case you are encouraged to create the page or create a redirect to “Isotopes of element name”. |
|anti=yes
|
Specify the element is made of anti-matter and that the symbol should therefore be marked with an overline. |
|charge=
|
Specify the charge of an ionized atom. |
|q=
|
Specify the quantity of the atom (useful in chemical formulas, only available {{ComplexNuclide}}). |
m | Specifies that the atom is a nuclear isomer. |
أمثلة
{{SimpleNuclide|Carbon}}
12C {{SimpleNuclide|Carbon|14}}
14C {{SimpleNuclide|link=yes|Carbon}}
12C {{SimpleNuclide|anti=yes|Carbon}}
12C {{SimpleNuclide|link=yes|Carbon|14}}
14C {{SimpleNuclide|Carbon|12|m}}
12mC {{ComplexNuclide|link=yes|anti=yes|Carbon|12|m|charge=2+}}
12m6C2+6 {{ComplexNuclide|O|16|q=2}}
168O
See User:SkyLined/List of nuclei for a list of all elements supported by these templates.
Dependencies
- All of these templates use {{ProtonsForElement}} to check if the element name is valid and, if the link=yes argument is used, check if you're not using the generic "X" or "element".
- Some of these templates use {{ProtonsForElement}} to get the element number for a given element.
- Some of these templates use {{NeutronsForElement}} to get the default number of neutrons for a given element.
- Some of these templates use both {{ProtonsForElement}} and {{NeutronsForElement}} to get the default mass number for a given element.
- These templates use {{LinkForElement}} to get the page to link to if the link=yes argument is used.
- These templates use {{Physics particle}} to create the HTML output in order to maintain a similar look and feel for all physics symbols.
الاستخدام الخاطئ
Pages that use these templates incorrectly will be added to Category:Pages with incorrect nuclide templates use. Please check there occasionally to make sure there aren't any.
Here are some samples of error messages:
{{Nuclide |Blabla}} | خطأ في التعبير: علامة ترقيم لم نتعرف عليها «[».Error in Template:ProtonsForElement: unknown element Blabla .Error in Template:SymbolForElement: unknown element Blabla . |
{{Nuclide |Aluminum}} | خطأ في التعبير: عامل < غير متوقع.13Aluminum is not a valid way to spell aluminium |
{{Nuclide |Element |link=yes}} | خطأ في التعبير: علامة ترقيم لم نتعرف عليها «[».The generic element 'Element ' does not have a number of protons.X |