Template:AfflictionParser/doc

From Official Barotrauma Wiki
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

{{AfflictionDisplayTest|afflictions = 
burn, 10; 
burn, 20, chance = 0.5; 
burn, 30; 
burn, 40, chance = 0.01;
burn, 50;
Table Cell

Template:AfflictionDisplayTest


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