Module:language-like: Difference between revisions
No edit summary |
No edit summary Tag: Manual revert |
||
| (3 intermediate revisions by the same user not shown) | |||
| 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 | return article | ||
end | end | ||
-- If there's still no article, try the parent (if any). | -- If there's still no article, try the parent (if any). | ||