Line 151: |
Line 151: |
| end | | end |
| | | |
− | function ShipPage.FooterLinks(frame) | + | function ShipPage.FooterLinks(args) |
− | local args = U.getTemplateArgs(frame)
| |
| local basepagename = args.implicit.basepagename or "" | | local basepagename = args.implicit.basepagename or "" |
| local ship_name = args.explicit.ship or args.implicit.pagename or "" | | local ship_name = args.explicit.ship or args.implicit.pagename or "" |
Line 377: |
Line 376: |
| end | | end |
| | | |
− | function ShipPage.GalleryTabber(frame, args) | + | function ShipPage.GalleryTabber(args) |
− | args = args or U.getTemplateArgs(frame)
| |
| local ship_name = args.explicit.ship or args.implicit.pagename or "" | | local ship_name = args.explicit.ship or args.implicit.pagename or "" |
| local forms = ship_cgs(ship_name) | | local forms = ship_cgs(ship_name) |
Line 421: |
Line 419: |
| ShipPage._footer_sections, | | ShipPage._footer_sections, |
| name = ship_name, | | name = ship_name, |
− | gallery = frame:preprocess(ShipPage.GalleryTabber(frame, args)), | + | gallery = frame:preprocess(ShipPage.GalleryTabber(args)), |
− | links = ShipPage.FooterLinks(frame, args) | + | links = ShipPage.FooterLinks(args) |
| } | | } |
| end | | end |
| | | |
| return ShipPage | | return ShipPage |