48,407
edits
No edit summary |
No edit summary |
||
| Line 190: | Line 190: | ||
-- Otherwise, check the Wikidata item for a sitelink. | -- Otherwise, check the Wikidata item for a sitelink. | ||
local item = self:getWikidataItem() | local item = self:getWikidataItem() | ||
article = item and sitelink(item, project | article = self:getCanonicalName() or false --item and sitelink(item, project) or false | ||
if article then | if article then | ||
return "w:" .. article | return "w:" .. article | ||