Модул:R:NAOB
Документацију овог модула можете да направите на страници Модул: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