มอดูล:R:NAOB
หน้าตา
- The following documentation is located at มอดูล:R:NAOB/documentation. [edit]
- Useful links: subpage list • links • transclusions • testcases • sandbox
local process_params = require("Module:parameters").process
local uri_encode = mw.uri.encode
local export = {}
function export.main(frame)
local args = process_params(frame:getParent().args, {
[1] = true,
["searchmode"] = true,
})
local target = args[1] or mw.loadData("Module:headword/data").pagename
local searchmode = args.searchmode or "ordbok"
return ("[https://www.naob.no/%s/%s “%s”] in ''Det Norske Akademis ordbok'' (''NAOB'')."):format(
uri_encode(searchmode == "search" and "søk" or searchmode, "PATH"),
uri_encode(target, "PATH"),
target
)
end
return export