Difference between revisions of "Template:Treatise"
Jump to navigation
Jump to search
old>Realpsojed (ok i got a little lost, one more time) |
old>Realpsojed (this should do it) |
||
Line 13: | Line 13: | ||
-->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill4}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill4}}}}|}}<!-- | -->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill4}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill4}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill5}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill5}}}}|}}|<!-- | -->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill5}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill5}}}}|}}|<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill1}}|{{cl|active|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill1}}|{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill1}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} ActiveSkill1|Treatises}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill2}}|<br>{{cl|active|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill2}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill2}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} ActiveSkill2|Treatises}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill3}}|<br>{{cl|active|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill3}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill3}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} ActiveSkill3|Treatises}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill4}}|<br>{{cl|active|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill4}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill4}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} ActiveSkill4|Treatises}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill5}}|<br>{{cl|active|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill5}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill5}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} ActiveSkill5|Treatises}}}}|}}}}|<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill1}}|{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill1}}}}|}}<!-- | -->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill1}}|{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill1}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill2}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill2}}}}|}}<!-- | -->{{#if: {{:{{ROOTPAGENAME}}|ActiveSkill2}}|<br>{{cl|active|{{:{{ROOTPAGENAME}}|ActiveSkill2}}}}|}}<!-- | ||
Line 29: | Line 29: | ||
-->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill4}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill4}}}}|}}<!-- | -->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill4}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill4}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill5}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill5}}}}|}}|<!-- | -->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill5}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill5}}}}|}}|<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill1}}|{{cl|orange|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill1}}|{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill1}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} PassiveSkill1|Treatises}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill2}}|<br>{{cl|orange|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill2}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill2}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} PassiveSkill2|Treatises}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill3}}|<br>{{cl|orange|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill3}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill3}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} PassiveSkill3|Treatises}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill4}}|<br>{{cl|orange|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill4}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill4}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} PassiveSkill4|Treatises}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill5}}|<br>{{cl|orange|{{ROOTPAGENAME}}/{{ | -->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill5}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill5}}/{{#titleparts: {{PAGENAME}} | 1 | 2}}|{{Translate|{{ROOTPAGENAME}} PassiveSkill5|Treatises}}}}|}}}}|<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill1}}|{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill1}}}}|}}<!-- | -->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill1}}|{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill1}}}}|}}<!-- | ||
-->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill2}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill2}}}}|}}<!-- | -->{{#if: {{:{{ROOTPAGENAME}}|PassiveSkill2}}|<br>{{cl|orange|{{:{{ROOTPAGENAME}}|PassiveSkill2}}}}|}}<!-- |
Revision as of 15:51, 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.