Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in or
create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision |
Your text |
Line 1: |
Line 1: |
| <noinclude>
| | {|name="userboxes" id="userboxes" sourcefile="{{{1}}}" style="margin-left: 1em; margin-bottom: 0.5em; width: 170px; border: {{{bordercolor|#99B3FF}}} solid 1px; background-color: {{{backgroundcolor|#FFFFFF}}}; {{{extra-css|}}}" align="right" |
| Useage:<nowiki> {{Jmol_general|File.etc|Caption}}</nowiki>
| |
| | |
| | |
| <s>THIS TEMPLATE DOES NOT WORK</s>.
| |
| I do not know how to (or even if it is possible) to pass template arguments to <wikiPageContents>.
| |
| I.e. 1 is not substituted in the <wikiPageContents>{{{1}}}</wikiPageContents> container.
| |
| wikiPageContents takes {{{1}}} literally. Not sure how to change this, perhaps a small rewriting in Jmol.body.php? --[[User:Carl McBride | <b><FONT COLOR="#8B3A3A">Carl McBride</FONT></b>]] ([[User_talk:Carl_McBride |talk]]) 13:28, 28 August 2008 (CEST)
| |
| : '''SOLVED'''. Wikitext inside the Jmol Extension markup was not being interpreted. The fix is to use <code><nowiki>#tag</nowiki></code> syntax, available since MediaWiki 1.12:
| |
| :: substitute <code><nowiki><jmol></nowiki></code> by <code><nowiki>{{#tag:jmol|</nowiki></code>
| |
| :: substitute <code><nowiki></jmol></nowiki></code> by <code><nowiki>}}</nowiki></code>
| |
| :--[[User:AngelHerraez|AngelHerraez]] 12:24, 25 May 2009 (CEST)
| |
| | |
| Note that in this template page the JmolApplet will display an error (because it has no proper content loaded into it), but it will work in any page that inserts the template.
| |
| </noinclude>
| |
| | |
| {|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> | | |<center> |
| {{#tag:jmol|
| | <jmol> |
| <jmolApplet> | | <jmolApplet> |
| <script>set spin X 10; spin on</script> | | <script>set spin X 10; spin on</script> |
| <size>200</size> | | <size>800</size> |
| <color>lightgrey</color> | | <color>lightgrey</color> |
| <wikiPageContents>{{{1}}}</wikiPageContents> | | <wikiPageContents>sourcefile</wikiPageContents> |
| </jmolApplet> | | </jmolApplet> |
| }}</center>
| | </jmol></center> |
| |- | | |- |
| | <center>{{{2}}}</center> | | | <center>{{{2}}}</center> |
| |- | | |- |
| |} | | |} |
| <noinclude>[[category: Template]]</noinclude>
| |