Module:Template link general: Difference between revisions
m
30 revisions imported from wikipedia:Module:Template_link_general
(remove parameter limit) |
m (30 revisions imported from wikipedia:Module:Template_link_general) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 98:
-- Build the arguments
local textPart = ""
local textPartBuffer = ""
local i = 2
while args[i] do
local val = args[i]
textPartBuffer = textPartBuffer .. '|'
if val ~= nil then val = mw.text.unstripNoWiki(val) else break end▼
if
if _ne(args.nowiki) then
if italic then val = '<span style="font-style:italic;">' .. val .. '</span>' end▼
-- Unstrip nowiki tags first because calling nw on something that already contains nowiki tags will
textPart = textPart .. '|' .. val▼
-- mangle the nowiki strip marker and result in literal UNIQ...QINU showing up
end
▲ if italic then val = '<span style="font-style:italic;">' .. val .. '</span>' end
textPartBuffer = ""
end
i = i+1
end
-- final wrap
local ret = titlePart .. textPart
|