Moderator, Bürokraten, Checkuser-Berechtigte, developer, emailconfirmed, Oberflächenadministratoren, Oversighter, Administratoren
11.008
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 5: | Zeile 5: | ||
local totalReview = 0 | local totalReview = 0 | ||
local entity = mw.wikibase.getEntityObject('Q294') | local entity = mw.wikibase.getEntityObject('Q294') | ||
result = '{| class="wikitable fullwidth\n! | result = '{| class="wikitable fullwidth\n!Übersicht!!Gesamtbewertung\n' | ||
if not entity or not entity.claims then return end --the entity doesnt exist or have no claims | if not entity or not entity.claims then return end --the entity doesnt exist or have no claims | ||
local property = entity.claims[claimIdentifier] | local property = entity.claims[claimIdentifier] | ||
Zeile 14: | Zeile 14: | ||
totalReview = totalReview + reviewNumber | totalReview = totalReview + reviewNumber | ||
totalReviewCount = totalReviewCount + 1 | totalReviewCount = totalReviewCount + 1 | ||
result = result .. '|- style="' .. reviewStyle(reviewNumber) .. ' \n| ' .. getValueLabel(prop) .. ' || ' .. lang:formatNum(reviewNumber) .. ' von 10\n' | result = result .. '|- style="' .. reviewStyle(reviewNumber) .. ' \n| ' .. getValueLabel(prop) .. '<br>' .. getConclusion(prop) .. ' || ' .. lang:formatNum(reviewNumber) .. ' von 10\n' | ||
end | end | ||
end | end | ||
Zeile 48: | Zeile 48: | ||
end | end | ||
if prop.references and prop.references[1] and prop.references[1].snaks['P18'] and prop.references[1].snaks['P18'][1] then | if prop.references and prop.references[1] and prop.references[1].snaks['P18'] and prop.references[1].snaks['P18'][1] then | ||
return "[" .. prop.references[1].snaks['P18'][1].datavalue.value .. " " .. linkLabel .. "]" | return "'''Bewertung von:''' [" .. prop.references[1].snaks['P18'][1].datavalue.value .. " " .. linkLabel .. "]" | ||
end | end | ||
return linkLabel | return linkLabel | ||
end | |||
function getConclusion(prop) | |||
return "'''Positive Erwähnungen:''' " .. prop.qualifiers['P77'][1].datavalue.value .. | |||
"<br>" .. | |||
"'''Negative Erwähnungen:''' " .. prop.qualifiers['P78'][1].datavalue.value | |||
end | end | ||
Bearbeitungen