66 557
contributi
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 172: | Riga 172: | ||
--local CurrentItem = mw.wikibase.getEntity() | --local CurrentItem = mw.wikibase.getEntity() | ||
local CurrentQ | local CurrentQ | ||
local UpperCategories | |||
local AZCategory = '' | local AZCategory = '' | ||
Riga 201: | Riga 202: | ||
AZCategory = "[[Category:" .. AZInstancesMember[CurrentQ] .. " - " .. FirstLetter .. "]]" | AZCategory = "[[Category:" .. AZInstancesMember[CurrentQ] .. " - " .. FirstLetter .. "]]" | ||
return | return (p.PropertiesOnTree("P68", 1, false)) .. AZCategory | ||
else | else | ||
UpperCategories = p.PropertiesOnTree("P68", 2, true) | |||
if type(UpperCategories) == "table" then | |||
return table.concat(UpperCategories) | |||
else | |||
return UpperCategories | |||
end | |||
end | end | ||
end | end | ||
function p.UpperCategoryTree(frame) | function p.UpperCategoryTree(frame) | ||
return | return p.PropertiesOnTree("P69", 1, false) | ||
end | end | ||
function p.IconTree(frame) | function p.IconTree(frame) |