Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
correct function name is attr(), not addAttr() (that's not confusing... >_> )
default to collapsed, since mw-collapsible doesn't have autocollapse and I'm not sure how else to work around it
Line 302:
tbl
:addClass('mw-collapsible')
-- mw-collapsible doesn't have an "autocollapse" feature, so fall back on collapsed by default for now
:addClass(args.state and 'mw-' .. args.state or 'mw-collapsed')
:attr('data-collapsetext', 'hide')
:attr('data-expandtext', 'show')