localexport={}localfunctionmake_anchor(text,anchor)return'<span id="'..(anchorortext)..'">'..text..'</span>'endfunctionexport.show()localdata=mw.loadData"Module:links/data"localoutput={}localinsert=table.insertlocalugsub=mw.ustring.gsublocalget_codepoint=mw.ustring.codepointlocalulen=mw.ustring.lenlocalsorted_pairs=require"Module:table".sortedPairslocalis_whitespace=require"Module:Unicode data".is_whitespacelocalfunctionprocess_link_text(link_text)-- The basic space character is stripped from link text if there are no-- characters surrounding it.ifulen(link_text)==1andis_whitespace(get_codepoint(link_text))thenreturn("]%s["):format(link_text)else-- Convert all characters to hexadecimal character entities to-- prevent any transformations.-- This is pretty much only because HTML comment syntax would not be-- displayed otherwise. But who knows what else MediaWiki software-- might do.returnugsub(link_text,".",function(char)localcodepoint=get_codepoint(char)ifnotis_whitespace(codepoint)thenreturn("&#x%X;"):format(codepoint)endend)endendlocalfunctionlink(term,title)localscript=require"Module:scripts".findBestScriptWithoutLang(term):getCode()ifscript~="None"thenreturn('* <span class="%s">[[ชื่อไม่รองรับ/%s|%s]]</span>'):format(script,title,process_link_text(term))elsereturn("* [[ชื่อไม่รองรับ/%s|%s]]"):format(title,process_link_text(term))endendforterm,titleinsorted_pairs(data.unsupported_titles)doinsert(output,link(term,title))endinsert(output,1,"; "..make_anchor("ชื่อไม่รองรับ")..":")returntable.concat(output,"\n")endreturnexport