Line 41: |
Line 41: |
| local ShipPage = { | | local ShipPage = { |
| | | |
− | _header = "${ship_meta}__TOC__${clear}${ship_infoboxes}${ship_categories}", | + | _header = "${notice}${ship_meta}__TOC__${clear}${ship_infoboxes}${ship_categories}", |
| | | |
| _ship_infobox = [[<div style="display:inline-block;"> | | _ship_infobox = [[<div style="display:inline-block;"> |
Line 58: |
Line 58: |
| *[[${ship_code}|List of ${ship_type}s]] | | *[[${ship_code}|List of ${ship_type}s]] |
| *[[wikipedia:${wikipedia}|Wikipedia entry on ${ship_type} ${ship_name}]]${extra_links}]=], | | *[[wikipedia:${wikipedia}|Wikipedia entry on ${ship_type} ${ship_name}]]${extra_links}]=], |
| + | |
| + | _sandbox_notice = [=[<div style="width:90%; border:2px solid #aa5; background:#ffc; text-align:center; margin:15px auto 20px; padding:5px;">This is a testing ship page, it does not correspond to an actual ship.</div>]=], |
| | | |
| } | | } |
Line 84: |
Line 86: |
| function ShipPage:format_ship_categories(basepagename) | | function ShipPage:format_ship_categories(basepagename) |
| self._vars.ship_categories = basepagename == "Sandbox" and "" or ShipCategoriesKai:Categories({ self._vars.ship_name }) | | self._vars.ship_categories = basepagename == "Sandbox" and "" or ShipCategoriesKai:Categories({ self._vars.ship_name }) |
| + | end |
| + | |
| + | function ShipPage:format_notice(basepagename) |
| + | self._vars.notice = basepagename == "Sandbox" and self._sandbox_notice or "" |
| end | | end |
| | | |
Line 94: |
Line 100: |
| self:format_ship_infoboxes(basepagename) | | self:format_ship_infoboxes(basepagename) |
| self:format_ship_categories(basepagename) | | self:format_ship_categories(basepagename) |
| + | self:format_notice(basepagename) |
| return format(self._header, self._vars) | | return format(self._header, self._vars) |
| end | | end |