Modulo:Wikidata/test: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m aggiornato
test_wikidata_time
Riga 97:
 
function p:test_wikidata_time()
self:preprocess_equals_many("{{Wikidata/Sandbox|from=Q38|", "}}", {
{ "from=Q38|P571", "2 giugno 1946" },
{ "from=Q38|P571|time=year", "1946" },
{ "from=Q38|P571|time=month", "giugno 1946" },
{ "from=Q38|P571|time=day", "2 giugno 1946" },
{ "from=Q38|P571|time=precision", "11" },
{ "from=Q38|P571|time=calendarmodel", "http://www.wikidata.org/entity/Q1985727" },
{ "from=Q38|P571|formatting=raw", "+1946-06-02T00:00:00Z" },
{ "from=Q1407|P569", "16 novembre 42 a.C." },
{ "from=Q1407|P569|time=year", "42 a.C." },
{ "from=Q1407|P569|time=month", "novembre 42 a.C." },
{ "from=Q1407|P569|time=day", "16 novembre 42 a.C." },
{ "from=Q1407|P570", "16 marzo 37" },
{ "from=Q1407|P570|time=year", "37" },
{ "from=Q1407|P570|time=month", "marzo 37" },
{ "from=Q1407|P570|time=day", "16 marzo 37" },
})
end