Difference between revisions of "Template:Consumable"

From Stoneshard wiki
Jump to navigation Jump to search
old>Crouzii
m
old>Crouzii
m (Undo revision 5901 by Crouzii (talk))
Line 1: Line 1:
{| width=300px;
{| width=300px;
|style="text-align:center;"|{{:{{ROOTPAGENAME}}|ItemType}}<hr>
|style="text-align:center;"|{{#if: {{:{{ROOTPAGENAME}}|Rarity}} | <span style="font-size: 20px;">{{Unique|{{ROOTPAGENAME}}}}</span> <br /> {{:{{ROOTPAGENAME}}|Rarity}} | <span style="font-size: 20px;">{{ROOTPAGENAME}}</span> <br /> Common }} {{:{{ROOTPAGENAME}}|ItemType}}<hr>
|-
|-
|<div style="width:100%;float: left;color:#9d9a9a;">{{Properties|{{ROOTPAGENAME}}}}</div>
|style="text-align:center;"|{{:{{ROOTPAGENAME}}|Effect1}} {{:{{ROOTPAGENAME}}|EffectType1}}{{#if: {{:{{ROOTPAGENAME}}|Effect2}} | <br>{{:{{ROOTPAGENAME}}|Effect2}} {{:{{ROOTPAGENAME}}|EffectType2}} | }}{{#if: {{:{{ROOTPAGENAME}}|Effect3}} | <br>{{:{{ROOTPAGENAME}}|Effect3}} {{:{{ROOTPAGENAME}}|EffectType3}} | }}{{#if: {{:{{ROOTPAGENAME}}|Effect4}} | <br>{{:{{ROOTPAGENAME}}|Effect4}} {{:{{ROOTPAGENAME}}|EffectType4}} | }}<hr>
|-
|-
|style="color:#9d7969;"|<hr>{{:{{ROOTPAGENAME}}|Description}} <br />
|style="color:#9d7969;"|<hr>{{:{{ROOTPAGENAME}}|Description}} <br />

Revision as of 20:30, 11 May 2020

Template:Unique
Consumable Consumable
Consumable Consumable
Consumable Consumable
Consumable Consumable
Consumable Consumable

Consumable
PriceConsumable
Template-info.png Documentation

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

Usage: The page itself must contain the consumable's data before this Template works. For example, if I wanted to create the Agrimony page, I'll add this code to the start of the page and modify the values:

<includeonly>{{#switch: {{{1}}}
|ItemType = Ingredient
|Properties1 = Energy Replenishment
|Values1 = {{c|+|+5}}
|Properties2 = Health Restoration
|Values2 = {{c|+|+0.50% (45x)}}
|Properties3 = Immunity
|Values3 = {{c|+|+1%}}
|PropertyText = 
|Description = Agrimony has been valued for its healing qualities since olden times.
|Price = 10
|#default = 
}}</includeonly>

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


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

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

It will automatically load the consumable's data and fill them into this format. Go to Agrimony to see the result.