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 = "" | ||
local i = 2 | |||
while args[i] do | |||
local val = args[ | 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 .. '|' .. val | textPart = textPart .. '|' .. val | ||
i = i+1 | |||
end | end | ||
-- final wrap | -- final wrap |