Module:accent qualifier

Hello, you have come here looking for the meaning of the word Module:accent qualifier. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:accent qualifier, but we will also tell you about its etymology, its characteristics and you will know how to say Module:accent qualifier in singular and plural. Everything you need to know about the word Module:accent qualifier you have here. The definition of the word Module:accent qualifier will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:accent qualifier, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module implements the {{accent}} or {{a}} template. To add more regional accent presets, edit Module:accent qualifier/data.

Detailed documentation

export.format_qualifiers

function export.format_qualifiers(lang, qualifiers)

Format accent qualifiers. Implements the {{a}} (shortcut for {{accent}}) template. This template is now virtually identical to a non-categorizing {{lb}}, although a few labels display and/or link differently (e.g. Egyptian-language label 'Old Egyptian' displays as "reconstructed Old Egyptian" instead of just "Old Egyptian", and English-language label 'Australia' displays as "General Australian" instead of just "Australia", and links to w:Australian English phonology instead of w:Australian English).

export.show

function export.show(frame)

External entry point that implements {{accent}} and {{a}}.


local export = {}

local labels_module = "Module:labels"

--[==[
Format accent qualifiers. Implements the {{tl|a}} (shortcut for {{tl|accent}}) template. This template is now virtually
identical to a non-categorizing {{tl|lb}}, although a few labels display and/or link differently (e.g. Egyptian-language
label 'Old Egyptian' displays as "reconstructed Old Egyptian" instead of just "Old Egyptian", and English-language
label 'Australia' displays as "General Australian" instead of just "Australia", and links to
] instead of ]).
]==]
function export.format_qualifiers(lang, qualifiers)
	return require(labels_module).show_labels {
		lang = lang,
		labels = qualifiers,
		nocat = true,
		mode = "accent",
	}
end

--[==[
External entry point that implements {{tl|accent}} and {{tl|a}}.
]==]
function export.show(frame)
	if not frame.getParent then
		error("When calling ] internally, use format_qualifiers() not show()")
	end
	local parent_args = frame:getParent().args

	local params = {
		 = {type = "language", default = "und"},
		 = {list = true, required = true, default = "{{{2}}}"},
	}
	local args = require("Module:parameters").process(parent_args, params)
	return export.format_qualifiers(args, args)
end

return export