Module:character simple list

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

local export = {}

local function contains(table, val)
	for i = 1, #table do
		if table == val then 
			return true
		end
	end
	return false
end

function export.show(frame)
	local result = {}
	local args = frame.args
	local text = args or ''
	local sc_code = args or 'Zyyy'
	local prefix = args or ''
	local separator = args or ', '
	local size = args or 'large'
	local mark = args or '⁕'
	local marklist = args or ''

	marklist = mw.text.split(marklist, '')
	for term in mw.text.gsplit(text, '') do
		if prefix == '' then
			table.insert(result, ']' .. (contains(marklist, term) and mark or ''))
		else
			table.insert(result, ']' .. (contains(marklist, term) and mark or ''))
		end
	end
	return '<span class="' .. sc_code .. '" style="font-size:' .. size .. '">' .. table.concat(result, separator) .. '</span>'
end

return export