Template:Infobox hero tags

Revision as of 13:44, 11 August 2026 by Vergir (talk | contribs) (Resolve the hero key with a single HeroData invoke instead of three, fixing key leaking between transclusions when a key does not resolve (with help from vergir-bot LLM))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation [view] [edit] [history] [purge]
CSS3 logo.svg
This template uses CSS found at Infobox hero tags/styles.css.
Tank
Brawler
Bull-Headed

Summary

edit

Create three sets of tags for a selected hero. These tags are found on the hero selection roster.

The hero's code name or their capitalized English name must be entered in the "key" parameter first. Code name is preferable because it loads faster.

For example, this "key" creates a set of tags with data for Abrams:

|key = hero_atlas

or

|key = Abrams

This template will return empty if no valid hero is found or if there are no tags for the hero.

Documentation

edit

Description:

Automated hero tags that represent the tags found in the hero roster.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
keykey

The hero's key word, used to auto-fill table contents from "Data:HeroData.json". Can be the hero's capitalized name in English or the hero's in-game code name.

Suggested values
hero_astro hero_atlas hero_bebop hero_bookworm hero_cadence hero_chrono hero_doorman hero_drifter hero_druid hero_dynamo hero_familiar hero_fencer hero_forge hero_frank hero_ghost hero_gigawatt hero_haze hero_hornet hero_inferno hero_kelvin hero_krill hero_lash hero_magician hero_mirage hero_nano hero_necro hero_orion hero_priest hero_punkgoat hero_shiv hero_synth hero_tengu hero_unicorn hero_vampirebat hero_viper hero_viscous hero_warden hero_werewolf hero_wraith hero_yamato
Stringrequired
sizesize

Sets the relative size of the hero tags based on the original font size (1.2em). Must be a multiplier number. Some examples: 1 stands for the original size, 0.5 stands for half the original size, and 2 stands for twice the original size

Default
1
Example
0.75 (stands for 75% of the original size)
Numberoptional
gapgap

The column/row gap distance between hero tags. Must be a valid CSS length value.

Default
10px
Unknownoptional
alignalign

For alternate alignment of text position.

Suggested values
center end start flex-start flex-end space-between
Unknownoptional