Module:Template link general: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
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 ii = tostring(i) |
|||
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 |
||
if _ne(args['12']) then textPart = textPart .. '|…' end |
|||
-- final wrap |
-- final wrap |