Difference between revisions of "Template:Book/doc"
Jump to navigation
Jump to search
m (1 revision imported) |
(update to current template) |
||
| 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 | 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 | ==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> | ||
< | <div style="float: right">{{ {{{1|Tooltip hover box}}}|title= {{Book}}}}</div></nowiki> | ||
| | |||
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}}}} | |||
==Book Content== | |||
You can also load the text that's written inside a book or treatise by using this transclusion syntax: | |||
<nowiki> | <nowiki> | ||
{{ | {{:Book data|Pyromantic Treatise IV Content}}</nowiki> | ||
{{:Book data|Pyromantic Treatise IV Content}} | |||
{{Doc/end}} | {{Doc/end}} | ||
Revision as of 16:42, 21 June 2023
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 |
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}}
Data does not exist.