Module:Labelled list hatnote: Difference between revisions

Pass through extraclasses
(Prototype. Was going to add this to Module:Hatnote list but it's probably better as its own module…)
 
(Pass through extraclasses)
Line 52:
local pages = p.preprocessDisplays(args)
local options = {
selfrefextraclasses = args.selfrefextraclasses,
category = args.category,
selfref = args.selfref,
template = template
}
Line 70 ⟶ 71:
label = (#pages == 1 and labels[1] or labels[2]) or defaults.label
local text = string.format('%s: %s', label, mHatlist.andList(pages, true))
local hnOptions = {selfref = options.selfref}
extraclasses = options.extraclasses,
selfref = options.selfref
}
return mHatnote._hatnote(text, hnOptions)
end
Anonymous user