Module:Video game wikidata: Difference between revisions

Content deleted Content added
Updates for getting series data and publication dates, other tweaks/refactoring, from Sandbox.
Fix for "unknown value" missing data. If no value set, don't return data for this entry.
Line 194:
 
local function printReviewRow(frame, reviewscore)
local retscore = ""nil;
 
scoreif(reviewscore['mainsnak']['datavalue'] ~= nil and reviewscore['mainsnak']['datavalue']['value']; ~= nil) then
score = reviewscore['mainsnak']['datavalue']['value'];
else
return "";
end;
local referenceret = nil;""
local system = nil;
local scorereference = nil;
local reference = nil;
 
if(reviewscore['qualifiers']['P400'] ~= nil and reviewscore['qualifiers']['P400'][1] ~= nil) then
Line 207 ⟶ 213:
end;
 
ret = ret..score;
score = reviewscore['mainsnak']['datavalue']['value'];
if(score ~= nil and score ~= "") then
ret = ret..score;
end;
 
if(reviewscore['references'] ~= nil and reviewscore['references'][1] ~= nil and genRefs) then