Module:Sprite: Difference between revisions
No edit summary |
No edit summary |
||
| Line 104: | Line 104: | ||
local link = args[1] | local link = args[1] | ||
if not args.id then | if not args.id then | ||
link = args[1]:match( '^(.-)% | link = args[1]:gsub( '-', '+' ):match( '^(.-)%+' ) or args[1] | ||
end | end | ||
local text = args[2] or link | local text = args[2] or link | ||