Module:no-entry-subst

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

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local p = {}
 
function p.main(frame)    
    lang = frame.args
    templ = {}
    templ = 'verb'; templ = 'adj'; templ = 'noun'
    classl = string.lower(frame.args)
    classf = string.upper(string.sub(classl, 1,1))
    class = classf .. string.sub(classl, 2)
    class2 = frame.args
    meaning = frame.args
    etyl = ''
    entry_nn = ''
    entry_nb = ''
    if lang == 'nb' or lang == 'no' then
        start = '==Norwegian Bokmål=='
        entry_nb = string.format(start .. '\n\n===%s===\n{{nb-%s-%s}}\n\n# ]', class, templ, class2, meaning)
    end
    if lang == 'nn' or lang == 'no' then
        if lang == 'no' then
            start = '\n\n----\n\n==Norwegian Nynorsk=='
        else
            start = '==Norwegian Nynorsk=='
        end
        entry_nn = string.format(start .. '\n\n===%s===\n{{nn-%s-%s}}\n\n# ]', class, templ, class2, meaning)
    end
    entry = entry_nb .. entry_nn
    return entry
end
 
return p