Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Icon: Difference between revisions

From The Petit Planet Wiki
No edit summary
No edit summary
Line 41: Line 41:
-- 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}', 'Icon')
local suffix = ' Icon' -- always append " Icon"
 
 
local icon = mw.html.create():tag('span'):addClass('custom-icon')
local icon = mw.html.create():tag('span'):addClass('custom-icon')