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 14:08, 18 December 2020
28 bytes added
,
3 years ago
no edit summary
Line 6:
Line 6:
local function getShipCard(ship)
local function getShipCard(ship)
local s = Ship(ship)
local s = Ship(ship)
−
local i = s:id() or s:true_id()
+
--
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 '?'
+
--
local is = i and (i < 10 and '00' .. i or i < 100 and '0' .. i or i) or '?'
−
return '[[File:
KanMusu
' ..
is
.. '
Banner
.png|160px|link=' .. s:base_name() .. ']]<br>[[' .. s:base_name() .. '|' .. s:name() .. ']]'
+
return '[[File:
Ship Banner
' ..
s:name()
.. '.png|160px|link=' .. s:base_name() .. ']]<br>[[' .. s:base_name() .. '|' .. s:name() .. ']]'
end
end
local function getEquipmentCard(eq)
local function getEquipmentCard(eq)
−
return '[[File:Equipment' ..
(Equipment(eq)
:
id
(
) or '?'
) .. '
-1
.png|100px|link=' ..
eq
.. ']]'
+
local e = Equipment(eq)
+
return '[[File:Equipment
Card
' ..
e
:
name
() .. '.png|100px|link=' ..
e:name()
.. ']]'
end
end
がか
cssedit, gkautomate
6,926
edits