Storybook:Text

From Wiki Salad
Jump to: navigation, search

Many effects can be applied to descriptive text in a book, regardless of whether that text appears in a page, option, status bar, or elsewhere.

Displaying variables

You can display the contents of a variable with the syntax $(variable). For example, suppose that a = "banana". Then, the following text...

Yes, we have no $(a)s.

...will render as...

Yes, we have no bananas.

Markup

Text can also take markup similar to BBCode. If you have posted on a forum, most of this will look very similar.

  • [b]Some text[/b] - Produces bold text.
  • [i]Some text[/i] - Produces italicized text.
  • [u]Some text[/u] - Produces underlined text.
  • [s]Some text[/s] - Produces strikethrough text.
  • [size=N]Some text[/size] - Changes the font size. N can be any number from 0 to 9.
  • [color=X]Some text[/color] - Changes the text color. X can be a color name (e.g. red) or a hex code (e.g. #ff0000). See also: CSS color codes
  • [img]http://example.com/some.image.png[/img] - Displays an image.