Module:Template input utils: Difference between revisions

Ganaram inukshuk (talk | contribs)
m minor refactoring for numbered-arg-to-table functions; keep_originals is the 3rd arg; shouldn't affect the modules calling the functions
Ganaram inukshuk (talk | contribs)
m un-refactor numbered_args_to_table so key_fmt is before keep_originals, as thats expected to be changed more than keep_originals; this also broke the sidebar
Line 13: Line 13:
-- table, as it may require further processing (EG, parsing to number, ratio,  
-- table, as it may require further processing (EG, parsing to number, ratio,  
-- kv-pairs, etc).
-- kv-pairs, etc).
function p.numbered_args_to_table(args, max_num, keep_originals, key_fmt)
function p.numbered_args_to_table(args, max_num, key_fmt, keep_originals)
local max_num = max_num or 100
local max_num = max_num or 100
local key_fmt = key_fmt or "Entry %d"
local key_fmt = key_fmt or "Entry %d"