Editing Template:Infobox hero/docGive feedback
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: | ||
{{ | {{Infobox hero | ||
| | | key= hero_atlas | ||
|voice_actor=Samoa Joe | | art = Abrams full.png | ||
|release_date=April 16, 2024 | | weapon_name = Case Closed | ||
|codenames=Atlas; Bull | | card = Abrams card.png | ||
|no_spirit_resist=true | |||
|no_bullet_resist=true | |||
|no_sprint=true | |||
|max_health = {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|MaxHealth|3}}{{PI|34}} | |||
|bullet_damage= {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|BulletDamage|3}}{{PI|0.25}} | |||
|light_melee= {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|LightMeleeDamage|3}}{{PI|2.67}} | |||
|heavy_melee= {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|HeavyMeleeDamage|3}}{{PI|4.91}} | |||
|voice_actor= Samoa Joe | |||
|release_date= April 16, 2024 | |||
|codenames= Atlas; Bull | |||
}} | }} | ||
Template fills in most parameters in infobox automatically with data from [[Data:HeroData.json]]. | |||
You need to put hero's code name or their capitalized name in English in "key" parameter first. | |||
For example this "key" fills infobox with data for {{HeroIcon|Ivy}} | |||
For example | |||
<pre>|key = hero_tengu</pre> | <pre>|key = hero_tengu</pre> | ||
or | or | ||
<pre>|key = Ivy</pre> | <pre>|key = Ivy</pre> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "name": {}, | ||
"card": { | |||
"required": true, | "required": true, | ||
"description": "Adds hero's portrait ", | |||
"example": "Abrams card.png" | |||
"description": " | |||
"example": "Abrams card.png | |||
}, | }, | ||
"weapon_name": {}, | |||
"dps": {}, | "dps": {}, | ||
"bullet_damage": {}, | "bullet_damage": {}, | ||
"ammo": {}, | "ammo": {}, | ||
"bullets_per_sec": {}, | "bullets_per_sec": {}, | ||
| Line 109: | Line 40: | ||
"light_melee": {}, | "light_melee": {}, | ||
"heavy_melee": {}, | "heavy_melee": {}, | ||
"range": {}, | |||
"max_range": { | "max_range": { | ||
"description": " | "description": "For Bebop" | ||
}, | }, | ||
"max_health": {}, | "max_health": {}, | ||
"health_regen": {}, | "health_regen": {}, | ||
"bullet_resist": {}, | "bullet_resist": {}, | ||
"spirit_resist": {}, | "spirit_resist": {}, | ||
" | "move_speed": {}, | ||
" | "sprint_speed": {}, | ||
"description": " | "stamina": {}, | ||
"voice_actor": {}, | |||
"release_date": {}, | |||
"quotes": {}, | |||
"codenames": {}, | |||
"no_spirit_resist": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Removes spirit resist from the table", | |||
"suggested": true | |||
}, | |||
"no_bullet_resist": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Removes bullet resist from the table", | |||
"suggested": true | |||
}, | |||
"no_sprint": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Removes sprint speed from the table", | |||
"suggested": true | |||
}, | |||
"has_max_range": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Adds max range parameter (for Bebop)" | |||
}, | |||
"no_summary": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Disables summary" | |||
}, | |||
"no_voice_actor": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Removes voice actor from table", | |||
"suggested": true | |||
}, | }, | ||
" | "no_quotes": { | ||
"description": " | "suggestedvalues": [ | ||
"true" | |||
], | |||
"description": "Removes Quotes page link from table" | |||
}, | }, | ||
"no_codenames": { | |||
"description": " | "suggestedvalues": [ | ||
"true" | |||
], | |||
"description": "Removes Codenames from table" | |||
}, | }, | ||
" | |||
"key": { | |||
"description": "Autofills table contents", | |||
"suggestedvalues": [ | |||
"hero_atlas", | |||
" | "hero_bebop", | ||
} | "hero_dynamo", | ||
"hero_orion", | |||
"hero_haze", | |||
"hero_inferno", | |||
"hero_tengu", | |||
"hero_kelvin", | |||
"hero_ghost", | |||
"hero_lash", | |||
"hero_forge", | |||
"hero_mirage", | |||
"hero_krill", | |||
"hero_chrono", | |||
"hero_synth", | |||
"hero_gigawatt", | |||
"hero_shiv", | |||
"hero_hornet", | |||
"hero_viscous", | |||
"hero_warden", | |||
"hero_wraith", | |||
"hero_yamato", | |||
"hero_astro", | |||
"hero_nano", | |||
"hero_wrecker", | |||
"hero_kali", | |||
"hero_cadence" | |||
], | |||
"required": true, | |||
"type": "string" | |||
}, | |||
"icon": {} | |||
}, | }, | ||
"description": "Infobox for heroes.", | |||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"key", | "key", | ||
"card", | "card", | ||
"icon", | "icon", | ||
"name", | "name", | ||
"weapon_name", | |||
"dps", | "dps", | ||
"bullet_damage", | "bullet_damage", | ||
"ammo", | "ammo", | ||
"bullets_per_sec", | "bullets_per_sec", | ||
| Line 163: | Line 160: | ||
"light_melee", | "light_melee", | ||
"heavy_melee", | "heavy_melee", | ||
"range", | |||
"max_range", | "max_range", | ||
"max_health", | "max_health", | ||
"health_regen", | "health_regen", | ||
"bullet_resist", | "bullet_resist", | ||
"spirit_resist", | "spirit_resist", | ||
"move_speed", | "move_speed", | ||
"sprint_speed", | "sprint_speed", | ||
"stamina", | "stamina", | ||
" | "voice_actor", | ||
" | "release_date", | ||
"quotes", | |||
"codenames", | |||
"no_spirit_resist", | |||
"no_bullet_resist", | |||
"no_sprint", | |||
"has_max_range", | |||
"no_summary", | |||
"no_voice_actor", | |||
"no_quotes", | |||
"no_codenames" | |||
] | |||
} | } | ||
</templatedata> | </templatedata><includeonly>[[Category:Infobox templates|Hero]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||
<includeonly>[[Category:Infobox templates|Hero]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |||