Modulo:Wikidata/Formatters/scale
Dokumentado por ĉi tiu modulo povas esti kreata ĉe Modulo:Wikidata/Formatters/scale/dokumentado
local p = {}
local QuantityFormatter = require('Modulo:Wikidata/Formatters').Formatters.quantity
local function formatScale(value)
return mw.ustring.format('1:%s', value)
end
function p.getRawValue(value, options)
return formatScale(QuantityFormatter.getRawValue(value, options))
end
function p.formatValue(value, options)
return formatScale(QuantityFormatter.formatValue(value, options))
end
return p