Modulo:DTGenerico: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
mNessun oggetto della modifica
mNessun oggetto della modifica
 
Riga 107: Riga 107:
end
end
ExcludeP = {P3 = true, P7 = true, P8 = true, P11 = true, P21 = IsEpisode, P23 = true, P26 = true, P37 = true,  P46 = true, P58 = true, P68 = true, P52 = true, P79 = true, P90 = true, P104 = true, P162 = true}
ExcludeP = {P3 = true, P7 = true, P8 = true, P11 = true, P21 = IsEpisode, P23 = true, P26 = true, P37 = true,  P46 = true, P58 = true, P68 = true, P52 = true, P61 = true, P79 = true, P90 = true, P104 = true, P162 = true}
AllP = mw.wikibase.orderProperties(Item:getProperties())
AllP = mw.wikibase.orderProperties(Item:getProperties())
Riga 331: Riga 331:
YearLink = LabelOrLink(SnakValue.qualifiers['P74'][1].datavalue.value['id'], nil, nil, PrintDate)
YearLink = LabelOrLink(SnakValue.qualifiers['P74'][1].datavalue.value['id'], nil, nil, PrintDate)
end
end
QualiString = " " .. "(" .. p.ProcessQualifiers(SnakValue) .. ")"
QualiString = " " .. p.ProcessQualifiers(SnakValue) --"(" .. p.ProcessQualifiers(SnakValue) .. ")"
end
end
Riga 523: Riga 523:
--QualiValue[#QualiValue + 1] = Qualifier[1].datavalue.value
--QualiValue[#QualiValue + 1] = Qualifier[1].datavalue.value
table.insert(QualiValue, Qualifier[1].datavalue.value)
table.insert(QualiValue, Qualifier[1].datavalue.value)
elseif SnakValue.qualifiers['P19'] ~= nil then
elseif Qualifier[1].property == "P19" then  --SnakValue.qualifiers['P19'] ~= nil then
-- Suffix
-- Suffix
table.insert(QualiValue, Qualifier[1].datavalue.value)
table.insert(QualiValue, Qualifier[1].datavalue.value)