Module:Rotten Tomatoes data and Module:Rotten Tomatoes data/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Issues have been solved. Removing category. An explanation can be found at User talk:Indagate#Template care |
Use Module:EditAtWikidata directly |
||
Line 70: | Line 70: | ||
if i then |
if i then |
||
-- year |
-- year |
||
parts[index] = tonumber(mw.ustring.gsub(dateStr:sub(ptr, i-1), "^ |
parts[index] = tonumber(mw.ustring.gsub(dateStr:sub(ptr, i-1), "^%+(.+)$", "%1"), 10) -- remove '+' sign (explicitly give base 10 to prevent error) |
||
if parts[index] == -0 then |
if parts[index] == -0 then |
||
Line 272: | Line 272: | ||
if key == 1 or key == 'qid' or key == 'title' then |
if key == 1 or key == 'qid' or key == 'title' then |
||
elseif type(key) |
elseif type(key) ~= 'number' then |
||
else |
|||
s[key] = val |
s[key] = val |
||
end |
end |
||
Line 378: | Line 376: | ||
local function get_edit_icon(entityID) |
local function get_edit_icon(entityID) |
||
return |
return require('Module:EditAtWikidata')._showMessage{qid=entityID, pid='P444'} |
||
end |
end |
||