Hello, you have come here looking for the meaning of the word
Module:zh-track. In DICTIOUS you will not only get to know all the dictionary meanings for the word
Module:zh-track, but we will also tell you about its etymology, its characteristics and you will know how to say
Module:zh-track in singular and plural. Everything you need to know about the word
Module:zh-track you have here. The definition of the word
Module:zh-track will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
Module:zh-track, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
local export = {}
local match = mw.ustring.match
local split = mw.text.split
function export.track_data_module(page)
if not page then page = mw.title.getCurrentTitle().fullText end
if type(page) == 'table' then page = page.args end
page_part = split(page, "/")
page_type = page_part
page_param = page_part == "ltc-pron" and "|mc=" or "|oc="
page_char = page_part
if not (mw.title.new(page_char) or {}).exists then
require('Module:debug').track('zh-track/' .. page_type .. '/character page not found')
return
end
local content = mw.title.new(page_char):getContent() or ""
if not match(content, "==Chinese==") then
if match(content, "==Mandarin==") then
require('Module:debug').track('zh-track/' .. page_type .. '/ununified character page')
else
require('Module:debug').track('zh-track/' .. page_type .. '/no Chinese section found')
end
elseif not match(content, "zh%-pron") then
if match(content, "zh%-see") then
require('Module:debug').track('zh-track/' .. page_type .. '/variant or simplified character')
else
require('Module:debug').track('zh-track/' .. page_type .. '/no character pronunciation')
end
elseif not match(content, page_param) then
require('Module:debug').track('zh-track/' .. page_type .. '/unused data module')
end
end
return export