Difference between revisions of "Template:Chembox Supplement"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(Allow setting the data page name (to overwrite pagename). Wikipedia_talk:Chemical_infobox#Chembox_code_update_27_March_2014)
imported>DePiep
(Update Template:Chembox suite templates per WT:Chembox changes c.s.)
Line 1: Line 1:
{{#ifexist:{{{data page pagename|{{PAGENAME}} (data page)}}}|! {{Chembox header}} {{!}} [[{{{data page pagename|{{PAGENAME}} (data page)}}}|Supplementary data page]]
+
{{#if:{{{OtherAnions|}}}{{{OtherCations|}}}{{{Function|}}}{{{OtherFunction_label|}}}{{{OtherFunctn|}}}{{{OtherFunction|}}}{{{OtherCpds|}}}{{{OtherCompounds|}}}
{{!}}-
+
| {{Chembox headerbar
{{!}} [[{{{data page pagename|{{PAGENAME}} (data page)}}}#Structure and properties|Structure and<br/>properties]]
+
|header=Related compounds
{{!}} [[Refractive index|''n'']], [[Dielectric constant|ε<sub>r</sub>]], etc.
+
|addcats=<!--
{{!}}-
+
-->{{#ifeq:{{{1|¬PresenT}}}|¬PresenT
{{!}} [[{{{data page pagename|{{PAGENAME}} (data page)}}}#Thermodynamic properties|Thermodynamic<br/>data]]
+
||[[Category:Chemical infoboxes with tracked parameters|3*]] }}<!--
{{!}} Phase behaviour<br>Solid, liquid, gas
+
-->{{#if:{{{Function|}}}{{{OtherFunctn|}}}{{{OtherCpds|}}}
{{!}}-
+
|[[Category:Chemical infoboxes with misplaced or deprecated parameters|O*other]]}}<!--
{{!}} [[{{{data page pagename|{{PAGENAME}} (data page)}}}#Spectral data|Spectral data]]
+
-->}}
{{!}} [[UV/VIS spectroscopy|UV]], [[Infrared spectroscopy|IR]], [[NMR spectroscopy|NMR]], [[Mass spectrometry|MS]]
+
{{#if:{{{OtherAnions|}}} |{{Chembox OtherAnions |otherAnions={{{OtherAnions|}}} }}}}
{{!}}- }}<noinclude>{{documentation}}</noinclude>
+
{{#if:{{{OtherCations|}}} |{{Chembox OtherCations |otherCations={{{OtherCations|}}} }}}}
 +
{{#if:{{{OtherFunctn|}}}{{{OtherFunction|}}} |{{Chembox OtherFunctn |otherFunction={{{OtherFunctn|}}}&#x20;{{{OtherFunction|}}} |otherFunction_label={{{Function|}}}&#x20;{{{OtherFunction_label|}}} }}}}
 +
{{#if:{{{OtherCpds|}}}{{{OtherCompounds|}}} |{{Chembox OtherCpds |otherCompounds={{{OtherCpds|}}}&#x20;{{{OtherCompounds|}}} }}}}<!--
 +
-->}}<noinclude>{{documentation}}</noinclude>

Revision as of 11:35, 6 February 2015

Usage

This box is used as a module in the {{Chembox}}. This template does not have any parameters, it only shows output if page "{{pagename}} (data page)" exists. See the example below for Ammonia, where Ammonia (data page) exists.

Example

Chembox Supplement
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
Infobox references

Subtemplates used

  • None

By default, the name for the data page is [[<pagename> (data page)]]. So for ammonia, that is Ammonia (data page).

In some situations it may be needed to overwrite that default name:

|data page pagename=Some other page. (This option is used on this documentation. Otherwise this page would look for the default pagename Chembox Supplement (data page)).

See also

Template:Navbox Chembox