Module:InfoboxHero: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
Fix parameter resolution for direct #invoke, and set DISPLAYTITLE via parser function instead of returning it as wikitext (with help from vergir-bot LLM)
Vergir (talk | contribs)
Drop the deprecated no_summary and no_icon parameters in favour of show_hero_tags and show_icon (with help from vergir-bot LLM)
Line 756: Line 756:
ctx.display_name = (args.name ~= '' and args.name) or lang_module.get_string(hero_key)
ctx.display_name = (args.name ~= '' and args.name) or lang_module.get_string(hero_key)


-- |no_*= forces a section off; otherwise |show_*= decides.
ctx.show_hero_tags = args.show_hero_tags ~= 'false'
ctx.show_hero_tags = args.no_summary ~= 'true' and args.show_hero_tags ~= 'false'
ctx.show_icon      = args.show_icon ~= 'false'
ctx.show_icon      = args.no_icon    ~= 'true' and args.show_icon     ~= 'false'


-- Needed by both row visibility and the category rules.
-- Needed by both row visibility and the category rules.