コンテンツにスキップ

モジュール:anchors/templates

出典: フリー多機能辞典『ウィクショナリー日本語版(Wiktionary)』

このモジュールについての説明文ページを モジュール:anchors/templates/doc に作成できます

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

local m_anchors = require("モジュール:anchors")

local load_data = mw.loadData
local process_params = require("モジュール:parameters").process

local export = {}

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

function export.senseid_t(frame)
	local args = process_params(frame:getParent().args, load_data("モジュール: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("モジュール:parameters/data").etymid)
	return m_anchors.etymid(args[1], args[2])
end

return export