Template:Book/doc

From Stoneshard wiki
< Template:Book
Revision as of 18:21, 9 October 2020 by old>Phoe nixx (create documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template-info.png Documentation

This is treatise template created for use together with the Template:Tooltip hover box template on a specific treatise's page or treatise's tooltip page.

Usage: The page itself must contain the book's data before this Template works. For example, if I wanted to create the Monastic Book page, I'll add this code to the start of the page and modify the values:

<includeonly>{{#switch: {{{1}}}
|BookAuthor=Written by Abbot Vidian
|BookName=
|Description=A hefty old book with a chewed up binding and damp, yellowed pages.
|Price=1
|#default = }</includeonly>

This data is invisible on the page itself, thanks to the includeonly tags.


Next, copy this code to Monastic Book or Monastic Book/Tooltip or Monastic Book/anything page:

{{ {{{1|Tooltip hover box}}}
|title= {{Book}}
}}

It will automatically load the book's data and fill them into this format. Go to Monastic Book to see the result.