Module:Crafting: Difference between revisions

Jump to navigation Jump to search
m
Reverted edits by Epyon (talk) to last revision by JP12
m (This should be edge cases included)
m (Reverted edits by Epyon (talk) to last revision by JP12)
Tag: Rollback
Line 116: Line 116:
end
end


local link = args['link'] or args['Link']
if link and #link ~= 0 then
if link:sub( 1,2 ) == '[[' and link:sub( #link-2,#link ) ~= '|]]' then
spriteDiv:wikitext( link:sub( 1,#link-2 ) .. '|]]' )
elseif link:sub ( 1,1 ) == '[' and link:sub ( #link-1, #link ) ~= '|]' then
spriteDiv:wikitext( link:sub( 1,#link-1 ) .. '|]' )
end
end


local enchanted = args['enchanted'] or args['Enchanted']
local enchanted = args['enchanted'] or args['Enchanted']
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits

Navigation menu