Module:Video game wikidata: Difference between revisions

Content deleted Content added
Fix error caused when a video game is missing it's publication date.
Implementing MOS RFC.
 
(2 intermediate revisions by the same user not shown)
Line 45:
[184839] = 'N64',
[182172] = 'GC', -- Sometimes has been NGC
[19610114] = 'NS', -- Nintendo Switch
[98973368] = 'XSX/S', -- Xbox Series X and Series S (Output label differs from the input parameter, XSXS, per RFC)
[63184502] = 'PS5'
}
 
Line 77 ⟶ 79:
['GC'] = 182172,
['NGC'] = 182172,
['NS'] = 19610114,
['XSXS'] = 98973368, -- This is the template parameter, which cannot contain a / or | character.
['PS5'] = 63184502
}
 
Line 107 ⟶ 111:
 
local function sortByPlatform(a,b)
local platformA = nil"";
local platformB = nil"";
if(a['qualifiers']['P400'] ~= nil and ba['qualifiers']['P400'][1] ~= nil) then
platformA = p.getSystemAlias(a['qualifiers']['P400'][1]['datavalue']['value']['numeric-id']);
if(platformA == nil) then