Difference between revisions of "Template:Book/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Phoe nixx
(create documentation)
 
(update to current template)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Doc/start}}
{{Doc/start}}
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.
This is treatise template created for use together with the [[Template:Tooltip hover box]] template on a specific [[Books & Notes]] page or [[Treatises]] 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:
==Usage==
The book's data is loaded from [[Book data]]. This syntax provides the tooltip look and content loaded via the {{tl|Book}} template. Use on pages is combined with float CSS, positioning the result to the right.
  <nowiki>
  <nowiki>
<includeonly>{{#switch: {{{1}}}
<div style="float: right">{{ {{{1|Tooltip hover box}}}|title= {{Book}}}}</div></nowiki>
|BookAuthor=Written by Abbot Vidian
|BookName=
|Description=A hefty old book with a chewed up binding and damp, yellowed pages.
|Price=1
|#default = }</includeonly></nowiki>
This data is invisible on the page itself, thanks to the includeonly tags.


By default the page name is used as the book name. If you want to load a specific book on any page, you can provide its name as a parameter, for example:
<nowiki>
{{ {{{1|Tooltip hover box}}}|title= {{Book|Pyromantic Treatise IV}}}}</nowiki>
{{ {{{1|Tooltip hover box}}}|title= {{Book|Pyromantic Treatise IV}}}}


Next, copy this code to [[Monastic Book]] or [[Monastic Book/Tooltip]] or [[Monastic Book/anything]] page:
==Book Content==
You can also load the text that's written inside a book or treatise by using this transclusion syntax:
  <nowiki>
  <nowiki>
{{ {{{1|Tooltip hover box}}}
{{:Book data|Pyromantic Treatise IV Content}}</nowiki>
|title= {{Book}}
 
}}</nowiki>
{{:Book data|Pyromantic Treatise IV Content}}
It will automatically load the book's data and fill them into this format. Go to [[Monastic Book]] to see the result.
 
{{Doc/end}}
{{Doc/end}}

Latest revision as of 16:42, 21 June 2023

Template-info.png Documentation

This is treatise template created for use together with the Template:Tooltip hover box template on a specific Books & Notes page or Treatises page.

Usage

The book's data is loaded from Book data. This syntax provides the tooltip look and content loaded via the {{Book}} template. Use on pages is combined with float CSS, positioning the result to the right.

<div style="float: right">{{ {{{1|Tooltip hover box}}}|title= {{Book}}}}</div>

By default the page name is used as the book name. If you want to load a specific book on any page, you can provide its name as a parameter, for example:

{{ {{{1|Tooltip hover box}}}|title= {{Book|Pyromantic Treatise IV}}}}
Pyromantic Treatise IV
Written by Jovar Arno
"A Tale of the Everflaming, as Told by a Jibean Merchant"

Allows you to learn the following Pyromancy abilities:

Inferno
Excess Heat
Pyromania

Reading this book grants some Experience.
An assortment of road notes from a famous traveler, describing the sect of fire-worshipping dervishes. The detailed description of some of their rituals looks particularly promising.
Price1800

Book

Book Content

You can also load the text that's written inside a book or treatise by using this transclusion syntax:

{{:Book data|Pyromantic Treatise IV Content}}

...They surrounded me, and, for a brief moment, I was fearful that I was to share the fate of the poor sod whose charred remains we had stumbled upon at the crossroads. However, they seemed friendly, even if the sight of their eerie masks unnerved me greatly.

( . . . )

After we finished our food, the priest - I could only assume he was a priest - gestured for us to leave the tent. Weighed down by the heavy meal, we reluctantly followed him outside. To our astonishment, we saw a huge crowd, even though just a couple hours ago there was hardly more than a few dozen elves in the entire camp. The blinding light of hundreds of flames was chasing off the pitch-black darkness of the night. The moon, as if terrified of the competition, hid behind the clouds that had gathered all of a sudden. Wasting no time the priest marched onwards, confidently pushing the crowd out of our way...

( . . . )

The song came to a halt, leaving us in thick, oppressive silence. For a few minutes we just stood there, exchanging confused looks, when suddenly the skies opened up, raining fire and flames upon the people sitting in the middle of the circle. The crowd roared, then burst into wild dance, utterly enraptured. The burning dervishes were still sitting in their place, completely unperturbed. I believe I even spotted a faint smile on one of the faces. Terrified, we attempted to flee, vainly trying to get through the rows of spinning nomads as they drew closer and closer...