Module:R:Aasen

local p = {} function p.main(frame) local PAGENAME = mw.title.getCurrentTitle.text args = frame:getParent.args if args['searchmode'] then searchmode = args['searchmode'] else searchmode = 'ord' end if searchmode == 'leit' then searchmode_ = 'leit' elseif searchmode == 'search' then searchmode_ = 'leit' else searchmode_ = 'ord' end target = args[1] or PAGENAME target_ = target:gsub(' ', '%%20')

template = "[https://aasen.ordboki.no/" .. searchmode_ .. "/" .. target_ .. " “" .. target .. "”] in Ivar Aasen (1873) Norsk Ordbog med dansk Forklaring" return template end return p