Difference between revisions of "Template:Book/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Phoe nixx
(create documentation)
 
m (1 revision imported)
(No difference)

Revision as of 22:14, 21 November 2021

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.