Module:BibleQuote: Difference between revisions
no edit summary
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
Line 23: | Line 23: | ||
local p = {} --p stands for package | local p = {} --p stands for package | ||
function p.isValidVersion( | 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 | ||