Module:标题替换
跳转到导航
跳转到搜索
local module = { }
function module.main(frame)
local parent = frame:getParent()
if parent and parent:getTitle() == "Template:Sandbox/Func/Universnal" then
frame = parent
end
if not frame.args[1] then
return
end
local title = frame.args[1]
local words_ustr = mw.ustring.gsub(title, "[^%a]", "")
local words_str = mw.ustring.gsub(title, "[^A-Za-z]", "")
if words_ustr == words_str then
frame:callParserFunction("DISPLAYTITLE", title)
end
return
end
return module