Difference between revisions of "Template:Treatise/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Phoe nixx
m
m (5 revisions imported)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Doc/start}}
{{Doc/start}}
This is Treatise template created for use as an infobox on a specific treatise tooltip page.
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: Copy this code to any <treatisename>/Tooltip page and replace/fill in the values:


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:
  <nowiki>
  <nowiki>
{{ {{{1|Tooltip hover box}}}
<includeonly>{{#switch: {{{1}}}
|title= {{Treatise
|BookAuthor=Written by Joran of Brynn
|BookAuthor=Written by Joran of Brynn
|BookName=Travelling notes on my journey to Biest
|BookName=Travelling notes on my journey to Biest
|LearnText=Allows to learn some geomantic abilities:
|LearnText=Allows to learn some geomantic abilities:
|ActiveSkills=Runic Boulder<br>Stone Armor
|ActiveSkill1=Runic Boulder
|PassiveSkills=Rune of Enfeeblement
|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.
|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=6500
|Price=400
|Image=Geomantic Treatise I.png
|Image=
}}
|#default = }}</includeonly></nowiki>
}}</nowiki>
This data is invisible on the page itself, thanks to the includeonly tags.
It will produce this result:
 


Next, copy this code to [[Geomantic Treatise I]] or [[Geomantic Treatise I/Tooltip]] or [[Geomantic Treatise I/anything]] page:
<nowiki>
{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title= {{Treatise
|title= {{Treatise}}
|BookAuthor=Written by Joran of Brynn
}}</nowiki>
|BookName=Travelling notes on my journey to Biest
It will automatically load the treatise's data and fill them into this format. Go to [[Geomantic Treatise I]] to see the result.
|LearnText=Allows to learn some geomantic abilities:
|ActiveSkills=Runic Boulder<br>Stone Armor
|PassiveSkills=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=6500
|Image=Geomantic Treatise I.png
}}
}}
{{Doc/end}}
{{Doc/end}}

Latest revision as of 21:18, 21 November 2021

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.