Module:Hatnote: Difference between revisions
Jump to navigation
Jump to search
Add navigation-not-searchable class per request (also see T164781)
>Nihiltres (Non-breaking space after "§" in _formatLink() to match Module:Section link; might not be a bad idea to require() that module but this is a good start) |
>JJMC89 |
||
Line 204: | Line 204: | ||
checkType('_hatnote', 2, options, 'table', true) | checkType('_hatnote', 2, options, 'table', true) | ||
options = options or {} | options = options or {} | ||
local classes = {'hatnote'} | local classes = {'hatnote', 'navigation-not-searchable'} | ||
local extraclasses = options.extraclasses | local extraclasses = options.extraclasses | ||
local selfref = options.selfref | local selfref = options.selfref |