local getArgs = require('Module:Arguments').getArgslocal yesno = require('Module:yesno')
local function tidyVal(key, val) if type(val)
then return nil else return val end else return val endend
local talmud =
talmud.jb_key =
function talmud.generate_citation(frame) local args = getArgs(frame,) jb = args[1] or 'b' if not talmud.jb_key[jb] then return require('Module:Error').error end tractate = args[2] daf = args[4] or args[3] -- These are page or folio numbers as described at Talmud#Slavuta Talmud 1795 and Vilna Talmud 1835. Ranges are accepted, eg. 2b-4a url = args.url nobook = yesno(args[5] or args.nobook) if not url then url = "https://www.sefaria.org/" if(jb
return talmud