Board Thread:Support Requests - Getting Technical/@comment-26104356-20150215032045/@comment-28857013-20150215133523

Since i've dealt with these, I've finished it under 5 minutes: local p = {}

function p.tl( frame ) if frame.args[1] then else return "Error: No Template Name provided" end x=(frame.args["style"] and "&lt;code>") return x end return p Let me explain the parts for you: if frame.args[1] then else return "Error: No Template Name provided" end This serves as a minor error check if one has provided a template name or not. You may want it to become something else, but it works anyway. x=(frame.args["style"] and "&lt;code>{{" or "{{") .. frame:preprocess("' .. frame.args[1] .. "") This starts the line with {{{{{1}}}, with the {{{1}}} becoming the template name desired. the part frame.args["style"] and "&lt;code>{{" or "{{") is a minor ternary operator to decide whether to put the code tag by the style parameter, as shown in Template tl.   i=2    while frame.args[i] do        x=x .. "|&amp;lt;" .. frame.args[i] .. "&amp;gt;"        i=i+1    end this part is a loop, starting from the second parameter, and continues to check til infinity (or when Lua decides to call a stop) on whether there are more parameters. Each part adds an italic tag with color grey, a simplified version for '', since the wikitext are to be expanded/preprocessed if not. It basically follows the pattern in the wikitext template, and so on.    x=x .. (frame.args["style"] and "}} " or "}}")    return x This adds an end, and again deciding a close tag if style parameter is not nil, and then returning the whole output.

BAM. There. Settled.