Difference between revisions of "MediaWiki/Basic Example"
m (→Examples with <jmolFile>: currently being done) |
AngelHerraez (talk | contribs) (more explanatory documentation) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
This page demonstrates basic uses of the [[:mw:Extension:Jmol|Jmol MediaWiki extension]]. | This page demonstrates basic uses of the [[:mw:Extension:Jmol|Jmol MediaWiki extension]]. | ||
+ | |||
+ | These are new tags introduced in the 3.3_dev version of the Jmol MediaWiki Extension. They all open a new (pop-up) window filled with a JmolApplet. The applet will fit the window, which is resizable. | ||
== Examples with <tt><jmolFile></tt> == | == Examples with <tt><jmolFile></tt> == | ||
This feature is currently under development. | This feature is currently under development. | ||
+ | |||
+ | This tag creates a link that opens a JmolApplet and loads the model from a file that has been previously uploaded to the wiki. The model is displayed in the default rendering (ball and stick, CPK color, black background). | ||
The code | The code | ||
Line 9: | Line 13: | ||
gives | gives | ||
<jmolFile>Chair.cml</jmolFile> | <jmolFile>Chair.cml</jmolFile> | ||
+ | to display molecular data from [[:File:Chair.cml|File:Chair.cml]]. | ||
The code | The code | ||
Line 14: | Line 19: | ||
gives | gives | ||
<jmolFile text="Show ethanol">Ethanol.xyz</jmolFile> | <jmolFile text="Show ethanol">Ethanol.xyz</jmolFile> | ||
+ | to display molecular data from [[:File:Ethanol.xyz|File:Ethanol.xyz]]. | ||
== Examples with <tt><jmolPdb></tt> == | == Examples with <tt><jmolPdb></tt> == | ||
− | This feature is | + | This feature is currently under development. |
+ | |||
+ | This tag creates a link that opens a JmolApplet and loads a model from the PDB database server. The model is displayed in the default rendering (ball and stick, CPK color, black background). | ||
The code | The code | ||
Line 23: | Line 31: | ||
gives | gives | ||
<jmolPdb>1ALE</jmolPdb> | <jmolPdb>1ALE</jmolPdb> | ||
+ | to display 1ALE molecular data directly from [[:en:Protein Data Bank|Protein Data Bank]]. | ||
The code | The code | ||
Line 28: | Line 37: | ||
gives | gives | ||
<jmolPdb text="Show 1ALE">1ALE</jmolPdb> | <jmolPdb text="Show 1ALE">1ALE</jmolPdb> | ||
+ | to display 1ALE molecular data directly from [[:en:Protein Data Bank|Protein Data Bank]]. | ||
== Examples with <tt><jmolSmiles></tt> == | == Examples with <tt><jmolSmiles></tt> == | ||
− | This feature is | + | This feature is currently under development. |
+ | |||
+ | This tag creates a link that opens a JmolApplet and loads a model from the Cactus NIH server, constructed from a SMILES string, CAS number, InChI key or chemical name. The model is displayed in the default rendering (ball and stick, CPK color, black background). | ||
The code | The code | ||
Line 37: | Line 49: | ||
gives | gives | ||
<jmolSmiles>CCCNC</jmolSmiles> | <jmolSmiles>CCCNC</jmolSmiles> | ||
+ | to display molecular data directly associated to [[:en:SMILES|SMILES string]] CCCNC. | ||
+ | |||
+ | The code | ||
+ | <tt><nowiki><jmolSmiles>aspirin</jmolSmiles></nowiki></tt> | ||
+ | gives | ||
+ | <jmolSmiles>aspirin</jmolSmiles> | ||
+ | to display molecular data associated to that name. | ||
The code | The code | ||
<tt><nowiki><jmolSmiles text="Show CCCNC">CCCNC</jmolSmiles></nowiki></tt> | <tt><nowiki><jmolSmiles text="Show CCCNC">CCCNC</jmolSmiles></nowiki></tt> | ||
gives | gives | ||
− | < | + | <jmolSmiles text="Show CCCNC">CCCNC</jmolSmiles> |
+ | to display molecular data directly associated to [[:en:SMILES|SMILES string]] CCCNC. | ||
+ | |||
+ | [[Category:Pages Using Jmol MW Extension]] |
Latest revision as of 23:28, 24 November 2011
This page demonstrates basic uses of the Jmol MediaWiki extension.
These are new tags introduced in the 3.3_dev version of the Jmol MediaWiki Extension. They all open a new (pop-up) window filled with a JmolApplet. The applet will fit the window, which is resizable.
Examples with <jmolFile>
This feature is currently under development.
This tag creates a link that opens a JmolApplet and loads the model from a file that has been previously uploaded to the wiki. The model is displayed in the default rendering (ball and stick, CPK color, black background).
The code <jmolFile>Chair.cml</jmolFile> gives Chair.cml to display molecular data from File:Chair.cml.
The code <jmolFile text="Show ethanol">Ethanol.xyz</jmolFile> gives Show ethanol to display molecular data from File:Ethanol.xyz.
Examples with <jmolPdb>
This feature is currently under development.
This tag creates a link that opens a JmolApplet and loads a model from the PDB database server. The model is displayed in the default rendering (ball and stick, CPK color, black background).
The code <jmolPdb>1ALE</jmolPdb> gives 1ALE to display 1ALE molecular data directly from Protein Data Bank.
The code <jmolPdb text="Show 1ALE">1ALE</jmolPdb> gives Show 1ALE to display 1ALE molecular data directly from Protein Data Bank.
Examples with <jmolSmiles>
This feature is currently under development.
This tag creates a link that opens a JmolApplet and loads a model from the Cactus NIH server, constructed from a SMILES string, CAS number, InChI key or chemical name. The model is displayed in the default rendering (ball and stick, CPK color, black background).
The code <jmolSmiles>CCCNC</jmolSmiles> gives CCCNC to display molecular data directly associated to SMILES string CCCNC.
The code <jmolSmiles>aspirin</jmolSmiles> gives aspirin to display molecular data associated to that name.
The code <jmolSmiles text="Show CCCNC">CCCNC</jmolSmiles> gives Show CCCNC to display molecular data directly associated to SMILES string CCCNC.