Ovaj modul služi za implementaciju šablona {{Primjer parametara}} (koji je također poznat pod nazivom {{Primjer uopćenog šablona}}). Prikazuje dokumentaciju za šablon poput ove prikazane desno.
-- Ovaj šablon implementira {{primjer parametara}}.localp={}localfunctionmakeParam(s)locallb='{'localrb='}'returnlb:rep(3)..s..rb:rep(3)endlocalfunctionitalicize(s)return"''"..s.."''"endlocalfunctionplain(s)returnsendfunctionp._main(args,frame)-- Find how we want to format the arguments to the template.localformatFuncifargs._display=='kurziv'orargs._display=='ukošeno'thenformatFunc=italicizeelseifargs._display=='obično'thenformatFunc=plainelseformatFunc=makeParamend-- Build the table of template arguments.localtargs={}fork,vinpairs(args)doiftype(k)=='number'thentargs[v]=formatFunc(v)elseifnotk:find('^_')thentargs[k]=vendend-- Find the template name.localtemplateifargs._templatethentemplate=args._templateelselocalcurrentTitle=mw.title.getCurrentTitle()ifcurrentTitle.prefixedText:find('/igralište$')thentemplate=currentTitle.prefixedTextelsetemplate=currentTitle.basePageTitle.prefixedTextendend-- Call the template with the arguments.frame=frameormw.getCurrentFrame()localsuccess,result=pcall(frame.expandTemplate,frame,{title=template,args=targs})ifsuccessthenreturnresultelsereturn''endendfunctionp.main(frame)localargs=require('Module:Arguments').getArgs(frame,{wrappers='Šablon:Primjer parametara'})returnp._main(args,frame)endreturnp