Difference between revisions of "Template:Infobox element/group"
imported>DePiep |
|||
| Line 1: | Line 1: | ||
| − | + | {{#switch:{{{number|}}} | |
|1=[[Alkali metal|group 1]] | |1=[[Alkali metal|group 1]] | ||
|57=[[group 3 element|group 3]] | |57=[[group 3 element|group 3]] | ||
| Line 9: | Line 9: | ||
| lanthanides |lanthanide =[[Unnumbered groups in the periodic table|group n/a]] | | lanthanides |lanthanide =[[Unnumbered groups in the periodic table|group n/a]] | ||
| actinides | actinide =[[Unnumbered groups in the periodic table|group n/a]] | | actinides | actinide =[[Unnumbered groups in the periodic table|group n/a]] | ||
| − | | superactinides | superactinide =[[Extended periodic table#Superactinides|unknown group]] | + | | superactinides | superactinide =[[Extended periodic table#Superactinides|''unknown group'']] |
| #default=<!-- | | #default=<!-- | ||
-->{{#switch:{{lc:{{{group|}}}}} | -->{{#switch:{{lc:{{{group|}}}}} | ||
| − | |1=[[Alkali metal|group 1 (alkali metals)]] | + | |1|ia=[[Alkali metal|group 1 (alkali metals)]] |
| − | |2=[[Alkaline earth metal|group 2 (alkaline earth metals)]] | + | |2|iia=[[Alkaline earth metal|group 2 (alkaline earth metals)]] |
| − | |3=[[ | + | |3|iiib=[[Group 3 element|group 3]] |
| − | |4 | + | |4|ivb={{#if:{{{group|}}}|[[Group {{{group|}}} element|group {{{group|}}}]]|[[Group 4 element|group 4]]}} |
| − | |5 | + | |5|vb={{#if:{{{group|}}}|[[Group {{{group|}}} element|group {{{group|}}}]]|[[Group 5 element|group 5]]}} |
| − | |6 | + | |6|vib={{#if:{{{group|}}}|[[Group {{{group|}}} element|group {{{group|}}}]]|[[Group 6 element|group 6]]}} |
| − | |7 | + | |7|viib={{#if:{{{group|}}}|[[Group {{{group|}}} element|group {{{group|}}}]]|[[Group 7 element|group 7]]}} |
| − | |8 | + | |8|viiib={{#if:{{{group|}}}|[[Group {{{group|}}} element|group {{{group|}}}]]|[[Group 8 element|group 8]]}} |
| − | |9 | + | |9|viiib={{#if:{{{group|}}}|[[Group {{{group|}}} element|group {{{group|}}}]]|[[Group 9 element|group 9]]}} |
| − | |10 | + | |10|viiib={{#if:{{{group|}}}|[[Group {{{group|}}} element|group {{{group|}}}]]|[[Group 10 element|group 10]]}} |
| − | |11 | + | |11|ib={{#if:{{{group|}}}|[[Group {{{group|}}} element|group {{{group|}}}]]|[[Group 11 element|group 11]]}} |
| − | |12=[[Group {{{group|}}} element|group {{{group|}}}]] | + | |12|iib={{#if:{{{group|}}}|[[Group {{{group|}}} element|group {{{group|}}}]]|[[Group 12 element|group 12]]}} |
| − | |13=[[Boron group|group 13 (boron group)]] | + | |13|iiia=[[Boron group|group 13 (boron group)]] |
| − | |14=[[Carbon group|group 14 (carbon group)]] | + | |14|iva=[[Carbon group|group 14 (carbon group)]] |
| − | |15=[[Pnictogen|group 15 (pnictogens)]] | + | |15|va=[[Pnictogen|group 15 (pnictogens)]] |
| − | |16=[[Chalcogen|group 16 (chalcogens)]] | + | |16|via=[[Chalcogen|group 16 (chalcogens)]] |
| − | |17=[[Halogen|group 17 (halogens)]] | + | |17|viia=[[Halogen|group 17 (halogens)]] |
| − | |18=[[Noble gas|group 18 (noble gases)]] | + | |18|viiia|viii=[[Noble gas|group 18 (noble gases)]] |
|=[[Unnumbered groups in the periodic table|group n/a]]<!-- blank input --> | |=[[Unnumbered groups in the periodic table|group n/a]]<!-- blank input --> | ||
|#default={{{group|}}}<!-- | |#default={{{group|}}}<!-- | ||
| − | -->}}}}}} | + | -->}}}}}}{{yesno|{{{predicted|no}}}|yes= ''(predicted)''|no=}}<!-- |
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> | ||
Revision as of 22:17, 27 June 2017
Usage
To be used inside {{Infobox element}}. Produces an line of text with proper links. It can take its parameters from existing infobox parameters (no changes needed in most individual infoboxes).
{{infobox element/group
|group={{{group|}}}
|category={{{category|}}}
|number={{{number|}}}
|predicted={{{predicted|}}}
}}
It uses group number to produce (show) basic text & links. This text is overruled by series (lanthanides, actinides, superactinides): they get their own text (currently: the n/a link). All this can be top-overruled by individual atomic number text (e.g. 1 Hydrogen) for special situations.
Required is either one of the three overruling series names or a group number. In case of an error, the template page (not the element article) is listed in Category:Element templates that need attention for maintenance check. The error is not shown on the article page.
Demo
| group, nr or series | shows in infobox | note |
|---|---|---|
| 1, H | group 1 | 1, H set by atomic number exception to overrule default text for group=1 (not an alkali metal) |
| 57, La | group 3 | set by atomic number |
| 71, Lu | n/a | Lu, 71: set by category=lanthanide |
| 89, Ac | group 3 | set by atomic number exception |
| 103, Lr | n/a | 103, Lr: set by category=lanthanide |
| 109, Mt | group 9 (predicted) | set |predicted=yes for demo purposes only
|
| 117, Ts | group 17 | 117, Ts set by atomic number exception to overrule default text for group=17 (not a verified halogen) |
| 118, Og | group 18 | 118, Og set by atomic number exception to overrule default text for group=18 (not a verified noble gas) |
| 121, Ubu | n/a | set by series=superactinides |
| 1 | group 1 (alkali metals) | |
| 2 | group 2 (alkaline earth metals) | |
| 3 | group 3 | |
| 4 | group 4 | |
| 5 | group 5 | |
| 6 | group 6 | |
| 7 | group 7 | |
| 8 | group 8 | |
| 9 | group 9 | |
| 10 | group 10 | |
| 11 | group 11 | |
| 12 | group 12 | |
| 13 | group 13 (boron group) | |
| 14 | group 14 (carbon group) | |
| 15 | group 15 (pnictogens) | |
| 16 | group 16 (chalcogens) | |
| 17 | group 17 (halogens) | |
| 18 | group 18 (noble gases) | |
| 19 | (by software error only) | |
| n/a | (by software error only) group=n/a input should have been overruled by being lan/act/superact series
|
See also
| The above documentation is transcluded from Template:Infobox element/group/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |