Module:Crafting: Difference between revisions

Jump to navigation Jump to search
m
Comment out this specific use case of the link argument
(Undo revision 7076 by JP12 (talk))
Tag: Undo
m (Comment out this specific use case of the link argument)
(11 intermediate revisions by the same user not shown)
Line 110: Line 110:
end
end


local count = tonumber(args['count']) or tonumber(args['Count']) or 1 or '?'
local count = tonumber(args['count']) or tonumber(args['Count']) or string.match(tostring(args['count']),'%?') or string.match(tostring(args['Count']),'%?') or 1
if count ~= 1 then
if count ~= 1 then
local countSpan = parentDiv:tag("span"):wikitext(count)
local countSpan = parentDiv:tag("span"):wikitext(count)
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,636

edits

Navigation menu