Module:DemoTemplate: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
fix bug with equals signs in positional parameters
(use preprocess instead of expandTemplate)
(fix bug with equals signs in positional parameters)
Line 10:
local ipairsArgs = {}
for k,v in ipairs(frame.args) do
ipairsArgs[k] = true
if string.find(v, '=', 1, true) then
break
printf('|%d=%s', k, v)
else
printf('|%s', v)
end
ipairsArgs[k] = true
printf('|%d=%s', k, v)
end
for k,v in pairs(frame.args) do
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu