Template:Jmol general: Difference between revisions

From SklogWiki
Jump to navigation Jump to search
mNo edit summary
m (Comment on why this template is broken)
Line 2: Line 2:
Useage:<nowiki> {{Jmol_general|File.etc|Caption}}</nowiki>
Useage:<nowiki> {{Jmol_general|File.etc|Caption}}</nowiki>


Example:


{{Jmol_general|
THIS TEMPLATE DOES NOT WORK.
1 = methane.pdb |
I do not know how to (or even if it is possible) to pass template arguments to <wikiPageContents>.
2 = Methane |
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)
 
THIS TEMPLATE DOES NOT WORK. 1 is not substituted in the <wikiPageContents>{{{1}}}</wikiPageContents> container.  
wikiPageContents takes {{{1}}} literally. Not sure how to change this, perhaps in Jmol.body.php?
</noinclude>
</noinclude>



Revision as of 13:28, 28 August 2008

Useage: {{Jmol_general|File.etc|Caption}}


THIS TEMPLATE DOES NOT WORK. 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? -- Carl McBride (talk) 13:28, 28 August 2008 (CEST)


<jmol>

 <jmolApplet>
 <script>set spin X 10; spin on</script>
 <size>200</size>
 <color>lightgrey</color>
   <wikiPageContents>{{{1}}}</wikiPageContents>
</jmolApplet>
</jmol>
{{{2}}}