Template:AfflictionParser/doc: Difference between revisions
From Official Barotrauma Wiki
(Created page with "{{doc/start}}{{main|Boilerplate:Gear}} WORK IN PROGRESS Template that will hopefully replace the current way afflictions are inserted into the Template:Items Infobox and h...") |
|||
Line 32: | Line 32: | ||
=Template in use= | =Template in use= | ||
<pre style="width:50em> | |||
{{AfflictionDisplayTest|afflictions = | |||
burn, 10; | |||
burn, 20, chance = 0.5; | |||
burn, 30; | |||
burn, 40, chance = 0.01; | |||
burn, 50; | |||
</pre> | |||
{| | {| |
Revision as of 21:46, 13 April 2023
Main article: Boilerplate:Gear
WORK IN PROGRESS
Template that will hopefully replace the current way afflictions are inserted into the Template:Items Infobox and how they are displayed there and in all other templates that display afflictions.
Instructions
Field | Note | Example | Expected | Default |
---|---|---|---|---|
afflictions | Afflictions are separated by ; Values are separated by , Supported values:
|
burn, 10; |
||
projectiles | projectiles | 8 | ||
weapondamagemodifier | weapondamagemodifier | 1.1 |
Sub Templates
Template in use
{{AfflictionDisplayTest|afflictions = burn, 10; burn, 20, chance = 0.5; burn, 30; burn, 40, chance = 0.01; burn, 50;
Table Cell |
---|
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.