Template:AfflictionParser/doc

From Official Barotrauma Wiki
Revision as of 21:45, 13 April 2023 by G3jzer (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Documentation
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:
  • identifier (first value)
  • strength (second value)
  • chance

burn, 10;
burn, 20, chance = 0.5;
burn, 30;
burn, 40, chance = 0.01;
burn, 50;

projectiles projectiles 8
weapondamagemodifier weapondamagemodifier 1.1

Sub Templates

Template in use

Table Cell

Template:AfflictionDisplayTest


This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.