Jump to content

User talk:Eddideigel/Element-template

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This template is intended to make coding of infoboxes in chemical element articles easier.

NOTE: The template has not been fully tested and may go through several changes before it is ready for routine use. It should not be used on main namespace articles until it has been tested and released, which will be specifically noted on this talk page. In the mean time, testing may be performed on individual users' personal pages.

Instructions on how to use the template

[edit]

When using the template, one must forward the element properties as variables to the template. The variables have names such as Element_name, Chemical_symbol, etc. Most of the variable names are immediately visible on the template page, but for a full overview of variables and their use, see below.

One example of using the template is given at User:Eddideigel/Fantasticum. This example includes, among other things:

{{User:Eddideigel/Element-template | 
Element_name = Fantasticum |
Chemical_symbol = Fa |
Atomic_number = 1 |
Image_1 = H-TableImage.png |
Chemical_series = Nonmetal |
Block = s |
Density = 0.0899 |
... Title_color = #a0ffa0 |
Ionization_potential = 1312 |
Isotope_table =
<tr> <td>¹Fa <td>'''99.985%''' <td>stable <td>n.a. <td>n.a. <td>n.a. </tr>
<tr> <td>[[Deuterium|²Fa]] <td>0.015% <td>stable <td>n.a. <td>n.a. <td>n.a. </tr>
<tr> <td>[[Tritium|³Fa]] <td>10<sup>−15</sup> – 10<sup>−16</sup> % <td>12.33 [[year]]s
<td>[[Beta emission|β]]<sup>−</sup> <td>0.019 <td>[[Helium|³He]] </tr>
}}

The variables may be defined in any order inside the {{User:Eddideigel/Element-template | ...}} template brackets. Empty space may be used to align text, but this is not important. Variables that are unknown, or just not filled in yet, should be defined as blank to avoid too much garbage in the output.

There are a few potholes, including Title_color (title background turns black if undefined), Ionization_potential (may be difficult in case of multiple potentials), and Isotope_table (may be difficult to fill in, but the result looks good when filled in properly). For further details see below.

Overview of variables

[edit]

(...not finished...)

Discussion

[edit]

I think there should be a single template for chemical elements, and so I made this one from several others. (They were called Template:Chemical element infobox begin, Template:Chemical element infobok entry, etc.) For testing of the template, see User:Eddideigel/Fantasticum. Comments and suggestions are very welcome. --Eddi (Talk) 02:39, 1 Mar 2005 (UTC)