Difference between revisions of "Template:Treatise"
Jump to navigation
Jump to search
old>Realpsojed (fix for subpage check) |
old>Realpsojed m (Reverted edits by Realpsojed (talk) to last revision by AlchemistAdam) |
||
Line 1: | Line 1: | ||
<includeonly>{| width=300px; | <includeonly>{| width=300px; | ||
|style="text-align:center;"|<span style="font-size: 20px;"> | |style="text-align:center;"|<span style="font-size: 20px;">{{ROOTPAGENAME}}</span><br> | ||
<span style="text-align:center;color:#9d9a9a;">{{ | <span style="text-align:center;color:#9d9a9a;">{{{BookAuthor}}}</span><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px #13121d;margin: 10px 0 10px 0;"> | ||
|- | |- | ||
|'''"{{ | |'''"{{{BookName}}}"'''<br> | ||
|- | |- | ||
|style="color:#9d9a9a;"|<br>{{ | |style="color:#9d9a9a;"|<br>{{{LearnText}}}<br><br> | ||
|- | |- | ||
|<div style="float: left; | |<div style="float: left;color:#0ed78e;">{{{ActiveSkills}}}</div>{{clear}} | ||
<div style="float: left;color:#f6bb15;">{{{PassiveSkills}}}</div> | |||
<div style="float: left; | |||
|- | |- | ||
|style="color:#9d7969;text-align:justify"|<hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">{ | |style="color:#9d7969;text-align:justify"|<hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">{{{Description}}}<div style="float: right;">[[File:Gold_Icon.png|18px|alt=Price|link=|Price]]{{W|{{{Price}}}}}</div><br> | ||
|- | |- | ||
|style="text-align:center;"|[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{ROOTPAGENAME}}.png}}|link={{ | |style="text-align:center;"|[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{ROOTPAGENAME}}.png}}|link={{ROOTPAGENAME}}/Tooltip|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]] | ||
|} | |} | ||
</includeonly><noinclude>{{doc}} | </includeonly><noinclude>{{doc}} | ||
[[Category:Tooltip templates]]</noinclude> | [[Category:Tooltip templates]]</noinclude> |
Revision as of 15:43, 9 October 2020
Documentation
[purge]
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 treatise's data before this Template works. For example, if I wanted to create the Geomantic Treatise I page, I'll add this code to the start of the page and modify the values:
<includeonly>{{#switch: {{{1}}} |BookAuthor=Written by Joran of Brynn |BookName=Travelling notes on my journey to Biest |LearnText=Allows to learn some geomantic abilities: |ActiveSkill1=Runic Boulder |ActiveSkill2=Stone Armor |PassiveSkill1=Rune of Enfeeblement |Description=A rather chaotic journal by a professor of linguistics who taught in Brynn a century ago. Perhaps the most fascinating read of the entire Grammar curriculum at Brynn University. |Price=400 |Image= |#default = }}</includeonly>
This data is invisible on the page itself, thanks to the includeonly tags.
Next, copy this code to Geomantic Treatise I or Geomantic Treatise I/Tooltip or Geomantic Treatise I/anything page:
{{ {{{1|Tooltip hover box}}} |title= {{Treatise}} }}
It will automatically load the treatise's data and fill them into this format. Go to Geomantic Treatise I to see the result.