Ad placeholder

Module:DiceUtils: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Undo revision 19574 by NamelessWonder (talk))
Tag: Undo
No edit summary
Line 45: Line 45:
avg_str = string.format("(%d - %d)", min_damage, max_damage)
avg_str = string.format("(%d - %d)", min_damage, max_damage)
end
end
damage_html = mw.html.create("")
damage_str = string.format("%s %s %s", table.concat(dice, " + "), d_type, avg_str)
damage_html:wikitext(string.format("{{DamageType|%s}}",d_type))
damage_str = string.format("%s %s %s", table.concat(dice, " + "), tostring(damage_html), avg_str)
table.insert(result, damage_str)
table.insert(result, damage_str)

Navigation menu