Modulo:BibleQuote: differenze tra le versioni

nessun oggetto della modifica
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 23: Riga 23:
local p = {} --p stands for package
local p = {} --p stands for package


function p.isValidVersion( version )
function p.isValidVersion( frame )
in_table(version, VERSIONS_AVAILABLE)
    local args = getArgs(frame, {
    --we will only consider arguments that are passed by the template itself in the invoke
    frameOnly = true
    })
    -- let's make sure defaults are set
    args.version = args.version or "NABRE"
if (in_table(args.version, VERSIONS_AVAILABLE)) then
return 1
else
return 0
end
end
end