Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WiktionaryThe Free Dictionary
Search

Module:languages/data/all

From Wiktionary, the free dictionary
<Module:languages |data

The followingdocumentation is located atModule:languages/data/all/documentation.[edit]
Useful links:root pageroot page’s subpageslinkstransclusionstestcasessandbox

This module combines data from thelanguage data modules into a single table. It should only be used in Lua modules that need to look at the data for all languages, such asWiktionary:List of languages. It should not be used in entries, because its memory footprint is huge.

SeeWiktionary:Grease pit/2013/November#Module:languages.

See also

localstring=stringlocaltable=tablelocalfind=string.findlocalformat=string.formatlocalgsub=string.gsublocalnext=nextlocalrequire=requirelocalall_scriptsdolocalscripts,n={},0forscriptinnext,require("Module:scripts/data")don=n+1scripts[n]=scriptendtable.sort(scripts)all_scripts=table.concat(scripts,",")endlocalmodules={"Module:languages/data/2","Module:languages/data/exceptional"}localdata={}fori=1,28dolocalmname=modules[i]orformat("Module:languages/data/3/%c",0x5E+i)forkey,valueinnext,require(mname)do-- Handle the special script codes "All" and "Hants".localvalue4=value[4]ifvalue4=="All"thenvalue[4]=all_scriptselseifvalue4andfind(value4,"Hants",1,true)thenvalue[4]=gsub(value4,"Hants","Hani,Hant,Hans")enddata[key]=valueendforlkey,lvalueinnext,require(mname.."/extra")dolocallkey_data=data[lkey]iflkey_datathenforkey,valueinnext,lvaluedolkey_data[key]=valueendendendendreturndata
Retrieved from "https://en.wiktionary.org/w/index.php?title=Module:languages/data/all&oldid=79060049"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp