Module:Template link general: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(update code - remove trailing blank parameters)
(update from sandbox to avoid redundant code)
Line 101: Line 101:
local i = 2
local i = 2
while args[i] do
while args[i] do
local val = args[i]
local val = mw.text.trim(mw.text.unstripNoWiki(args[i]))
if val ~= nil then val = mw.text.unstripNoWiki(val) else break end
textPartBuffer = textPartBuffer .. '|'
textPartBuffer = textPartBuffer .. '|'
if val ~= "" then
if val ~= "" then