Μετάβαση στο περιεχόμενο

Module:Wikidata/Formatters/scale

Ασό Βικιπαίδεια

Documentation for this module may be created at Module:Wikidata/Formatters/scale/τεκμηρίωση

local p = {}

local QuantityFormatter = require('Module: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