Difference between revisions of "Template:Infobox element/group"
imported>DePiep (keep using {{template other}}) |
imported>DePiep (update from /sandbox: into new {infobox} format) |
||
| Line 1: | Line 1: | ||
<span class="nowrap">{{#switch:{{{number|}}} | <span class="nowrap">{{#switch:{{{number|}}} | ||
| − | |1=[[Alkali metal|1]] | + | |1=[[Alkali metal|group 1]] |
| − | |71=[[ | + | |71=[[Unnumbered groups in the periodic table|group n/a]]<!-- for now, same as other lanthanides --> |
| − | |103=[[ | + | |103=[[Unnumbered groups in the periodic table|group n/a]]<!-- for now, same as other actinides --> |
| + | |117=[[Halogen|group 17]]<!-- may turn out not to be a halogen --> | ||
| + | |118=[[Noble gas|group 18]]<!-- may turn out not to be a noble gas --> | ||
|#default=<!-- | |#default=<!-- | ||
-->{{#switch:{{lc:{{{series|}}}}} | -->{{#switch:{{lc:{{{series|}}}}} | ||
| − | | lanthanides |lanthanide =[[ | + | | lanthanides |lanthanide =[[Unnumbered groups in the periodic table|group n/a]] |
| − | | actinides | actinide =[[ | + | | actinides | actinide =[[Unnumbered groups in the periodic table|group n/a]] |
| − | | superactinides | superactinide =[[ | + | | superactinides | superactinide =[[Extended periodic table#Superactinides|unknown group]] |
| #default=<!-- | | #default=<!-- | ||
-->{{#switch:{{lc:{{{group|}}}}} | -->{{#switch:{{lc:{{{group|}}}}} | ||
| − | |1=[[Alkali metal|1 (alkali metals)]] | + | |1=[[Alkali metal|group 1 (alkali metals)]] |
| − | |2=[[Alkaline earth metal|2 (alkaline earth metals)]] | + | |2=[[Alkaline earth metal|group 2 (alkaline earth metals)]] |
| − | |3=[[ | + | |3=[[group 3 element|group 3]] |
|4 | |4 | ||
|5 | |5 | ||
| Line 22: | Line 24: | ||
|11 | |11 | ||
|12 | |12 | ||
| − | |13 | + | |13=[[Group {{{group|}}} element|group {{{group|}}}]] |
| − | + | |14=[[Carbon group|group 14 (carbon group)]] | |
| − | |15=[[Pnictogen|15 (pnictogens)]] | + | |15=[[Pnictogen|group 15 (pnictogens)]] |
| − | |16=[[Chalcogen|16 (chalcogens)]] | + | |16=[[Chalcogen|group 16 (chalcogens)]] |
| − | |17=[[Halogen|17 (halogens)]] | + | |17=[[Halogen|group 17 (halogens)]] |
| − | |18=[[Noble gas|18 (noble gases)]] | + | |18=[[Noble gas|group 18 (noble gases)]] |
| − | | | + | |=[[Unnumbered groups in the periodic table|group n/a]]<!-- blank input --> |
| − | --> | + | |#default={{{group|}}}<!-- |
| − | -->}}}}}}</span>{{yesno|{{{predicted|no}}}|yes=&# | + | -->}}}}}}</span>{{yesno|{{{predicted|no}}}|yes= ''(predicted)''|no=}}<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 20:02, 30 July 2014
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 n/a | set by atomic number |
| 71, Lu | group n/a | Lu, 71: set by category=lanthanide |
| 89, Ac | group n/a | set by atomic number exception |
| 103, Lr | group 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 | unknown group | 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 | |
| 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. |