Editing Template:Infobox unit/doc

Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
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 92: Line 10:
"description": "Unit Health",
"description": "Unit Health",
"example": "5500",
"example": "5500",
"type": "string"
"type": "number"
},
},
"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 135: Line 49:
},
},
"Image": {
"Image": {
"description": "Image file for the unit. Do not include the File: prefix.",
"description": "Unit image",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggestedvalues": [
"suggestedvalues": [
Line 150: Line 64:
"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 173: Line 71:
"max_health",
"max_health",
"health_regen",
"health_regen",
"damage_resist",
"bullet_resist",
"bullet_resist",
"spirit_resist",
"spirit_resist",
Line 183: Line 80:
"sprint_speed",
"sprint_speed",
"soul_value",
"soul_value",
"soul_orbs",
"soul_orbs"
"font-size",
]
"can_move",
"voice_actor",
"quotes",
"information"
],
"format": "block",
"description": " "
}
}
</templatedata><includeonly>[[Category:Infobox templates|Unit]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
</templatedata>
===Example===
<pre style="width:50%">
{{Infobox unit
|name= Guardian
|Image= Guardian Icon.png
|max_health = 5500
|health_regen = 0
|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
|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}}
<includeonly>[[Category:Infobox templates|Unit]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template