Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Sandbox/Fleet
(view source)
Revision as of 15:15, 31 May 2019
88 bytes added
,
5 years ago
m
no edit summary
Line 14:
Line 14:
local function getShipCard(ship)
local function getShipCard(ship)
local s = Ship(ship)
local s = Ship(ship)
−
return '[[File:KanMusu' .. (
s:id() or s:true_id() or '?'
)
.. 'Banner.png]]<br>[[' .. s:base_name() .. '|' .. s:name() .. ']]'
+
local i =
s:id() or s:true_id(
)
+
local is = i and (i < 10 and '00' .. i or i < 100 and '0' .. i or i
) or '?'
+
return '[[File:KanMusu' .. is
.. 'Banner.png]]<br>[[' .. s:base_name() .. '|' .. s:name() .. ']]'
end
end
がか
cssedit, gkautomate
7,064
edits