Difference between revisions of "Template:Friendly"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(change parameter Goods to Sells, to be consistent with what is displayed)
old>Realpsojed
(change parameter Goods to Sells, to be consistent with what is displayed)
(No difference)

Revision as of 16:07, 9 December 2021

Template-info.png Documentation

This is template created for use together with the Template:Tooltip hover box template on a specific Friendly NPC's page or Friendly NPC's tooltip page.

Usage: The page itself must contain the Friendly NPC's data before this Template works. For example, if I wanted to create the Frid page, I'll add this code to the start of the page:

<includeonly>{{#switch: {{{1}}}
|Name = (optional)
|Occupation = Herbalist
|Residence = Osbrook
|Sells = Herbs, Medicine, Scrolls
|#default = 
}}</includeonly>

This data is invisible on the page itself, thanks to the includeonly tags.


Next, copy this code to Frid or Frid/Tooltip or Frid/anything page:

{{ {{{1|Tooltip hover box}}}
|title= {{Friendly}}
}}

It will automatically load the sword's data and fill them into this format. Go to Frid's page to see the result.