Template:Chembox1: Difference between revisions
Jump to navigation
Jump to search
Gerald Chi (talk | contribs) mNo edit summary |
Gerald Chi (talk | contribs) 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|}}};" | ||
| | {{#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|}}} | ||
<!-- | | {{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|}}} | ||
|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 | |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- | |||
{{{Section2|}}} | {{{Section2|}}} | ||
{{{Section3|}}} | {{{Section3|}}} | ||
Line 117: | Line 123: | ||
{{{Section8|}}} | {{{Section8|}}} | ||
{{{Section9|}}} | {{{Section9|}}} | ||
{{{Section10|}}} | |||
<!-- SUPPLEMENT -->{{Chembox Supplement}} | <!-- SUPPLEMENT -->{{Chembox Supplement}} | ||
|}<noinclude> | |}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 16:09, 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. |