Difference between revisions of "Book"

Jump to navigation Jump to search
121 bytes removed ,  19:31, 15 February 2012
Moved "fonts" section down, to to match the "see below" text. Really GREAT work with this font section, Ingevi!
imported>Ingevi
imported>Catwheezle
(Moved "fonts" section down, to to match the "see below" text. Really GREAT work with this font section, Ingevi!)
Line 21: Line 21:
*'''Keywords:''' Assign any needed [[Keyword]] here
*'''Keywords:''' Assign any needed [[Keyword]] here
*'''Description:''' Used to provide an "item card" description in the inventory.
*'''Description:''' Used to provide an "item card" description in the inventory.
==Markup==
Books can be formatted with a variety of markup tags, listed below:
* Bold tags (<code><nowiki><b></b></nowiki></code>): Text surrounded by bold tags will be '''bolded'''.
* Italic tags (<code><nowiki><i></i></nowiki></code>): Text surrounded by italics tage will be ''italicized''.
* Line break (<code><nowiki><br></nowiki></code>): Breaks the text to the next line.  Strictly speaking, this tag isn't necessary.  You can just as easily add blank lines to the book text.
* Font tag (<code><nowiki><font></nowiki></code>): Changes attributes of the surrounded text.  Available fonts are listed below.  Supported attributes are:
** Color (<code><nowiki><font color='#FFFFFF'></font></nowiki></code>): Changes the font's color.
** Typeface (<code><nowiki><font face='$HandwrittenFont'></font></nowiki></code>): Changes the typeface of the font.  The only typefaces supported at the moment are: <code>$HandwrittenFont</code> and <code>$PrintedFont</code> (default).  More typefaces can be added to the menu if desired, but it costs us memory for each one, so don't go crazy with the Feature Requests.
** Point size (<code><nowiki><font size='20'></font></nowiki></code>): Changes the font size
** Alpha (<code><nowiki><font alpha='#FF'></font></nowiki></code>): Changes the font's transparency.  Two-digit hexadecimal values from <code>'#00'</code> (fully transparent) through <code>'#FF'</code> (fully opaque) are supported.  Useful if your author was low on ink?
* Image tags (<code><nowiki><img></nowiki></code>): Places an image on the page.  See Examples below to see different ways of placing images.  Supported attributes:
** Source filename (<code><nowiki><img src='img://example.dds'></nowiki></code>): '''NECESSARY''' This attribute specifies the filename of the image you want to show up.  You need to use the full pathname of the texture.  You also need to make sure the filename begins with <code>img://</code>.
** Height / width (<code><nowiki><img src='example.dds' height='40' width='40'></nowiki></code>): Sets the height / width (in pixels) of the image.
* Paragraph tag (<code><nowiki><p></nowiki></code>): Delineates a block of text as a paragraph.  Automatically adds a blank line after the end of the paragraph.  Same with the <code><nowiki><br></nowiki></code> tag, this isn't really necessary ''unless'' you're using the following attribute:
** Alignment (<code><nowiki><p align='center'></nowiki></code>): Aligns the surrounded text.  Valid values are 'left', 'right', 'justify', 'center', <s>and 'chaotic evil'</s>.
** Also, if you want to place an image within some text so that it wraps around it, the text containing the image needs to be within paragraph tags.  See Examples below for Examples.
* Page-break (<code>[pagebreak]</code>): Breaks to the next page.  Must be on its own line.  Text automatically breaks to the next page once it reaches the end.  Unfortunately, images do not, so if you notice your images running off the edge of the page, manually place a page-break or reduce the size of your image.


==Fonts==
==Fonts==
Line 61: Line 80:
Image:FalmerFont.png|<b>FalmerFont</b> font
Image:FalmerFont.png|<b>FalmerFont</b> font
</gallery>
</gallery>
==Markup==
Books can be formatted with a variety of markup tags, listed below:
* Bold tags (<code><nowiki><b></b></nowiki></code>): Text surrounded by bold tags will be '''bolded'''.
* Italic tags (<code><nowiki><i></i></nowiki></code>): Text surrounded by italics tage will be ''italicized''.
* Line break (<code><nowiki><br></nowiki></code>): Breaks the text to the next line.  Strictly speaking, this tag isn't necessary.  You can just as easily add blank lines to the book text.
* Font tag (<code><nowiki><font></nowiki></code>): Changes attributes of the surrounded text.  Available fonts are listed below.  Supported attributes are:
** Color (<code><nowiki><font color='#FFFFFF'></font></nowiki></code>): Changes the font's color.
** Typeface (<code><nowiki><font face='$HandwrittenFont'></font></nowiki></code>): Changes the typeface of the font.  The only typefaces supported at the moment are: <code>$HandwrittenFont</code> and <code>$PrintedFont</code> (default).  More typefaces can be added to the menu if desired, but it costs us memory for each one, so don't go crazy with the Feature Requests.
** Point size (<code><nowiki><font size='20'></font></nowiki></code>): Changes the font size
** Alpha (<code><nowiki><font alpha='#FF'></font></nowiki></code>): Changes the font's transparency.  Two-digit hexadecimal values from <code>'#00'</code> (fully transparent) through <code>'#FF'</code> (fully opaque) are supported.  Useful if your author was low on ink?
* Image tags (<code><nowiki><img></nowiki></code>): Places an image on the page.  See Examples below to see different ways of placing images.  Supported attributes:
** Source filename (<code><nowiki><img src='img://example.dds'></nowiki></code>): '''NECESSARY''' This attribute specifies the filename of the image you want to show up.  You need to use the full pathname of the texture.  You also need to make sure the filename begins with <code>img://</code>.
** Height / width (<code><nowiki><img src='example.dds' height='40' width='40'></nowiki></code>): Sets the height / width (in pixels) of the image.
* Paragraph tag (<code><nowiki><p></nowiki></code>): Delineates a block of text as a paragraph.  Automatically adds a blank line after the end of the paragraph.  Same with the <code><nowiki><br></nowiki></code> tag, this isn't really necessary ''unless'' you're using the following attribute:
** Alignment (<code><nowiki><p align='center'></nowiki></code>): Aligns the surrounded text.  Valid values are 'left', 'right', 'justify', 'center', <s>and 'chaotic evil'</s>.
** Also, if you want to place an image within some text so that it wraps around it, the text containing the image needs to be within paragraph tags.  See Examples below for Examples.
* Page-break (<code>[pagebreak]</code>): Breaks to the next page.  Must be on its own line.  Text automatically breaks to the next page once it reaches the end.  Unfortunately, images do not, so if you notice your images running off the edge of the page, manually place a page-break or reduce the size of your image.
==Available Fonts==
[ToDo: Honor the promise from the <code>font</code> tag above: "Available fonts are listed below."]


==Examples==
==Examples==
Anonymous user

Navigation menu