Module:qualifier/templates

< Module:qualifier
Revision as of 10:39, 8 August 2024 by Sware (talk | contribs) (Created page with "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_param...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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