Module:mul-domino def

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

This module generates a definition for domino tiles for {{mul-domino def}}.


local m_str_utils = require("Module:string utilities")

local cp = m_str_utils.codepoint
local ufind = m_str_utils.find
local ulen = m_str_utils.len
local usub = m_str_utils.sub

local m_unicode = require('Module:Unicode data')

local export = {}

function export.definition(frame)

	local pageObject = mw.title.getCurrentTitle()
	local pageName = pageObject.text
	local codepoint = cp(pageName)
	local characterName = m_unicode.lookup_name(codepoint)

	local offset = ufind(characterName, "%-")

	local dominoes = {}

	if ulen(pageName) == 1 then
		dominoes = usub (characterName, offset+2, offset+2)
		dominoes = usub (characterName, offset+5, offset+5)
	else
		dominoes = "a"
		dominoes = "b"
	end

	local definition = "A ] ], the  .. "]]- .. "]]."
	local category = "]"
	local result = definition .. category

	result = frame:expandTemplate { title = "n-g", args = { result } }
	return result

end

return export