Changes
Jump to navigation
Jump to search
Line 104:
Line 104:
+
+
+
+
+
+
+
+
Line 141:
Line 149:
− +
− :addClass('navigation-not-searchable')
− +
Updated from sandbox: export default classes through new function p.defaultClasses
disambiguator = disambiguator or 'disambiguation'
disambiguator = disambiguator or 'disambiguation'
return mw.ustring.format('%s (%s)', page, disambiguator)
return mw.ustring.format('%s (%s)', page, disambiguator)
end
function p.defaultClasses(inline)
-- Provides the default hatnote classes as a space-separated string; useful
-- for hatnote-manipulation modules like [[Module:Hatnote group]].
return
(inline == 1 and 'hatnote-inline' or 'hatnote') .. ' ' ..
'navigation-not-searchable'
end
end
hatnote
hatnote
:attr('role', 'note')
:attr('role', 'note')
:addClass(inline == 1 and 'hatnote-inline' or 'hatnote')
:addClass(p.defaultClasses(inline))
:addClass(extraclasses)
:addClass(extraclasses)
:addClass(options.selfref and 'selfref' or nil)
:addClass(options.selfref and 'selfref' or nil)
:wikitext(s)
:wikitext(s)
return mw.getCurrentFrame():extensionTag{
return mw.getCurrentFrame():extensionTag{
name = 'templatestyles', args = { src = 'Module:Hatnote/styles.css' }
name = 'templatestyles', args = { src = 'Module:Hatnote/styles.css' }