Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:KanmusuModule
(view source)
Revision as of 08:38, 11 October 2022
180 bytes added
,
2 years ago
Fix no and sortno rendering
Line 43:
Line 43:
local Banners =
local Banners =
'<td colspan="3" class="double-image" style="width:240px;height:60px">' .. BannerImg .. BannerDmgImg .. "</td>"
'<td colspan="3" class="double-image" style="width:240px;height:60px">' .. BannerImg .. BannerDmgImg .. "</td>"
−
local
sortNo
=
ship.sortno or
U.split(ship.no, "-")[1] or "?"
+
local
dispNo
= U.split(ship.no, "-")[1] or "?"
+
local sortNo = ship.sortno and formatTooltip(dispNo, string.format("%d ", ship.sortno)) or dispNo
local row1 = "<tr>" .. Cards .. '<th style="text-align: center;">' .. sortNo .. "</th>" .. Banners .. "</tr>"
local row1 = "<tr>" .. Cards .. '<th style="text-align: center;">' .. sortNo .. "</th>" .. Banners .. "</tr>"
-- Formatting Japanese
-- Formatting Japanese
Line 441:
Line 442:
local ship = Ship(shipsById[(U.find(shipsByNo, ShipData[no] or no, "name") or {}).id])
local ship = Ship(shipsById[(U.find(shipsByNo, ShipData[no] or no, "name") or {}).id])
local data = {}
local data = {}
−
data.no = no
+
data.no =
(ship:true_id() or 0) > 1000 and ship:id()..'a' or ship:id() or
no
+
data.sortno = ship:true_id()
data.name = {ship:japanese_name() or "", ship:reading() or "", ship:name() or ""}
data.name = {ship:japanese_name() or "", ship:reading() or "", ship:name() or ""}
local class = ship:class()
local class = ship:class()
Sin sin
354
edits