Baka gusto mong gumawa ng pahina ng dokumentasyon para sa Scribunto module na ito. Pwedeng mag-eksperimento ang mga patnugot sa pahina ng sandbox (gumawa | mirror) at testcases (gumawa) ng padron na ito. Magdagdag po ng mga kategorya sa subpage ng /doc. Mga subpage ng module.
localp={}functionp.indent(frame)-- Trim whitespace from the arguments and remove blank values.localargs={}iftype(frame.args)=='table'thenfork,vinpairs(frame.args)dov=mw.text.trim(v)ifv~=''thenargs[k]=vendendend-- Set variables.localindent=tonumber(args[1])localbr=args[2]localret=''-- Insert line breaks to match the functionality of the original template.-- If "br" is set, we need two line breaks; if not, we just need one.ifbrthenret=ret..'<br />'endret=ret..'<br />'-- Control for bad or zero input. If found, output the line breaks only, -- as this was the previous behaviour of the template.ifnotindentorindent<=0ormath.floor(indent)~=indentthenreturnretend-- Generate the indents. The first four cases are special.ifindent==1thenreturnret..' 'elseifindent==2thenreturnret..' 'elseifindent==3thenreturnret..'   'elseifindent==4thenreturnret..'   'end-- Set variables for generating the output after indent == 5.localr={}r.base=' '-- Common text to all output.r.rep='   '-- The text to repeat.r.mod1=' '-- To return on modulo 1.r.mod2='  '-- To return on modulo 2.r.mod3='   '-- To return on modulo 3.-- New iteratorText values needed at 5, 9, 13, 17, etc., so repeat the-- text (indent - 1)/4 times and find the remainder.localreps=math.floor((indent-1)/4)localremainder=math.fmod(indent-1,4)-- Generate the indent text.ret=ret..r.base..mw.ustring.rep(r.rep,reps)ifremainder>=1andremainder<=3thenret=ret..r['mod'..remainder]endreturnretendreturnp