Module:also

Revision as of 02:25, 3 December 2023 by TheNightAvl (talk | contribs) (Sorting, hopefully)

{{also}}


local export = {}

local m_links = require("Module:links")

function export.show(frame)
	local args = frame:getParent().args
	local links = {}
	local i = 1
	while args[i] do
		table.insert(links, "'''" .. m_links.full_link{term = args[i]} .. "'''")
		i = i + 1
	end
	table.sort(links, function(a,b) return a < b end)
	return "<dt><dd>''See also:'' " .. table.concat(links, ", ") .. "</dd></dt>"
end

return export