local p =
function p.parseNames(frame) return frame title" .. counter .. " = " .. word counter = counter + 1 end output = output .. "}}" return output-- end
function p.Name2(frame) -- This section is the core of the module. 'Name2' is a name of your choice. The same name needs to be referred to when the module is used. -- The next five lines are mostly for convenience only and can be used as is for your module. The output conditions start on line 20. local pf = frame:getParent.args -- This line allows template parameters to be used in this code easily. The equal sign is used to define variables. 'pf' can be replaced with a word of your choice. local f = frame.args -- This line allows parameters from to be used easily. 'f' can be replaced with a word of your choice. local M = f[1] or pf[1] -- f[1] and pf[1], which we just defined, refer to the first parameter. This line shortens them as 'M' for convenience. You could use the original variable names. local m = f[2] or pf[2] -- Second shortened as 'm'.
if m