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
← 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,064
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Content Navigation
Kancolle Wiki
Random page
Recent changes
Batch Uploading
Current Mini-event
Naval District Saury Festival
Sortie
Sortie
World 1 (Naval Base Waters)
World 2 (Nansei Island Waters)
World 3 (Northern Waters)
World 7 (South Western Waters)
World 4 (Western Waters)
World 5 (Southern Waters)
World 6 (Central Waters)
Events
Shortcuts
Expeditions
Quests
Ships Maximum Status
Equipment
Construction
Development
Akashi's Improvement Arsenal
Shop
Inventory
Combat Mechanics
Glossary
Drop List
Interviews
Tutorials
How to Register
How To Play
Leveling
Resource Farming
Ship Priority
Equipment Setup
Akashi Upgrades
Event Preparation
Troubleshooting
FAQ
Community
Help
Sandbox
Tools
Upload file
Special pages
Printable version