Template:Infobox unit/doc: Difference between revisionsGive feedback
m Sylphoid moved page Template:Infobox Unit/doc to Template:Infobox unit/doc: standardize |
changed max_health type to be a string. in practice, pages like Walker already use non-numeric strings |
||
| (10 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
== Usage == | |||
This infobox template is used for NPCs. It should be placed at the top of the page. For the hero infobox, see {{t|Infobox hero}}. | |||
== Examples == | |||
<pre style="width:50%"> | |||
{{Infobox unit | |||
|name= Guardian | |||
|Image= Guardian Icon.png | |||
|max_health = 5500 | |||
|health_regen = 0 | |||
|damage_resist = 75 → -50 | |||
|bullet_resist = 0 | |||
|spirit_resist = 0 | |||
|dps = 28 | |||
|bullet_damage = 16 | |||
|melee_damage = 200 | |||
|stationary = | |||
|move_speed = 0 | |||
|stamina = 0 | |||
|sprint_speed = 0 | |||
|attack_range = 1500 | |||
|soul_orbs = 4 | |||
|soul_value = 100 | |||
}} | |||
</pre> | |||
{{Infobox unit | |||
|name= Guardian | |||
|Image= Guardian Icon.png | |||
|max_health = 5500 | |||
|health_regen = 0 | |||
|damage_resist = 75 → -50 | |||
|bullet_resist = 0 | |||
|spirit_resist = 0 | |||
|dps = 28 | |||
|bullet_damage = 16 | |||
|melee_damage = 200 | |||
|stationary = | |||
|move_speed = 0 | |||
|stamina = 0 | |||
|sprint_speed = 0 | |||
|attack_range = 1500 | |||
|soul_orbs = 4 | |||
|soul_value = 100 | |||
}} | |||
{{Clear}} | |||
<pre style="width:50%"> | |||
{{Infobox unit | |||
|can_move=true | |||
|name=Ranged Trooper | |||
|Image=Trooper Icon.png | |||
|max_health=300 | |||
|health_regen=0 | |||
|bullet_resist=0 | |||
|spirit_resist=0 | |||
|dps=28 | |||
|bullet_damage=36 | |||
|attack_range=1000 | |||
|melee_damage=25 | |||
|move_speed=2.4 | |||
|sprint_speed=4.33 | |||
|soul_value=75 | |||
|soul_orbs=1 | |||
}} | |||
</pre> | |||
{{Infobox unit | |||
|can_move=true | |||
|name=Ranged Trooper | |||
|Image=Trooper Icon.png | |||
|max_health=300 | |||
|health_regen=0 | |||
|bullet_resist=0 | |||
|spirit_resist=0 | |||
|dps=28 | |||
|bullet_damage=36 | |||
|attack_range=1000 | |||
|melee_damage=25 | |||
|move_speed=2.4 | |||
|sprint_speed=4.33 | |||
|soul_value=75 | |||
|soul_orbs=1 | |||
}} | |||
{{Clear}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 10: | Line 92: | ||
"description": "Unit Health", | "description": "Unit Health", | ||
"example": "5500", | "example": "5500", | ||
"type": " | "type": "string" | ||
}, | }, | ||
"health_regen": { | "health_regen": { | ||
"description": "Unit Health Regen (if applicable)", | "description": "Unit Health Regen (if applicable)", | ||
"type": "number" | "type": "number" | ||
}, | |||
"damage_resist": { | |||
"description": "Unit Damage Resistance %", | |||
"type": "string" | |||
}, | }, | ||
"bullet_resist": { | "bullet_resist": { | ||
| Line 49: | Line 135: | ||
}, | }, | ||
"Image": { | "Image": { | ||
"description": " | "description": "Image file for the unit. Do not include the File: prefix.", | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
| Line 64: | Line 150: | ||
"description": "Number of Soul Orbs spawned by the unit on death", | "description": "Number of Soul Orbs spawned by the unit on death", | ||
"type": "number" | "type": "number" | ||
}, | |||
"voice_actor": { | |||
"description": "voice actor" | |||
}, | |||
"quotes": { | |||
"description": "link to quotes page" | |||
}, | |||
"information": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Information box" | |||
}, | |||
"font-size": {}, | |||
"can_move": { | |||
"description": "adds movement boxes" | |||
} | } | ||
}, | }, | ||
| Line 71: | Line 173: | ||
"max_health", | "max_health", | ||
"health_regen", | "health_regen", | ||
"damage_resist", | |||
"bullet_resist", | "bullet_resist", | ||
"spirit_resist", | "spirit_resist", | ||
| Line 80: | Line 183: | ||
"sprint_speed", | "sprint_speed", | ||
"soul_value", | "soul_value", | ||
"soul_orbs" | "soul_orbs", | ||
] | "font-size", | ||
"can_move", | |||
"voice_actor", | |||
"quotes", | |||
"information" | |||
], | |||
"format": "block", | |||
"description": " " | |||
} | } | ||
</templatedata | </templatedata><includeonly>[[Category:Infobox templates|Unit]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 19:19, 27 August 2026
Usage
[edit source]This infobox template is used for NPCs. It should be placed at the top of the page. For the hero infobox, see {{Infobox hero}}.
Examples
[edit source]{{Infobox unit
|name= Guardian
|Image= Guardian Icon.png
|max_health = 5500
|health_regen = 0
|damage_resist = 75 → -50
|bullet_resist = 0
|spirit_resist = 0
|dps = 28
|bullet_damage = 16
|melee_damage = 200
|stationary =
|move_speed = 0
|stamina = 0
|sprint_speed = 0
|attack_range = 1500
|soul_orbs = 4
|soul_value = 100
}}
{{Infobox unit
|can_move=true
|name=Ranged Trooper
|Image=Trooper Icon.png
|max_health=300
|health_regen=0
|bullet_resist=0
|spirit_resist=0
|dps=28
|bullet_damage=36
|attack_range=1000
|melee_damage=25
|move_speed=2.4
|sprint_speed=4.33
|soul_value=75
|soul_orbs=1
}}
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name | Name of the unit
| Unknown | required |
| Image | Image | Image file for the unit. Do not include the File: prefix.
| File | required |
| max_health | max_health | Unit Health
| String | optional |
| health_regen | health_regen | Unit Health Regen (if applicable) | Number | optional |
| damage_resist | damage_resist | Unit Damage Resistance % | String | optional |
| bullet_resist | bullet_resist | Unit Bullet Resistance % | Number | optional |
| spirit_resist | spirit_resist | Unit Spirit Resistance % | Number | optional |
| dps | dps | Player DPS Value of the Unit | Number | optional |
| bullet_damage | bullet_damage | Individual attack damage | Number | optional |
| attack_range | attack_range | Maximum Attack Range | Number | optional |
| melee_damage | melee_damage | Unit melee damage (if applicable) | Number | optional |
| move_speed | move_speed | Unit walk speed (if applicable) | Number | optional |
| sprint_speed | sprint_speed | Unit sprint speed (if applicable) | Number | optional |
| soul_value | soul_value | How many Souls the unit grants in total (Including Base Amount + Soul Orbs) | Number | optional |
| soul_orbs | soul_orbs | Number of Soul Orbs spawned by the unit on death | Number | optional |
| font-size | font-size | no description | Unknown | optional |
| can_move | can_move | adds movement boxes | Unknown | optional |
| voice_actor | voice_actor | voice actor | Unknown | optional |
| quotes | quotes | link to quotes page | Unknown | optional |
| information | information | Information box
| Unknown | optional |