Line 43: |
Line 43: |
| "Third Upgrade (Reversible)" | | "Third Upgrade (Reversible)" |
| }, | | }, |
| + | |
| + | _footer_links = [=[*[[${ship_name}/Gallery|View ${ship_name} CG]] |
| + | *[[${ship_code}|List of ${ship_type}s]] |
| + | *[[wikipedia:${wikipedia}|Wikipedia entry on ${ship_type} ${ship_name}]]]=], |
| + | |
| + | _class_template = "${class} Class", |
| | | |
| } | | } |
Line 82: |
Line 88: |
| local ship_name = args.explicit.ship or args.implicit.pagename or "" | | local ship_name = args.explicit.ship or args.implicit.pagename or "" |
| return ShipPage:format_header(ship_name) | | return ShipPage:format_header(ship_name) |
| + | end |
| + | |
| + | function ShipPage.FooterLinks(frame, args) |
| + | args = args or Utils.getTemplateArgs(frame) |
| + | local ship_name = args.explicit.ship or args.implicit.pagename or "" |
| + | local ship = Ship(ship_name) |
| + | local ship_type = ship:type() |
| + | return format{ |
| + | ShipPage._footer_links, |
| + | ship_name = ship_name, |
| + | ship_code = Formatting:format_ship_code(ship_type), |
| + | ship_type = Formatting:format_ship_type(ship_type), |
| + | wikipedia = ship:wikipedia(), |
| + | } |
| + | end |
| + | |
| + | function ShipPage.ClassTemplate(frame, args) |
| + | args = args or Utils.getTemplateArgs(frame) |
| + | local ship_name = args.explicit.ship or args.implicit.pagename or "" |
| + | local ship = Ship(ship_name) |
| + | return format{ShipPage._class_template, class = ship:class()} |
| end | | end |
| | | |
Line 108: |
Line 135: |
| }) | | }) |
| -- print(p.t4) | | -- print(p.t4) |
| + | |
| + | ShipPage.t5 = ShipPage.FooterLinks(nil, { |
| + | explicit = { ship = "Ayanami" }, |
| + | implicit = {}, |
| + | }) |
| + | -- print(p.t5) |
| ]]-- | | ]]-- |
| | | |
| return ShipPage | | return ShipPage |