Module:InfoboxHero: Difference between revisions

Vergir (talk | contribs)
Categorise heroes whose abilities Street Brawl changes (with help from vergir-bot LLM)
Vergir (talk | contribs)
Restore mangled comment text (with help from vergir-bot LLM)
Line 643: Line 643:
wrap:tag('div'):addClass('infobox-h-title-hero-left')
wrap:tag('div'):addClass('infobox-h-title-hero-left')


-- Name logo: <n>_name.svg, or <n>_name_<lang>.svg on translated pages.
-- Name logo: <Name>_name.svg, or <Name>_name_<lang>.svg on translated pages.
-- Heroes without a logo fall back to their name as plain text.
-- Heroes without a logo fall back to their name as plain text.
local svg = ((ctx.args.name ~= '' and ctx.args.name) or ctx.hero_en) .. '_name'
local svg = ((ctx.args.name ~= '' and ctx.args.name) or ctx.hero_en) .. '_name'