Module:R:Aasen
Jump to navigation
Jump to search
- This module lacks a documentation subpage. Please create it.
- Useful links: subpage list • links • transclusions • testcases • sandbox
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