Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659
edits
m (Let's try this) |
m (Comment out this specific use case of the link argument) |
||
Line 122: | Line 122: | ||
end | end | ||
--local link = args['link'] or args['Link'] | |||
local link = args['link'] or args['Link'] | --if link and #link ~= 0 then | ||
if link and #link ~= 0 then | -- if link:sub( 1,2 ) == '[[' then | ||
-- parentDiv:wikitext(link:sub( 1,#link-2 ) .. '|') | |||
-- elseif link:sub ( 1,1 ) == '[' then | |||
-- parentDiv:wikitext(link:sub( 1,#link-1 ) .. '|') | |||
-- end | |||
--end | |||
end | |||
parentDiv:node(spriteDiv) | parentDiv:node(spriteDiv) | ||
--if link and #link ~= 0 then | |||
if link and #link ~= 0 then | -- if link:sub( 1,2 ) == '[[' then | ||
-- parentDiv:wikitext(']]') | |||
-- elseif link:sub ( 1,1 ) == '[' then | |||
-- parentDiv:wikitext(']') | |||
-- end | |||
--end | |||
end | |||
return parentDiv | return parentDiv |
edits