模組:NumBlk2
外观

local p = {}
-- %i : id
-- %l : lbl
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]
end
return ch
end
)
return frame2:preprocess(code3)
end
return p