Template:Sandbox other

Template:Module other

This module implements

ERROR: This page is using an unprefixed version of template {{Tl}}

Use {{Wp/syl/Tl}} instead and replace all occurences of {{Tl}} in Wp/syl/ prefixed pages by that.
You may like to check 7 templates in Category:Wp/syl/Templates using unprefixed template Tl first to remove all occurences from those templates which will fix the pages containing those templates too.
{{anchor}}. Please see the Template:Anchor/doc page for documentation.
-- This module implements {{Wp/syl/Anchor}}.

local getArgs = require('Module:Wp/syl/Arguments').getArgs
local tableTools = require('Module:Wp/syl/TableTools')

local p = {}

function p.main(frame)
	-- Get the positional arguments from #invoke, remove any nil values,
	-- and pass them to p._main.
	local args = getArgs(frame)
	local argArray = tableTools.compressSparseArray(args)
	return p._main(unpack(argArray))

function p._main(...)
	-- Generate the list of anchors.
	local anchors = {...}
	local ret = {}
	for _, anchor in ipairs(anchors) do
		ret[#ret + 1] = '<span class="anchor" id="' .. anchor .. '"></span>'
	return table.concat(ret)

return p