8,279
edits
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 79: | Line 79: | ||
end | end | ||
local sprite = mw.html.create( 'span' ):addClass( 'sprite-file' ) | local sprite = mw.html.create( 'span' ):addClass( 'sprite-file' ) | ||
if args.title ~= nil and string.find( | if args.title ~= nil and string.find(tostring(args.title), "parallel:") then | ||
args.title = mw.ustring.gsub( | args.title = mw.ustring.gsub( tostring(args.title), "[Pp]arallel:", "" ) | ||
else | else | ||
args.title = | args.title = tostring(args.title) .. ' (Vanilla)' | ||
end | end | ||
local img = '[[File:' .. file .. '|' .. size .. '|link=' .. link .. '|alt=' .. altText .. '|class=pixel-image|' .. ( args.title or '' ) .. ']]' | local img = '[[File:' .. file .. '|' .. size .. '|link=' .. link .. '|alt=' .. altText .. '|class=pixel-image|' .. ( args.title or '' ) .. ']]' |