Difference between revisions of "Sandbox"

From Jmol
Jump to navigation Jump to search
(merging test with more code from Sandbox)
 
(21 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
== Jmol extension for MediaWiki ==
 
== Jmol extension for MediaWiki ==
 +
{{Anchor|SampleAnchor}}
  
<jmol>
+
etc.
  <jmolApplet>
 
    <name>chair</name>
 
    <size>200</size>
 
    <uploadedFileContents>Chair.xyz</uploadedFileContents>
 
  </jmolApplet>
 
<jmolLink>
 
  <script>color atoms red</script>
 
  <text>color atoms red</text>
 
</jmolLink>
 
<jmolLink>
 
  <script>color atoms blue</script>
 
  <text>color atoms blue</text>
 
</jmolLink>
 
<jmolCheckbox>
 
  <scriptWhenChecked>color atoms lime</scriptWhenChecked>
 
  <scriptWhenUnchecked>color atoms cpk</scriptWhenUnchecked>
 
  <text>color atoms lime</text>
 
  <target>chair</target>
 
</jmolCheckbox>
 
  
<jmolButton>
+
etc.
  <script>color atoms blue</script>
 
  <text>color atoms blue</text>
 
</jmolButton>
 
  
</jmol>
 
Color atoms:
 
  
<jmol>
+
== Anchors ==
<jmolMenu>
 
  <item>
 
  <script>color atoms cpk</script>
 
  <text>default</text>
 
  </item>
 
  <item>
 
  <script>color atoms yellow</script>
 
  <text>yellow</text>
 
  </item>
 
  <item>
 
  <script>color atoms blue</script>
 
  <text>blue</text>
 
  </item>
 
</jmolMenu>
 
</jmol>
 
  
== Using a pop-up window ==
+
This is a test link to an [[#SampleAnchor|anchor]] which should take you near the top of the article.
An image: [[Image:Ethane s.gif]]
 
  
The image as a replacement until the user requests the Jmol model:
 
  
{|name="userboxes" id="userboxes" style="margin-left: 1em; margin-bottom: 0.5em; width: 170px; border: {{{bordercolor|#99B3FF}}} solid 1px; background-color: {{{backgroundcolor|#FFFFFF}}}; {{{extra-css|}}}" align="right"
+
 
|-
+
 
|<center>[[Image:Ethane s.gif]]</center>
+
 
|-
+
 
| <center>'''Staggered ethane''' <br />
+
 
<jmol><jmolAppletLink><title>Show in 3D using Jmol (popup window)</title><color>gray</color>
+
 
<uploadedFileContents>ethane_s.pdb</uploadedFileContents></jmolAppletLink>
+
 
</jmol>
+
 
</center>
+
 
|-
+
 
|}
+
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
.

Latest revision as of 20:30, 23 November 2010

This is a page for testing.

Jmol extension for MediaWiki

etc.

etc.


Anchors

This is a test link to an anchor which should take you near the top of the article.















.

Contributors

AngelHerraez