Module:Icon: Difference between revisions
From The Petit Planet Wiki
More actions
Created Module:Icon |
No edit summary |
||
| Line 39: | Line 39: | ||
local text = args.text or args[3] | local text = args.text or args[3] | ||
local note = args.note | local note = args.note | ||
-- mw.logObject(args) | -- mw.logObject(args) | ||
local prefix = args.prefix or '' | local prefix = args.prefix or '' | ||
| Line 60: | Line 58: | ||
icon_image:wikitext('[[File:', filename, '.', ext, '|', size, 'px|link=', link, ']]') | icon_image:wikitext('[[File:', filename, '.', ext, '|', size, 'px|link=', link, ']]') | ||
M_icon_image:wikitext('[[File:', filename, '.', ext, '|', M_size, 'px|link=', link, ']]') | M_icon_image:wikitext('[[File:', filename, '.', ext, '|', M_size, 'px|link=', link, ']]') | ||
-- auto link unless disable | -- auto link unless disable | ||
| Line 92: | Line 84: | ||
-- mw.logObject(icon) -- debug | -- mw.logObject(icon) -- debug | ||
return icon | return icon | ||
end | end | ||
return p | return p | ||