localexport={}locallang=require("Module:languages").getByCode("urj-fin-pro")-- The main entry point.-- This is the only function that can be invoked from a template.functionexport.show(frame)localargs=frame:getParent().argsSUBPAGENAME=mw.title.getCurrentTitle().subpageTextlocalhead=args["head"];ifhead==""thenhead=nilend-- The part of speech. This is also the name of the category that-- entries go in. However, the two are separate (the "cat" parameter)-- because you sometimes want something to behave as an adjective without-- putting it in the adjectives category.localposcat=frame.args[1]orerror("Part of speech has not been specified. Please pass parameter 1 to the module invocation.")localcat=args["cat"];ifcat==""thencat=nilendlocalinflections=nillocalcategories={}ifposcat=="verbs"thenlocalstem=args[1]ifstemtheninflections={{label="stem","*"..stem.."-"}}ifargs["stem2"]thentable.insert(inflections[1],"*"..args["stem2"].."-")endelsetable.insert(categories,"Proto-Finnic verb stem requests")endendlocaldata={lang=lang,pos_category=catorposcat,categories=categories,heads={head},inflections=inflections}returnrequire("Module:headword").full_headword(data)endreturnexport