Jump to content

Module:Template link general: Difference between revisions

remove parameter limit
m (Changed protection level for "Module:Template link general": High-risk Lua module: Used by Template:Template link expanded ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)))
(remove parameter limit)
Line 98: Line 98:
-- Build the arguments
-- Build the arguments
local textPart = ""
local textPart = ""
for i = 2, 11 do
local i = 2
local ii = tostring(i)
while args[i] do
local val = args[ii]
local val = args[i]
if val ~= nil then val = mw.text.unstripNoWiki(val) else break end
if val ~= nil then val = mw.text.unstripNoWiki(val) else break end
if _ne(args.nowiki) then val = nw(val) end
if _ne(args.nowiki) then val = nw(val) end
if italic then val = '<span style="font-style:italic;">' .. val .. '</span>' end
if italic then val = '<span style="font-style:italic;">' .. val .. '</span>' end
textPart = textPart .. '&#124;' .. val
textPart = textPart .. '&#124;' .. val
i = i+1
end
end
if _ne(args['12']) then textPart = textPart .. '&#124;…' end
-- final wrap
-- final wrap
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.