Difference between revisions of "Template:Treatise"

From Stoneshard wiki
Jump to navigation Jump to search
m (31 revisions imported)
Line 5: Line 5:
|'''"{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:{{ROOTPAGENAME}}|BookName}} | {{Translate|{{ROOTPAGENAME}} BookName|Treatises}}}} | {{:{{ROOTPAGENAME}}|BookName}}}}"'''<br>
|'''"{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:{{ROOTPAGENAME}}|BookName}} | {{Translate|{{ROOTPAGENAME}} BookName|Treatises}}}} | {{:{{ROOTPAGENAME}}|BookName}}}}"'''<br>
|-
|-
|style="color:#9d9a9a;"|<br>{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:{{ROOTPAGENAME}}|LearnText}} | {{Translate|{{ROOTPAGENAME}} LearnText|Treatises}}}} | {{:{{ROOTPAGENAME}}|LearnText}}}}<br><br>
|style="color:#9d9a9a;"|<br>{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | Allows you to learn the following {{#sub: {{ROOTPAGENAME}}|0|{{#expr: {{#pos:{{ROOTPAGENAME}}| }} - 1}} abilities: | {{Translate|{{ROOTPAGENAME}} LearnText|Treatises}}}} | {{#sub: {{ROOTPAGENAME}}|0|{{#expr: {{#pos:{{ROOTPAGENAME}}| }} - 1}} abilities:}}<br><br>
|-
|-
|<div style="float: left;">{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip|<!--
|<div style="float: left;">{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip|<!--

Revision as of 20:13, 16 August 2022

Template-info.png Documentation

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.