Moduł:Wikidane/format/P2119
< Moduł:Wikidane | format
Zobacz podstrony tego modułu.
|
return {
scope = "prop",
format = function(prop, options)
if (prop.type ~= "statement") or not prop.mainsnak then
return
end
local format = require("Moduł:Wikidane/format/snak").format
local formatQualifiers = require("Moduł:Wikidane/format/qualifiers")
local text = format(prop.mainsnak, options)
local result = {}
table.insert(result, text)
local temperature = formatQualifiers.AND(prop, {format="tekst"}, "P2076")
if temperature then
table.insert(result, " (")
table.insert(result, temperature)
table.insert(result, ")")
end
return table.concat(result, "")
end,
}