View source for Module:Sprintf
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
function p.main(frame)
return p._main(frame:getParent().args)
end
function p._main(args)
local _args = {}
for i,v in ipairs(args) do
table.insert(_args, v)
end
return string.format(unpack(_args))
end
function p.expr(frame)
return p._expr(frame:getParent().args)
end
function p._expr(args)
return string.format(args[1], mw.ext.ParserFunctions.expr(args[2]))
000
1:0
Templates used on this page:
- Template:DependencyList (view source)
- Template:Documentation (view source)
- Template:No documentation (view source)
- Template:PageType (view source)
- Module:Array (view source)
- Module:DPLlua (view source)
- Module:DependencyList (view source)
- Module:Documentation (view source)
- Module:Paramtest (view source)
- Module:Sprintf/doc (view source)
- Module:Tooltip (view source)
- Module:Yesno (view source)
Return to Module:Sprintf.