Bu modul uchun Modul:anchor/doc nomli hujjat sahifasini yaratishingiz mumkin

local m_params = require("Module:parameters")
local m_params_data = mw.loadData("Module:parameters/data").anchor

local export = {}

function export.main(frame)
	local args = m_params.process(frame:getParent().args, m_params_data.main)
	
	local anchors = mw.html.create()
	for _, arg in ipairs(args[1]) do
		anchors = anchors:tag("span")
			:addClass("template-anchor")
			:attr("id", arg)
			:done()
	end
	
	return tostring(anchors)
end

return export