Difference between revisions 40038 and 40040 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 ger = args["ger"]
    local ger2 = args["ger2"]
    ger = p.alts(ger, ger2)
    local presp = args["presp"]
    local presp2 = args["presp2"]
    presp = p.alts(presp, presp2)
    local pastp = args["pastp"]
    local pastp2 = args["pastp2"]; local pastp3 = args["pastp3"]; local pastp3 = args["pastp3"]
; local pastp4 = args["pastp4"]
    pastp = p.alts(pastp, pastp2)
    pastp = p.alts(pastp, pastp3)
    pastp = p.alts(pastp, pastp4)
    local conj = '<div class="NavFrame">\n'
    conj = conj .. '<div class="NavHead" align=left>&nbsp; &nbsp; Conjugation of ' .. inf .. '</div>\n'
    conj = conj .. '<div class="NavContent">\n'
(contracted; show full)    conj = conj .. '! colspan="2" style="background:#e2e4c0" | past participle\n'
    conj = conj .. '| colspan="2" | ' .. pastp .. '\n'
    
    conj = conj .. '|}</div></div>'
    return conj
end

return p