• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
no edit summary
Line 65: Line 65:  
     },
 
     },
   −
     _footer_links = [=[*[[${fullpagename}/Gallery|View ${ship_name} CG]]
+
     _gallery_link = [=[*[[${fullpagename}/Gallery|View ${ship_name} CG]]]=],
${ship_type}${wikipedia}${extra_links}]=],
+
     _ship_type_link = [=[*[[${ship_code}|List of ${ship_type}s]]]=],
 
+
     _wikipedia_link = [=[*[[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 161: Line 158:  
     local ship_code = Formatting:format_ship_code(ship_type)
 
     local ship_code = Formatting:format_ship_code(ship_type)
 
     local wikipedia = ship:wikipedia()
 
     local wikipedia = ship:wikipedia()
     return format{
+
     local fullpagename = basepagename == "Sandbox" and ("Sandbox/" .. ship_name) or ship_name
        ShipPage._footer_links,
+
    local links = {
        fullpagename = basepagename == "Sandbox" and ("Sandbox/" .. ship_name) or ship_name,
+
        format{
        ship_name = ship_name_,
+
            ShipPage._gallery_link,
         ship_code = ship_code,
+
            fullpagename = fullpagename,
         ship_type = ship_type and ("\n" .. format{
+
            ship_name = ship_name_,
             ShipPage._ship_type,
+
         }
 +
    }
 +
    if ship_type then
 +
         table.insert(links, format{
 +
             ShipPage._ship_type_link,
 
             ship_code = ship_code,
 
             ship_code = ship_code,
 
             ship_type = ship_type_,
 
             ship_type = ship_type_,
         }) or "",
+
         })
         wikipedia = wikipedia and ("\n" .. format{
+
    end
             ShipPage._wikipedia,
+
    if wikipedia then
 +
         table.insert(links, format{
 +
             ShipPage._wikipedia_link,
 
             ship_name = ship_name_,
 
             ship_name = ship_name_,
 
             ship_type = ship_type_,
 
             ship_type = ship_type_,
             wikipedia = wikipedia
+
             wikipedia = wikipedia,
         }) or "",
+
         })
        extra_links = args.explicit.links and ("\n" .. args.explicit.links) or ""
+
    end
    }
+
    if args.explicit.links then
 +
        links = Utils.concat(links, args.explicit.links)
 +
    end
 +
    return table.concat(links, "\n")
 
end
 
end
  
cssedit, gkautomate
7,060

edits

Navigation menu