Difference between revisions of "Template:Book"
old>Phoe nixx m |
old>Phoe nixx |
||
Line 3: | Line 3: | ||
<span style="text-align:center;color:#9d9a9a;">{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:{{ROOTPAGENAME}}|BookAuthor}} | {{Translate|{{ROOTPAGENAME}} BookAuthor|Books}}}} | {{:{{ROOTPAGENAME}}|BookAuthor}}}}</span><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;"> | <span style="text-align:center;color:#9d9a9a;">{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:{{ROOTPAGENAME}}|BookAuthor}} | {{Translate|{{ROOTPAGENAME}} BookAuthor|Books}}}} | {{:{{ROOTPAGENAME}}|BookAuthor}}}}</span><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;"> | ||
|- | |- | ||
|style="color:#9d7969;text-align:justify"|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:{{ROOTPAGENAME}}|Description}} | {{Translate|{{ROOTPAGENAME}} Description|Books}}}} | {{:{{ROOTPAGENAME}}|Description}}}}<div style="float: right;">[[File:Gold_Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{c|white|{{:{{ROOTPAGENAME}}|Price}}}}</div><br> | |style="color:#9d7969;text-align:justify"|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:{{ROOTPAGENAME}}|Description}} | {{Translate|{{ROOTPAGENAME}} Description|Books}}}} | {{:{{ROOTPAGENAME}}|Description}}}}{{#if:{{:{{ROOTPAGENAME}}|Price}}|<div style="float: right;">[[File:Gold_Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{c|white|{{:{{ROOTPAGENAME}}|Price}}}}</div>}}<br> | ||
|- | |- | ||
|style="text-align:center;"|[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{ROOTPAGENAME}}.png}}|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{Translate|{{ROOTPAGENAME}}|Treatises}}|{{Translate|{{ROOTPAGENAME}}|Treatises}}]] | |style="text-align:center;"|[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{ROOTPAGENAME}}.png}}|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{Translate|{{ROOTPAGENAME}}|Treatises}}|{{Translate|{{ROOTPAGENAME}}|Treatises}}]] |
Revision as of 16:34, 9 October 2020
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}}}}
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...