Module:BibleQuote: Difference between revisions

No edit summary
No edit summary
Line 23: Line 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
    })
return in_table(args.version, VERSIONS_AVAILABLE)
end
end