Module:Numbered block 2
Jump to navigation
Jump to search
File:Test Template Info-Icon - Version (2).svg Module documentation[view] [edit] [history] [purge]
Implements {{Numbered block 2}}.
local p = {}
function p.fmtN(frame)
local frame2 = frame:getParent()
local code = frame.args[1]
local code2 = mw.text.unstripNoWiki(code)
local code3 = mw.ustring.gsub(
code2, "%%(.)", function (ch)
if (ch == "i") or (ch == "l") then
return frame.args[ch]
elseif ch == "L" then
return "<";
elseif ch == "G" then
return ">";
end
return ch
end
)
return frame2:preprocess(code3)
end
return p