Module:akk-sign values

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


local export = {}

local lang = require("Module:languages").getByCode("akk")
local m_links = require("Module:links")
local m_strutils = require("Module:string utilities")

function split(source, sep)
	local result, i = {}, 1
	while true do
		local a, b = string.find(source, sep)
		if not a then
			break
		end
		local candidat = string.sub(source, 1, a - 1)
		if candidat ~= "" then
			result = candidat
		end
		i = i + 1
		source = string.sub(source, b + 1)
	end
	if source ~= "" then
		result = source
	end
	return result
end

function export.create_list(args)
	local list = split(args, ",")

	local output = {}

	require("Module:collation").sort(list, lang, nil)

	table.insert(output, table.concat(list, ", "))

	return table.concat(output)
end

function export.display(frame)
	local parent_args = frame:getParent().args

	local params = {
		 = {},
		 = {}
	}

	local args = require("Module:parameters").process(parent_args, params)
	local pagename = m_links.full_link({ term = mw.title.getCurrentTitle().text, lang = lang })

	local template =
		[===[
		{| class="wikitable" style="max-width: 25em;"
		|- style="text-align:center;"
		! Sign
		| <span style="font-size:300%">{pagename}</span>
		|- style="text-align:center;"
		! Sumerograms
		| {sum}
		|- style="text-align:center;"
		! Phonetic&nbsp;values
		| {phon}
		|-
		|{\cl}]===]

	local forms = {}

	if args ~= nil then
		forms = export.create_list(args)
	else
		forms = "—"
	end

	if args ~= nil then
		forms = export.create_list(args)
	else
		forms = "—"
	end

	forms = pagename

	return m_strutils.format(template, forms)
end

return export