Modulo:Sandbox/Adert: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 1:
local mWikidata = require('Modulo:Wikidata')
local p = {}
 
 
local function equipaggio()
for _,v in pairs(ruoli) do
if v == "Q20644849" then
text = text .. '| Pilota || ' .. mWikidata._getProperty( { 'P1029', qualifier='P39', qualifiervalue='Q20644849' } ) --pilota
text = text .. '\n|-\n'
breakreturn text
end
end
end
 
 
function p.main(frame)
Line 17 ⟶ 29:
text = text .. '| Comandante || ' .. mWikidata._getProperty( { 'P1029', qualifier='P39', qualifiervalue='Q20113945' } ) --comandante
text = text .. '\n|-\n'
text = text .. equipaggio()
 
for _,v in pairs(ruoli) do
if v == "Q20644849" then
text = text .. '| Pilota || ' .. mWikidata._getProperty( { 'P1029', qualifier='P39', qualifiervalue='Q20644849' } ) --pilota
text = text .. '\n|-\n'
break
end
end
 
text = text .. '|}'