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