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 09:19, 15 September 2017
11 bytes removed
,
7 years ago
no edit summary
Line 11:
Line 11:
args = args or getArgs{ frame = frame:getParent() }
args = args or getArgs{ frame = frame:getParent() }
−
local name = args[1] or "??"
+
local text = args.text
−
local text = args.text
or args[2]
local link = args.link
local link = args.link
local image = args.image
local image = args.image
local icon = args.icon
local icon = args.icon
−
local
card
= EquipmentCardKai:Asset({
name
})
+
local
cards
=
{}
+
for _, arg in ipairs(args) do
+
table.insert(cards,
EquipmentCardKai:Asset({
arg
})
)
+
end
local formatted_link
local formatted_link
Line 30:
Line 32:
or ""
or ""
−
local tooltip_content = F:class_div("tooltip-contents", nil,
card
)
+
local tooltip_content = F:class_div("tooltip-contents", nil,
table.concat(cards, "")
)
−
return F:class_span("advanced-tooltip", nil, formatted_icon .. formatted_link .. tooltip_content
) .. (args[2] and U.category("Bad EquipmentLink call") or ""
)
+
return F:class_span("advanced-tooltip", nil, formatted_icon .. formatted_link .. tooltip_content)
end
end
がか
cssedit, gkautomate
7,064
edits