Difference between revisions of "Template:Chembox SMILES/doc"

From blackwiki
Jump to navigation Jump to search
(Enhanced docs.)
(Doc update to reflect elimination of obsolete parameters.)
Line 2: Line 2:
  
 
==Usage==
 
==Usage==
This is used by [[Template:Chembox]].  It is called with up to three parameters
+
This is used by [[Template:Chembox identifiers]], part of [[Template:Chembox]].  It takes a single parameter:
 
* value = <nowiki>{{{SMILES|}}}</nowiki>
 
* value = <nowiki>{{{SMILES|}}}</nowiki>
* value2 = <nowiki>{{{FullSMILES|}}}</nowiki>
+
This is displayed in the form of a {{tlx|Collapsible list}}.  If the user's browser supports JavaScript, the actual value is hidden until the user clocks on a [show] link. (The reason for this is because the formula can be very long and contains no spaces, so browsers will make the infobox very wide trying to display it all on one line.)
* value3 = <nowiki>{{{DispSMILES|}}}</nowiki>
 
Normally, only the first is provided, and displayed in a {{tlx|Collapsible list}}.  If the user's browser supports JavaScript, the actual value is hidden until the user clocks on a [show] link.
 
 
 
The second two options are obsolete.  If they are provided, the page will be added to [[:Category:Chembox SMILES maintenance]].  (Which is currently empty, so support could be dropped from this and [[Template:Chembox identifiers]].)
 
 
<includeonly>
 
<includeonly>
 
[[Category:Chembox templates|{{PAGENAME}}]]
 
[[Category:Chembox templates|{{PAGENAME}}]]

Revision as of 11:44, 22 September 2009

Usage

This is used by Template:Chembox identifiers, part of Template:Chembox. It takes a single parameter:

  • value = {{{SMILES|}}}

This is displayed in the form of a {{Collapsible list}}. If the user's browser supports JavaScript, the actual value is hidden until the user clocks on a [show] link. (The reason for this is because the formula can be very long and contains no spaces, so browsers will make the infobox very wide trying to display it all on one line.)