Module:Crafting: Difference between revisions

Jump to navigation Jump to search
m
slightly smarterf
(this may be dumb but maybe smart)
m (slightly smarterf)
Line 126: Line 126:
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
184

edits

Navigation menu