Template:Infobox unit/doc: Difference between revisions

No edit summary
add usage, fix templatedata, reorder
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
|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
}}
{{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
}}
<templatedata>
<templatedata>
{
{
Line 49: Line 128:
},
},
"Image": {
"Image": {
"description": "Unit image",
"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 143:
"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"
}
},
"font-size": {},
"can_move": {}
},
},
"paramOrder": [
"paramOrder": [
Line 80: Line 161:
"sprint_speed",
"sprint_speed",
"soul_value",
"soul_value",
"soul_orbs"
"soul_orbs",
]
"font-size",
"can_move"
],
"format": "block",
"description": " "
}
}
</templatedata>
</templatedata><includeonly>[[Category:Infobox templates|Unit]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
===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>