Difference between revisions of "Template:Condition/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Created page with "{{Doc/start}} This is condition template created for use together with the Template:Tooltip hover box template on a specific condition's page or condition's tooltip page....")
(No difference)

Revision as of 13:23, 27 May 2020

Template-info.png Documentation

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

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

<includeonly>{{#switch: {{{1}}}
|ConditionType = {{neg|Physical}}
|Properties1 = Deals Damage
|Values1 = {{neg|+2}}
|Properties2 = Energy Restoration
|Values2 = {{neg|-5%}}
|Properties3 = Healing Efficiency
|Values3 = {{neg|-30%}}
|PropertyText = Each turn reduces the affected Body Part's condition by {{neg|1%}}.
|Description =
|#default = 
}}</includeonly>

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


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

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

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