Module:See also: Difference between revisions

Content added Content deleted
m (1 revision imported: categories)
(Removed altphrase option and non-CamelCase aliases)
Line 31: Line 31:
end
end
local options = {
local options = {
altphrase = args.altphrase,
selfref = args.selfref
selfref = args.selfref
}
}
return p._seealso(pages, options)
return p._seeAlso(pages, options)
end
end


Line 41: Line 40:
checkType('_seeAlso', 2, options, 'table', true)
checkType('_seeAlso', 2, options, 'table', true)
options = options or {}
options = options or {}
local phrase = options.altphrase or 'See also'
local list = mHatlist.andList(args, true)
local list = mHatlist.andList(args, true)
local text = phrase .. ': ' .. list
local text = string.format('See also: %s', list)

-- Pass options through.
-- Pass options through.
local hnOptions = {selfref = options.selfref}
local hnOptions = {
selfref = options.selfref

}
return mHatnote._hatnote(text, hnOptions)
return mHatnote._hatnote(text, hnOptions)
end
end

--temporary aliases to move to CamelCase
p.seealso = p.seeAlso
p._seealso = p._seeAlso


return p
return p