Template:Chembox: Difference between revisions
Jump to navigation
Jump to search
Gerald Chi (talk | contribs) mNo edit summary |
Gerald Chi (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{|class="infobox bordered" style="border-collapse:collapse; margin-top:2px; width:{{{width|22em}}}; text-align:left; {{{style|}}};" | |||
{{#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. | |||
{{!}}- | |||
| | }}<!-- TITLE --> | ||
|+ colspan=2 style="text-align:center;" |{{#if:{{{Name|}}} |{{{Name}}} |{{PAGENAME}}}}{{{Reference|}}} | |||
|- <!-- IMAGES --> | |||
{{#if:{{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}} | |||
|<!-- Row 1/9 -->{{Chembox image | |||
|par_file={{{ImageFile|}}} | |||
|par_title={{{ImageName|}}} | |||
|- | |par_size={{{ImageSize|}}} | ||
| | |par_alt={{{ImageAlt|}}} | ||
| | |par_caption={{{ImageCaption|}}} | ||
| | |par_ref={{{ImageFile_Ref|}}} }} | ||
| | <!-- Row 2/9 -->{{Chembox image | ||
| | |par_file={{{ImageFile1|}}}<!-- par_file, not par_value any more --> | ||
| | |par_title={{{ImageName1|}}} | ||
| | |par_size={{{ImageSize1|}}} | ||
| | |par_alt={{{ImageAlt1|}}} | ||
| | |par_caption={{{ImageCaption1|}}} | ||
| | |par_ref={{{ImageFile1_Ref|}}} }} | ||
| | <!-- Row 3/9 -->{{Chembox image sbs | ||
| | |par_fileL={{{ImageFileL1|}}} | ||
| | |par_titleL={{{ImageNameL1|}}} | ||
| | |par_sizeL={{{ImageSizeL1|}}} | ||
| | |par_altL={{{ImageAltL1|}}} | ||
| | |par_captionL={{{ImageCaptionL1|}}} | ||
| | |par_refL={{{ImageFileL1_Ref|}}} | ||
|par_fileR={{{ImageFileR1|}}} | |||
|par_titleR={{{ImageNameR1|}}} | |||
|par_sizeR={{{ImageSizeR1|}}} | |||
|par_altR={{{ImageAltR1|}}} | |||
|par_captionR={{{ImageCaptionR1|}}} | |||
|- | |par_refR={{{ImageFileR1_Ref|}}} }} | ||
<!-- Row 4/9 -->{{Chembox image sbs | |||
|par_fileL={{{ImageFileL2|}}} | |||
| | |par_titleL={{{ImageNameL2|}}} | ||
|par_sizeL={{{ImageSizeL2|}}} | |||
|par_altL={{{ImageAltL2|}}} | |||
|par_captionL={{{ImageCaptionL2|}}} | |||
| | |par_refL={{{ImageFileL2_Ref|}}} | ||
| | |par_fileR={{{ImageFileR2|}}} | ||
| | |par_titleR={{{ImageNameR2|}}} | ||
| | |par_sizeR={{{ImageSizeR2|}}} | ||
| | |par_altR={{{ImageAltR2|}}} | ||
| | |par_captionR={{{ImageCaptionR2|}}} | ||
| | |par_refR={{{ImageFileR2_Ref|}}} }} | ||
| | <!-- Row 5/9 -->{{Chembox image | ||
| | |par_file={{{ImageFile2|}}} | ||
| | |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_title={{{ImageName3|}}} | ||
| | |par_size={{{ImageSize3|}}} | ||
|par_alt={{{ImageAlt3|}}} | |||
| | |par_caption={{{ImageCaption3|}}} | ||
| | |par_ref ={{{ImageFile3_Ref|}}} }} | ||
| | <!-- Row 7/9 -->{{Chembox image sbs | ||
| | |par_fileL={{{ImageFileL3|}}} | ||
| | |par_titleL={{{ImageNameL3|}}} | ||
| | |par_sizeL={{{ImageSizeL3|}}} | ||
| | |par_altL={{{ImageAltL3|}}} | ||
| | |par_captionL={{{ImageCaptionL3|}}} | ||
| | |par_refL={{{ImageFileL3_Ref|}}} | ||
| | |par_fileR={{{ImageFileR3|}}} | ||
| | |par_titleR={{{ImageNameR3|}}} | ||
| | |par_sizeR={{{ImageSizeR3|}}} | ||
| | |par_altR={{{ImageAltR3|}}} | ||
|par_captionR={{{ImageCaptionR3|}}} | |||
| | |par_refR={{{ImageFileR3_Ref|}}} }} | ||
| | <!-- Row 8/9 -->{{Chembox image sbs | ||
| | |par_fileL={{{ImageFileL4|}}} | ||
| | |par_titleL={{{ImageNameL4|}}} | ||
| | |par_sizeL={{{ImageSizeL4|}}} | ||
| | |par_altL={{{ImageAltL4|}}} | ||
| | |par_captionL={{{ImageCaptionL4|}}} | ||
| | |par_refL={{{ImageFileL4_Ref|}}} | ||
| | |par_fileR={{{ImageFileR4|}}} | ||
| | |par_titleR={{{ImageNameR4|}}} | ||
| | |par_sizeR={{{ImageSizeR4|}}} | ||
| | |par_altR={{{ImageAltR4|}}} | ||
| | |par_captionR={{{ImageCaptionR4|}}} | ||
| | |par_refR={{{ImageFileR4_Ref|}}} }} | ||
| | <!-- 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|}}} | ||
| | |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}} }} | ||
| | |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 --> | ||
}}}}<!-- end section OtherNames --> | |||
{{{Section1|}}}<!-- SECTIONS 1-10 --- --> | |||
{{{Section2|}}} | |||
{{{Section3|}}} | |||
| | {{{Section4|}}} | ||
| | {{{Section5|}}} | ||
| {{ | {{{Section6|}}} | ||
|- | {{{Section7|}}} | ||
{{{Section8|}}} | |||
{{{Section9|}}} | |||
{{{Section10|}}} | |||
<!-- SUPPLEMENT -->{{Chembox Supplement}} | |||
|}<noinclude> | |}<noinclude> | ||
{{documentation}} | |||
</noinclude> | </noinclude> |
Revision as of 16:39, 6 April 2015
Template:Chembox Supplement
File:Test Template Info-Icon - Version (2).svg Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |