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 08:23, 8 February 2016
44 bytes added
,
8 years ago
m
no edit summary
Line 61:
Line 61:
function log(message, value)
function log(message, value)
tbl.debug = tbl.debug .. string.format('%s: %s\n', message, value)
tbl.debug = tbl.debug .. string.format('%s: %s\n', message, value)
+
end
+
+
if not args.nodes then
+
log('info', 'empty table')
+
return tbl
end
end
-- header args
-- header args
local boss = args.boss and string.upper(args.boss) or '?'
local boss = args.boss and string.upper(args.boss) or '?'
−
for node_ in
args.nodes and
string.gmatch(args.nodes, args_grammar.comma_list
) or pairs({}
) do
+
for node_ in string.gmatch(args.nodes, args_grammar.comma_list) do
local node = node_:match(args_grammar.node)
local node = node_:match(args_grammar.node)
if node then
if node then
がか
cssedit, gkautomate
7,060
edits