今天是2025年4月24日 第17周 星期四
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
查看“模块:TemplateParameters”的源代码
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您可以查看和复制此页面的源代码。
local p = {}
local lib_arg = {}
local yesno = {}
local lib_editstate={};
function p.containsNumber(frame)
-- For calling from #invoke.
local args
local can_call_parse = false
if frame == mw.getCurrentFrame() then
-- We're being called via #invoke. The args are passed through to the module
-- from the template page, so use the args that were passed into the template.
args = frame.args
can_call_parse = true
else
-- We're being called from another module or from the debug console, so assume
-- the args are passed in directly.
args = frame
if type(args) ~= type({}) then args = {frame} end
end
local input_str=mw.ustring.gsub(args[1] or args['1'],',','')
local g0=mw.ustring.gmatch(input_str,"[%+%-]?[0-9%.]+e[%+%-]?[0-9%.]+")
000
1:0
该页面使用的模板: