Template:Chembox: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
m (1 revision imported)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|class="infobox bordered" style="border-collapse:collapse; margin-top:2px; width:{{{width|22em}}}; text-align:left; {{{style|}}};"
{|class="infobox bordered" style="border-collapse:collapse; width:{{{width|22em}}}; text-align:left; {{{style|}}};"<!--
{{#ifeq:{{{{{ |safesubst:}}}issubst}} |yes |
TITLE -->
! 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="text-align:center;" |{{#if:{{{Name|}}} |{{{Name}}}
{{!}}-
|{{PAGENAME}}}}{{{Reference|}}}{{{Chembox_ref|}}}
}}<!-- TITLE -->
|+ colspan=2 style="text-align:center;" |{{#if:{{{Name|}}} |{{{Name}}} |{{PAGENAME}}}}{{{Reference|}}}
|- <!-- IMAGES -->
|- <!-- IMAGES -->
{{#if:{{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}}
{{#if:{{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}}<!-- rows 4/7 checked -->
|<!-- Row 1/9 -->{{Chembox image
|<!-- Row 1/7 -->{{Chembox image
|par_file={{{ImageFile|}}}
|par_file={{{ImageFile|}}}
|par_title={{{ImageName|}}}
|par_title={{{ImageName|}}}
Line 14: Line 12:
|par_caption={{{ImageCaption|}}}
|par_caption={{{ImageCaption|}}}
|par_ref={{{ImageFile_Ref|}}} }}
|par_ref={{{ImageFile_Ref|}}} }}
<!-- Row 2/9 -->{{Chembox image
<!-- Row 2/7 -->{{Chembox image
|par_file={{{ImageFile1|}}}<!-- par_file, not par_value any more -->
|par_file={{{ImageFile1|}}}
|par_title={{{ImageName1|}}}
|par_title={{{ImageName1|}}}
|par_size={{{ImageSize1|}}}
|par_size={{{ImageSize1|}}}
Line 21: Line 19:
|par_caption={{{ImageCaption1|}}}
|par_caption={{{ImageCaption1|}}}
|par_ref={{{ImageFile1_Ref|}}} }}
|par_ref={{{ImageFile1_Ref|}}} }}
<!-- Row 3/9 -->{{Chembox image sbs
<!-- Row 3/7 -->{{Chembox image sbs
|par_fileL={{{ImageFileL1|}}}
|par_fileL={{{ImageFileL1|}}}
|par_titleL={{{ImageNameL1|}}}
|par_titleL={{{ImageNameL1|}}}
Line 33: Line 31:
|par_altR={{{ImageAltR1|}}}
|par_altR={{{ImageAltR1|}}}
|par_captionR={{{ImageCaptionR1|}}}
|par_captionR={{{ImageCaptionR1|}}}
|par_refR={{{ImageFileR1_Ref|}}} }}
|par_refR={{{ImageFileR1_Ref|}}}
<!-- Row 4/9 -->{{Chembox image sbs
|par_captionLR={{{ImageCaptionLR1|}}}}}<!-- new Nov 2017 (dev): caption both images -->
<!-- Row 4/7 -->{{Chembox image
|par_file={{{ImageFile2|}}}
|par_title={{{ImageName2|}}}
|par_size={{{ImageSize2|}}}
|par_alt={{{ImageAlt2|}}}
|par_caption={{{ImageCaption2|}}}
|par_ref={{{ImageFile2_Ref|}}} }}
<!-- Row 5/7 -->{{Chembox image sbs
|par_fileL={{{ImageFileL2|}}}
|par_fileL={{{ImageFileL2|}}}
|par_titleL={{{ImageNameL2|}}}
|par_titleL={{{ImageNameL2|}}}
Line 46: Line 52:
|par_altR={{{ImageAltR2|}}}
|par_altR={{{ImageAltR2|}}}
|par_captionR={{{ImageCaptionR2|}}}
|par_captionR={{{ImageCaptionR2|}}}
|par_refR={{{ImageFileR2_Ref|}}} }}
|par_refR={{{ImageFileR2_Ref|}}}
<!-- Row 5/9 -->{{Chembox image
|par_captionLR={{{ImageCaptionLR2|}}} }}
|par_file={{{ImageFile2|}}}
<!-- Row 6/7 -->{{Chembox image
|par_title={{{ImageName2|}}}
|par_size={{{ImageSize2|}}}
|par_alt={{{ImageAlt2|}}}
|par_caption={{{ImageCaption2|}}}
|par_ref={{{ImageFile2_Ref|}}} }}
<!-- Row 6/9 -->{{Chembox image
|par_file={{{ImageFile3|}}}
|par_file={{{ImageFile3|}}}
|par_title={{{ImageName3|}}}
|par_title={{{ImageName3|}}}
Line 61: Line 61:
|par_caption={{{ImageCaption3|}}}
|par_caption={{{ImageCaption3|}}}
|par_ref ={{{ImageFile3_Ref|}}} }}
|par_ref ={{{ImageFile3_Ref|}}} }}
<!-- Row 7/9 -->{{Chembox image sbs
<!-- Row 7/7 -->{{Chembox image sbs
|par_fileL={{{ImageFileL3|}}}
|par_fileL={{{ImageFileL3|}}}
|par_titleL={{{ImageNameL3|}}}
|par_titleL={{{ImageNameL3|}}}
Line 73: Line 73:
|par_altR={{{ImageAltR3|}}}
|par_altR={{{ImageAltR3|}}}
|par_captionR={{{ImageCaptionR3|}}}
|par_captionR={{{ImageCaptionR3|}}}
|par_refR={{{ImageFileR3_Ref|}}} }}
|par_refR={{{ImageFileR3_Ref|}}}
<!-- Row 8/9 -->{{Chembox image sbs
|par_captionLR={{{ImageCaptionLR3|}}}
|par_fileL={{{ImageFileL4|}}}
}}
|par_titleL={{{ImageNameL4|}}}
<!--
|par_sizeL={{{ImageSizeL4|}}}
ImageCaptionAll: new Mar 2017
|par_altL={{{ImageAltL4|}}}
-->
|par_captionL={{{ImageCaptionL4|}}}
{{#if:{{{ImageCaptionAll|}}} |{{Chembox image caption all |par_caption={{{ImageCaptionAll}}} }}}}<!--
|par_refL={{{ImageFileL4_Ref|}}}
-->}}<!--
|par_fileR={{{ImageFileR4|}}}
  NAMES ----- -->
|par_titleR={{{ImageNameR4|}}}
{{#if:{{{OtherNames|}}}{{{IUPACName|}}}{{{IUPACNames|}}}{{{PIN|}}}{{{SystematicName|}}}|
|par_sizeR={{{ImageSizeR4|}}}
{{Chembox AllOtherNames
|par_altR={{{ImageAltR4|}}}
|ref={{{Names_ref|}}}
|par_captionR={{{ImageCaptionR4|}}}
|pronounce={{{pronounce|}}}
|par_refR={{{ImageFileR4_Ref|}}} }}
|IUPACName={{{IUPACName|}}} {{{IUPACNames|}}}<!-- plural indicated by editor -->
<!-- Row 9/9 -->{{Chembox image
|par_file={{{ImageFile4|}}}
|par_title={{{ImageName4|}}}
|par_size={{{ImageSize4|}}}
|par_alt={{{ImageAlt4|}}}
|par_caption={{{ImageCaption4|}}}
|par_ref={{{ImageFile4_Ref|}}}}}
|<!-- No ImageFile entered for rows 1-4; row 5+ cannot be initial image -->
 
{{!}}-
{{!}} colspan=2 style="line-height:1px;" {{!}}<!-- no image, we need a border-top -->
{{!}}-
 
}}<!--
  TEXTUAL VALUES ----- -->
{{#if:{{{OtherNames|}}}{{{IUPACName|}}}{{{IUPACNames|}}}{{{PIN|}}}{{{SystematicName|}}}
| {{Chembox headerbar|header=Other names}}
<!-- and -->
{{Chembox AllOtherNames |
|OtherNames={{{OtherNames|}}}
|IUPACName={{{IUPACName|}}}
|IUPACNames={{{IUPACNames|}}}<!-- plural indicated by editor -->
|PIN={{{PIN|}}}
|PIN={{{PIN|}}}
|SystematicName={{{SystematicName|}}}
|SystematicName={{{SystematicName|}}}
|countIUPACnames={{#if:{{{IUPACNames|}}}|99|{{#ifeq:{{#invoke:String |match |s=_{{{IUPACName|}}} |pattern=%<br%s*%/?%s*%> |nomatch=_NO_BREAK_|plain=false|ignore_errors=false}}|_NO_BREAK_|0|9}}+{{#if:{{{IUPACName|}}}|1|0}}+{{#if:{{{PIN|}}}|1|0}}+{{#if:{{{SystematicName|}}}|1|0}} }}
|OtherNames={{{OtherNames|}}}
|IUPACNames_hidden={{#switch:{{lc:{{if empty |{{{IUPACNames_hidden|}}} |{{{IUPACName_hidden|}}} |{{{PIN_hidden|}}} |uncollapsed }}}} |y|yes|hidden|hide|collapse |collapsed=collapsed |#default=uncollapsed }}<!-- we only need to know: 0-1-many? IUPAC names -->
|countIUPACnames={{#if:{{{IUPACNames|}}}|99|{{#ifeq:{{#invoke:String |match |s=_{{{IUPACName|}}} |pattern=%<br%s*%/?%s*%> |nomatch=_NO_BREAK_|plain=false|ignore_errors=false}}|_NO_BREAK_|0|9}}+{{#if:{{{IUPACName|}}}|1|0}} }}<!-- we only need to know: 0-1-many IUPACName/s? -->
}}}}<!-- end section OtherNames -->
}}}}<!--
{{{Section1|}}}<!-- SECTIONS 1-10 --- -->
----- SECTIONS 1-9 ----- -->
{{{Section1|}}}
{{{Section2|}}}
{{{Section2|}}}
{{{Section3|}}}
{{{Section3|}}}
Line 122: Line 101:
{{{Section7|}}}
{{{Section7|}}}
{{{Section8|}}}
{{{Section8|}}}
{{{Section9|}}}
{{{Section9|}}}<!--
{{{Section10|}}}
----- SUPPLEMENT ----- -->
<!-- SUPPLEMENT -->{{Chembox Supplement}}
{{#ifexist:{{{data page pagename|{{if empty|{{{data_page|}}}|{{FULLPAGENAME}} (data page)}}}}}
|}<noinclude>
| {{Chembox Supplement | _data page pagename={{{data page pagename|{{if empty|{{{data_page|}}}|{{FULLPAGENAME}} (data page)}}}}}}}
{{documentation}}
}}<!--
</noinclude>
------ FOOTER ----- -->
{{#ifeq:{{{show_footer|yes}}}|no|<!--skip-->|{{Chembox Footer
| Verifiedfields={{{Verifiedfields|}}}
| Watchedfields={{{Watchedfields|}}}
| verifiedrevid={{{verifiedrevid|}}}
| show_ss_note={{{show_ss_note |yes}}}
| show_infobox_ref={{{show_infobox_ref|yes}}}
| general_note={{{general_note|}}}
| width={{{width|22em}}}<!-- infobox width setting, here for feedback
 
end footer -->}}}}
|}<!-- END of wikitable
 
--><includeonly>{{Chembox Footer/tracking<!-- new subtemplate, outside of Footer. See also headerbar (esp in Identifiers). Mar 2017
-->| _hasImage={{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileL2|}}}<!-- the verified images -->{{{ImageFileL3|}}}<!-- R-images not checked here
 
Images in row 8-9
-->| _hasImageSizeSet={{{ImageSize|}}}{{{ImageSize1|}}}{{{ImageSize2|}}}{{{ImageSize3|}}}<!--
-->| _hasImagePairSizeSet={{{ImageSizeL1|}}}{{{ImageSizeL2|}}}{{{ImageSizeL3|}}}{{{ImageSizeR1|}}}{{{ImageSizeR2|}}}{{{ImageSizeR3|}}}<!--
 
-->| _hasLocalImage=<!-- Check if file is local; not above L2, R2
-->{{#switch: en
|{{ParmPart |5 |{{filepath:{{{ImageFile|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFile1|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFile2|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFile3|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFileL1|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFileR1|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFileL2|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFileR2|}}}}}}}=yes }}<!--
 
HAS STYLE SETTINGS
-->| _hasTrackedStyleSettings={{{width|}}}{{{style|}}}{{{show_ss_note|}}}{{{show_infobox_ref|}}}{{{general_note|}}}{{{show_footer|}}}<!--
 
TEMPORAL TRACKING: order here=sortletter prio: * has this list complete.
-->|_trackListZ = {{#if:{{{ImageFileL2|}}}|{{#if:{{{ImageFile2|}}}|do_track}}}}<!--
-->|_trackListA = <!--
-->|_trackListSortletter = <!--
-->|_trackSortletter =<!-- default=X
-->|_trackListAsterisk =<!--
 
end of Chembox tracking subtemplate
-->}}</includeonly><!--
 
-->{{#invoke:TemplatePar
|check
|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=
 
|cat=Chemical articles with unknown parameter in Chembox
|format=0|preview={{Chembox templatePar/formatPreviewMessage|msg=@@@}}|errNS=0}}<!--
 
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 08:51, 10 January 2019

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