Module:User:Tynnoel/R:The Bokmål and Nynorsk dictionaries

Hello, you have come here looking for the meaning of the word Module:User:Tynnoel/R:The Bokmål and Nynorsk dictionaries. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Tynnoel/R:The Bokmål and Nynorsk dictionaries, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Tynnoel/R:The Bokmål and Nynorsk dictionaries in singular and plural. Everything you need to know about the word Module:User:Tynnoel/R:The Bokmål and Nynorsk dictionaries you have here. The definition of the word Module:User:Tynnoel/R:The Bokmål and Nynorsk dictionaries will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Tynnoel/R:The Bokmål and Nynorsk dictionaries, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local p = {}
 
function p.main(frame)
    local PAGENAME = mw.title.getCurrentTitle().text
    
    local templateLang = frame.args
    local args = frame:getParent().args
    
    local lang
    
    if templateLang and templateLang ~= '' then
    	lang = templateLang
    else
	    if args then
	        lang = args
	    else
	        lang = 'no'
	    end
    end
    
    if lang == 'nb' then
        specifier = 'bm'
        specifier2 = "''The Bokmål Dictionary''"
    elseif lang == 'nn'  then
        specifier = 'nn'
        specifier2 = "''The Nynorsk Dictionary''"
    elseif lang == 'no' then
        specifier = 'bm,nn'
        specifier2 = "''The Bokmål Dictionary'' / ''The Nynorsk Dictionary''"
    end
    
    target = args or PAGENAME
        
    template = "[https://ordbokene.no/" .. specifier .. "/search?q=" .. target  ..
    " “" .. target .. "”] in " .. specifier2 .. "."
    return template
end
 
return p