Bureaucrats, emailconfirmed, Administrators
18,268
edits
No edit summary |
No edit summary |
||
Line 169: | Line 169: | ||
eLink='c:Special:EntityPage/'..item | eLink='c:Special:EntityPage/'..item | ||
elseif item_type == 'Q' then | elseif item_type == 'Q' then | ||
eLink=' | eLink='Item:'..item -- wikibase entity page link | ||
elseif item_type == 'P' then | elseif item_type == 'P' then | ||
eLink=' | eLink='Property:'..item -- wikibase entity page link | ||
else | else | ||
eLink=' | eLink='Special:EntityPage/'..item | ||
end | end | ||
if link_type == '-' then -- allow different link formats | if link_type == '-' then -- allow different link formats | ||
Line 180: | Line 180: | ||
link = eLink -- link to wikibase entity page | link = eLink -- link to wikibase entity page | ||
elseif link_type == 'wikidata talk' and item_type == 'P' then | elseif link_type == 'wikidata talk' and item_type == 'P' then | ||
link = ' | link = 'Property talk:'.. item -- link to wikidata property talk page | ||
elseif link_type == 'wikidata talk' then | elseif link_type == 'wikidata talk' then | ||
link = ' | link = 'Talk:'..item -- link to wikidata talk page | ||
elseif link_type == 'commons' or link_type == 'commonscat' then | elseif link_type == 'commons' or link_type == 'commonscat' then | ||
--[[ | --[[ |