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


-- The values and functions in this submodule should be localized per wiki.

local p = {}

function p.init(aliasesP)
	p = {
		 = "7",  -- increment this each time the below parameters are changed to avoid reference conflict errors
		 = {
			          = "Unknown or unsupported datatype '%s'.",
			 = "No required parameters defined, needing at least one",
			   = "Parameter '%s' must be defined as optional",
			      = "You must specify a function to call",  -- equal to the standard module error message
			          = 'The function "main" cannot be called twice',
			           = 'The function "%s" does not exist',  -- equal to the standard module error message
             = 'Error: template "%s", which is set in %s as the output template for the citation-output type "%s", does not exist',
            -- Parts of the error message signalling a malformed reference.
             = "<span style=\"color:#dd3333\">\nError: Unable to display the reference from Wikidata properly. Technical details:\n",
             = "See ] for further details.\n</span>\n]",
                = "* Reason for the failure of {{tl|%s}}: %s\n",
                = 'The output template call would miss the mandatory parameter <code>%s</code>.',
                = 'The Wikidata reference contains the property {{property|%s}}, which is not assigned to any parameter of this template.'
		},
		 = {
			 = "Edit this on Wikidata"
		},
		 = {
			 = ".",
			    = ","
		},
		 = {
			 = {
				 = ""
			},
			 = {
				 = "s",
				    = " millennium",
				       = " century",
				 = " million years",
				 = " billion years",
				          = " year",
				         = " years"
			},
			 = "Julian calendar",  -- linked page title
			          = "Julian",
			             = "BCE",
			              = "CE",
			      = "Common Era"  -- linked page title
		},
		 = {
			 = "N",
			 = "S",
			 = "E",
			 = "W",
			        = "°",
			        = "'",
			        = '"',
			      = ", "
		},
		 = {
			 = "unknown",
			    = "none"
		},
		 = {
			 = {"web", "q"},  -- In this order, the output types will be tried
			 = {
				 = {
					-- <= left side: all allowed reference properties for *web page sources* per https://www.wikidata.orghttps://dictious.com/en/Help:Sources
					-- => right side: corresponding parameter names in (equivalent of) ] (if non-existent, keep empty i.e. "")
					                = "website",
					            = "url",
					         = "date",
					               = "access-date",
					                   = "title",
					              = "archive-url",
					             = "archive-date",
					                = "language",
					                  = "author",
					        = "author",
					               = "publisher",
					                   = "quote",
					                   = "pages",  -- extra option
					             = "website",
					 = "at"
				},
				 = {
					-- <= left side: all allowed reference properties for *sources other than web pages* per https://www.wikidata.orghttps://dictious.com/en/Help:Sources
					-- => right side: corresponding parameter names in (equivalent of) ] (if non-existent, keep empty i.e. "")
					                = "1",
					                   = "pages",
					                  = "at",
					                 = "chapter",
					 = "section",
					                    = "id",  -- used for any type of database property ID
					                   = "title",
					         = "date",
					               = "access-date"
				}
			},
			 = {
				-- supported fields:
				--     - template: name of the template used for output
				--     - numbered-params: citation params accepting an arbitrary number of values by numbering the params (e.g. author1, author2)
				--     - raw-value-params: params taking a raw value (which means the property is rendered with getValue with raw=true)
				--     - mandatory-params: params that are required be in the template call (after potentially appending numbers to params listed in numbered-params)
				-- Leaving out the "template" field causes the output type to be ignored.
				 = {
					 = "Cite web",
					 = {"author"},
					 = {"url"}
				},
				 = {
					 = "Cite Q",
					 = {"1"},  -- the first, unnamed parameter of CiteQ takes a QID, not the name of the item cited
					 = {"1"}
				}
			}
		}
	}

	p.getOrdinalSuffix = function(num)
		if tostring(num):sub(-2,-2) == '1' then
			return "th"  -- 10th, 11th, 12th, 13th, ... 19th
		end

		num = tostring(num):sub(-1)

		if num == '1' then
			return "st"
		elseif num == '2' then
			return "nd"
		elseif num == '3' then
			return "rd"
		else
			return "th"
		end
	end

	p.addDelimiters = function(n)
		local left, num, right = string.match(n, "^(*%d)(%d*)(.-)$")

		if left and num and right then
			return left .. (num:reverse():gsub("(%d%d%d)", "%1" .. p):reverse()) .. right
		else
			return n
		end
	end

	return p
end

return p