Changes

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