Difference between revisions of "Template:Chembox"
From Self-sufficiency
(add PIN-possibility) |
(Line breaks for image cats) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <includeonly>{| class="infobox bordered" style="border-collapse: collapse; width: {{#if:{{{BoxWidth|}}}|{{{BoxWidth}}}|{{#if:{{{width|}}}|{{{width}}}|22em}} }}; font-size: 88%" |
− | + | {{#ifeq:{{{{{|safesubst:}}}issubst}}|yes| | |
+ | ! colspan=2 style="font-size: 150%; color: red" {{!}} Please do not [[WP:SUBST|substitute this template]]. Please hit the "back" button on your browser and remove <code>subst:</code> from the template call. | ||
+ | {{!}}- | ||
+ | }} | ||
! colspan=2 style="background-color: #f8eaba; text-align: center; font-size: 125%" | {{#if:{{{Name|}}}|{{{Name}}}|{{PAGENAME}}}}{{#if:{{{Reference|}}}|{{{Reference}}} }} | ! colspan=2 style="background-color: #f8eaba; text-align: center; font-size: 125%" | {{#if:{{{Name|}}}|{{{Name}}}|{{PAGENAME}}}}{{#if:{{{Reference|}}}|{{{Reference}}} }} | ||
|- | |- | ||
Line 10: | Line 13: | ||
{{Chembox image|par_name={{#if:{{{ImageName3|}}}|{{{ImageName3}}} }} |par_value={{#if:{{{ImageFile3|}}}|{{{ImageFile3}}} }}|par_size={{px|{{{ImageSize3|}}}|200px}} |par_alt={{{ImageAlt3|}}} }} | {{Chembox image|par_name={{#if:{{{ImageName3|}}}|{{{ImageName3}}} }} |par_value={{#if:{{{ImageFile3|}}}|{{{ImageFile3}}} }}|par_size={{px|{{{ImageSize3|}}}|200px}} |par_alt={{{ImageAlt3|}}} }} | ||
{{Chembox image sbs|par_nameL={{#if:{{{ImageNameL2|}}}|{{{ImageNameL2}}} }} |par_valueL={{#if:{{{ImageFileL2|}}}|{{{ImageFileL2}}} }}|par_sizeL={{px|{{{ImageSizeL2|}}}|100px}} | par_styleL={{#if:{{{ImageStyleL2|}}}|{{{ImageStyleL2}}} }} |par_altL={{{ImageAltL2|}}} |par_altR={{{ImageAltR2|}}} | par_styleR={{#if:{{{ImageStyleR2|}}}|{{{ImageStyleR2}}} }} | par_nameR={{#if:{{{ImageNameR2|}}}|{{{ImageNameR2}}} }} |par_valueR={{#if:{{{ImageFileR2|}}}|{{{ImageFileR2}}} }}|par_sizeR={{px|{{{ImageSizeR2|}}}|100px}} }} | | {{Chembox image sbs|par_nameL={{#if:{{{ImageNameL2|}}}|{{{ImageNameL2}}} }} |par_valueL={{#if:{{{ImageFileL2|}}}|{{{ImageFileL2}}} }}|par_sizeL={{px|{{{ImageSizeL2|}}}|100px}} | par_styleL={{#if:{{{ImageStyleL2|}}}|{{{ImageStyleL2}}} }} |par_altL={{{ImageAltL2|}}} |par_altR={{{ImageAltR2|}}} | par_styleR={{#if:{{{ImageStyleR2|}}}|{{{ImageStyleR2}}} }} | par_nameR={{#if:{{{ImageNameR2|}}}|{{{ImageNameR2}}} }} |par_valueR={{#if:{{{ImageFileR2|}}}|{{{ImageFileR2}}} }}|par_sizeR={{px|{{{ImageSizeR2|}}}|100px}} }} | | ||
− | {{#ifexist: | + | {{#ifexist:File:{{PAGENAME}}.svg|[[Category:Chemical pages containing a local image]] |
− | {{#ifexist: | + | {{Chembox image|par_name=ImageFile|par_value={{PAGENAME}}.svg|par_size={{px|{{{ImageSize|}}}|200px}}|par_alt={{{ImageAlt|}}}}} | |
− | {{#ifexist: | + | {{#ifexist:File:{{PAGENAME}}.png|[[Category:Chemical pages containing a local image]] |
− | {{#ifexist: | + | {{Chembox image|par_name=ImageFile|par_value={{PAGENAME}}.png|par_size={{px|{{{ImageSize|}}}|200px}}|par_alt={{{ImageAlt|}}}}} | |
+ | {{#ifexist:File:{{PAGENAME}}.gif|[[Category:Chemical pages containing a local image]] | ||
+ | {{Chembox image|par_name=ImageFile|par_value={{PAGENAME}}.gif|par_size={{px|{{{ImageSize|}}}|200px}}|par_alt={{{ImageAlt|}}}}} | | ||
+ | {{#ifexist:File:{{PAGENAME}}.jpg|[[Category:Chemical pages containing a local image]] | ||
+ | {{Chembox image|par_name=ImageFile|par_value={{PAGENAME}}.jpg|par_size={{px|{{{ImageSize|}}}|200px}}|par_alt={{{ImageAlt|}}}}} | | ||
{{#ifeq: {{NAMESPACE}} | {{ns:0}} | [[Category:Chemical pages needing a structure drawing]] }} }} }} }} }} | {{#ifeq: {{NAMESPACE}} | {{ns:0}} | [[Category:Chemical pages needing a structure drawing]] }} }} }} }} }} | ||
}} | }} | ||
+ | {{#ifexist:File:{{{ImageFile1|}}}|[[Category:Chemical pages containing a local image]]}}{{#ifexist:File:{{{ImageFile2|}}}|[[Category:Chemical pages containing a local image]]}}{{#ifexist:File:{{{ImageFile3|}}}|[[Category:Chemical pages containing a local image]]}}{{#ifexist:File:{{{ImageFile4|}}}|[[Category:Chemical pages containing a local image]]}}{{#ifexist:File:{{{ImageFileL1|}}}|[[Category:Chemical pages containing a local image]]}}{{#ifexist:File:{{{ImageFileR1|}}}|[[Category:Chemical pages containing a local image]]}}{{#ifexist:File:{{{ImageFileL2|}}}|[[Category:Chemical pages containing a local image]]}}{{#ifexist:File:{{{ImageFileR2|}}}|[[Category:Chemical pages containing a local image]]}}{{#ifexist:File:{{{ImageFile|}}}|[[Category:Chemical pages containing a local image]]}} | ||
{{Chembox entry|par_name={{#if:{{{IUPACName|}}}|IUPACName }} |par_value={{#if:{{{IUPACName|}}}|{{{IUPACName}}} }}|par_value1={{#if:{{{IUPACName_hidden|}}}|{{{IUPACName_hidden|}}}}} }} | {{Chembox entry|par_name={{#if:{{{IUPACName|}}}|IUPACName }} |par_value={{#if:{{{IUPACName|}}}|{{{IUPACName}}} }}|par_value1={{#if:{{{IUPACName_hidden|}}}|{{{IUPACName_hidden|}}}}} }} | ||
{{Chembox entry|par_name={{#if:{{{PIN|}}}|PIN }} |par_value={{#if:{{{PIN|}}}|{{{PIN}}} }}|par_value1={{#if:{{{PIN_hidden|}}}|{{{PIN_hidden|}}}}} }} | {{Chembox entry|par_name={{#if:{{{PIN|}}}|PIN }} |par_value={{#if:{{{PIN|}}}|{{{PIN}}} }}|par_value1={{#if:{{{PIN_hidden|}}}|{{{PIN_hidden|}}}}} }} | ||
Line 35: | Line 43: | ||
{{{Section14|}}} | {{{Section14|}}} | ||
{{{Section15|}}} | {{{Section15|}}} | ||
− | {{#if:{{{Formula|}}}{{{MolarMass|}}}{{{CASNo|}}}{{{Density|}}}{{{Solubility|}}}{{{Solvent|}}}{{{MeltingPt|}}}{{{BoilingPt|}}}{{{LogP|}}}{{{VaporPressure|}}}{{{HenryConstant|}}}{{{AtmosphericOHRateConstant|}}}{{{pKa|}}}{{{pKb|}}}{{{IsoelectricPt|}}}{{{DeltaHf|}}}{{{DeltaHc|}}}{{{EINECS|}}}{{{EINECSCASNO|}}}{{{PubChem|}}}{{{IUPHAR_ligand|}}}{{{SMILES|}}}{{{InChI|}}}|[[Category:Chemical infoboxes with misplaced or deprecated parameters]]}} | + | {{#if:{{{Formula|}}}{{{MolarMass|}}}{{{CASNo|}}}{{{Density|}}}{{{Solubility|}}}{{{Solvent|}}}{{{MeltingPt|}}}{{{BoilingPt|}}}{{{LogP|}}}{{{VaporPressure|}}}{{{HenryConstant|}}}{{{AtmosphericOHRateConstant|}}}{{{pKa|}}}{{{pKb|}}}{{{IsoelectricPt|}}}{{{DeltaHf|}}}{{{DeltaHc|}}}{{{EINECS|}}}{{{EINECSCASNO|}}}{{{PubChem|}}}{{{IUPHAR_ligand|}}}{{{SMILES|}}}{{{InChI|}}}|{{user other||[[Category:Chemical infoboxes with misplaced or deprecated parameters]]}}}} |
{{Chembox Supplement}} | {{Chembox Supplement}} | ||
| colspan=2 style="background-color: #f8eaba; text-align: center" | {{Chembox verification|Verifiedfields={{{Verifiedfields|}}}|Watchedfields={{{Watchedfields|}}}|verifiedrevid={{{verifiedrevid|}}}}}Except where noted otherwise, data are given for materials in their [[standard state|standard state (at 25 °C, 100 kPa)]] | | colspan=2 style="background-color: #f8eaba; text-align: center" | {{Chembox verification|Verifiedfields={{{Verifiedfields|}}}|Watchedfields={{{Watchedfields|}}}|verifiedrevid={{{verifiedrevid|}}}}}Except where noted otherwise, data are given for materials in their [[standard state|standard state (at 25 °C, 100 kPa)]] | ||
Line 41: | Line 49: | ||
| colspan=2 style="background-color: #f8eaba; text-align: center" | [[Wikipedia:Chemical infobox#References|Infobox references]] | | colspan=2 style="background-color: #f8eaba; text-align: center" | [[Wikipedia:Chemical infobox#References|Infobox references]] | ||
|- | |- | ||
− | |}<noinclude> | + | |}</includeonly><noinclude>{{documentation}}</noinclude> |
− | {{documentation}} | + | |
− | </noinclude> | + | |
− | + |
Latest revision as of 01:19, 16 September 2010
[edit]
Documentation