Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
change text back to show/hide and auto-prepend "mw-" to any custom state
correct function name is attr(), not addAttr() (that's not confusing... >_> )
Line 303:
:addClass('mw-collapsible')
:addClass(args.state and 'mw-' .. args.state)
:addAttrattr('data-collapsetext', 'hide')
:addAttrattr('data-expandtext', 'show')
end