Module:Template link general: Difference between revisions

Jump to navigation Jump to search
m
30 revisions imported from wikipedia:Module:Template_link_general
(update from sandbox to avoid redundant code)
m (30 revisions imported from wikipedia:Module:Template_link_general)
 
(One intermediate revision by one other user not shown)
Line 101:
local i = 2
while args[i] do
local val = mw.text.trim(mw.text.unstripNoWiki(args[i]))
textPartBuffer = textPartBuffer .. '|'
if val ~= "" then
if _ne(args.nowiki) then val = nw(val) end
-- Unstrip nowiki tags first because calling nw on something that already contains nowiki tags will
-- mangle the nowiki strip marker and result in literal UNIQ...QINU showing up
val = nw(mw.text.unstripNoWiki(val))
end
if italic then val = '<span style="font-style:italic;">' .. val .. '</span>' end
textPart = textPart .. textPartBuffer .. val
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu