Difference between revisions of "Template:Infobox element/group"
(discussion is in progress, no valid counterarguments that edit is bad or gives no improvement) |
imported>Double sharp (except for superheavy specialists, it means the whole group - a stupid state of affairs if you ask me, but it is what it is) |
||
| (10 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#switch:{{{number|}}} | + | <span class="nowrap">{{#switch:{{{number|}}} |
| − | |1=[[ | + | |1=[[Group 1 element|1]]: H and alkali metals |
| − | |57=[[ | + | |57=[[Block (periodic table)|group n/a]] |
| − | |89=[[ | + | |89=[[Block (periodic table)|group n/a]] |
| − | |||
| − | |||
|#default=<!-- | |#default=<!-- | ||
-->{{#switch:{{lc:{{{category|}}}}} | -->{{#switch:{{lc:{{{category|}}}}} | ||
| − | | lanthanides |lanthanide =[[ | + | | lanthanides |lanthanide =[[Block (periodic table)|group n/a]] |
| − | | actinides | actinide =[[ | + | | actinides | actinide =[[Block (periodic table)|group n/a]] |
| − | | superactinides | superactinide =[[Extended periodic table#Superactinides| | + | | superactinides | superactinide =[[Extended periodic table#Superactinides|unknown group]] |
| #default=<!-- | | #default=<!-- | ||
-->{{#switch:{{lc:{{{group|}}}}} | -->{{#switch:{{lc:{{{group|}}}}} | ||
| − | |1 | + | |1=[[Group 1 element|group 1]]: H and alkali metals |
| − | |2 | + | |2=[[Alkaline earth metal|group 2 (alkaline earth metals)]] |
| − | |3 | + | |3=[[group 3 element|group 3]] |
| − | |4 | + | |4 |
| − | |5 | + | |5 |
| − | |6 | + | |6 |
| − | |7 | + | |7 |
| − | |8 | + | |8 |
| − | |9 | + | |9 |
| − | |10 | + | |10 |
| − | |11 | + | |11 |
| − | |12 | + | |12=[[Group {{{group|}}} element|group {{{group|}}}]] |
| − | |13 | + | |13=[[Boron group|group 13 (boron group)]] |
| − | |14 | + | |14=[[Carbon group|group 14 (carbon group)]] |
| − | |15 | + | |15=[[Pnictogen|group 15 (pnictogens)]] |
| − | |16 | + | |16=[[Chalcogen|group 16 (chalcogens)]] |
| − | |17 | + | |17=[[Halogen|group 17 (halogens)]] |
| − | |18 | + | |18=[[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=}}<!-- | + | -->}}}}}}</span>{{yesno|{{{predicted|no}}}|yes= ''(predicted)''|no=}}<!-- |
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 08:55, 30 January 2021
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 | 1: H and alkali metals | 1, H set by atomic number exception to overrule default text for group=1 (not an alkali metal) |
| 57, La | group n/a | set by atomic number |
| 71, Lu | n/a | Lu, 71: set by category=lanthanide |
| 89, Ac | group n/a | 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 (halogens) | 117, Ts set by atomic number exception to overrule default text for group=17 (not a verified halogen) |
| 118, Og | group 18 (noble gases) | 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: H and 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. |