Line 411: |
Line 411: |
| links = ShipPage.FooterLinks(frame, args) | | links = ShipPage.FooterLinks(frame, args) |
| } | | } |
− | end
| |
− |
| |
− | function ShipPage.TestGallery(ship)
| |
− | return ShipPage.Gallery(nil, {
| |
− | explicit = { ship = ship },
| |
− | implicit = {},
| |
− | })
| |
− | end
| |
− |
| |
− | function ShipPage.TestGalleryTabber(ship)
| |
− | return ShipPage.GalleryTabber(nil, {
| |
− | explicit = { ship = ship },
| |
− | implicit = {},
| |
− | })
| |
− | end
| |
− |
| |
− | function ShipPage.TestGalleryAll(frame)
| |
− | local ShipIterator = require('Module:ShipIterator')
| |
− | local result = {}
| |
− | for _, ship in ShipIterator.base() do
| |
− | table.insert(result, '=[[' .. ship .. '/Gallery|' .. ship .. ']]=')
| |
− | table.insert(result, ShipPage.TestGallery(ship))
| |
− | end
| |
− | return frame:preprocess(table.concat(result, '\n'))
| |
− | end
| |
− |
| |
− | function ShipPage.TestGalleryTabberAll(frame)
| |
− | local ShipIterator = require('Module:ShipIterator')
| |
− | local result = {}
| |
− | for _, ship in ShipIterator.base() do
| |
− | table.insert(result, '===[[' .. ship .. '/Gallery|' .. ship .. ']]===')
| |
− | table.insert(result, '<div class="ship-page-gallery" data-name="' .. ship .. '">')
| |
− | table.insert(result, ShipPage.TestGalleryTabber(ship))
| |
− | table.insert(result, '</div>')
| |
− | end
| |
− | return frame:preprocess(table.concat(result, '\n'))
| |
| end | | end |
| | | |
| return ShipPage | | return ShipPage |