Module:qualifier/templates

From Linguifex
Jump to navigation Jump to search

Documentation for this module may be created at Module:qualifier/templates/doc

local m_qualifier = require("Module:qualifier")

local antsense = m_qualifier.antsense
local format_qualifier = m_qualifier.format_qualifier
local process_params = require("Module:parameters").process
local sense = m_qualifier.sense

local export = {}

function export.qualifier_t(frame)
	return format_qualifier(
		process_params(frame:getParent().args, {
			[1] = {required = true, list = true},
		})[1]
	)
end

function export.sense_t(frame)
	return sense(
		process_params(frame:getParent().args, {
			[1] = {required = true, list = true},
		})[1]
	)
end

function export.antsense_t(frame)
	return antsense(
		process_params(frame:getParent().args, {
			[1] = {required = true, list = true},
		})[1]
	)
end

return export