Module:R:NAOB

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 = 'ordbok' end if searchmode == 'søk' then searchmode_ = 'søk' elseif searchmode == 'search' then searchmode_ = 'søk' else searchmode_ = 'ordbok' end target = args[1] or PAGENAME target_ = target:gsub(' ', '%%20')

template = "[https://www.naob.no/" .. searchmode_ .. "/" .. target_ .. " “" .. target .. "”] in Det Norske Akademis ordbok (NAOB)." return template end return p