Template:Element-symbol-to-oxidation-state-data/doc
Data for the oxidation state entry in each element's infobox and for the List_of_oxidation_states_of_the_elements. Data entries here affect at least two pages.
Editing oxidation state data
[edit source]The oxidation state data appears in three sections:
- common values from a singles standard reference (TODO). These values should not be changed without consensus on the Talk page.
- notable values from experiments, with reliable sources
- predicted values from theory, with reliable sources.
Each section has one entry for each element in the period table.
Each entry has strict limits to allow text processing.
- Each element result in a string
- Each string oxidation-state-number values
- an oxidation-state-number eg "+3," starts with
- a space or a newline, followed by
- a math minus sign (not a dash) OR
- a plus OR
- nothing
- followed by number,
- followed by comma (every entry including the last one),
- a referenced-oxidation-state-number is an oxidation-state-number followed by
- a <ref>...</ref> tag,
- a <sup>?</sup> tag, or
- a <sup>*</sup> tag creating the following reference:
- an oxidation-state-number eg "+3," starts with
Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
The common entries are oxidation-state-number values. Do not include 0 (zero) in the common set.
The notable and predicted entries are referenced-oxidation-state-number values. Do not include formatting.
How to add references
[edit source]Find the element
[edit source]Most of the time you want the second place the element is listed, for example for Titanium is the second place you see e"Ti=...".
If the ref has not been used before
[edit source]Add it as normal.
If the reference already used in the element page or in Oxidation state
[edit source]Make an exact character for character copy of the ref and include it with the new oxidiation state data.
OR
[edit source]- Note the value of the
name=parameter. If there is none, add one using "Author-year".
- In this template add a self-closing "reference reference" with an name like "Author-date",eg
6,<ref name="Smith-2006"/>
- Add the reference definition in two places
In the element page and in Oxidation state add the "reference definition" as a List-defined_reference:
==References==
{{Reflist|refs=
<ref name="Smith-2006">content1</ref>
<ref name="Joe-1936">content2</ref>
}}
Check
[edit source]Open the element page and Oxidation state references for red Cite Errors.
Template usage
[edit source]This data template is designed for two use cases,
Parameters
[edit source]- os-formatter: a template that accepts symbol, common, notable, and predicted parameters and produces formatted wikitext.
- symbol: element to be selected from the data.
The main-space pages that use these templates should include a definition of the reference named "cn" which might look like
<ref name="cn">Oxidation state{{citation needed}}</ref>
Formatters
[edit source]See the doc pages of these templates for examples.
- {{Element-symbol-to-oxidation-state-echo}}: debug output, used by default
- {{Element-symbol-to-oxidation-state-entry}}: formats for {{Infobox element}}
- {{Element-symbol-to-oxidation-state-row}}: formats for one row of {{List of oxidation states of the elements}}
Example debug output
[edit source]The examples use the "echo" formatter and the calls look like {{Element-symbol-to-oxidation-state-data|symbol=C}}
C
[edit source]- common:−4, −3, −2, −1, 0, +1, +2, +3, +4
- notable:
- predicted:
Fe
[edit source]He
[edit source]- common:
- notable:
- predicted:
Sg
[edit source]See also
[edit source]- Oxidation state
- List of oxidation states of the elements, {{List of oxidation states of the elements}}
Templates used:TODO
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Sg(0) has been observed in seaborgium hexacarbonyl (Sg(CO)6); see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Sg(VI) has been observed in seaborgium oxide hydroxide (SgO2(OH)2); see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).