Dokumentaci tohoto modulu lze vytvořit na stránce Nápověda:Modul:Number2Link

local p = {}
function p.number2Link(frame)
	pargs = frame.args
	local listName = pargs["listName"] or mw.title.getCurrentTitle().baseText
	local list = {}
	if listName then list = require( "Modul:Number2Link/" .. listName ) end
	local itemNumber = tonumber(pargs["itemNumber"] or pargs[1]) or 0
	local itemName = list[itemNumber] or ""
	local outputText
	if (pargs["option"] or pargs[2]) == "text" then
		outputText = (pargs["pref"] or list["pref"] or "") .. itemName .. (pargs["suf"] or list["suf"] or "")
	else
		outputText = (pargs["pref"] or list["pref"] or "") .. itemNumber .. (pargs["suf"] or list["suf"] or "")
	end
	result = "[[../" .. itemName .. "|" .. outputText .. "]]"
	return result
end
return p