Module:Abilities/utils: Difference between revisions

Jump to navigation Jump to search
added format_value_with_prepost
No edit summary
Line 20: Line 20:


-- Add prefix and postfix labels to a value. Eg. "32" -> "32s"
-- Add prefix and postfix labels to a value. Eg. "32" -> "32s"
function format_value_with_prepost(key, value, frame)
function p.format_value_with_prepost(key, value, frame)
if (value == nil) then return nil end
if (value == nil) then return nil end