Module:HeroData: Difference between revisions

Vergir (talk | contribs)
Consolidate stat/scaling lookups into shared helpers, add resolve_key and has_tags, drop unused dependencies and dead code (with help from vergir-bot LLM)
Vergir (talk | contribs)
m fix write_scalar_str returning several values (inserting weird zeroes in articles) by returning only the first value
Line 399: Line 399:
local template_call = mw.getCurrentFrame():expandTemplate{ title = template_title, args = template_args }
local template_call = mw.getCurrentFrame():expandTemplate{ title = template_title, args = template_args }
local result = template_call:gsub("\n", ""):gsub("\r", "")
      
      
return template_call:gsub("\n", ""):gsub("\r", "")
return result
end
end