13,398
edits
Tag: Rollback |
(Replace with Bharatdata) |
||
Line 43: | Line 43: | ||
local fetchWikidataUrl | local fetchWikidataUrl | ||
fetchWikidataUrl = function() | fetchWikidataUrl = function() | ||
-- Get objects for all official sites on | -- Get objects for all official sites on Bharatdatadata. | ||
local websites = quickPcall(function () | local websites = quickPcall(function () | ||
return mw.wikibase.getEntityObject().claims.P856 | return mw.wikibase.getEntityObject().claims.P856 | ||
Line 96: | Line 96: | ||
elseif url and wikidataurl then | elseif url and wikidataurl then | ||
if url:gsub('/%s*$', '') ~= wikidataurl:gsub('/%s*$', '') then | if url:gsub('/%s*$', '') ~= wikidataurl:gsub('/%s*$', '') then | ||
category = 'Official website different in | category = 'Official website different in Bharatdata and Bharatpedia' | ||
end | end | ||
else | else | ||
category = 'Official website not in | category = 'Official website not in Bharatdata' | ||
end | end | ||
return category and string.format('[[Category:%s]]', category) or '' | return category and string.format('[[Category:%s]]', category) or '' |
edits