Modul:Bewertung
Die Dokumentation für dieses Modul kann unter Modul:Bewertung/Doku erstellt werden
Skriptfehler: Interner Lua-Fehler: Der Interpreter beendet sich mit dem Status 127.
function getValue(prop)
local result = ''
local propValue = prop.mainsnak and prop.mainsnak.datavalue
if propValue and propValue.value and propValue.value.amount then
result = result .. lang:formatNum(tonumber(propValue.value.amount))
end
return result
end
function renderList(claimIdentifier)
local entity = mw.wikibase.getEntityObject('Q294')
result = ''
if not entity or not entity.claims then return end --the entity doesnt exist or have no claims
local property = entity.claims[claimIdentifier]
if property then
for key, prop in pairs(property) do
if prop and prop.mainsnak and prop.mainsnak.datavalue then
result = result .. "\n* " .. getValueLabel(prop.mainsnak.datavalue)
end
end
end
return result
end
function render()
return renderList('P75')
end
return {
render = render
}