Module:Abilities/utils: Difference between revisionsGive feedback
m Only add plus prefix if it is explicitly defined in localization file |
m Default exclude_plus to false |
||
| Line 23: | Line 23: | ||
-- Add prefix and postfix labels to a value. Eg. "32" -> "32s" | -- Add prefix and postfix labels to a value. Eg. "32" -> "32s" | ||
function p.format_value_with_prepost(key, value, frame, exclude_plus) | function p.format_value_with_prepost(key, value, frame, exclude_plus) | ||
if (exclude_plus == nil) then exclude_plus = false end | |||
if (value == nil) then return nil end | if (value == nil) then return nil end | ||