Template:Chembox1: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user 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; margin-top:2px; width:{{{width|22em}}}; text-align:left; {{{style|}}};"
|+ <!-- TITLE --> colspan=2 style="text-align:center;" |{{#if:{{{Name|}}} |{{{Name}}} |{{PAGENAME}}}}{{{Reference|}}}
{{#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 -->
|- <!-- IMAGES -->
{{#if:{{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}}
{{#if:{{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}}
Line 98: Line 102:
}}<!--
}}<!--
  TEXTUAL VALUES ----- -->
  TEXTUAL VALUES ----- -->
{{#if:{{{OtherNames|}}}{{{IUPACName|}}}{{{IUPACNames|}}}{{{PIN|}}}{{{SystematicName|}}}|
{{#if:{{{OtherNames|}}}{{{IUPACName|}}}{{{IUPACNames|}}}{{{PIN|}}}{{{SystematicName|}}}
<!-- Other names listing: -->
| {{Chembox headerbar|header=Other names}}
{{Chembox AllOtherNames
<!-- and -->
|IUPACName={{{IUPACName|}}} {{{IUPACNames|}}}<!-- plural indicated by editor -->
{{Chembox AllOtherNames |
|OtherNames={{{OtherNames|}}}
|IUPACName={{{IUPACName|}}}
|IUPACNames={{{IUPACNames|}}}<!-- plural indicated by editor -->
|PIN={{{PIN|}}}
|PIN={{{PIN|}}}
|SystematicName={{{SystematicName|}}}
|SystematicName={{{SystematicName|}}}
|OtherNames={{{OtherNames|}}}
|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}} }}
|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? -->
|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 -->
}}<!-- end section OtherNames -->
{{{Section1|}}}<!-- SECTIONS 1-10 --- -->
{{{Section1|}}}<!-- SECTIONS 1-9 --- -->
{{{Section2|}}}
{{{Section2|}}}
{{{Section3|}}}
{{{Section3|}}}
Line 117: Line 123:
{{{Section8|}}}
{{{Section8|}}}
{{{Section9|}}}
{{{Section9|}}}
{{{Section10|}}}
<!-- SUPPLEMENT -->{{Chembox Supplement}}
<!-- SUPPLEMENT -->{{Chembox Supplement}}
<!-- sets left colomn width -->
| width={{{width|20em}}}<!-- infobox width setting, here for feedback -->
| hasImage={{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFile4|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}}<!-- the verified images -->{{{ImageFileL3|}}}{{{ImageFileR3|}}}{{{ImageFileL4|}}}{{{ImageFileR4|}}}<!-- now complete, all 13 -->
| hasImageSize={{{ImageSizeL1|}}}{{{ImageSizeR1|}}}{{{ImageSizeL2|}}}{{{ImageSizeR2|}}}{{{ImageSizeL3|}}}{{{ImageSizeR3|}}}{{{ImageSizeL4|}}}{{{ImageSizeR4|}}}
| 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:{{{ImageFile4|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFileL1|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFileR1|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFileL2|}}}}}}}
|{{ParmPart |5 |{{filepath:{{{ImageFileR2|}}}}}}}=yes }}
| hasDeprecatedParams1={{#ifeq:{{{1|¬PresenT}}}|¬PresenT||param1exists}}{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}
| hasDeprecatedParams2={{{PIN_hidden|}}}{{{IUPACNames_hidden|}}}{{{IUPACName_hidden|}}}<!--depr sh/hi Names 11 Feb 2015 -->
| hasDeprecatedParams3={{{BoxWidth|}}}{{{section|}}}{{{section1|}}}{{{section2|}}}{{{section3|}}}{{{section4|}}}{{{Section|}}}{{{Section10|}}}{{{Section11|}}}{{{Section12|}}}{{{Section13|}}}{{{Section14|}}}{{{Section15|}}}{{{ImageStyleL1|}}}{{{ImageStyleL2|}}}{{{ImageStyleL3|}}}{{{ImageStyleL4|}}}{{{ImageStyleR1|}}}{{{ImageStyleR2|}}}{{{ImageStyleR3|}}}{{{ImageStyleR4|}}}{{{Show_ss_note|}}}{{{Show_infobox_ref|}}}{{{General_note|}}}
| hasTrackedParams1={{{width|}}}{{{style|}}}{{{show_ss_note|}}}{{{show_infobox_ref|}}}{{{general_note|}}}{{{style-left-column-width|}}}
| hasTrackedParams2=<!-- image rows 7-8-9 -->{{{ImageFileL3|}}}{{{ImageNameL3|}}}{{{ImageSizeL3|}}}{{{ImageAltL3|}}}{{{ImageCaptionL3|}}}{{{ImageFileL3_Ref|}}}{{{ImageFileR3|}}}{{{ImageNameR3|}}}{{{ImageSizeR3|}}}{{{ImageAltR3|}}}{{{ImageCaptionR3|}}}{{{ImageFileR3_Ref|}}}<!-- Row 8/9 -->{{{ImageFileL4|}}}{{{ImageNameL4|}}}{{{ImageSizeL4|}}}{{{ImageAltL4|}}}{{{ImageCaptionL4|}}}{{{ImageFileL4_Ref|}}}{{{ImageFileR4|}}}{{{ImageNameR4|}}}{{{ImageSizeR4|}}}{{{ImageAltR4|}}}{{{ImageCaptionR4|}}}{{{ImageFileR4_Ref|}}}<!-- Row 9/9 -->{{{ImageFile4|}}}{{{ImageName4|}}}{{{ImageSize4|}}}{{{ImageAlt4|}}}{{{ImageCaption4|}}}{{{ImageFile4_Ref|}}}<!--
end footer -->}}
|}<noinclude>
|}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 16:09, 6 April 2015

Template:Chembox Supplement
Chembox1