Difference between revisions 40012 and 40017 on test2wiki

-- This is a test of scribbling. Using Italian templates from en.wiktionary.
-- Owner SemperBlotto
local p = {}

function p.itadj(frame)
    local pframe = frame:getParent()
    local args = pframe.args
    local stem = args[1] or error("1st parameter (stem of adjective) missing!")
(contracted; show full)    local cat
    if sort ~= nil then cat = "[[category:Italian nouns|" .. sort .. "]]"
        else cat = "[[category:Italian nouns]]"
    end
    return headword .. cat
end


function p.itconj(frame)
    local pframe = frame:getParent()
    local args = pframe.args
    local inf = args["inf"] or error("Infinitive missing!")
    local aux = args["aux"] or "avere"
    local ger = args["ger"]
    local presp = args["presp"]
    local pastp = args["pastp"]
    local conj = "<div class="NavFrame"> <div class="NavHead" align=left>&nbsp; &nbsp; Conjugation of "
    conj = conj .. inf
    conj = conj .. "</div>"
    
    return conj
end

return p