「テンプレート:Chembox」の版間の差分
ナビゲーションに移動
検索に移動
per edit request on talk page - bugfix
細 (1版) |
bsd>Paine Ellsworth (per edit request on talk page - bugfix) |
||
1行目: | 1行目: | ||
{|class="infobox | <templatestyles src="Chembox/styles.css"/> | ||
<!--Shortdesc at the end-->{|class="infobox ib-chembox" {{#if:{{{width|}}}{{{style|}}}|style="{{#if:{{{width|}}}|width:{{{width|}}};}} {{#if:{{{style|}}}|{{{style}}}}}"}}<!-- | |||
TITLE --> | TITLE --> | ||
|+ | |+ {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAME}}}}{{{Reference|}}}{{{Chembox_ref|}}} | ||
|{{PAGENAME}}}}{{{Reference|}}}{{{Chembox_ref|}}} | |||
|- <!-- 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/ | |<!-- Row 1/7 -->{{Chembox image | ||
|par_file={{{ImageFile|}}} | |par_file={{{ImageFile|}}} | ||
|par_title={{{ImageName|}}} | |par_title={{{ImageName|}}} | ||
12行目: | 12行目: | ||
|par_caption={{{ImageCaption|}}} | |par_caption={{{ImageCaption|}}} | ||
|par_ref={{{ImageFile_Ref|}}} }} | |par_ref={{{ImageFile_Ref|}}} }} | ||
<!-- Row 2/ | <!-- Row 2/7 -->{{Chembox image | ||
|par_file={{{ImageFile1|}}} | |par_file={{{ImageFile1|}}} | ||
|par_title={{{ImageName1|}}} | |par_title={{{ImageName1|}}} | ||
|par_size={{{ImageSize1|}}} | |par_size={{{ImageSize1|}}} | ||
19行目: | 19行目: | ||
|par_caption={{{ImageCaption1|}}} | |par_caption={{{ImageCaption1|}}} | ||
|par_ref={{{ImageFile1_Ref|}}} }} | |par_ref={{{ImageFile1_Ref|}}} }} | ||
<!-- Row 3/ | <!-- Row 3/7 -->{{Chembox image sbs | ||
|par_fileL={{{ImageFileL1|}}} | |par_fileL={{{ImageFileL1|}}} | ||
|par_titleL={{{ImageNameL1|}}} | |par_titleL={{{ImageNameL1|}}} | ||
31行目: | 31行目: | ||
|par_altR={{{ImageAltR1|}}} | |par_altR={{{ImageAltR1|}}} | ||
|par_captionR={{{ImageCaptionR1|}}} | |par_captionR={{{ImageCaptionR1|}}} | ||
|par_refR={{{ImageFileR1_Ref|}}} }} | |par_refR={{{ImageFileR1_Ref|}}} | ||
<!-- Row 4/ | |par_captionLR={{{ImageCaptionLR1|}}}}}<!-- new Nov 2017: caption for 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|}}} | ||
44行目: | 52行目: | ||
|par_altR={{{ImageAltR2|}}} | |par_altR={{{ImageAltR2|}}} | ||
|par_captionR={{{ImageCaptionR2|}}} | |par_captionR={{{ImageCaptionR2|}}} | ||
|par_refR={{{ImageFileR2_Ref | |par_refR={{{ImageFileR2_Ref|}}} | ||
|par_captionLR={{{ImageCaptionLR2|}}} }} | |||
<!-- Row 6/7 -->{{Chembox image | |||
| | |||
<!-- Row 6/ | |||
|par_file={{{ImageFile3|}}} | |par_file={{{ImageFile3|}}} | ||
|par_title={{{ImageName3|}}} | |par_title={{{ImageName3|}}} | ||
59行目: | 61行目: | ||
|par_caption={{{ImageCaption3|}}} | |par_caption={{{ImageCaption3|}}} | ||
|par_ref ={{{ImageFile3_Ref|}}} }} | |par_ref ={{{ImageFile3_Ref|}}} }} | ||
<!-- Row 7/ | <!-- Row 7/7 -->{{Chembox image sbs | ||
|par_fileL={{{ImageFileL3|}}} | |par_fileL={{{ImageFileL3|}}} | ||
|par_titleL={{{ImageNameL3|}}} | |par_titleL={{{ImageNameL3|}}} | ||
71行目: | 73行目: | ||
|par_altR={{{ImageAltR3|}}} | |par_altR={{{ImageAltR3|}}} | ||
|par_captionR={{{ImageCaptionR3|}}} | |par_captionR={{{ImageCaptionR3|}}} | ||
|par_refR={{{ImageFileR3_Ref | |par_refR={{{ImageFileR3_Ref|}}} | ||
|par_captionLR={{{ImageCaptionLR3|}}} | |||
}} | |||
<!-- | |||
ImageCaptionAll | |||
--> | |||
{{#if:{{{ImageCaptionAll|}}} |{{Chembox image caption all |par_caption={{{ImageCaptionAll}}} }}}}<!-- | |||
| | |||
<!-- | |||
| | |||
|par_caption={{{ | |||
-->}}<!-- | -->}}<!-- | ||
NAMES ----- --> | NAMES ----- --> | ||
97行目: | 85行目: | ||
{{Chembox AllOtherNames | {{Chembox AllOtherNames | ||
|ref={{{Names_ref|}}} | |ref={{{Names_ref|}}} | ||
|pronounce={{{pronounce|}}} | |||
|IUPACName={{{IUPACName|}}} {{{IUPACNames|}}}<!-- plural indicated by editor --> | |IUPACName={{{IUPACName|}}} {{{IUPACNames|}}}<!-- plural indicated by editor --> | ||
|PIN={{{PIN|}}} | |PIN={{{PIN|}}} | ||
113行目: | 102行目: | ||
{{{Section8|}}} | {{{Section8|}}} | ||
{{{Section9|}}}<!-- | {{{Section9|}}}<!-- | ||
----- SUPPLEMENT ----- -->{{Chembox | ----- SUPPLEMENT (data page) ----- --> | ||
------ FOOTER ----- -->{{Chembox Footer | {{Chembox Datapage check | ||
| _targetpage={{#if:{{{data page pagename|}}}|{{{data page pagename|}}}|{{FULLPAGENAME}} (data page)}} | |||
}}<!-- | |||
------ FOOTER ----- | |||
the visual footer, see also Footer/tracking (below). --> | |||
{{yesno|1={{First nonempty|1={{{show_footer|}}}|2={{yesno|1={{{container_only|no}}}|yes=no|no=yes}}<!-- inversion needed per logic -->}} | |||
|yes={{Chembox Footer | |||
| Verifiedfields={{{Verifiedfields|}}} | | Verifiedfields={{{Verifiedfields|}}} | ||
| Watchedfields={{{Watchedfields|}}} | | Watchedfields={{{Watchedfields|}}} | ||
121行目: | 118行目: | ||
| show_infobox_ref={{{show_infobox_ref|yes}}} | | show_infobox_ref={{{show_infobox_ref|yes}}} | ||
| general_note={{{general_note|}}} | | general_note={{{general_note|}}} | ||
| | | width={{{width|22em}}}<!-- infobox width setting, here for feedback only | ||
| | end footer -->|no= }} | ||
-->| _hasLocalImage=<!-- Check if file is local | }} | ||
|}<!-- END of wikitable (=infobox table) | |||
--><includeonly><!-- | |||
-->{{#if:{{yesno|1={{{container_only|no}}}|yes=yes|no=}} | |||
|<!-- container_only: -->{{Chembox Footer/tracking_container_only}} | |||
|<!-- regular tracking -->{{Chembox Footer/tracking<!-- subtemplate, outside of Footer. See also headerbar (esp in Identifiers). | |||
-->| _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 | -->{{#switch: en | ||
|{{ParmPart |5 |{{filepath:{{{ImageFile|}}}}}}} | |{{ParmPart |5 |{{filepath:{{{ImageFile|}}}}}}} | ||
130行目: | 141行目: | ||
|{{ParmPart |5 |{{filepath:{{{ImageFile2|}}}}}}} | |{{ParmPart |5 |{{filepath:{{{ImageFile2|}}}}}}} | ||
|{{ParmPart |5 |{{filepath:{{{ImageFile3|}}}}}}} | |{{ParmPart |5 |{{filepath:{{{ImageFile3|}}}}}}} | ||
|{{ParmPart |5 |{{filepath:{{{ImageFileL1|}}}}}}} | |{{ParmPart |5 |{{filepath:{{{ImageFileL1|}}}}}}} | ||
|{{ParmPart |5 |{{filepath:{{{ImageFileR1|}}}}}}} | |{{ParmPart |5 |{{filepath:{{{ImageFileR1|}}}}}}} | ||
|{{ParmPart |5 |{{filepath:{{{ImageFileL2|}}}}}}} | |{{ParmPart |5 |{{filepath:{{{ImageFileL2|}}}}}}} | ||
|{{ParmPart |5 |{{filepath:{{{ImageFileR2|}}}}}}}=yes }}<!-- | |{{ParmPart |5 |{{filepath:{{{ImageFileR2|}}}}}}}=yes }}<!-- | ||
HAS STYLE SETTINGS | |||
-->| | -->| _hasTrackedStyleSettings={{{width|}}}{{{style|}}}{{{show_ss_note|}}}{{{show_infobox_ref|}}}{{{general_note|}}}{{{show_footer|}}}<!-- | ||
-->| | |||
TEMPORAL TRACKING: (optionaly determine and add a sortletter here) | |||
-->|_trackListSortletter = <!-- unused Oct2020 | |||
end of Chembox tracking subtemplate | |||
-->}}}}</includeonly><!-- | |||
-->{{#invoke:TemplatePar | -->{{#invoke:TemplatePar | ||
|check | |check | ||
|template=Template:Chembox | |template=Template:Chembox | ||
|all= |opt= Reference= Chembox_ref= IUPACNames= IUPACName= ImageAlt1= ImageAlt2= ImageAlt3 | |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= | ||
|cat= | |||
|cat=Pages using Chembox with unknown parameters | |||
|format=0|preview={{Chembox templatePar/formatPreviewMessage|msg=@@@}}|errNS=0}}<!-- | |format=0|preview={{Chembox templatePar/formatPreviewMessage|msg=@@@}}|errNS=0}}<!-- | ||
-->{{short description|Chemical compound|noreplace}}<!--Don't place on top as usual since that requires an extra newline to not break the table which could cause formatting issues. | |||
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> |