Module:Databox : Tameẓla gar ileqman

Contenu supprimé Contenu ajouté
Sami At Ferḥat (mmeslay | attekki)
Aucun résumé des modifications
Sami At Ferḥat (mmeslay | attekki)
Aucun résumé des modifications
Ajerriḍ 61:
'P8989', --category for the view of the item
'P1482', --Stack Exchange tag
}
 
local web_properties = {
'P856', --official website
'P953', --full work available at URL
}
 
Ligne 90 ⟶ 95 :
end
 
local function has_value (tab, val)
for index, value in ipairs(tab) do
if value == val then
Ligne 136 ⟶ 141 :
for i, property in pairs(data_properties) do
local formatting = nil
if has_value(web_properties, property) then
formatting = "weblink"
end
dico["label"..i+1] = getLabel({property})
dico["data"..i+1] = claim({item=itemId, property=property, formatting = formatting})
end
Ligne 171 ⟶ 181 :
return infobox(dico)
end
 
 
return p