Difference between revisions 40023 and 40025 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 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">
\n'
    conj = conj .. '{| style="background:#F0F0F0;border-collapse:separate;border-spacing:2px" class="inflection-table"\n'
    conj = conj .. '|-\n'
    conj = conj .. '! colspan="1" style="background:#e2e4c0" | infinitive\n'
    conj = conj .. '| colspan="1" | ' .. inf .. '\n'
    conj = conj .. '|-\n'
    conj = conj .. '! colspan="2" style="background:#e2e4c0" | auxiliary verb\n'
    conj = conj .. '| colspan="1" | ' .. aux ..'\n'
    conj = conj .. '! colspan="2" style="background:#e2e4c0" | gerund\n'
-- This is all wrong - How to construct a pretty table??
    return conj
end

return p