Module:Card: Difference between revisions

ReisuDesign (talk | contribs)
No edit summary
ReisuDesign (talk | contribs)
No edit summary
Line 26: Line 26:
-- mw.logObject(args)
-- mw.logObject(args)
local prefix = args.prefix or ''
local prefix = args.prefix or ''
local suffix = args.suffix or ''
prefix = prefix:gsub('{space}', ' ')
prefix = prefix:gsub('{space}', ' ')
suffix = suffix:gsub('{space}', ' ')
local suffix = ' Icon' -- always append " Icon"
 
local card = mw.html.create():tag('div'):addClass('custom-card noborder')
local card = mw.html.create():tag('div'):addClass('custom-card noborder')