Module:ScriptItem2: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 276: Line 276:
function p.gamesBox(frame)
function p.gamesBox(frame)
local args = p.getArgs(frame)
local args = p.getArgs(frame)
local gamesText = p.getGames(args.games)
local gamesText = p.getGames(args.games)
if gamesText == "All Games" then
 
local games2 = { 'iii', 'vc', 'sa', 'iv' }
local counter = 0
for i2,game2 in ipairs(games2) do
if gamesText:lower():find(game2) then
counter = counter + 1
end
end
 
if counter == #games2 or gamesText == "All Games" then
return p.loadTemplate(frame, 'GreenInformationBox', {table.concat({
return p.loadTemplate(frame, 'GreenInformationBox', {table.concat({
p.loadTemplate(frame, 'icon-iii'),
p.loadTemplate(frame, 'icon-iii'),
6,834

edits

Navigation menu