Moved some stuff to defaults
Pull extraclasses and selfref from the right frame(s) |
Moved some stuff to defaults |
||
పంక్తి 14:
-- Defaults global to this module
local defaults = {
label = 'See also', --Final fallback for label argument
labelForm = '%s: %s',
template = 'Module:Labelled list hatnote'
}
Line 65 ⟶ 67:
return mHatnote.makeWikitextError(
'no page names specified',
(options.template or
options.category
)
end
label = (#pages == 1 and labels[1] or labels[2]) or defaults.label
local text = string.format(
options.labelForm or defaults.labelForm,
label,
mHatlist.andList(pages, true)
)
local hnOptions = {
extraclasses = options.extraclasses,
|