feat(Infobox) : Delta Force Infobox league (wip)#7442
Conversation
|
Export has been ticketed, so I should mark this as green ahead. |
| if String.isNotEmpty(args.map1) then | ||
| local game = String.isNotEmpty(args.game) and ('/' .. args.game) or '' | ||
| local maps = {} | ||
|
|
||
| for _, map in ipairs(self.caller:getAllArgsForBase(args, 'map')) do | ||
| table.insert(maps, tostring(self.caller:_createNoWrappingSpan( | ||
| Page.makeInternalLink({}, map, map .. game) | ||
| ))) | ||
| end | ||
| table.sort(maps) | ||
| table.insert(widgets, Title{children = 'Maps'}) | ||
| table.insert(widgets, Center{children = {table.concat(maps, ' • ')}}) | ||
| end |
There was a problem hiding this comment.
| if String.isNotEmpty(args.map1) then | |
| local game = String.isNotEmpty(args.game) and ('/' .. args.game) or '' | |
| local maps = {} | |
| for _, map in ipairs(self.caller:getAllArgsForBase(args, 'map')) do | |
| table.insert(maps, tostring(self.caller:_createNoWrappingSpan( | |
| Page.makeInternalLink({}, map, map .. game) | |
| ))) | |
| end | |
| table.sort(maps) | |
| table.insert(widgets, Title{children = 'Maps'}) | |
| table.insert(widgets, Center{children = {table.concat(maps, ' • ')}}) | |
| end | |
| if Logic.isEmpty(args.map1) then return end | |
| local gameSuffix = Logic.isNotEmpty(args.game) and ('/' .. args.game) or '' | |
| local maps = self.caller:getAllArgsForBase(args, 'map') | |
| table.sort(maps) | |
| local mapDisplays = Array.map(maps, function(map) | |
| return Link{link = map .. gameSuffix, children = map} | |
| end) | |
| Array.appendWith(cells, | |
| Title{children = 'Maps'}, | |
| Center{children = Array.interleave(mapDisplays, ' • ')} | |
| ) |
There was a problem hiding this comment.
Ok I have fixed that, I ran into two more errors atm
one is when I input any into |map1= Module:Array at line 430: bad argument #1 to 'insert' (table expected, got nil). , the second is the single lint fail checks about cells, after I try replace that with Cell the input no longer works/displayed
There was a problem hiding this comment.
not sure what i do wrong here, I still get these errors ( Can be tested at https://liquipedia.net/lab/Deltaforce/Delta_Force_Global_League/Season_2/Asia/Operations )
There was a problem hiding this comment.
all of which make no sense at all ...
There was a problem hiding this comment.
| if String.isNotEmpty(args.map1) then | |
| local game = String.isNotEmpty(args.game) and ('/' .. args.game) or '' | |
| local maps = {} | |
| for _, map in ipairs(self.caller:getAllArgsForBase(args, 'map')) do | |
| table.insert(maps, tostring(self.caller:_createNoWrappingSpan( | |
| Page.makeInternalLink({}, map, map .. game) | |
| ))) | |
| end | |
| table.sort(maps) | |
| table.insert(widgets, Title{children = 'Maps'}) | |
| table.insert(widgets, Center{children = {table.concat(maps, ' • ')}}) | |
| end | |
| if Logic.isEmpty(args.map1) then return end | |
| local gameSuffix = Logic.isNotEmpty(args.game) and ('/' .. args.game) or '' | |
| local maps = self.caller:getAllArgsForBase(args, 'map') | |
| table.sort(maps) | |
| local mapDisplays = Array.map(maps, function(map) | |
| return Link{link = map .. gameSuffix, children = map} | |
| end) | |
| Array.appendWith(widgets, | |
| Title{children = 'Maps'}, | |
| Center{children = Array.interleave(mapDisplays, ' • ')} | |
| ) |

Summary
Delta Force is planned for next export in May
this new PR is a re-open of #7276 because those snapshot appearing I think it might have break PR (or require rebase?) so I close and re-open a new one, and I try to fix or update it again (much as I can with my limited coding knowledge)
DF's InfoLeague needs are: Modes Platforms and Patch
What I did in this version here is mostly patching how these three are done in other wikis together and maybe adjust it a bit. So will still need help here (maybe this is one is cleaner vs the previous)
Test
https://liquipedia.net/lab/Deltaforce/Pan-Pacific_Warfare_Cup/2026
Test modules will be removed from Lab post-export