Module:also: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
i = i + 1
i = i + 1
end
end
return "''See also:'' " .. table.concat(links, ", ")
return "<dt><dd>''See also:'' " .. table.concat(links, ", ") .. "</dd></dt>"
end
end


return export
return export

Revision as of 15:53, 9 August 2023

{{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
	return "<dt><dd>''See also:'' " .. table.concat(links, ", ") .. "</dd></dt>"
end

return export