Module:Crafting: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
m (Comment out this specific use case of the link argument)
mNo edit summary
 
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
if link:sub( 1,2 ) == '[[' then
-- parentDiv:wikitext(link:sub( 1,#link-2 ) .. '|')
parentDiv:wikitext(link:sub( 1,#link-2 ) .. '|')
-- elseif link:sub ( 1,1 ) == '[' then
elseif link:sub ( 1,1 ) == '[' then
-- parentDiv:wikitext(link:sub( 1,#link-1 ) .. '|')
parentDiv:wikitext(link:sub( 1,#link-1 ) .. '|')
-- end
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
if link:sub( 1,2 ) == '[[' then
-- parentDiv:wikitext(']]')
parentDiv:wikitext(']]')
-- elseif link:sub ( 1,1 ) == '[' then
elseif link:sub ( 1,1 ) == '[' then
-- parentDiv:wikitext(']')
parentDiv:wikitext(']')
-- end
end
--end
end


return parentDiv
return parentDiv
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,633

edits

Navigation menu