localm_lb=require("Module:labels")localexport={}functionexport.show(frame)localargs=frame:getParent().argslocalpagename=mw.title.getCurrentTitle().textif(args[1]==nilandmw.title.getCurrentTitle().nsText=="Template")thenargs[1]="und"endlocallang=require("Module:languages").getByCode(args[1])orerror("The language code \""..args[1].."\" is not valid.")localnocat=args["nocat"]~=nillocalscript=args["script"]ornillocalscript2=args["script2"]ornillocalsort_key=args["sort"]orpagenamelocalsort_key2=args["sort2"]orpagenamelocalterm_mode=(frame.args["term"])~=nillocallabels=get_labels(args,require("Module:languages").getByCode(args[1]):getCanonicalName())returnm_lb.show_labels(labels,lang,script,script2,sort_key,sort_key2,nocat,term_mode)endfunctionget_labels(args,langname)locallabels={}localindtr=""locali=2localq=nillocalfirst=true;if(args["intr"]~=nil)thenindtr=indtr.."[[intransitive]], or "endwhile(args[i]~=nil)doif(mw.ustring.sub(args[i],0,1)==".")thentable.insert(labels,mw.ustring.sub(args[i],2));elseif(first==false)thenindtr=indtr.." or "elseif(args["cop"]~=nilandargs["ditr"]~=nil)thenindtr=indtr.."[[ditransitive]], [[copulative]] with "elseif(args["cop"]~=nil)thenindtr=indtr.."[[copulative]] with "elseif(args["ditr"]~=nil)thenindtr=indtr.."[[ditransitive]], with the indirect object taking "elseif(args["aux"]~=nil)thenindtr=indtr.."[[auxiliary]] with "elseindtr=indtr.."[[transitive]] with "endfirst=falseendif(mw.ustring.sub(args[i],0,1)=="-")thenindtr=indtr..mw.ustring.sub(args[i],2);elseindtr=indtr.."'''[["..args[i].."#"..langname.."|"..args[i].."]]'''"endindtr=indtr..qualifier(args[("qual"..(i-1))])endi=i+1endif(args["direct"]~=nil)thenif(args["ditr"]~=nil)thenindtr=indtr.." or no preposition"elseindtr=indtr.." or with no preposition"endindtr=indtr..qualifier(args["qualdirect"])endif(args["aux"]~=nil)thenindtr=indtr.." and a verb in the "..args["aux"]elseif(args["cop"]~=nilandargs["ditr"]~=nil)thenindtr=indtr.." for the second object"endtable.insert(labels,indtr)returnlabelsendfunctionqualifier(text)if(text==nilortext=="")thenreturn""endreturn' <span class="ib-brac"><span class="qualifier-brac">(</span></span><span class="ib-content"><span class="qualifier-content">'..text..'</span></span><span class="ib-brac"><span class="qualifier-brac">)</span></span>'endreturnexport