Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,636
edits
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 | 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 | ||
-- 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