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 14:20, 2 May 2016
72 bytes added
,
8 years ago
no edit summary
Line 76:
Line 76:
function parseArgs(args)
function parseArgs(args)
−
local tbl = { nodes = {}, rows = {}, debug = '' }
+
local tbl = { nodes = {}, rows = {}, debug = ''
, classes = args.classes
}
function log(message, value)
function log(message, value)
Line 193:
Line 193:
local table_format = {
local table_format = {
−
header = '{| class="article-table sortable" align="center" width="100%" style="text-align:center;"\n!Type\n!<span style="border-bottom:1px dotted;">Ship<sup>[[Template:DropList/doc|?]]</sup></span>\n',
+
header = '{| class="article-table sortable
${classes}
" align="center" width="100%" style="text-align:center;"\n!Type\n!<span style="border-bottom:1px dotted;">Ship<sup>[[Template:DropList/doc|?]]</sup></span>\n',
header_node = '!${node}\n',
header_node = '!${node}\n',
header_boss_node = '!style="background-color:#FFCDD2;color:red;"|\'\'\'${node}\'\'\'\n',
header_boss_node = '!style="background-color:#FFCDD2;color:red;"|\'\'\'${node}\'\'\'\n',
Line 213:
Line 213:
function showTable(tbl)
function showTable(tbl)
−
local res = table_format.header
+
local res =
format{
table_format.header
, classes = tbl.classes or ''}
function add(str)
function add(str)
がか
cssedit, gkautomate
7,064
edits