Changes

no edit summary
Line 66: Line 66:     
     _footer_links = [=[*[[${fullpagename}/Gallery|View ${ship_name} CG]]
 
     _footer_links = [=[*[[${fullpagename}/Gallery|View ${ship_name} CG]]
*[[${ship_code}|List of ${ship_type}s]]${wikipedia}${extra_links}]=],
+
${ship_type}${wikipedia}${extra_links}]=],
    
     _wikipedia = [=[*[[wikipedia:${wikipedia}|Wikipedia entry on ${ship_type} ${ship_name}]]]=],
 
     _wikipedia = [=[*[[wikipedia:${wikipedia}|Wikipedia entry on ${ship_type} ${ship_name}]]]=],
 +
   
 +
    _ship_type = [=[*[[${ship_code}|List of ${ship_type}s]]]=],
    
     _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>
 
     _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 157: Line 159:  
     local ship_name_ = ship:name()
 
     local ship_name_ = ship:name()
 
     local ship_type_ = Formatting:format_ship_type(ship_type)
 
     local ship_type_ = Formatting:format_ship_type(ship_type)
 +
    local ship_code = Formatting:format_ship_code(ship_type)
 
     local wikipedia = ship:wikipedia()
 
     local wikipedia = ship:wikipedia()
 
     return format{
 
     return format{
Line 162: Line 165:  
         fullpagename = basepagename == "Sandbox" and ("Sandbox/" .. ship_name) or ship_name,
 
         fullpagename = basepagename == "Sandbox" and ("Sandbox/" .. ship_name) or ship_name,
 
         ship_name = ship_name_,
 
         ship_name = ship_name_,
         ship_code = Formatting:format_ship_code(ship_type),
+
         ship_code = ship_code,
        ship_type = ship_type_,
+
        ship_type = ship_type_ and ("\n" .. format{
 +
            ShipPage._ship_type,
 +
            ship_code = ship_code,
 +
            ship_type = ship_type_,
 +
        }) or "",
 
         wikipedia = wikipedia and ("\n" .. format{
 
         wikipedia = wikipedia and ("\n" .. format{
 
             ShipPage._wikipedia,
 
             ShipPage._wikipedia,
cssedit, gkautomate
7,060

edits