[go: nahoru, domu]

Jump to content

Template:Chembox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
close first if statement
fix preview warning
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<templatestyles src="Chembox/styles.css"/>
<templatestyles src="Chembox/styles.css"/>
<!--Shortdesc at the end-->{|class="infobox ib-chembox" {{#if:{{{width|}}}{{{style|}}}|style="{{#if:{{{width|}}}|width:{{{width|}}};}} {{#if:{{{style|}}}|{{{style}}}}}}}"<!--
<!--Shortdesc at the end-->{|class="infobox ib-chembox" {{#if:{{{width|}}}{{{style|}}}|style="{{#if:{{{width|}}}|width:{{{width|}}};}} {{#if:{{{style|}}}|{{{style}}}}}"}}<!--
TITLE -->
TITLE -->
|+ {{{Name|{{PAGENAME}}}}}{{{Reference|}}}{{{Chembox_ref|}}}
|+ {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAME}}}}{{{Reference|}}}{{{Chembox_ref|}}}
|- <!-- IMAGES -->
|- <!-- IMAGES -->
{{#if:{{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}}<!-- rows 4/7 checked -->
{{#if:{{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}}<!-- rows 4/7 checked -->
Line 11: Line 11:
|par_alt={{{ImageAlt|}}}
|par_alt={{{ImageAlt|}}}
|par_caption={{{ImageCaption|}}}
|par_caption={{{ImageCaption|}}}
|par_ref={{{ImageFile_Ref|}}} }}
|par_ref={{{ImageFile_Ref|}}}
|par_class={{{ImageClass|}}} }}
<!-- Row 2/7 -->{{Chembox image
<!-- Row 2/7 -->{{Chembox image
|par_file={{{ImageFile1|}}}
|par_file={{{ImageFile1|}}}
Line 18: Line 19:
|par_alt={{{ImageAlt1|}}}
|par_alt={{{ImageAlt1|}}}
|par_caption={{{ImageCaption1|}}}
|par_caption={{{ImageCaption1|}}}
|par_ref={{{ImageFile1_Ref|}}} }}
|par_ref={{{ImageFile1_Ref|}}}
|par_class={{{ImageClass1|}}} }}
<!-- Row 3/7 -->{{Chembox image sbs
<!-- Row 3/7 -->{{Chembox image sbs
|par_fileL={{{ImageFileL1|}}}
|par_fileL={{{ImageFileL1|}}}
Line 26: Line 28:
|par_captionL={{{ImageCaptionL1|}}}
|par_captionL={{{ImageCaptionL1|}}}
|par_refL={{{ImageFileL1_Ref|}}}
|par_refL={{{ImageFileL1_Ref|}}}
|par_classL={{{ImageClassL1|}}}
|par_fileR={{{ImageFileR1|}}}
|par_fileR={{{ImageFileR1|}}}
|par_titleR={{{ImageNameR1|}}}
|par_titleR={{{ImageNameR1|}}}
Line 32: Line 35:
|par_captionR={{{ImageCaptionR1|}}}
|par_captionR={{{ImageCaptionR1|}}}
|par_refR={{{ImageFileR1_Ref|}}}
|par_refR={{{ImageFileR1_Ref|}}}
|par_classR={{{ImageClassR1|}}}
|par_captionLR={{{ImageCaptionLR1|}}}}}<!-- new Nov 2017: caption for both images -->
|par_captionLR={{{ImageCaptionLR1|}}}}}<!-- new Nov 2017: caption for both images -->
<!-- Row 4/7 -->{{Chembox image
<!-- Row 4/7 -->{{Chembox image
Line 39: Line 43:
|par_alt={{{ImageAlt2|}}}
|par_alt={{{ImageAlt2|}}}
|par_caption={{{ImageCaption2|}}}
|par_caption={{{ImageCaption2|}}}
|par_ref={{{ImageFile2_Ref|}}} }}
|par_ref={{{ImageFile2_Ref|}}}
|par_class={{{ImageClass2|}}} }}
<!-- Row 5/7 -->{{Chembox image sbs
<!-- Row 5/7 -->{{Chembox image sbs
|par_fileL={{{ImageFileL2|}}}
|par_fileL={{{ImageFileL2|}}}
Line 47: Line 52:
|par_captionL={{{ImageCaptionL2|}}}
|par_captionL={{{ImageCaptionL2|}}}
|par_refL={{{ImageFileL2_Ref|}}}
|par_refL={{{ImageFileL2_Ref|}}}
|par_classL={{{ImageClassL2|}}}
|par_fileR={{{ImageFileR2|}}}
|par_fileR={{{ImageFileR2|}}}
|par_titleR={{{ImageNameR2|}}}
|par_titleR={{{ImageNameR2|}}}
Line 53: Line 59:
|par_captionR={{{ImageCaptionR2|}}}
|par_captionR={{{ImageCaptionR2|}}}
|par_refR={{{ImageFileR2_Ref|}}}
|par_refR={{{ImageFileR2_Ref|}}}
|par_classR={{{ImageClassR2|}}}
|par_captionLR={{{ImageCaptionLR2|}}} }}
|par_captionLR={{{ImageCaptionLR2|}}} }}
<!-- Row 6/7 -->{{Chembox image
<!-- Row 6/7 -->{{Chembox image
Line 60: Line 67:
|par_alt={{{ImageAlt3|}}}
|par_alt={{{ImageAlt3|}}}
|par_caption={{{ImageCaption3|}}}
|par_caption={{{ImageCaption3|}}}
|par_ref ={{{ImageFile3_Ref|}}} }}
|par_ref ={{{ImageFile3_Ref|}}}
|par_class={{{ImageClass3|}}} }}
<!-- Row 7/7 -->{{Chembox image sbs
<!-- Row 7/7 -->{{Chembox image sbs
|par_fileL={{{ImageFileL3|}}}
|par_fileL={{{ImageFileL3|}}}
Line 68: Line 76:
|par_captionL={{{ImageCaptionL3|}}}
|par_captionL={{{ImageCaptionL3|}}}
|par_refL={{{ImageFileL3_Ref|}}}
|par_refL={{{ImageFileL3_Ref|}}}
|par_classL={{{ImageClassL3|}}}
|par_fileR={{{ImageFileR3|}}}
|par_fileR={{{ImageFileR3|}}}
|par_titleR={{{ImageNameR3|}}}
|par_titleR={{{ImageNameR3|}}}
Line 74: Line 83:
|par_captionR={{{ImageCaptionR3|}}}
|par_captionR={{{ImageCaptionR3|}}}
|par_refR={{{ImageFileR3_Ref|}}}
|par_refR={{{ImageFileR3_Ref|}}}
|par_classR={{{ImageClassR3|}}}
|par_captionLR={{{ImageCaptionLR3|}}}
|par_captionLR={{{ImageCaptionLR3|}}}
}}
}}
Line 102: Line 112:
{{{Section8|}}}
{{{Section8|}}}
{{{Section9|}}}<!--
{{{Section9|}}}<!--
----- SUPPLEMENT -----
----- SUPPLEMENT (data page) ----- -->
{{Chembox Datapage check

TODO: what is {{{data_page|}}}? Should be {{{data page pagename|}}}?! (Jun2020) -->
| _targetpage={{#if:{{{data page pagename|}}}|{{{data page pagename|}}}|{{FULLPAGENAME}} (data page)}}
{{#ifexist:{{{data page pagename|{{if empty|{{{data_page|}}}|{{FULLPAGENAME}} (data page)}}}}}
| {{#ifeq:{{{data page pagename|}}}|none|<!-- suppress supplement -->|{{Chembox Supplement | _data page pagename={{{data page pagename|{{if empty|{{{data_page|}}}|{{FULLPAGENAME}} (data page)}}}}}}}}}
}}<!--
}}<!--
------ FOOTER -----
------ FOOTER -----
Line 160: Line 168:
|check
|check
|template=Template:Chembox
|template=Template:Chembox
|all= |opt= Reference= Chembox_ref= IUPACNames= IUPACName= ImageAlt1= ImageAlt2= ImageAlt3= ImageAltL1= ImageAltL2= ImageAltL3= ImageAltR1= ImageAltR2= ImageAltR3= ImageAlt= ImageCaption1= ImageCaption2= ImageCaption3= ImageCaptionL1= ImageNameR1= ImageCaptionL2= ImageCaptionL3= ImageCaptionR1= ImageCaptionR2= ImageCaptionR3= ImageCaptionLR1= ImageCaptionLR2= ImageCaptionLR3= ImageCaption= ImageFile1_Ref= ImageFile1= ImageFile2_Ref= ImageFile2= ImageFile3_Ref= ImageFile3= ImageFileL1_Ref= ImageFileL1= ImageFileL2_Ref= ImageFileL2= ImageFileL3_Ref= ImageFileL3= ImageFileR1_Ref= ImageFileR1= ImageFileR2_Ref= ImageFileR2= ImageFileR3_Ref= ImageFileR3= ImageFile_Ref= ImageFile= ImageName1= ImageName2= ImageName3= ImageNameL1= ImageNameL2= ImageNameL3= ImageNameR2= ImageNameR3= ImageName= ImageSize1= ImageSize2= ImageSize3= ImageSizeL1= ImageSizeL2= ImageSizeL3= ImageSizeR1= ImageSizeR2= ImageSizeR3= ImageSize= Name= OtherNames= pronounce= PIN= Section1= Section2= Section3= Section4= Section5= Section6= Section7= Section8= Section9= SystematicName= Verifiedfields= Watchedfields= verifiedrevid= Verifiedimages= data page pagename= general_note= show_infobox_ref= show_ss_note= show_footer= style= width= container_only=
|all= |opt= Reference= Chembox_ref= IUPACNames= IUPACName= ImageAlt1= ImageAlt2= ImageAlt3= ImageAltL1= ImageAltL2= ImageAltL3= ImageAltR1= ImageAltR2= ImageAltR3= ImageAlt= ImageCaption1= ImageCaption2= ImageCaption3= ImageCaptionL1= ImageNameR1= ImageCaptionL2= ImageCaptionL3= ImageCaptionR1= ImageCaptionR2= ImageCaptionR3= ImageCaptionLR1= ImageCaptionLR2= ImageCaptionLR3= ImageCaption= ImageFile1_Ref= ImageFile1= ImageFile2_Ref= ImageFile2= ImageFile3_Ref= ImageFile3= ImageFileL1_Ref= ImageFileL1= ImageFileL2_Ref= ImageFileL2= ImageFileL3_Ref= ImageFileL3= ImageFileR1_Ref= ImageFileR1= ImageFileR2_Ref= ImageFileR2= ImageFileR3_Ref= ImageFileR3= ImageFile_Ref= ImageFile= ImageName1= ImageName2= ImageName3= ImageNameL1= ImageNameL2= ImageNameL3= ImageNameR2= ImageNameR3= ImageName= ImageSize1= ImageSize2= ImageSize3= ImageSizeL1= ImageSizeL2= ImageSizeL3= ImageSizeR1= ImageSizeR2= ImageSizeR3= ImageSize= ImageClass= ImageClass1= ImageClass2= ImageClass3= ImageClassL1= ImageClassR1= ImageClassL2= ImageClassR2= ImageClassL3= ImageClassR3= Name= OtherNames= pronounce= PIN= Section1= Section2= Section3= Section4= Section5= Section6= Section7= Section8= Section9= SystematicName= Verifiedfields= Watchedfields= verifiedrevid= Verifiedimages= data page pagename= general_note= show_infobox_ref= show_ss_note= show_footer= style= width= container_only=


|cat=Pages using Chembox with unknown parameters
|cat=Pages using Chembox with unknown parameters

Latest revision as of 17:36, 17 May 2024

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