查看“模块:Eval”的源代码
来自东方Project线下活动维基
因为以下原因,您没有权限编辑本页:
您可以查看和复制此页面的源代码。
local module = {}
local getArgs = require("Module:Arguments").getArgs
local preprocessNoWiki = function(wiki)
wiki = mw.ustring.gsub(wiki, "(%$+)NOWIKI_([ES])", function(prefix, postfix)
local length, tag = math.modf(mw.ustring.len(prefix) / 2)
local escape = ""
for i = 1, length do escape = escape .. "$" end
if tag == 0 then
tag = "NOWIKI_" .. postfix
elseif postfix == "S" then
tag = "<nowiki>"
else
tag = "</nowiki>"
end
return escape .. tag
end)
000
1:0
本页使用的模板:
返回模块:Eval。