ElEditors, Interface administrators, Administrators
70,893
edits
No edit summary |
No edit summary Tag: Reverted |
||
Line 8: | Line 8: | ||
local char_tree = mw.html.create('div'):addClass('char-banner-tree'):attr('data-base', args[1]) | local char_tree = mw.html.create('div'):addClass('char-banner-tree'):attr('data-base', args[1]) | ||
local out = {}; | local out = {}; | ||
local char, file_name, link, nopath, nopathnojob, entry; | local char, file_name, link, nopath, nopathnojob, entry, image_arg; | ||
for job_iter=1,3,1 do | for job_iter=1,3,1 do | ||
for path_iter=1,4,1 do | for path_iter=1,4,1 do | ||
Line 17: | Line 17: | ||
if char ~= 'Unreleased' then | if char ~= 'Unreleased' then | ||
file_name = | file_name = char:gsub(':', ''); | ||
link = '|link=' .. char | link = '|link=' .. char | ||
end | end | ||
Line 26: | Line 26: | ||
end | end | ||
entry:attr('data-class-name', char):wikitext('[[File:' .. file_name .. '.png' .. link .. ']]'); | image_arg = args['image' .. path_iter .. 'x' .. job_iter] | ||
if image_arg then | |||
file_name = image_arg | |||
end | |||
entry:attr('data-class-name', char):wikitext('[[File:Icon - ' .. file_name .. '.png' .. link .. ']]'); | |||
if (args[nopath] ~= nil) then | if (args[nopath] ~= nil) then |