Module:Card List: Difference between revisions

Raven.Familiar (talk | contribs)
Created page with "local p = {} local lib = require('Module:Feature') local Card = require('Module:Card') function p.main(frame) local args = require('Module:Arguments').getArgs(frame, { parentFirst = true, removeBlanks = false, wrapper = { 'Template:Card List' } }) return p._main(args) end function p.splitNote(entry, notePattern) if notePattern then item, note = entry:match(notePattern) if item == nil then -- will be nil if note is not present return entry end retur..."
 
Kuhlau (talk | contribs)
default delim should just be semicolon for safety & consistency
 
(One intermediate revision by one other user not shown)
Line 69: Line 69:
function p._main(args)
function p._main(args)
local input = args[1] or ''
local input = args[1] or ''
local itemDelim = args.delim ~= '' and args.delim or ','
local itemDelim = args.delim ~= '' and args.delim or ';'
local countDelim = args.amount_delim or '*'
local countDelim = args.amount_delim or '*'
local noteDelim = args.note_delim or '/'
local noteDelim = args.note_delim or '/'