Toggle menu
85
205
64
19K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 05:42, 22 February 2025 by Prd (talk | contribs) (Created page with "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")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Subpages:


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