Module:User:Nominkhana arslang/xal-utilities

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


local export = {}


function export.todo(frame)
  local parent_args = frame:getParent().args
  local default_title = parent_args or mw.title.getCurrentTitle().text
  default_title = 'Clear Script variants of '
    .. require 'Module:script utilities'.tag_text(
    default_title, require 'Module:languages'.getByCode 'xwo', nil, 'term', nil)
  local tabletitle = parent_args or default_title
  local text = '<div class="NavFrame" style="">\n<div class="NavHead" style="background-color:#eaecf0">' .. tabletitle .. '&nbsp;&nbsp;</div>\n<div class="NavContent">\n{| style="text-align:center;"'
  local i = 1
  while parent_args do
    local term = parent_args
    local lang = require 'Module:languages'.getByCode 'xwo'
    local link = require 'Module:links'.full_link( { lang = lang, term = term}, 'term' )
    local spelling = mw.ustring.gsub(link, "%b()", "")
    text = text .. '\n|style="background-color:#eaecf0;font-size:105%|<span style="margin:0px 6px;"><b>' .. spelling .. '</b></span>'
    i = i + 1
  end
  local j = 1
  local no_read = true
  local since_last = 1
  while parent_args do
  	if parent_args then
			if no_read then
				text = text .. '\n|-'
				no_read = false
			end
			while since_last > 0 do
				text = text .. '\n|'
				since_last = since_last - 1
			end
    	local term = parent_args
    	local lang = require 'Module:languages'.getByCode 'xwo'
    	local link = require 'Module:links'.full_link( { lang = lang, term = term}, 'term' )
    	local translit = mw.ustring.sub(mw.ustring.match(link, "%b()"), 2, -2)
    text = text .. 'style="background-color:#eaecf0"|' .. translit 
  	end
	since_last = since_last + 1
    j = j + 1
  end
	j = 1
	local no_note = true
	since_last = 1
	local since_note = 1
	local note = 'note1'
	while j < i do
		if parent_args then
			if no_note then
				text = text .. '\n|- style="font-size:70%"'
				no_note = false
			end
			while since_last > 0 do
				text = text .. '\n|'
				since_last = since_last - 1
			end
			text = text .. 'style="background-color:#eaecf0"|' .. parent_args
		end
		since_last = since_last + 1
		j = j + 1
		note = 'note' .. j
	end
		j = 1
	local no_date = true
	since_last = 1
	local date = 'date1'
	while j < i do
		if parent_args then
			if no_date then
				text = text .. '\n|-'
				no_date = false
			end
			while since_last > 0 do
				text = text .. '\n|'
				since_last = since_last - 1
			end
			text = text .. 'style="background-color:#eaecf0"|' .. frame:expandTemplate{title = 'defdate', args = {parent_args}}
		end
		since_last = since_last + 1
		j = j + 1
		date = 'date' .. j
	end
  text = text .. '\n|}</div></div>'
  return text
end 


return export