Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:EquipmentLink
(view source)
Revision as of 07:36, 20 December 2019
10 bytes added
,
4 years ago
no edit summary
Line 18:
Line 18:
local image = args.image
local image = args.image
local icon = args.icon
local icon = args.icon
−
local size = args.size
+
local size = args.size
or (table.getn(args) > 1 and "160px" or "160px")
local cards = {}
local cards = {}
for _, arg in ipairs(args) do
for _, arg in ipairs(args) do
−
table.insert(cards, arg == "-" and "<br />" or EquipmentCardKai:Asset({ arg, size = size
or (#args >= 2 and "160px" or "160px")
}))
+
table.insert(cards, arg == "-" and "<br />" or EquipmentCardKai:Asset({ arg, size = size }))
end
end
がか
cssedit, gkautomate
7,064
edits