returnfunction(title,cats)localtype_of_data,character=title.fullText:match("^มอดูล:zh/data/dial%-(%l+)/(.+)$")ifcharacterthenlocalwhat,whereiftype_of_data=="pron"thenwhat="the pronunciation"where="dialects"elseiftype_of_data=="syn"thenwhat="synonyms"where="dialects and varieties"endifwhatthenlocallink=require("Module:links").full_link{lang=require"Module:languages".getByCode("zh"),term=character:gsub("-[0-9]",""),}localtext=("This module contains data on %s of %s in %s of Chinese."):format(what,link,where)iftype_of_data=="syn"thentext=text.."\n"..mw.getCurrentFrame():expandTemplate{title='zh-dial',args={character}}endreturntextendendend