User:Eric Martz/Sandbox 5: Difference between revisions

From Proteopedia
Jump to navigation Jump to search
Eric Martz (talk | contribs)
No edit summary
Eric Martz (talk | contribs)
No edit summary
Line 6: Line 6:


Caption text can be <font color="red"> colored</font> using HTML. Examples:
Caption text can be <font color="red"> colored</font> using HTML. Examples:
*<nowiki><font color="red">red text</font>.</nowiki> displays: <font color="red">red text</font>.
*<nowiki><font color="red">red text</font>.</nowiki> displays <font color="red">red text</font>.


Colors are usually easier to see in boldface. You can use either HTML or wikitext bold markup:
Colors are usually easier to see in boldface. You can use either HTML or wikitext bold markup:
*HTML: <nowiki><font color="red"><b>red text</b></font>.</nowiki> displays: <font color="red"><b>red text</b></font>.
*HTML: <nowiki><font color="red"><b>red text</b></font>.</nowiki> displays <font color="red"><b>red text</b></font>.
*Three single quotes: <nowiki><font color="red">'''red text'''</font>.</nowiki> displays: <font color="red">'''red text'''</font>.
*Three single quotes: <nowiki><font color="red">'''red text'''</font>.</nowiki> displays: <font color="red">'''red text'''</font>.
Light colors may be unreadable on a white background, so use a black background.
*Yellow on white: <nowiki><font color="yellow"><b>yellow</b></font>.</nowiki> displays <font color="yellow"><b>yellow</b></font>.





Revision as of 19:31, 19 August 2020

Caption Rules

These rules are concluded from the tests below.

Coloring Caption Text

Caption text can be colored using HTML. Examples:

  • <font color="red">red text</font>. displays red text.

Colors are usually easier to see in boldface. You can use either HTML or wikitext bold markup:

  • HTML: <font color="red"><b>red text</b></font>. displays red text.
  • Three single quotes: <font color="red">'''red text'''</font>. displays: red text.

Light colors may be unreadable on a white background, so use a black background.

  • Yellow on white: <font color="yellow"><b>yellow</b></font>. displays yellow.


Caption Tests

1.

  • SCENE OK. CAPTION BAD FORMAT.
  • <b>{{font color|#ef7000|426 pockets and cavities}}</b> in 6zgi generated with the command <tt><b>isosurface cavity</b></tt>.
  • Proteopedia does not support this wikitext color method.

2.

  • NO SCENE, NO CAPTION.
  • <b><font color=\"#ef7000\">426 pockets and cavities</font></b> in [[6zgi]] generated with the command <tt><b>isosurface cavity</b></tt>.

3.

  • SCENE OK. CAPTION COLORED BUT NO 6zgi LINK.
  • <b><font color="#ef7000">426 pockets and cavities</font></b> in [[6zgi]] generated with the command <tt><b>isosurface cavity</b></tt>.

4. .

  • Here is <span style="color:yellow;background-color:black;">yellow text on a black background</span> as a test.


Drag the structure with the mouse to rotate