User:Eric Martz/Sandbox 17: Difference between revisions
Eric Martz (talk | contribs) No edit summary |
Eric Martz (talk | contribs) No edit summary |
||
Line 38: | Line 38: | ||
Proteopedia's wiki lacks Template:Font_color: {{font color|red|red text?}}. | Proteopedia's wiki lacks Template:Font_color: {{font color|red|red text?}}. | ||
6. Colored caption test: | |||
<jmol> | |||
<jmolLink> | |||
<script> | |||
script "http://proteopedia.org/wiki/images/6/69/Colortext.spt" | |||
captext = "Words with " + colortext("some red", "red") + " in this caption." | |||
capcmd = "changeCaption(captext, '', '')" | |||
javascript @capcmd | |||
</script> | |||
<text>Colored caption test.</text> | |||
</jmolLink> | |||
</jmol> | |||
</StructureSection> | </StructureSection> |
Revision as of 21:46, 19 December 2020
PNGJ scene and caption testsPNGJ scene and caption tests
This page created 2020/12/16 after Jaim made changes to enable caption editing.
Scenes 4 and 5 use Image:6zgi-membrane-proximal-cavity-jmol-cr2.5.pngj.
I have not been able to devise a method to color text in the caption. Anything with < or > creates an XML error (page cannot be saved). Using e.g. < can be saved, but confuses JSmol which expects a new command after the ';'. Proteopedia's wiki lacks Template:Font_color: red text?. 6. Colored caption test:
|
|