Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:ImprovementTable
(view source)
Revision as of 22:08, 28 February 2017
94 bytes added
,
7 years ago
no edit summary
Line 213:
Line 213:
function format_screw(resources)
function format_screw(resources)
return resources and (resources.screw or "?") or "-"
return resources and (resources.screw or "?") or "-"
+
end
+
+
function format_products(product_names)
+
return #product_names == 1 and format_equipment_link(product_names[1]) or #product_names > 1 and "Unimplemented" or "None"
end
end
Line 265:
Line 269:
equips6_bg = format_equipment_bg(resources6),
equips6_bg = format_equipment_bg(resources6),
equips10_bg = format_equipment_bg(resources10),
equips10_bg = format_equipment_bg(resources10),
−
upgrades =
#
product_names
== 1 and "[[" .. product_names[1] .. "]]" or #product_names > 1 and "Unimplemented" or "None"
,
+
upgrades =
format_products(
product_names
)
,
ships = ships,
ships = ships,
days = days,
days = days,
がか
cssedit, gkautomate
7,064
edits