Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:ShipPage
(view source)
Revision as of 16:32, 17 July 2017
219 bytes removed
,
7 years ago
m
no edit summary
Line 184:
Line 184:
j = j or 1
j = j or 1
local forms = { { name = ship_name, normal = true, damaged = true } }
local forms = { { name = ship_name, normal = true, damaged = true } }
−
if j > 1 then
−
forms[1].name_changed = true
−
end
local success, ship_data = Utils.requireModule(ship_name)
local success, ship_data = Utils.requireModule(ship_name)
if not success then
if not success then
Line 238:
Line 235:
local name, suffix = Ship:process_ship_key(form.name)
local name, suffix = Ship:process_ship_key(form.name)
suffix = suffix or ""
suffix = suffix or ""
−
if form.name_changed then
+
table.insert(result, "{{!}}-{{!}}" .. (suffix == "" and
form.name
or suffix
)
.. "=")
−
table.insert(result, "{{!}}-{{!}}" ..
form.name .. "=")
−
else
−
table.insert
(
result,
suffix == "" and
"{{!}}-{{!}}Base="
or
("{{!}}-{{!}}" ..
suffix .. "=")
)
−
end
if form.normal and form.damaged then
if form.normal and form.damaged then
local image = ShipGraphicKai:Asset({ form.name, link = "nil", size = "300px" })
local image = ShipGraphicKai:Asset({ form.name, link = "nil", size = "300px" })
がか
cssedit, gkautomate
7,060
edits