Content deleted Content added
Avoid Lua errors when Wikidata is unavailable (e.g. on other MediaWikis) |
Implementing MOS RFC. |
||
(3 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 =
local platformB =
if(a['qualifiers']['P400'] ~= nil and
platformA = p.getSystemAlias(a['qualifiers']['P400'][1]['datavalue']['value']['numeric-id']);
if(platformA == nil) then
Line 450 ⟶ 454:
if(pubDates) then
for i,pubDate in pairs(pubDates) do
if(pubDate['mainsnak']['datavalue']) then
local timestamp = pubDate['mainsnak']['datavalue']['value']['time']; local accessdate = Date(timestamp);
table.insert(ret,accessdate);
end;
end;
end;
|