Line 201: |
Line 201: |
| else | | else |
| return class | | return class |
− | end
| |
− | end
| |
− |
| |
− | function ShipPage.ClassTemplateDafaq(frame)
| |
− | local args = U.getTemplateArgs(frame)
| |
− | local basepagename = args.implicit.basepagename or ""
| |
− | local ship_name = args.explicit.ship or args.implicit.pagename or ""
| |
− | local ship = Ship(ship_name)
| |
− | local classI = ship:class()
| |
− | local class, what
| |
− | if classI then
| |
− | class, what = classI:name_override()
| |
− | end
| |
− | if basepagename == "Sandbox" then
| |
− | return "Sandbox/" .. (class or "Unknown Class")
| |
− | else
| |
− | return string.format(
| |
− | '<span style="display:none">%s, %s, %s, %s</span>',
| |
− | basepagename,
| |
− | ship_name,
| |
− | class or "?",
| |
− | what or "?"
| |
− | )
| |
| end | | end |
| end | | end |