Difference between revisions 40117 and 40118 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 args = pframe.args local inf = args["inf"] or error("Infinitive missing!") local aux = args["aux"] or "avere" -- Get all the inflected forms and their alternative forms (at least 1 alt each) local ger = p.wiki(args["ger"]) local ger2 = p.wiki(args["ger2"]) ger = p.alts(ger, ger2) local presp = p.wiki(args["presp"]) local presp2 = p.wiki(args["presp2"]) presp = p.alts(presp, presp2) local pastp = p.wiki(args["pastp"]) local pastp2 = p.wiki(args["pastp2"]); local pastp3 = p.wiki(args["pastp3"]); local pastp3 = p.wiki(args["pastp3"]); local pastp4 = p.wiki(args["pastp4"]) pastp = p.alts(pastp, pastp2) pastp = p.alts(pastp, pastp3) pastp = p.alts(pastp, pastp4) local pres1s = args["pres1s"] or ""; local pres2s = args["pres2s"] or ""; local pres3s = args["pres3s"] or ""⏎ -- local pres1p = args["pres1p"] or ""; local pres2p = args["pres2p"] or ""; local pres3p = args["pres3p"] or "" -- local pres1s2 = args["pres1s2"]; local pres2s2 = args["pres2s2"]; local pres2s2 = args["pres2s2"] -- local pres1p2 = args["pres1p2"]; local pres2p2 = args["pres2p2"]; local pres3p2 = args["pres3p2"] -- pres1s = p.alts(pres1s, pres1s2); pres2s = p.alts(pres2s, pres2s2); pres3s = p.alts(pres3s, pres3s2) -- pres1p = p.alts(pres1p, pres1p2); pres2p = p.alts(pres2p, pres2p2); pres3p = p.alts(pres3p, pres3p2) -- local imperf1s = args["imperf1s"] or ""; local imperf2s = args["imperf2s"] or ""; local imperf3s = args["imperf3s"] or "" -- local imperf1p = args["imperf1p"] or ""; local imperf2p = args["imperf2p"] or ""; local imperf3p = args["imperf3p"] or "" -- local imperf1s2 = args["imperf1s2"]; local imperf2s2 = args["imperf2s2"]; local imperf3s2 = args["imperf3s2"] -- local imperf1p2 = args["imperf1p2"]; local imperf2p2 = args["imperf2p2"]; local imperf3p2 = args["imperf3p2"] -- imperf1s = p.alts(imperf1s, imperf1s2); imperf2s = p.alts(imperf2s, imperf2s2); imperf3s = p.alts(imperf3s, imperf3s2) -- imperf1p = p.alts(imperf1p, imperf1p2); imperf2p = p.alts(imperf2p, imperf2p2); imperf3p = p.alts(imperf3p, imperf3p2) -- See if reflexive -- local mi = args["mi"] or " "; local ti = args["ti"] or " "; local si = args["si"] or " "; local ci = args["ci"] or " "; local vi = args["vi"] or " " -- if mi ~= nil then mi = mi .. " "; ti = ti .." "; si = si .. " "; ci = ci .. " "; vi = vi .. " "; end -- Start to build pretty table local conj = '<div class="NavFrame">\n' conj = conj .. '<div class="NavHead" align=left> Conjugation of ' .. inf .. '</div>\n' conj = conj .. '<div class="NavContent">\n' (contracted; show full) conj = conj .. '|-\n' conj = conj .. '|}</div></div>' return conj end return p All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://test2.wikipedia.org/w/index.php?diff=prev&oldid=40118.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|