Anonimo

Modulo:DTSpecific: differenze tra le versioni

Da Wikitrek.
m
nessun oggetto della modifica
mNessun oggetto della modifica
mNessun oggetto della modifica
Riga 361: Riga 361:
for _, Motto in ipairs(Subject.claims["P104"]) do
for _, Motto in ipairs(Subject.claims["P104"]) do
local Text
local Sentence
local Author
local Author
local Source
local Reference
Text = Motto.mainsnak.datavalue.value
Sentence = Motto.mainsnak.datavalue.value
Author = Motto.qualifiers["P47"][1].datavalue.value.id
Author = Motto.qualifiers["P47"][1].datavalue.value.id
Source = Motto.qualifiers["P58"][1].datavalue.value.id
Reference = Motto.qualifiers["P58"][1].datavalue.value.id
table.insert(Boxes, frame:expandTemplate{ title = 'quote', args = {Text = "Text", Sign = "Author", Source = "Source"} })
table.insert(Boxes, frame:expandTemplate{ title = 'quote', args = {text = Sentence, sign = Author, source = Reference} })
end
end