Mòdul:WikidataCommonsCat: diferència entre les revisions
Contingut suprimit Contingut afegit
correcció |
simplifico |
||
Línia 1:
local p = {}
function p.getCommonslink(frame)
Linha 12 ⟶ 8:
local sitelink_cat
local sitelink =
if not sitelink or sitelink:sub(1,9) ~= "Category:" then
-- check for topic's main category
Linha 19 ⟶ 15:
if prop then
catid = prop.mainsnak.datavalue and prop.mainsnak.datavalue.value.id
sitelink_cat =
end
if not sitelink_cat then
Linha 26 ⟶ 22:
if prop then
catid = prop.mainsnak.datavalue and prop.mainsnak.datavalue.value.id
sitelink_cat =
end
if not sitelink_cat then
|