Module:ScriptItem: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 281: Line 281:
p.loadTemplate(frame, 'icon-sa'),
p.loadTemplate(frame, 'icon-sa'),
p.loadTemplate(frame, 'icon-iv')
p.loadTemplate(frame, 'icon-iv')
}, ' '), id=games})
}, ' '), id='games'})
else
else
local games = { 'iii', 'vc', 'sa', 'iv' }
local games = { 'iii', 'vc', 'sa', 'iv' }
Line 287: Line 287:
for i,game in ipairs(games) do
for i,game in ipairs(games) do
if gamesText:lower():find(game) then
if gamesText:lower():find(game) then
--table.insert(out, p.loadTemplate(frame, 'icon-'..game, {}))
table.insert(out, p.loadTemplate(frame, 'icon-'..game, {}))
end
end
end
end
return p.loadTemplate(frame, 'RedInformationBox', {table.concat(out, ' '), id=games})
return p.loadTemplate(frame, 'RedInformationBox', {table.concat(out, ' '), id='games'})
end
end
end
end
6,834

edits

Navigation menu