Template:PropList: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Peter Schmitt
(Property list for chemistry)
 
m (Text replacement - "Elemental Class" to "Periodic table of elements")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="align:right; z-index:3;">
{| border="0" width="360" align="right" cellpadding="0" cellspacing="0" style="wrap=no"
{| border="0" width="360" align="right" cellpadding="0" cellspacing="0" style="wrap=no"
|width=100%|
|width=100%|
{| class = "wikitable" align="right" style="font-size:85%;"
{| class = "wikitable" align="right" style="font-size:85%;"
|+ <font size=3px> Properties </font>
|+ <font size=3px> {{{Title|Properties}}} </font>
! width=120px|Property!! Width=185px|Value
! {{#if:{{{wdP|}}}|width={{{wdP}}}px}} | Property !! {{#if:{{{wdV|}}}|width={{{wdV}}}px}} | Value {{#ifeq:{{{}}}|atom|&nbsp;
|-
| '''Common name''' || {{{N|}}}
|-
| '''IUPAC name'''  || {{{I|}}}
|-
| '''CAS number'''  || {{{C|}}}
|-
| '''Molecular formula''' || {{{F|}}}{{#if:{{{m|}}}|&nbsp;
{{!}}-
{{!}}-
{{!}} '''[[Molecular mass]]''' {{!}}{{!}} {{{m}}} }}{{#if:{{{d|}}}|&nbsp;
{{!}} '''Common name''' {{!}}{{!}} {{{N|}}}
{{!}}-
{{!}} '''[[Atomic symbol]]'''  {{!}}{{!}} {{{F|}}}
{{!}}-
{{!}} '''[[Atomic number]]'''  {{!}}{{!}} {{{A|}}}
{{!}}-
{{!}} '''[[Atomic mass]]''' {{!}}{{!}} {{{M|}}}
{{!}}-
{{!}} '''Standard phase'''  {{!}}{{!}} {{{P|}}}
{{!}}-
{{!}} '''[[Periodic table of elements]]'''  {{!}}{{!}} {{{|}}}
{{!}}-
{{!}} '''Electronegativity'''  {{!}}{{!}} {{{E|}}} }}{{#ifeq:{{{}}}|compound|&nbsp;
{{!}}-
{{!}}-
{{!}} '''[[Density]]''' {{!}}{{!}} {{{d}}} }} {{#if:{{{b|}}}|&nbsp;
{{!}} '''Common name''' {{!}}{{!}} {{{N|}}}
{{!}}-
{{!}} '''IUPAC name'''  {{!}}{{!}} {{{I|}}}
{{!}}-
{{!}} '''CAS number'''  {{!}}{{!}} {{{C|}}}
{{!}}-
{{!}} '''Molecular formula''' {{!}}{{!}} {{{F|}}} }}{{#if:{{{M|}}}|&nbsp;
{{!}}-
{{!}}-
{{!}} '''[[Boiling point]]''' {{!}}{{!}} {{{b}}} }}{{#if:{{{s|}}}|&nbsp;
{{!}} '''[[Molecular mass]]''' {{!}}{{!}} {{{M}}} }}{{#if:{{{B|}}}|&nbsp;
{{!}}-
{{!}}-
{{!}} '''[[Specific heat]]''' {{!}}{{!}} {{{s}}} }}{{#if:{{{1|}}}|&nbsp;
{{!}} '''[[Boiling point]]''' {{!}}{{!}} {{{B}}} }}{{#if:{{{D|}}}|&nbsp;
{{!}}-
{{!}} '''[[Density]]''' {{!}}{{!}} {{{D}}} }} {{#if:{{{S|}}}|&nbsp;
{{!}}-
{{!}} '''[[Specific heat]]''' {{!}}{{!}} {{{S}}} }}{{#if:{{{1|}}}|&nbsp;
{{!}}-
{{!}}-
{{!}} '''{{{1}}}''' {{!}}{{!}} {{{2}}} }}{{#if:{{{3|}}}|&nbsp;
{{!}} '''{{{1}}}''' {{!}}{{!}} {{{2}}} }}{{#if:{{{3|}}}|&nbsp;
Line 41: Line 54:
|}
|}
|}
|}
</div>
<noinclude>{{TlDoc}}</noinclude>
<noinclude>{{TlDoc}}</noinclude>

Latest revision as of 05:50, 6 March 2024

Properties
Property Value
This documentation is transcluded from Template:PropList/doc (edit | history)

Template for property lists in chemistry. Not yet finished.

There are three types of arguments:

  • Requested argument: will always be included in the list, even if no value given
  • Optional argument: will be only shown if a value is given

These two arguments are given by name and will be shown in a predetermined order (independent of where they are included).

  • Free arguments: Pairs "property value" can be added. They will be listed at the end of the table, in the order given. Currently up to 9 such pairs are possible.

There are two variants of the table, one for chemical elements, the other for compounds chosen by setting the argument " " (empty name):

  • " | = atom "
  • " | = compound "
  • default is a table without requested arguments (equivalent to " | = "

Currently N,F,A,M,P,C,E are requested for atoms, and N,I,C,F for compounds. M,B,D,S are optional arguments meant for compounds, but also available for atoms (except M).

In addition to the arguments defining the entries for the table, there are optional arguments for the layout of the table:

  • The title of the table can be changed using the optional argument Title.
  • The column widths can be set (in px) using the optional arguments wdP (first column: "property") and wdV (second column: "value").
    (This option should be used with care since it might cause wrapping.)

Usage

 {{PropList 
 | = compound
 | N = "Common name"                                                            
 | I = "IUPAC name"
 | C = "CAS number"
 | F = "Molecular formula"
 | M = "Molecular mass"
 | B = "Boiling point"
 | D = "Density"
 | S = "Specific heat"
 | "Other property 1" | "value"
    ...
 | "Other property 9" | "value"
 | wdP = "width of first column in px"
 | Title = "Alternative title"
 | wdV = "width of second column in px"
 }}

 {{PropList 
 | = atom 
 | N = "Common name"                                                            
 | F = "Atomic symbol"
 | A = "Atomic number"
 | M = "Atomic mass"
 | P = "Standard phase"
 | C = "Periodic table of elements"
 | E = "Electronegativity"
 | D = "Density"
 | B = "Boiling point"
 | "Other property 1" | "value"
    ...
 | "Other property 9" | "value"
 | wdP = "width of first column in px" | wdV = "width of second column in px" 
 | Title = "Alternative title"
 }}

 {{PropList
 | Title = "Alternative title"
 | M = "Molecular mass"
 | B = "Boiling point"
 | D = "Density"
 | S = "Specific heat"
 | "Other property 1" | "value"
    ...
 | "Other property 9" | "value"
 | wdP = "width of first column in px"
 | wdV = "width of second column in px"
 }}

Example

{{PropList 
| = compound 
| N = water 
| I = oxidane  
| F = H<sub>2</sub>O
| B = 373.15 K (100 °C) at 1 atm
| M = 18.0153 g/mol
| D = 0.998 g/ml for liquid at 20 °C, 1 atm
| Critical point | 647 K (374 °C), 22.1 MPa
| Melting point | 273.15 K (0 °C)
| [[Specific heat]], c<sub>p</sub> | 4.184 J/(g·K) for liquid at 20 °C
| Heat of vaporization | 2257 J/g for liquid at 100 °C
| Heat of fusion | 333.55 J/kg for solid (ice) at 0 °C
| Viscosity | 0.001 Pa·s for liquid at 20 °C
| Refractive index| 1.333 for liquid at 20 °C
| wdV = 185
}}
Properties
Property Value  
Common name water
IUPAC name oxidane
CAS number
Molecular formula H2
Molecular mass 18.0153 g/mol 
Boiling point 373.15 K (100 °C) at 1 atm 
Density 0.998 g/ml for liquid at 20 °C, 1 atm  
Critical point 647 K (374 °C), 22.1 MPa 
Melting point 273.15 K (0 °C) 
Specific heat, cp 4.184 J/(g·K) for liquid at 20 °C 
Heat of vaporization 2257 J/g for liquid at 100 °C 
Heat of fusion 333.55 J/kg for solid (ice) at 0 °C 
Viscosity 0.001 Pa·s for liquid at 20 °C 
Refractive index 1.333 for liquid at 20 °C


{{PropList
| = atom
| N = oxygen
| F = O
| A = 8
| M = 15.9994
| P = gas
| C = non-metal
| E = 3.44
| D = 1.429 kg/m3*
| B = -182.962°C*
}}
Properties
Property Value  
Common name oxygen
Atomic symbol O
Atomic number 8
Atomic mass 15.9994
Standard phase gas
Periodic table of elements atom
Electronegativity 3.44 
Molecular mass 15.9994 
Boiling point -182.962°C* 
Density 1.429 kg/m3*


{{PropList
| Title = Other properties 
| Name   |oxygen
| Symbol | O
| mass   |
|   | non-metal
|   | 
| wdP = 70 | wdV = 70
}}


Other properties
Property Value  
Name oxygen 
Symbol
mass  
  non-metal