Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:DropList
(view source)
Revision as of 06:47, 3 June 2019
80 bytes added
,
5 years ago
m
no edit summary
Line 73:
Line 73:
-- TODO: japanese tooltips
-- TODO: japanese tooltips
ship_cell = '|[[${ship}|<span style="color:${color};">${ship}</span>]]\n',
ship_cell = '|[[${ship}|<span style="color:${color};">${ship}</span>]]\n',
+
none_cell = '|None\n',
node_cell = '|style="background-color:#${background_color};color:${color}"|${diff}\n',
node_cell = '|style="background-color:#${background_color};color:${color}"|${diff}\n',
empty_cell = '|\n',
empty_cell = '|\n',
Line 242:
Line 243:
add(row.rare and table_format.rare_row or table_format.row)
add(row.rare and table_format.rare_row or table_format.row)
add(format{table_format.type_cell, type = row.type})
add(format{table_format.type_cell, type = row.type})
−
add(format{table_format.ship_cell, color = row.ship_color, ship = row.ship})
+
add(
row.ship == 'None' and table_format.none_cell or
format{table_format.ship_cell, color = row.ship_color, ship = row.ship})
for _, node in pairs(tbl.nodes) do
for _, node in pairs(tbl.nodes) do
local node = row.nodes[node.name]
local node = row.nodes[node.name]
がか
cssedit, gkautomate
7,064
edits