K wobsahej skočić

Modul:anchors/templates

z Wikisłownika

Dokumentacija za tutón modul hodźi so na Modul:anchors/templates/dokumentacija wutworić

-- Prevent substitution.
if mw.isSubsting() then
	return require("Modul:unsubst")
end

local m_anchors = require("Modul:anchors")

local load_data = mw.loadData
local process_params = require("Modul:parameters").process

local export = {}

function export.anchor_t(frame)
	return m_anchors.make_anchors(process_params(frame:getParent().args, load_data("Modul:parameters/data").anchor)[1])
end

function export.senseid_t(frame)
	local args = process_params(frame:getParent().args, load_data("Modul:parameters/data").senseid)
	return m_anchors.senseid(args[1], args[2], args.tag)
end

function export.etymid_t(frame)
	local args = process_params(frame:getParent().args, load_data("Modul:parameters/data").etymid)
	return m_anchors.etymid(args[1], args[2])
end

return export