Anonymous user
Module:Template link general: Difference between revisions
From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
implement sandbox fix for nowiki issues (TPER)
(update from sandbox to avoid redundant code) |
(implement sandbox fix for nowiki issues (TPER)) |
||
Line 101:
local i = 2
while args[i] do
local val =
textPartBuffer = textPartBuffer .. '|'
if val ~= "" then
if _ne(args.nowiki) then
-- 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
|