Difference between revisions 40113 and 40114 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) end return headword .. cat end function p.wiki(x) -- For use within p.itconj function. -- Wikifies term. if x ~== ""nil then x = ""⏎ return "[[" .. x .. "]]" end return x⏎ end function p.alts(x,y) -- For use within p.itconj function. -- Adds alternate forms with a comma in between. if y ~= nil then return x .. ", " .. y end return x end function p.itconj(frame) -- This function builds pretty tables for Italian verb conjugation. -- It is called by other templates/functions for regular verbs, and called directly for some irregular ones. local pframe = frame:getParent() 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 = 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) (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=40114.
![]() ![]() 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.
|