Module:Clickable button 2: Difference between revisions

allow category suppression with category=no
(remove a do ... end block that has lost its original function)
(allow category suppression with category=no)
Line 1:
-- This module implements {{clickable button 2}}.
 
local yesno = require('Module:Yesno')
 
local p = {}
Line 115 ⟶ 117:
 
function p.renderTrackingCategories(args)
if yesno(args.category) == false then
return ''
end
local class = args.class and args.class:lower()
if class == 'ui-button-green'