Difference between revisions 40019 and 40020 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 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">
  '
    conj = conj .. '<div class="NavHead" align=left>&nbsp; &nbsp; Conjugation of ' .. inf .. '</div>'
    conj = conj .. '<div class="NavContent">'
    conj = conj .. '{| style="background:#F0F0F0;border-collapse:separate;border-spacing:2px" class="inflection-table"'
    conj = conj .. '|-'
    conj = conj .. '! colspan="1" style="background:#e2e4c0" | infinitive'
    conj = conj .. '| colspan="1" | ' .. inf
    conj = conj .. '|-'
    conj = conj .. '! colspan="2" style="background:#e2e4c0" | auxiliary verb'
    conj = conj .. '| colspan="1" | ' .. aux
    conj = conj .. '! colspan="2" style="background:#e2e4c0" | gerund'
    
    return conj
end

return p