查看“模块:Str test”的源代码
来自东方Project线下活动维基
因为以下原因,您没有权限编辑本页:
您可以查看和复制此页面的源代码。
local module = {}
function module.main(frame)
local args = frame.args
local str = args[1]
local ptn = mw.text.decode(mw.text.unstripNoWiki(args[2]))
if mw.ustring.find(str, ptn) == nil
then return ''
else return 1 end
end
function module.MultiMatch(frame)
local parent = frame:getParent()
if parent and parent:getTitle() == "Template:Str substr" then
frame = parent
end
local args = frame.args
local str = args[1]
local result = ""
local i = 2
000
1:0
返回模块:Str test。