Wikipedia
gvwiki
https://gv.wikipedia.org/wiki/Ard-ghuillag
MediaWiki 1.47.0-wmf.24
first-letter
Meanyn
Er lheh
Resooney
Ymmydeyr
Resooney ymmydeyr
Wikipedia
Resooney Wikipedia
Coadan
Resooney coadan
MediaWiki
Resooney MediaWiki
Clowan
Resooney clowan
Cooney
Resooney cooney
Ronney
Resooney ronney
TimedText
TimedText talk
Module
Module talk
Event
Event talk
Doolish
0
954
395315
395299
2026-10-26T13:26:58Z
MacTire02
219
++
395315
wikitext
text/x-wiki
{{Art reiht rollage}}
{{Kishtey fys boayl/noa
|sorçh_balley = [[Rolley buill ayns Mannin|Ard-valley]]
|ennym = Doolish
|ennym_dooghyssagh = {{lang|en|Douglas|italics=no}} {{small|([[Baarle]])}}
|ennym_gienneydagh = Ghoolish
|jalloo = Collage Douglas.jpg
|jalloo_armys = Cullee Valley Corpagh Ghoolish.png
|jalloo_brattagh = Flag_of_Douglas,_Isle_of_Man.svg
|fo-heidyl_jalloo = Baare: [[Purt Varrey Ghoolish|Y Phurt Varrey]], [[Stashoon traenagh Ghoolish]]<br />Mean: [[Shooylaghan Loch]]<br />Bun: [[Thie Vona]] ([[Yn Kiare as Feed|y Kiare as Feed]]), [[Kione y Sker#Toor y Chemmyrk|Toor y Chemmyrk]]
|jarroo-raa = Kiannoortys çheusthie jeh kiannoortys
|bunneeaght_wd = none
|enmys_rheynn-reihys = [[Rheynnyn-reihys y Chiare as Feed|Rheynnyn-reihys]]
|rheynn-reihys = [[Doolish Heear]]
|rheynn-reihys2 = [[Doolish Hiar]]
|rheynn-reihys3 = [[Doolish Hwoaie]]
|rheynn-reihys4 = [[Doolish Yiass]]
}}
She [[preeu-valley]] [[Mannin|Vannin]], as y balley smoo ayn, ee '''Doolish''' ({{ASE-keintagh|ˈd̪uːlɪʃ}}; {{langx|en|Douglas}}). Ta'n fockle "Doolish" çheet magh ass "yn doo glass" ny "yn doo glish" myr ennym yn awin 'sy valley,<ref>{{cite book | url = http://www.isle-of-man.com/manxnotebook/fulltext/sn1890/ch3.htm | title = Surnames & Place-names of the Isle of Man | last = Moore | first = A.W. | authorlink = Arthur William Moore | location = Lunnin | publisher = Elliot Stock | date = 1890 | accessdate = 21 Averil 2011 | chapter = Chapter III - Distinctive Affixes | archive-date = 2011-04-11 | archive-url = https://web.archive.org/web/20110411014151/http://www.isle-of-man.com/manxnotebook/fulltext/sn1890/ch3.htm | url-status = dead }}</ref><ref>{{cite book | url = http://www.isle-of-man.com/manxnotebook/fulltext/scrap1/index.htm | title = A Manx Scrapbook | date = 1929 | accessdate = 21 Averil 2011 | chapter = Chapter IV - The Parish of Onchan | last = Gill | first = W. Walter | location = Bristol | publisher = J. W. Arrowsmith, Ltd. | archive-date = 2011-05-13 | archive-url = https://web.archive.org/web/20110513112346/http://www.isle-of-man.com/manxnotebook/fulltext/scrap1/index.htm | url-status = dead }}</ref> ny ass cur ry-cheilley ny h-enmyn "doo" as "glass" as ad ny h-enmyn ta currit er y daa awin ([[yn Glass]] as [[yn Awin Doo]]) ta çheet ry cheilley faggys da'n valley.<ref>{{cite web | url = http://www.britannica.com/EBchecked/topic/170131/Douglas | title = Douglas | publisher = Encyclopaedia Britannica | accessdate = 21 Averil 2011 | language = Baarle }}</ref> Ta {{WD Earroo yn Phobble}} deiney cummal 'sy valley,<ref name="Census2011">{{cite web | url = http://www.gov.im/lib/docs/treasury/economic/census/census2011reportfinalresized.pdf | title = Isle of Man Census Report 2011 | pages = dg. 14 | publisher = Rheynn Cooishyn Tarmaynagh, Yn Tashtey | date = 2012 | isbn = 978-1-904869-32-0 | format = pdf | language = Baarle | accessdate = 8 Mean Fouyir 2012 | archivedate = 2013-11-05 | archiveurl = https://web.archive.org/web/20131105003928/http://www.gov.im/lib/docs/treasury/economic/census/census2011reportfinalresized.pdf }}</ref> ny un trass jeh sleih-earroo yn Ellan. Ta Doolish ny soie lieh-vollagh rish y choose hiar ec inver [[Awin Ghoolish]], as er baie lhean corranagh daa veeilley er lheead. Ta Awin Ghoolish jannoo seose paart jeh [[Purt Varrey Ghoolish|purt y valley as yn phreeu-phurt hraghtee]]. Ta Doolish coontit myr fer jeh ny [[Gurneilys ynnydagh ayns Mannin|h-ardjyn reiragh ayns Mannin]].
She cree yn Ellan son [[dellal]], [[argidys]], [[arraghey]], [[shappal]], [[eunysseyrys]], [[politickaght]] as [[cultoor]] ee Doolish. Hooar y balley e staydys pree-valjagh 'sy vlein 1869 tra ren y reiltys scughey veih [[Balley Chashtal]] gys Doolish.<ref>{{cite web | url = http://www.stgeorges.im/history/ | title = A History of St George's Church | date = 2006 | last = Gawne | first = C. W. | accessdate = 21 Averil 2011 | publisher = [http://www.stgeorges.im/ St George's Douglas] | language = Baarle | archive-date = 2011-07-21 | archive-url = https://web.archive.org/web/20110721145720/http://www.stgeorges.im/history/ | url-status = dead }}</ref> Ec y traa t'ayn, ta soiaghey [[Yn Kiare as Feed|yn Chiare as Feed]] myrane lesh dagh rheynn y [[Reiltys Vannin|Reiltys]] ayns Doolish. Ta bancyn lheid as yn [[Isle of Man Bank]], [[Bank of Ireland]], [[Bank of Bermuda]], [[The Royal Bank of Scotland]] as [[Lloyds TSB]] soit 'sy valley as ta ard-ghoo er yn valley myr fer jeh ny buill argidoil vooie smoo er y theihll. Ta'n [[Paggad Bree]] stiurey shirveishyn baataghyn assaig veih Doolish gys [[Lerphoyll]], [[Heysham]] as [[Divlyn]] (shirveishyn imbee), as ta ram caaghyn arraghey elley, lheid as y raad yiarn gys [[Purt le Moirrey]] gimmeeaght ass Doolish.
== Shennaghys ==
Ta feddyn magh wappin [[ooha]] ayns Doolish Veanagh<ref>{{cite book | title = Recent Archaeological Research on the Isle of Man | chapter = Bronze Age metallurgy on the Isle of Man: a symposium | author = Davey, P. J. et al | date = 1999 | pages = dg. 48 | editor = Davey, P. J. | isbn = 0-86054-946-1 | publisher = BAR Brit. Ser. 278, Archaeopress}}</ref> as feddyn magh tastee stoyr Wiggynnagh [[Balley 'c Phaayl|Valley 'c Phaayl]]<ref>{{cite book | last = Wilson | first = David M. | date = 2008 | title = The Vikings in the Isle of Man | publisher = Aarhus universitetsforlag | pages = dg. 113 | isbn = 8779343708}}</ref> ayns ny [[1890yn]] taishbyney scansh leah yn toiaghey raad ta Doolish ny soie nish. Ta'n chooid smoo jeh scoillaryn as ollooyn coardail dy daink yn ennym "Doolish" ass "Duboglassio" (''glass ''ny'' awin doo'') y Çhenn Cheltish.<ref>{{cite book| last = Broderick | first = George | date = 2006 | title = A Dictionary of Manx Place-names | location = Nottingham | publisher = English Place-Name Society | isbn = 0-904889-71-8 | pages = dg. 103}}</ref> Ta daa imraa jeant er Doolish ayns ''Recortyssyn Reeaghyn Vannin as ny h-Ellanyn''; y chied 'sy vlein 1192 tra va ny maynee scughit veih Mannishter Voirrey ayns [[Rosien]] feie kiare bleeaney, as reesht 'sy vlein 1313 tra ren [[Roibert a Briuis]], [[Ree ny h-Albey]], tannaghtyn ayns mannishter Ghoolish as eh er y vollagh echey son Cashtal Rosien dy ghoaill.<ref>{{cite book| title = Chronicle of the Kings of Mann & The Isles | author = Broderick, G. & Stowell, B. | date = 1973 | publisher = preevaadjagh | location = Doon Edin | pages = dg. 26 & 46}}</ref> Foddee dy vel ny screeuyn shen çheet er soiaghey thie ny cailleeyn dooey anmagh, beggan seose yn awin veih'n phurt.
Ta'n chied docamadys cruinn taishbyney nagh row 'sy valley 'sy vlein 1511<ref>{{cite book | title = The Manorial Roll of the Isle of Man | first = Theophilus | last = Talbot | date = 1925 | pages = dg. 32 | publisher = Oxford University Press}}</ref> agh tree lughtyn thie jeig çhaglit çheu hwoaie jeh'n phurt, as y chooid smoo jeh ny shellooderyssyn ayn nyn "shamyryn"<ref>{{cite book | last = Crowe |first = Nigel Geoffrey | date =2001 | title = The Survey of Douglas: Quarterland and Cottage Rents of Douglas c.1705 | pages = dg. xvi |isbn = 0954128206}}</ref> (strughtooryn un-chillagh, neuchummaltit, gyn çhiass) as mail er eeck er nyn son ec neu-chummaltee goaill stiagh y chlere, fir oikagh as shellooderyn thallooin veih buill elley er yn Ellan. T'eh shen çheet er bun y valley myr purt neu-valjagh.<ref>{{cite journal| title = Continental trade and non-urban ports in mid-Anglo-Saxon England: excavations at Sandtun, West Hythe, Kent | last = Gardiner |first = Mark | date =2002 | volume = 158 | pages = dg. 161-290 | issn = 00665983 | journal = Archaeological Journal}}</ref> Ta'n sheiltynys jeh'n traa t'ayn nish kianglaghey ny thieyn-stoyr lesh eeastagh Skeddanyn Vooir Vannin as yn traght ymmyrkey stiagh/magh. 'Sy vlein 1681 ren Thomas Denton cur sheese er Doolish myr "fer jeh ny buill heyrey share" er Ellan Vannin, as 'sy vlein 1705 ta eie feer vie er y valley girree magh, as sannish ayn dy row currymyn y valley er çheu ny thieyn, yn vargee, as y choadey cahnagh girree ny smoo scanshoil<ref>{{cite book | last = Crowe |first = Nigel Geoffrey | date =2001 | title = The Survey of Douglas: Quarterland and Cottage Rents of Douglas c.1705 |isbn = 0954128206}}</ref> cur liorish y phurt. Car ny sheyad bleeantyn ny yei va thieyn marçhanyn, thieyn stoyr mooarey, keiyaghyn as peer troggit dy chiarail yn "Traght Roie" (yn [[drogh hraghtey]]), fer jeh broddyn da mooadaghey yn valley.<ref>{{cite book | last = Moore | first = A.W. | date = 1900 | title = A History of the Isle of Man | pages = dg. 436 |location = Lunnin | publisher = T. Fisher Unwin}}</ref> Daase sorçhyn elley dy hraght, as lurg [[Yn Çhialg Vooar|y Çhialg Vooar]] 'sy vlein 1765, hooar Doolish vondeishyn jeh'n traght harrish-Atlantagh rere feddyn magh [[Yn Seihll Noa|y Theihll Noa]], as co-obbraghey lesh [[Lerphoyll]] er bun ynnydagh.<ref name=DouglasCen>{{cite book|author=Gordon N. Kniveton; Robert E. Forster, [[Bachelor of Arts|B.A.]]; Robert Kelly; Stuart Slack; Frank Cowin [[Royal Institution of Chartered Surveyors|F.R.I.C.S.]]|title=Douglas Centenary 1896-1996|publisher=Manx Experience|isbn=1873120214}}</ref> Marçhanyn leighoil ren girree ny s'berçhee car y lhing shen, ren ad goaill stiagh ny lughtyn thie Murrey, Moore, as Bacon.<ref name=DouglasCen/> Lhig costys injil y vea myrane lesh y staydys leighoil v'ayn ec feeaghanee [[Sostyn|Hostynagh]] as oikee lieh-faill da berçhys jeianagh y valley.<ref>{{cite book | chapter = The Onset of Modernity | last = Belchem | first = John | date = 2000 | title = A New History of the Isle of Man, Vol V | location = Lerphoyll | publisher = Liverpool University Press | isbn = 0-85323-726-3}}</ref> She oyr yn aase as yn lhiassaghey toshee 'sy valley va'n phurt najooragh (y Phurt Sthie jiu), as ee er ny mooadaghey as ny bishaghey veih'n traa shen. Harrish yn 18oo eash daase sleih-earroo yn valley; cha row cummal 'sy valley 'sy vlein 1710 agh mysh 800 deiney, agh 'sy vlein 1784 va begnagh 2,500 deiney cummal ayn.
Car y nuyoo eash jeig hie deyn-oaylleeaght y valley lesh deyn-oaylleeaght baljyn elley 'sy Reeriaght Unnaneysit rere y [[Çhyndaa Çhynskylagh]]. Va ny smoo as ny smoo deiney geearree goll er laghyn seyrey gys yn ard shoh veih'n nuyoo eash jeig as ny deiney shen cur çhynskyl noa er bun – yn [[turrysid]]<ref name=DouglasCen/> – as veih mysh 1870 er oaie va'n balley ceaghlit gys ynnyd seyrey toshee. Cur faggys da cheilley lesh y verçhys shen, va doaieyn meeslayntoil as thieys jeh quallid voght ry-gheddyn 'sy valley, red va ry-akin ayns ny baljyn elley harrish y vooir 'sy Reeriaght Unnaneysit.<ref>{{cite book|first=Clive |last=Behagg|title=Labour and Reform: Working Class Movements, 1815-1914 (Access to History)|chapter=5: The Development of the Labour Party 1885–1902|pages=99–103|publisher=[[Hodder & Stoughton]]|date=1991-10-03|isbn=034052930X}}</ref> Chur y [[mooynlagh]] foshlit, ny [[thorran]]yn, as y soar veih'n phurt car traa y vooir-hraie lesh neughlennid y valley. Va lostanyn ooill as gas currit stiagh ayns Doolish da'n chied cheayrt ayns ny 1820yn jeianagh as ny 1830yn. 'Sy vlein 1832 haink er Baie Ghoolish dy ve ny valley da fer jeh ny cowraghyn thallooin smoo ard-ghooagh 'sy valley tra va [[Toor y Chemmyrk]] troggit er [[Kione y Sker]] dy chiarail fastee, kiarailyn as bee da shiaulteyryn lhongvrisht as ad fuirraghtyn rish livreys.<ref>{{cite web|url=http://www.iomguide.com/towerrefuge.php|title=Tower of Refuge|publisher=IOM Guide|accessdate=26 Averil 2011}}</ref><ref>{{cite web | url = http://www.manxradio.com/blog.aspx?id=35111&blogid=14912 | title = Jedoonee 26oo Mee Averil | date = 26 Averil 2009 | publisher = "Claare ny Gael", Manx Radio | accessdate = 24 Averil 2011 | archivedate = 2011-06-15 | archiveurl = https://web.archive.org/web/20110615233656/http://www.manxradio.com/blog.aspx?id=35111&blogid=14912 }}</ref> Va'n chied thie lheihys ren goaill ayrn 'sy [[Lheelann]] troggit 'sy vlein 1850. Ansherbee, by chowrey Ghoolish 'sy chied lieh jeh'n nuyoo eash jeig ayn na genney as neuverçhys ny cummaltee as y mooar-earroo jeh [[ym-ghorley|ym-ghorlaghyn]] oc, yn [[collyr]] er lheh.<ref name=DouglasCen/>
Va enney currit er aase as bishaghey Ghoolish myr doon sheshoil as tarmaynagh yn Ellan 'sy vlein 1869 tra haink urree dy ve ny preeu-valley er yn Ellan. Roish shen she [[Balley Chashtal]], balley ny sloo ayns jiass yn Ellan, va'n preeu-valley. Cheaghil y reayrt politickagh ayns Doolish dy trome-cheeallagh 'sy nuyoo eash jeig, gyn y wooise da'n chumaadaghys v'ayn ec mooinjer ennagh y valley: myr sampleyr, 'sy vlein 1844 va eie mychione [[coonseil valjagh]] jiooldit ec cruinnaght heayagh as y vooinjer jannoo soiagh jeh'n çhenn aght dy Ard-Vayleeyn Baljagh (tra hie Slattys y Villey Baljagh er ny hrooid ayns Tinvaal 'sy vlein 1852, ren mooinjer Ghoolish jiooldey yn eie reesht). Ansherbee, y clattys ren goll er ny hrooid beggan ny s'anmey 'sy jeihaght shen as nagh row oltyn reih-magh ayn, v'eh goit dy mie, as 'sy vlein 1860 ren mooinjer Ghoolish reih yn chied choonseil valjagh, as y choonseil shen jeant seose jeh sleih veih'n [[meanvrastyl|veanvrastyl]] da'n chooid smoo. Ren ny Barrantee Valjagh cur laueyn ayns feyshtyn y valley lesh ny smoo fondid, as roish y vlein 1869 va crampys y vooynlee kiartit da'n choois smoo.<ref name=DouglasCen/>
Ren ny Barrantee reaghey ard-obbrinys mee-emshiragh Ghoolish y chaghlaa. Va'n ard-obbrinys shen troggit car lhing yn eeastagh as yn traght, as cha row eh freggyragh ny sauçhey da'n lught turryssagh. Va coreir sleih-earroo yn Ellan va cummal ayns Doolish gaase chammah, as 'sy vlein 1891 va 35% jeh sleih-earroo yn Ellan cummal ayn. Va noa-emshyraghey Victorianagh as anmagh yn valley cooilleeinit er costallys lhie magh ny shenn straiddyn. Va ny straiddyn shen scrysst magh as va skeimyn noa dy straiddyn currit ayns nyn ynnyd ayns bishaghey lesh skeaylaghyn ny slummaghyn veih ny 1870yn derrey ny 1920yn. Hie bun-troggalys yn valley er ny cheaghley dy fraueoilagh dy chur cooieid da'n lught turryssagh, as 'sy vlein 1878, hie Shooylaghan Loch er ny troggal. 'Sy vlein 1870, haink 60,000 keayrtee gys y valley dagh blein. Daase earrooyn ny keayrtee as roish y vlein 1884 va 182,000 çheet gys y valley. 'Sy vlein 1887 haink 310,916 keayrtee son Blein Feayslee y Venrein Victoria.<ref name=DouglasCen/>
Car y [[Yn Chied Chaggey Dowanagh|Chied Chaggey Dowanagh]] as y [[Yn Nah Chaggey Dowanagh|Nah Chaggey Dowanagh]], haink er ayrnyn jeh Doolish as jeh baljyn elley er yn Ellan dy ve nyn gampyn-pryssoonagh son "joarree noidagh". Va cooid jeh'n Çhooylaghan rheynnit magh myrane lesh ram thieyn oast son y chooish shen.<ref>{{cite web | title = Cunningham's Camp | url = http://www.isle-of-man.com/manxnotebook/tourism/ccamp/index.htm | publisher = Manx Notebook | accessdate = 24 Averil 2011 | archive-date = 2011-02-05 | archive-url = https://web.archive.org/web/20110205123441/http://www.isle-of-man.com/manxnotebook/tourism/ccamp/index.htm | url-status = dead }}</ref><ref>{{cite web | url = http://www.gov.im/mnh/heritage/library/bibliographies/internment.xml | title = Internment during World Wars I & II | publisher = [[Eiraght Ashoonagh Vannin]] | accessdate = 24 Averil 2011 | language = Baarle|archiveurl=https://archive.is/2D68|archivedate=2012-05-26}}</ref>
== Çheer-oaylleeaght ==
Ta Doolish ny soie er coose hiar yn Ellan, mygeayrt lieh-vollagh rish y choose shen, as mygeayrt 130 km çheu heear hwoaie veih Lerphoyll. Va'n balley troggit faggys da çheet ry-cheilley daa awin - [[yn Awin Doo]] as [[yn Glass]]. Ta ny h-awinyn shen çheet ry-cheilley myr [[Awin Ghoolish]] as t'ee roie trooid y cheiy stiagh gys Baie Ghoolish, [[Mooir Vannin]]. Ta'n baie hene ny vaie corranagh ta roie veih Kione Connaghyn 'sy twoaie gys [[Kione Ghoolish]] 'sy jiass. Ta ellaneen beg 'sy vaie fo'n ennym Kione y Sker raad ta [[Toor y Chemmyrk]] ry-akin. Ta glion ughtee rea roie çheusthie 'syn antraie. Ta cruink injil cruinnaghey yn balley da'n twoaie, da'n sheear as da'n jiass, as ta ny cruink yiassey tilgey magh 'syn 'aarkey myr Kione Ghoolish. Ta'n [[Purt Varrey Ghoolish|phurt]] hene ny soie ayns inver yn awin, jeeragh twoaie veih Kione Ghoolish.
Ta Doolish cruinnit liorish baljyn beggey elley lheid as [[Kione Droghad]] 'sy twoaie as [[Mwyllin Doo Aah]] 'syn eear.
[[Coadan:IsleOfManDouglasBay.jpg|thumb|750px|center|Reayrt magh er Baie Ghoolish]]
=== Speyr ===
Gollrish yn Ellan er fud, she speyr heeltagh lesh souraghyn fynnyrey as geuraghyn boggey ee speyr Ghoolish. Er oyr y toiaghey eck ta'n frassaghey ny s'trimmey ayn na ayns ayrnyn elley jeh'n Ellan, as ny s'trimmey na frassaghey meanagh ny h-Ellanyn Goaldagh. By ayns Doolish va'n laa s'feayrey ayns Mannin (-11.7 °C) ayns Toshiaght Arree ny bleeaney 1895.<ref>{{cite web | url = http://www.metoffice.gov.uk/climate/uk/nw/print.html | title = North West England & Isle of Man: climate | language = Baarle | publisher = Met Office | accessdate = 14 Toshiaght Arree 2012}}</ref>
{{Kishtey fys emshir
|metric_first= Yes
|single_line= Yes
|boayl = Doolish
|Jan_Hi_°F = 45 |Jan_REC_Hi_°C =
|Feb_Hi_°F = 45 |Feb_REC_Hi_°C =
|Mar_Hi_°F = 46 |Mar_REC_Hi_°C =
|Apr_Hi_°F = 52 |Apr_REC_Hi_°C =
|May_Hi_°F = 57 |May_REC_Hi_°C =
|Jun_Hi_°F = 61 |Jun_REC_Hi_°C =
|Jul_Hi_°F = 63 |Jul_REC_Hi_°C =
|Aug_Hi_°F = 65 |Aug_REC_Hi_°C =
|Sep_Hi_°F = 61 |Sep_REC_Hi_°C =
|Oct_Hi_°F = 55 |Oct_REC_Hi_°C =
|Nov_Hi_°F = 50 |Nov_REC_Hi_°C =
|Dec_Hi_°F = 46 |Dec_REC_Hi_°C =
|Year_Hi_°F =55 |Year_REC_Hi_°C =
|Jan_Lo_°F = 38 |Jan_REC_Lo_°C =
|Feb_Lo_°F = 36 |Feb_REC_Lo_°C =
|Mar_Lo_°F = 39 |Mar_REC_Lo_°C =
|Apr_Lo_°F = 41 |Apr_REC_Lo_°C =
|May_Lo_°F = 45 |May_REC_Lo_°C =
|Jun_Lo_°F = 50 |Jun_REC_Lo_°C =
|Jul_Lo_°F = 54 |Jul_REC_Lo_°C =
|Aug_Lo_°F = 54 |Aug_REC_Lo_°C =
|Sep_Lo_°F = 52 |Sep_REC_Lo_°C =
|Oct_Lo_°F = 46 |Oct_REC_Lo_°C =
|Nov_Lo_°F = 42 |Nov_REC_Lo_°C =
|Dec_Lo_°F = 39 |Dec_REC_Lo_°C =
|Year_Lo_°F =45 |Year_REC_Lo_°C =
<!--**** use mm or cm but not both! ****-->
|Jan_Precip_cm = |Jan_Precip_mm = 125
|Feb_Precip_cm = |Feb_Precip_mm = 81
|Mar_Precip_cm = |Mar_Precip_mm = 72
|Apr_Precip_cm = |Apr_Precip_mm = 63
|May_Precip_cm = |May_Precip_mm = 69
|Jun_Precip_cm = |Jun_Precip_mm = 72
|Jul_Precip_cm = |Jul_Precip_mm = 81
|Aug_Precip_cm = |Aug_Precip_mm = 91
|Sep_Precip_cm = |Sep_Precip_mm = 111
|Oct_Precip_cm = |Oct_Precip_mm = 122
|Nov_Precip_cm = |Nov_Precip_mm = 124
|Dec_Precip_cm = |Dec_Precip_mm = 128
|Year_Precip_cm = |Year_Precip_mm = 1149
|imraa =
|datefeddyn =
}}
== Ynsagh ==
[[Coadan:TheNunneryDouglasIsleOfMan.jpg|right|thumb|Yn Thie Cailleeyn Dooey, soiaghey Scoill Dellal Eddyrashoonagh Vannin]]
Va ny kied screeuyn mychione yn ynsagh ayns Doolish er ny screeu sheese 'sy shiaghtoo eash jeig. Va cur sheese jeant er y vainshtyrys scoill, ayns bishaghey lesh Çhaplynys Ghoolish as screeuyn moyllee er "mynscoill" 'sy vlein 1675.<ref>{{cite book | last = Bird | first = Hinton | title = An Island that Led: History of Manx Education Ym-Lioar. 1 | pages = dg. 75 | language = Baarle | isbn = 0-9516918-0-5 | location = Purt le Moirrey | date = 1993}}</ref> Va [[William Walker (briw agglish)|William Walker]] pointit gys y vainshtyrys 'sy vlein 1700,<ref name="Moore1901">{{cite book | chapter = The Church | title = Manx Worthies | last = Moore | first = A. W. | pages = dg. 22 | location = Doolish | publisher = S. K. Broadbent & Company, Ltd}}</ref> as s'cosoylagh dy row yn scoill goll er shooyl 'sy çhenn chabbal (Ynnyd Heyward jiu).<ref>{{cite book | title = The Survey of Douglas: Quarterland and Cottage Rents of Douglas c.1705 | date = 2001 | pages = dg. xiii | last = Crowe | first = Nigel Geoffrey | isbn = 0954128206}}</ref> Ny s'anmey, hie eh er n'yrjaghey myr Pesson [[Balley ny Loghey|Valley ny Loghey]] as hooar eh Ollooaght onnoroil. V'eh currit ayns y chooinaghtyn ain liorish e voir 'syn arrane keayney "Illiam Walker as Robin Teare".<ref name="Moore1901"/>
Ta shennaghys formoil yn ynsee 'sy valley toshiaghey lesh bunneydys Scoill Ghrammadys Ghoolish liorish yn Aspick [[Thomas Wilson (aspick)|Thomas Wilson]]. Ren y Shanstyr William Dixon (Buttee va cummal ayns Divlyn veih ny 1680yn er y chooid sloo<ref>{{cite book | title = The Survey of Douglas: Quarterland and Cottage Rents of Douglas c.1705 | date = 2001 | pages = dg. 9 | last = Crowe | first = Nigel Geoffrey | isbn = 0954128206}}</ref>) coardail shenn thie ny paarantyn echey y choyrt, red ren eh 'sy vlein 1714. Ren yn Aspick geddyn gioot er £500 (argid Yernagh), lesh lieh chooid goit as stoyr argid veih Treishteilee Barrow, as va'n chooid smoo elley kiarit liorish mooinjer hieoilagh Vuttagh yn Aspick, y lught thie Murrey.<ref name="IoMCharities">{{cite book | title = The Isle of Man Charities | author = McHutchin, J. & Quirk, G. | pages = dg. 112 - 114 |location = Lerphoyll | publisher = D. Marples}}</ref> Lurg shen, va mainshtyrys Scoill Ghrammadys Ghoolish co-vestit lesh y Çhaplynys. Cha nel mooarane fys ayn mychione thie y Scoill Ghrammadys vunneydagh, agh s'cosoylagh dy row paart mooar ec William Murrey as dy ren eh ymmyd jeh'n çhamyr lajer fo halloo ayn ayns ynnyd aayeeilley y £150 ayns feeaghyn.<ref name="IoMCharities"/>
By Vainshtyr ard-ghooagh elley er y Scoill Ghrammadys ayn na'n Arrymagh [[Philip Moore (arrymagh)|Philip Moore]] (1705-1783). Va Moore pointit myr Mainshtyr 'sy vlein 1735 as t'eh er credjal dy row eh ny scoillar classicagh feer vie, as dy row "graih dooghyssagh 'syn ynsagh" echey.<ref name="Moore1901"/>
Ec y traa t'ayn ta daa ard-scoillyn ayns Doolish; [[Ard-scoill Valley Kermeen]] as [[Schoill Ard Noo Ninian]], myrane lesh ram bunscoillyn elley. Chammah as shen ta [[Colleish Ellan Vannin]] as [[Scoill Dellal Eddyrashoonagh Vannin]] nyn soie ayns Doolish.
== Gurneilys ==
Ta Doolish goll er reirey ec Coonceil Balley Corpagh Doolish. Ta'n choonseil freggyrtagh son ny [[tram cabbil|tramyn cabbil]], oaseirys smooirlagh, keeshyn ynnydagh, shirveishyn lioarlann (Lioarlann Henry Bloom Noble), pairkyn gleashtan, lossanyn straiddey, a.r.e. Ta ny [[Ynsagh ayns Mannin|scoillyn]], ny [[Shirveish Mooghey as Sauail Ellan Vannin|shirveishyn mooghee]] as ny [[Meoiryn-Shee Ellan Vannin|meoiryn shee]] ayns Doolish goll er stiurey ec ny buird er lheh jeh'n Reiltys. Ta'n choonseil jeant seose jeh 18 coonseilee. Ta'n balley er ny rheynn magh ayns shey wardyn - Athol, Cruink, Derby, Murrays, Noo Shorys, as Victoria - as ta tree coonseilee er nyn reih ayns dagh ward. Ta'n choonseil reih Meoir dagh blein. Ec y traa t'ayn she [[Richard Henry McNicholl]] Meoir Ghoolish.<ref name="Meoir"/>
She soiaghey [[Reiltys Vannin]] ee Doolish. Ta hoght jeh ny nuy Rheynnyn Reiltys nyn soie ayns Doolish - ta'n Rheynn Çhymmyltaght, Bee as Eirinys ny soie ayns [[Balley Keeill Eoin]]. Myrane lesh y Reiltys ta ny quaillyn goll quail ayns Doolish myrgeddin.
== Cowraghyn thallooin ==
[[Coadan:Douglas-IOM-horse-tram2.jpg|thumb|250px|right|Tram cabbil goll tessen crossag choshee]]
[[Coadan:DouglasIsleofMan.jpg|thumb|250px|right|Doolish car ny Ratçhyn TT]]
Ta ram cleaynyn as reddyn turryssagh ry-gheddyn ayns Doolish:
*She fastee ayns cummey cashtal er [[Kione y Sker]] ayns Baie Ghoolish eh [[Toor y Chemmyrk]]. Va'n Toor troggit myr kemmyrk da shiaulteyryn lhongvrisht. Ren y Reejerey [[William Hillary]], bunneyder yn [[RNLI]], goaill toshiaghey er y Toor.
*Ta [[Shamyr Ghorraghey yn Unnaneys Mooar]], t'er goll trooid obbraghyn aahroggalagh as ta foshlit da'n phobble cadjin car meeghyn y touree, ny soie er [[Kione Ghoolish]]. Ta jeantaneyn elley as remladyn jeh'n Turrysid Victorianagh foast ry-akin mygeayrt yn ard.
*Ta [[Tram Cabbil Doolish|tramyn cabbil]] roie rish y çhooylaghan veih'n [[Purt Varrey Ghoolish|Chione-stashoon Marrey]] gys [[Raad-yiarn Lectragh Vannin]] veih'n Arragh gys yn 'Ouyr.
*[[Raad Yiarn Gaal Vannin|Ta traenyn gaal]] goll veih [[stashoon traenagh Ghoolish]] feie 15 meeillaghyn gys [[Purt Çhiarn]] ayns jiass yn Ellan.
*Ta'n Ardan Soie er Raad Glion Croiteyr cowraghyn toshiaght as jerrey ny [[TT Ellan Vannin|Ratçhyn TT]] as spoyrtyn-carbyd elley.
*She [[Pryssoon Raad Victoria]] va'n chied pryssoon va troggit er kiarail ayns Mannin. Doshil eh 'sy vlein 1891, as v'eh doont ayns 2008.
*She buill ghraihagh da dagh sorçh dy aghtyn ardan – goaill stiagh cloiaghyn veih [[craa-chiaull]] gys [[cloie aitt|cloiaghyn aitt]] gys [[draamey]] gys [[ballay]] – ad yn [[Gaiety Theatre, Mannin|Gaiety Theatre]] as [[Plaase ny Marrey]].
*She thie tashtee ayns [[Keyll y Ree]] eh [[Thie Tashtee Vannin]] as t'eh cummal fir jeh ny jeantaneyn smoo scanshoil er çheu cultoor Vannin. T'ad goaill stiagh jeantaneyn lheid as Lhiaght Crossey yn Cholloo, jesheen wannalagh y Ven Phaganagh va feddynit ayns toghailtyn Wiggynagh ayns [[Cashtal Phurt ny h-Inshey]] as y çhaglym smoo jeh stooghyn [[Archibald Knox]]. Ta Çhaglym Ashoonagh son Jallooyn as yn Tashtlann Ashoonagh ry-gheddyn ayn.
*She clag straiddey va troggit 'sy vlein 1887 ayns cooinaghtyn [[Blein Feayslee Airhey]] reiltys [[Victoria y Reeriaght Unnaneysit|y Venrein Victoria]] eh [[Clag y Vlein Feayslee]]. T'eh ny hoie ec bun [[Straid Victoria]] as [[Shooylaghan Loch]]. Ta kione-stashoon [[Tram-vollagh Caabil Ghoolish Heose]] soit ec yn ynnyd myrgeddin.
*Ta thieyn elley as ard-ghoo orroo goaill stiagh yn oastan Isola ayns [[Straid Yuan]], as Thie Oast Ghoolish er y Cheiy Hwoaie - thieyn marçhanyn veih'n hoghtoo eash jeig meanagh; Cashtal Mona, plaase marrey ooasle va troggit ec [[John Murray, 4oo Duic Atholl]] 'sy vlein 1804; as Shooylaghan Loch, strane jeh eear-hieyn aaght veih ny 1870yn.
*Va sheeyntane y voalley marrey creaghnit 'sy vlein 1983, as v'eh foshlit liorish y [[Ben-phrinse Alexandra, y Ven Onnoroil Ogilvy|Ven-phrinse Alexandra]]. V'eh currit er troggal çheu mooie veih'n fer ny sloo v'ayn hannah, as eh gymmyrkey [[Raad Yiarn Craayn y Çheeyntane|craayn railley]].
*Va ny Fo-gharaghyn er Shooylaghan Loch currit er bun myr eiyrtys er lheanaghey yn çhooylaghan ec cassey yn feedoo eash. Va linney troggalaght currit stiagh da'n obbyr shen.
== Spoyrt ==
Ta'n [[Laare-Spoyrt Ashoonagh (Mannin)|Laare-Spoyrt Ashoonagh]] (LSA), laare mooar da mooarane sorçhyn dy [[spoyrt]]yn as staid [[roortaghys]], ny hoie er [[Raad Poyll Roish]]. Ta'n LSA ny chooid jeh'n [[Rheynn Turrysid as Soccar]] as ta Manx Sport & Recreation ("Ceau Emshir & Spoyrt Vannin") stiurey ny h-obbraidyn ayn. Ta [[Yn Boull (Doolish)|Boull Ree Shorys V]], [[staid]] yl-ymmyd lesh Coonceil Corpagh Ghoolish, ny hoie er Raad Poyll Roish.
Ta nuy jeh ny clubyn [[soccer]] ta cloie ayns [[Leeg Bluckan Coshey Vannin]] bunnit ayns Doolish:
*Ta [[Braddan F.C.]] cloie ass Faaie Soccer Strooan y Chrink, Strooan y Chrink, [[Raad Victoria]].
*Ta [[Corinthians F.C. (Mannin)|Corinthian F.C.]] cloie ass Pairk Noble.
*Ta [[Douglas and District F.C.]] cloie as Raad ny Keylljyn, Poyll Roish.
*Ta [[Douglas Royal F.C.]] cloie ass yn LSA, Raad ny Keylljyn.
*Ta [[Gymnasium F.C.]] cloie ass Pairk Tromode, Raad Tromode.
*Ta [[Police F.C.]] cloie ass Raad ny Keylljyn, Poyll Roish, faaie ta er ny rheynn eddyr y club shoh as Pulrose United.
*Ta [[Pulrose United F.C.]] cloie ass Raad ny Keylljyn, Poyll Roish.
*Ta [[Saint Georges F.C.|St Georges F.C.]] cloie ass Raad Glion Croiteyr.
*Ta [[Saint Marys F.C.|St Marys F.C.]] cloie ass y Voull, Raad Poyll Roish.
== Baljyn lannoonit ==
Ta Doolish lannoonit rish [[Baile Monaidh]] ayns [[Nerin Hwoaie]].<ref>[https://web.archive.org/web/20110721150050/http://www.douglas.gov.im/shownews.asp?ID=3051 Twinning agreement encourages 'the write stuff'], www.douglas.gov.im, 11 Mart 2009, feddynit er 5 Jerrey Geuree, 2010</ref>
== Imraaghyn ==
{{reflist}}
== Screeuyn moyllee ==
*[https://web.archive.org/web/20080514200115/http://www.isle-of-man.com/manxnotebook/parishes/do/douglas.htm Manxnotebook - Doolish] lesh cur sheese er y valley-skeerey
*[https://web.archive.org/web/20081031033703/http://www.braddan.gov.im/upload/map%20of%20local%20districts%20and%20parishes.pdf Isle of Man Building Control Districts] taishbyney joaraghyn skeerey
== Kianglaghyn mooie ==
{{commonscat|Douglas, Man|Doolish}}
*[https://web.archive.org/web/20120725132516/http://www.douglas.gov.im/ Balley Corpagh Ghoolish]
*[https://web.archive.org/web/20080405163238/http://www.isleofman.com/tourism/about/outandabout/douglas.asp Oayllys Cadjin mychione Doolish]
{{Baljyn Vannin}}
{{Gurneil eaghtyrys}}
[[Ronney:Doolish| ]]
[[Ronney:Buill chummaltit bunnit 'sy 12h eash]]
[[Ronney:Bunneeaghtyn ayns Mannin 'sy 12h eash]]
[[Ronney:Baljyn ayns Mannin]]
[[Ronney:Preeu-valjyn 'syn Oarpey]]
[[Ronney:Preeu-valjyn Goaldagh]]
[[Ronney:Ard-valjyn as baljyn purtey ayns Mannin]]
[[Ronney:Ard-valjyn as baljyn purtey er Mooir Vannin]]
[[Ronney:Buill chummaltit ayns Medall]]
[[Ronney:Buill chummaltit yn Eash Loghlynagh]]
lqhdnlr2uuvgssrdfnnydd2rsnpgf3u
Wikipedia:Ynnyd y phobble
4
1478
395325
394242
2026-10-26T14:00:59Z
MediaWiki message delivery
8133
/* Server switch - Your wiki will be read-only for a short time soon */ new section
395325
wikitext
text/x-wiki
{{Tashtlann-Ynnyd y phobble}}
== Wikidata event 17th January looking for speakers of indigenous UK languages ==
Apologies for the English language post. Before Christmas I posted about this event [https://meta.wikimedia.org/wiki/Event:Revitalizing_UK_History_2 Revitalising UK history (Series 2)] however due to a tech issue it has had to be rescheduled for '''Saturday 17th January 2026'''
We'd love to be able to add multilingual labels to UK figures in a range of languages, including Manx if possible so if there is anyone here with an interest in learning more about Wikidata or adding multilingual labels, you'd be very welcome.
More information and registration can be found at https://meta.wikimedia.org/wiki/Event:Revitalizing_UK_History_2 [[Ymmydeyr:Gemma Coleman (WMUK)|Gemma Coleman (WMUK)]] ([[Resooney ymmydeyr:Gemma Coleman (WMUK)|resoonaght]]) 15:09, 7 Jerrey Geuree 2026 (UTC)
== Thank You for Last Year – Join Wiki Loves Ramadan 2026 ==
Dear Wikimedia communities,
We hope you are doing well, and we wish you a happy New Year.
''Last year, we captured light. This year, we’ll capture legacy.''
In 2025, communities around the world shared the glow of Ramadan nights and the warmth of collective iftars. In 2026, ''Wiki Loves Ramadan'' is expanding, bringing more stories, more cultures, and deeper global connections across Wikimedia projects.
We invite you to explore the ''Wiki Loves Ramadan 2026'' [[m:Special:MyLanguage/Wiki Loves Ramadan 2026|Meta page]] to learn how you can participate and [[m:Special:MyLanguage/Wiki Loves Ramadan 2026/Participating communities|sign up]] your community.
📷 ''Photo campaign on '' [[c:Special:MyLanguage/Commons:Wiki Loves Ramadan 2026|Wikimedia Commons]]
If you have questions about the project, please refer to the FAQs:
* [[m:Special:MyLanguage/Wiki Loves Ramadan/FAQ/|Meta-Wiki]]
* [[c:Special:MyLanguage/Commons:Wiki Loves Ramadan/FAQ|Wikimedia Commons]]
''Early registration for updates is now open via the '''[[m:Special:RegisterForEvent/2710|Event page]]'''''
''Stay connected and receive updates:''
* [https://t.me/WikiLovesRamadan Telegram channel]
* [https://lists.wikimedia.org/postorius/lists/wikilovesramadan.lists.wikimedia.org/ Mailing list]
We look forward to collaborating with you and your community.
'''The Wiki Loves Ramadan 2026 Organizing Team''' 19:45, 16 Jerrey Geuree 2026 (UTC)
<!-- Message sent by User:ZI Jony@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=29879549 -->
== Feminism and Folklore 2026 starts soon ==
<div style="border:8px maroon ridge;padding:6px;">
[[File:Feminism and Folklore 2026 logo.svg|centre|550px|frameless]]
::<div lang="en" dir="ltr" class="mw-content-ltr">
<div style="text-align: center; width: 100%;">''{{int:please-translate}}''</div>
;Invitation to Organize Feminism and Folklore 2026
Dear Wiki Community,
We are pleased to invite Wikimedia communities, affiliates, and independent contributors to organize the '''[[:m:Feminism and Folklore 2026|Feminism and Folklore 2026]]''' writing competition on your local Wikipedia.
The international campaign will run from '''1 February to 31 March 2026''' and aims to improve coverage of feminism, women’s histories, gender-related topics, and folk culture across Wikipedia projects.
;About the Campaign
'''Feminism and Folklore''' is a global writing initiative that complements the '''[[:c:Commons:Wiki Loves Folklore 2026|Wiki Loves Folklore]]''' photography competition. While Wiki Loves Folklore focuses on visual documentation, this writing campaign addresses the '''gender gap on Wikipedia''' by improving encyclopedic content related to folk culture and marginalized voices.
;What Can Participants Write About?
Communities can contribute by creating, expanding, or translating articles related to:
* Folk festivals, rituals, and celebrations
* Folk dances, music, and traditional performances
* Women and queer figures in folklore
* Women in mythology and oral traditions
* Women warriors, witches, and witch-hunting narratives
* Fairy tales, folk stories, and legends
* Folk games, sports, and cultural practices
Participants may work from curated article lists or generate new article suggestions using campaign tools.
;How to Sign Up as an Organizer
Organizers are requested to complete the following steps to register their community:
# Create a local project page on your wiki [[:m:Feminism and Folklore/Sample|(see sample)]]
# Set up the campaign using the '''CampWiz''' tool
# Prepare a local article list and clearly mention:
#* Campaign timeline
#* Local and international prizes
# Request a site notice from local administrators [[:mr:Template:SN-FNF|(see sample)]]
# Add your local project page and CampWiz link to the '''[[:m:Feminism and Folklore 2026/Project Page|Meta project page]]'''
;Campaign Tools
The Wiki Loves Folklore Tech Team has introduced tools to support organizers and participants:
* '''Article List Generator by Topic''' – Helps identify articles available on English Wikipedia but missing in your local language Wikipedia. The tool allows customized filters and provides downloadable article lists in CSV and wikitable formats.
* '''CampWiz''' – Enables communities to manage writing campaigns effectively, including jury-based evaluation. This will be the third year CampWiz is officially used for Feminism and Folklore.
Both tools are now available for use in the campaign. '''[https://tools.wikilovesfolklore.org/ Click here to access the tools]'''
;Learn More & Get Support
For detailed information about rules, timelines, and prizes, please visit the
'''[[:m:Feminism and Folklore 2026|Feminism and Folklore 2026 project page]]'''.
If you have any questions or need assistance, feel free to reach out via:
* '''[[:m:Talk:Feminism and Folklore 2026/Project Page|Meta talk page]]'''
* Email us using details on the contact page.
;Join Us
We look forward to your collaboration and coordination in making Feminism and Folklore 2026 a meaningful and impactful campaign for closing gender gaps and enriching folk culture content on Wikipedia.
Thank you and best wishes,
'''[[:m:Feminism and Folklore 2026|Feminism and Folklore 2026 International Team]]'''
----
''Stay connected:''
[[File:B&W Facebook icon.png|link=https://www.facebook.com/feminismandfolklore/|30x30px]]
[[File:B&W Twitter icon.png|link=https://twitter.com/wikifolklore|30x30px]]
</div></div>
== Invitation to Host Wiki Loves Folklore 2026 in Your Country ==
<div lang="en" dir="ltr" class="mw-content-ltr">
<div style="text-align: center; width: 100%;">''{{int:please-translate}}''</div>
[[File:Wiki Loves Folklore Logo.svg|right|150px|frameless]]
Hello everyone,
We are delighted to invite Wikimedia affiliates, user groups, and community organizations worldwide to participate in '''Wiki Loves Folklore 2026''', an international initiative dedicated to documenting and celebrating folk culture across the globe.
;About Wiki Loves Folklore
'''Wiki Loves Folklore''' is an annual international photography competition hosted on Wikimedia Commons. The campaign runs from '''1 February to 31 March 2026''' and encourages photographers, cultural enthusiasts, and community members to contribute photographs that highlight:
* Folk traditions and rituals
* Cultural festivals and celebrations
* Traditional attire and crafts
* Performing arts, music, and dance
* Everyday practices rooted in folk heritage
Through this campaign, we aim to preserve and promote diverse folk cultures and make them freely accessible to the world.
[[:c:Commons:Wiki_Loves_Folklore_2026|Project page on Wikimedia Commons]]
; Host a Local Edition
As we celebrate the '''eight edition''' of Wiki Loves Folklore, we warmly invite communities to organize a local edition in their country or region. Hosting a local campaign is a great opportunity to:
* Increase visibility of your region’s folk culture
* Engage new contributors in your community
* Enrich Wikimedia Commons with high-quality cultural content
'''[[:c:Commons:Wiki_Loves_Folklore_2026/Organize|Sign up to organize]]:'''
If your team prefers to organize the competition in ''either February or March only'', please feel free to let us know.
If you are unable to organize, we encourage you to share this opportunity with other interested groups or organizations in your region.
;Get in Touch
If you have any questions, need support, or would like to explore collaboration opportunities, please feel free to contact us via:
* The project Talk pages
* Email: '''support@wikilovesfolklore.org'''
We are also happy to connect via an online meeting if your team would like to discuss planning or coordination in more detail.
Warm regards,
'''The Wiki Loves Folklore International Team'''
</div>
[[Ymmydeyr:MediaWiki message delivery|MediaWiki message delivery]] ([[Resooney ymmydeyr:MediaWiki message delivery|resoonaght]]) 13:21, 18 Jerrey Geuree 2026 (UTC)
<!-- Message sent by User:Tiven2240@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery/Wikipedia&oldid=29228188 -->
== <span lang="en" dir="ltr">Annual review of the Universal Code of Conduct and Enforcement Guidelines</span> ==
<div lang="en" dir="ltr">
<section begin="announcement-content" />
I am writing to you to let you know the annual review period for the Universal Code of Conduct and Enforcement Guidelines is open now. You can make suggestions for changes through 9 February 2026. This is the first step of several to be taken for the annual review. [[m:Special:MyLanguage/Universal Code of Conduct/Annual review/2026|Read more information and find a conversation to join on the UCoC page on Meta]].
The [[m:Special:MyLanguage/Universal Code of Conduct/Coordinating Committee|Universal Code of Conduct Coordinating Committee]] (U4C) is a global group dedicated to providing an equitable and consistent implementation of the UCoC. This annual review was planned and implemented by the U4C. For more information and the responsibilities of the U4C, [[m:Special:MyLanguage/Universal Code of Conduct/Coordinating Committee/Charter|you may review the U4C Charter]].
Please share this information with other members in your community wherever else might be appropriate.
-- In cooperation with the U4C, [[m:User:Keegan (WMF)|Keegan (WMF)]] ([[m:User talk:Keegan (WMF)|talk]])<section end="announcement-content" />
</div>
21:01, 19 Jerrey Geuree 2026 (UTC)
<!-- Message sent by User:Keegan (WMF)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=29905753 -->
== <span lang="en" dir="ltr">Migration to Parsoid</span> ==
<div lang="en" dir="ltr">
<section begin="announcement-content" />
<em>[[m:Special:MyLanguage/Wikimedia Foundation/Product and Technology/Parsoid Read Views/Read View Announcement|Read this in another language]]</em>
Hello everyone! I am glad to inform you that as the next step in the [[mw:Special:MyLanguage/Parsoid/Parser Unification|Parser Unification]] project, Parsoid will soon be turned on as the default article renderer on your wiki. We are gradually increasing the number of wikis using Parsoid, with the intention of making it the default wikitext parser for MediaWiki's next long-term support release. This will make our wikis more reliable and consistent for editors, readers, and tools to use, as well as making the development of future wikitext features easier.
If this disrupts your workflow, don’t worry! You can still opt out through a user preference or turn Parsoid off on the current page using the Tools submenu, as described in the [[mw:Special:MyLanguage/Help:Extension:ParserMigration|Extension:ParserMigration]] documentation.
There is [[mw:Special:MyLanguage/Parsoid/Parser Unification/Confidence Framework|more information about our roll-out strategy]] available, including the testing done before we turn on Parsoid for a new wiki.
To report bugs and issues, please look at our [[mw:Special:MyLanguage/Parsoid/Parser Unification/Known Issues|known issues]] documentation and if you found a new bug please create a phab ticket and tag the [[phab:project/view/5846|Content Transform Team in Phabricator]].
<section end="announcement-content" />
</div>
<bdi lang="en" dir="ltr">[[mw:User:ABreault (WMF)|Content Transform Team]]</bdi> 00:42, 18 Toshiaght Arree 2026 (UTC)
<!-- Message sent by User:ABreault (WMF)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Wikimedia_Foundation/Product_and_Technology/Parsoid_Read_Views/2026-02-16_Wikipedias&oldid=30094589 -->
== Wiki Loves Folklore 2026 - how to take part ==
Apologies for the English message. If there are keen photographers here, I just wanted to let you know about [https://commons.wikimedia.org/wiki/Commons:Wiki_Loves_Folklore_2026_in_England Wiki Loves Folklore]. Wiki Loves Folklore is a photographic competition that celebrates our intangible cultural heritage. So if you have photos of a festival, a dance, a traditional food or anything else relating to the Isle of Man's cultural heritage, you can upload them through the link above for submission to the competition and for Wikipedians to use in future articles!
All 4 nations of the UK are taking part so if you have pics from [https://commons.wikimedia.org/wiki/Commons:Wiki_Loves_Folklore_2026_in_Wales Wales], [https://commons.wikimedia.org/wiki/Commons:Wiki_Loves_Folklore_2026_in_Scotland Scotland] or [https://commons.wikimedia.org/wiki/Wiki_Loves_Folklore_2026_in_Ireland Northern Ireland] (organised by Wikimedia Community Ireland), we'd love those too! You can upload them through the relevant nation pages (follow the links from the name above)
[[Ymmydeyr:Gemma Coleman (WMUK)|Gemma Coleman (WMUK)]] ([[Resooney ymmydeyr:Gemma Coleman (WMUK)|resoonaght]]) 09:13, 25 Toshiaght Arree 2026 (UTC)
== Join the sixth Ukraine’s Cultural Diplomacy Month on Wikipedia! ==
<div lang="en" dir="ltr">
[[File:Ukraine’s Cultural Diplomacy Month on Wikipedia 2026.png|right|250px|thumb|link=https://meta.wikimedia.org/wiki/Ukraine%27s_Cultural_Diplomacy_Month_2026|Join our campaign!]]
{{int:please-translate}}
Dear Wikipedians!
[[:m:Special:MyLanguage/Wikimedia Ukraine|Wikimedia Ukraine]], in cooperation with the [[:en:Ministry of Foreign Affairs of Ukraine|MFA of Ukraine]] and [[:en:Ukrainian Institute|Ukrainian Institute]], has launched the sixth edition of writing challenge "'''[[:m:Special:MyLanguage/Ukraine's Cultural Diplomacy Month 2026|Ukraine's Cultural Diplomacy Month]]'''", which lasts from '''1st April''' until '''30th April 2026'''.
The initiative aims to promote knowledge about Ukrainian culture abroad by creating and improving Wikipedia articles in multiple languages. This year marks the sixth edition of the campaign, which will focus on contemporary culture, making today’s artistic voices and practices more visible to international audiences.
🧩'''How to participate?'''
Choose an article from the suggested list → Write an article in your language, or improve an existing one according to the rules → Add your contribution to the contest page and calculate your points → Win prizes and receive a certificate of participation → Become a promoter of truthful knowledge about Ukraine.
🧩'''[[m:Special:MyLanguage/Ukraine's Cultural Diplomacy Month 2026|Check our main page for more information]]'''.
'''If you are interested in coordinating long-term community engagement for the campaign and becoming a local ambassador, we would love to hear from you! Please let us know your interest.'''
If not, then we encourage you to translate the [[m:Special:MyLanguage/Ukraine's Cultural Diplomacy Month 2026|landing page of the contest]] and [https://meta.wikimedia.org/wiki/Special:MessageGroupStats?group=Centralnotice-tgroup-UCDM2026banner&messages=&language=en&x=D banner] into your own language.
Also, we set up a [[:m:CentralNotice/Request/Ukraine's Cultural Diplomacy Month 2026|banner]] to notify users of the possibility to participate in this challenge!
[[:m:User:OlesiaLukaniuk (WMUA)|OlesiaLukaniuk (WMUA)]] ([[:m:User talk:OlesiaLukaniuk (WMUA)|talk]]) 04:35, 1 April 2026 (UTC)
</div>
<!-- Message sent by User:OlesiaLukaniuk (WMUA)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=User:OlesiaLukaniuk_(WMUA)/list_of_wikis&oldid=28552112 -->
== Action Required: Update templates/modules for electoral maps (Migrating from P1846 to P14226) ==
Hello everyone,
This is a notice regarding an ongoing data migration on Wikidata that may affect your election-related templates and Lua modules (such as <code>Module:Itemgroup/list</code>).
'''The Change:'''<br />
Currently, many templates pull electoral maps from Wikidata using the property [[:d:Property:P1846|P1846]], combined with the qualifier [[:d:Property:P180|P180]]: [[:d:Q19571328|Q19571328]].
We are migrating this data (across roughly 4,000 items) to a newly created, dedicated property: '''[[:d:Property:P14226|P14226]]'''.
'''What You Need To Do:'''<br />
To ensure your templates and infoboxes do not break or lose their maps, please update your local code to fetch data from [[:d:Property:P14226|P14226]] instead of the old [[:d:Property:P1846|P1846]] + [[:d:Property:P180|P180]] structure. A [[m:Wikidata/Property Migration: P1846 to P14226/List|list of pages]] was generated using Wikimedia Global Search.
'''Deadline:'''<br />
We are temporarily retaining the old data on [[:d:Property:P1846|P1846]] to allow for a smooth transition. However, to complete the data cleanup on Wikidata, the old [[:d:Property:P1846|P1846]] statements will be removed after '''May 1, 2026'''. Please update your modules and templates before this date to prevent any disruption to your wiki's election articles.
Let us know if you have any questions or need assistance with the query logic. Thank you for your help! [[User:ZI Jony|ZI Jony]] using [[Ymmydeyr:MediaWiki message delivery|MediaWiki message delivery]] ([[Resooney ymmydeyr:MediaWiki message delivery|resoonaght]]) 17:11, 3 Averil 2026 (UTC)
<!-- Message sent by User:ZI Jony@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=29941252 -->
== Request for comment (global AI policy) ==
<bdi lang="en" dir="ltr" class="mw-content-ltr">
Apologies for writing in English. {{int:Please-translate}}
A [[:m:Requests for comment/Artificial intelligence policy|request for comment]] is currently being held to decide on a global AI policy. {{int:Feedback-thanks-title}}
[[Ymmydeyr:MediaWiki message delivery|MediaWiki message delivery]] ([[Resooney ymmydeyr:MediaWiki message delivery|resoonaght]]) 00:57, 26 Averil 2026 (UTC)
</bdi>
<!-- Message sent by User:Codename Noreste@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30424282 -->
== <span lang="en" dir="ltr">Vote now in the 2026 U4C election</span> ==
<div lang="en" dir="ltr">
<section begin="announcement-content" />
Eligible voters are asked to participate in the 2026 [[m:Special:MyLanguage/Universal_Code_of_Conduct/Coordinating_Committee|Universal Code of Conduct Coordinating Committee]] election. More information–including an eligibility check, voting process information, candidate information, and a link to the vote–are available on Meta at the [[m:Special:MyLanguage/Universal_Code_of_Conduct/Coordinating_Committee/Election/2026|2026 Election information page]]. The vote closes on 2 June 2026 at [https://zonestamp.toolforge.org/1780358400 00:00 UTC].
Please vote if your account is eligible. Results will be available by 14 June 2026. -- In cooperation with the U4C,<section end="announcement-content" />
</div>
[[m:User:Keegan (WMF)|Keegan (WMF)]] ([[m:User talk:Keegan (WMF)|talk]]) 17:14, 27 Boaldyn 2026 (UTC)
<!-- Message sent by User:Keegan (WMF)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 -->
== RFC about AI-generated content in Wikimedia Commons ==
<bdi lang="en" dir="ltr">Apologies for writing in English, please help translate this message to your language. You are invited to participate in a [[c:Commons:Requests for comment/Policy update for AI content|request for comment on Wikimedia Commons about a policy update for AI content]]. This may affect files that are uploaded to Wikimedia Commons for use on this project. Thank you. [[m:User:Codename Noreste|Codename Noreste]] ([[m:User talk:Codename Noreste|resoonaght]])</bdi> 17:11, 23 Mean Souree 2026 (UTC)
<!-- Message sent by User:Codename Noreste@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 -->
== <span lang="en" dir="ltr">Deployment of Legal and Safety Contacts Link in the Footer of Your Wiki</span> ==
<div lang="en" dir="ltr">
<section begin="Message"/>
'''Legal & Safety Contacts'''
Hello community, the Wikimedia Foundation has provided a [[wmf:Special:MyLanguage/Legal:Wikimedia Foundation Legal and Safety Contact Information|single legal and safety contact page]], to be linked in the footer of your wiki, to ensure access to accurate legal information. This is a regulatory requirement. We have already rolled out links to English, German, Italian, Spanish and other wikis and we will deploy to your wiki soon. [[m:Special:MyLanguage/Wikimedia_Foundation_Legal_and_Safety_Contacts_FAQ|Please read more on the project page]] and leave any comments in this thread or on the [[m:Special:MyLanguage/Talk:Wikimedia Foundation Legal and Safety Contacts FAQ|talk page]].
<section end="Message"/>
</div>
-- [[User:Sannita (WMF)|User:Sannita (WMF)]] ([[User talk:Sannita (WMF)|talk]]) 13:29, 25 Mean Souree 2026 (UTC)
<!-- Message sent by User:Sannita (WMF)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=User:Sannita_(WMF)/Mass_sending_test&oldid=30731267 -->
== Request for comment (the future of Abstract Wikipedia) ==
<bdi lang="en" dir="ltr" class="mw-content-ltr">
Apologies if this has not yet been translated into your wiki's language. {{int:Please-translate}}
You are invited to voice your opinions in a [[:m:Requests for comment/The future of Abstract Wikipedia|request for comment about the future of Abstract Wikipedia]]. {{Int:Feedback-thanks-title}}
[[:m:User:Kowal2701|Kowal2701]] ([[:m:User talk:Kowal2701|talk]]) 12:24, 24 Jerrey Souree 2026 (UTC)
</bdi>
<!-- Message sent by User:DreamRimmer@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 -->
== <span lang="en" dir="ltr">Server switch - Your wiki will be read-only for a short time soon</span> ==
<div lang="en" dir="ltr">
<section begin="server-switch"/><div class="plainlinks">
[[:m:Special:MyLanguage/Tech/Server switch|Read this message in another language]] • [https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-Tech%2FServer+switch&language=&action=page&filter= {{int:please-translate}}]
The [[foundation:|Wikimedia Foundation]] will switch the traffic between its data centers. This will make sure that Wikipedia and the other Wikimedia wikis can stay online even after a disaster.
All traffic will switch on '''{{#time:j xg|2026-09-23|en}}'''. The switch will start at '''[https://zonestamp.toolforge.org/{{#time:U|2026-09-23T14:00|en}} {{#time:H:i e|2026-09-23T14:00}}]'''.
Unfortunately, because of some limitations in [[mw:Special:MyLanguage/Manual:What is MediaWiki?|MediaWiki]], all editing must stop while the switch is made. We apologize for this disruption, and we are working to minimize it in the future.
A banner will be displayed on all wikis 30 minutes before this operation happens. This banner will remain visible until the end of the operation.
You can contribute to the [https://meta.wikimedia.org/w/index.php?title=Special%3ATranslate&group=Centralnotice-tgroup-read_only_banner&task=view&language=&filter=&action=translate translation or proofreading] of this banner text.
'''You will be able to read, but not edit, all wikis for a short period of time.'''
* You will not be able to edit for up to an hour on {{#time:l j xg Y|2026-09-23|en}}.
* If you try to edit or save during these times, you will see an error message. We hope that no edits will be lost during these minutes, but we can't guarantee it. If you see the error message, then please wait until everything is back to normal. Then you should be able to save your edit. But, we recommend that you make a copy of your changes first, just in case.
''Other effects'':
* Background jobs will be slower and some may be dropped. Red links might not be updated as quickly as normal. If you create an article that is already linked somewhere else, the link will stay red longer than usual. Some long-running scripts will have to be stopped.
* We expect the code deployments to happen as any other week. However, some case-by-case code freezes could punctually happen if the operation require them afterwards.
* [[mw:Special:MyLanguage/GitLab|GitLab]] will be unavailable for about 90 minutes.
This project may be postponed if necessary. You can [[wikitech:Switch_Datacenter|read the schedule at wikitech.wikimedia.org]]. Any changes will be announced in the schedule.
'''Please share this information with your community.'''</div><section end="server-switch"/>
</div>
[[m:user:Trizek (WMF)|Trizek (WMF)]] 12:58, 15 Mean Fouyir 2026 (UTC)
<!-- Message sent by User:Trizek (WMF)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=30513874 -->
== Your feedback wanted: Remove ''(Language link added:) and similar'' edits from Special:RecentChanges ==
''(Apologies for posting in English. You can help by translating it)''
Hello, I’m Danny from [[:en:w:Wikimedia_Deutschland|Wikimedia Deutschland’s]] [[m:Wikidata_For_Wikimedia_Projects|Wikidata For Wikimedia Projects]] team.<br/>
We have been investigating and examining how Wikidata’s use in the [[Special:RecentChanges]] and [[Special:Watchlist]] pages can be made to be more useful, or less ‘noisy’ (fewer edits that have little value to the reader).
We are currently exploring to make a change in the volume and the type of Wikidata edits that appear in these pages, and '''we need your feedback''' to help us ensure this is a positive change for the Wikis and won’t disrupt your workflows.<br/>
Language links are also known as sitelinks or interlanguage links and describe when a Wikidata item is connected to a Wiki, adding it to the language dropdown tool for other connected Wikis.
[[File:Types of Lang Link changes.png|x350px|frame|A variety of "Language Link" edits as seen in the Recent Changes feed]]
The request for feedback is whether you support the removal of these language link edits from the Recent Changes and Watchlist feed, or would you oppose such a change and if so, why?
Please share you thoughts on the dedicated '''[[m:Talk:Wikidata_For_Wikimedia_Projects/Clearer_Wikidata_Edit_Summaries/Hide_Language_Link_edits|metawiki Talk page]]'''.
Further information about this change: [[m:Wikidata_For_Wikimedia_Projects/Clearer_Wikidata_Edit_Summaries/Hide_Language_Link_edits|m:Wikidata_For_Wikimedia_Projects/Hide_Language_Link_edits]]
Thank you for any participation or feedback you give, -- [[m:User:Danny_Benjafield_(WMDE)|User:Danny Benjafield (WMDE)]] 15:20, 21 Mean Fouyir 2026 (UTC)
<!-- Message sent by User:Danny Benjafield (WMDE)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=User:Danny_Benjafield_(WMDE)/MassMessage_test_list&oldid=31067418 -->
== "Wikimedian of the year 2026" nominations and community celebrations. ==
Moghrey mie and apologies for having to message in English. I wanted to make sure this community was aware of two events as I think it's important all of our UK language Wikipedias get fair representation!
Firstly we're accepting nominations for "Wikimedian of the Year" again. So if there is someone who does stellar work here, a newer editor who you'd like to celebrate or there's an organisation doing great work on Wiki you can nominate through this form: https://docs.google.com/forms/d/e/1FAIpQLSciu6pV7fpMx1jUNYwxESnfkjT-CGwGyLJ1nl2-G2tPSv2QDQ/viewform The more information you can give the panel in your nomination the better!
Secondly, our online community celebration is happening on 22nd November 11am to 1pm. You can register here https://www.eventbrite.co.uk/e/online-wikimedia-uk-2026-community-celebration-tickets-1995917906186. If you'd potentially be interested in talking for 5 minutes about something you've been doing on wiki please email the organiser rupal.karia@wikimedia.org.uk and she can advise on if she is still accepting speakers.
Best wishes [[Ymmydeyr:Gemma Coleman (WMUK)|Gemma Coleman (WMUK)]] ([[Resooney ymmydeyr:Gemma Coleman (WMUK)|resoonaght]])
== Wikidata Sitelink changes in Recent Changes and Watchlist ==
''(Apologies for cross-posting in English, translating it will help spread the message)''
Earlier last month, all Wikis were contacted for feedback on our proposal to remove language link changes, this change has already been deployed to Wikisource, Wikibooks, Wikivoyage, Wikiquote, Wikiversity and Wiktionary.
The same change is now being rolled out globally to all Wikipedias on '''October 13, 07:00 UTC'''. Editors will no longer see notifications after this time on their [[Special:RecentChanges|Recent Changes]] and [[Special:Watchlist|Watchlist]] when a link to ''another'' language version of a page is added, removed, or changed in its Wikidata item (it does not affect language link notifications to the home wiki). There will then be a two-week monitoring period to observe if a reduction of high-volume but low-value notifications takes place, or if higher-value changes become easier to identify. Editors who rely on these notifications should be aware of the change and can share feedback or concerns on the Wikidata For Wikimedia [[m:Talk:Wikidata_For_Wikimedia_Projects/Clearer_Wikidata_Edit_Summaries/Hide_Language_Link_edits|Projects talk page]].<br/>
Wikidata's own Recent Changes page is not affected as it serves as the repository for these changes.
Please reach out if you have any questions, or if your wiki would like to opt-out, thank you! -- [[User:Danny_Benjafield_(WMDE)|Danny Benjafield (WMDE)]] ([[User_talk:Danny_Benjafield_(WMDE)|talk]]) sent via [[Ymmydeyr:MediaWiki message delivery|MediaWiki message delivery]] ([[Resooney ymmydeyr:MediaWiki message delivery|resoonaght]]) 09:28, 9 Jerrey Fouyir 2026 (UTC)
<!-- Message sent by User:Danny Benjafield (WMDE)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=User:Danny_Benjafield_(WMDE)/MassMessage_Test_List&oldid=31142775 -->
== <span lang="en" dir="ltr">Server switch - Your wiki will be read-only for a short time soon</span> ==
<div lang="en" dir="ltr">
<section begin="server-switch"/><div class="plainlinks">
[[:m:Special:MyLanguage/Tech/Server switch|Read this message in another language]] • [https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-Tech%2FServer+switch&language=&action=page&filter= {{int:please-translate}}]
The [[foundation:|Wikimedia Foundation]] will switch the traffic between its data centers. This will make sure that Wikipedia and the other Wikimedia wikis can stay online even after a disaster.
All traffic will switch on '''{{#time:j xg|2026-10-28|en}}'''. The switch will start at '''[https://zonestamp.toolforge.org/{{#time:U|2026-10-28T15:00|en}} {{#time:H:i e|2026-10-28T15:00}}]'''.
Unfortunately, because of some limitations in [[mw:Special:MyLanguage/Manual:What is MediaWiki?|MediaWiki]], all editing must stop while the switch is made. We apologize for this disruption, and we are working to minimize it in the future.
A banner will be displayed on all wikis 30 minutes before this operation happens. This banner will remain visible until the end of the operation.
You can contribute to the [https://meta.wikimedia.org/w/index.php?title=Special%3ATranslate&group=Centralnotice-tgroup-read_only_banner&task=view&language=&filter=&action=translate translation or proofreading] of this banner text.
'''You will be able to read, but not edit, all wikis for a short period of time.'''
* You will not be able to edit for up to an hour on {{#time:l j xg Y|2026-10-28|en}}.
* If you try to edit or save during these times, you will see an error message. We hope that no edits will be lost during these minutes, but we can't guarantee it. If you see the error message, then please wait until everything is back to normal. Then you should be able to save your edit. But, we recommend that you make a copy of your changes first, just in case.
''Other effects'':
* Background jobs will be slower and some may be dropped. Red links might not be updated as quickly as normal. If you create an article that is already linked somewhere else, the link will stay red longer than usual. Some long-running scripts will have to be stopped.
* We expect the code deployments to happen as any other week. However, some case-by-case code freezes could punctually happen if the operation require them afterwards.
* [[mw:Special:MyLanguage/GitLab|GitLab]] will be unavailable for about 90 minutes.
This project may be postponed if necessary. You can [[wikitech:Switch_Datacenter|read the schedule at wikitech.wikimedia.org]]. Any changes will be announced in the schedule.
'''Please share this information with your community.'''</div><section end="server-switch"/>
</div>
[[user:Trizek_(WMF)|Trizek_(WMF)]] 14:00, 26 Jerrey Fouyir 2026 (UTC)
<!-- Message sent by User:Trizek (WMF)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=30513874 -->
jwvept7mitxwqwuduaxvdt2i1ijgheq
Svalbard
0
2444
395414
394015
2026-10-27T01:09:46Z
MacTire02
219
++
395414
wikitext
text/x-wiki
{{Kishtey fys çheer
|ennym = Svalbard
|jalloo_brattagh = none
|ennym_gienneydagh = Svalbard
|jalloo_caslys = Norway-Svalbard.svg
|sorçh_aarheynn = Steat kionedeeagh
|çhengaghyn_oikoil = [[Norlynnish]]
|preeu-valley = [[Longyearbyen]]
|latd=78 |latm=13 |latNS=N
|longd=15 |longm=33 |longEW=E
|balley_smoo = preeu-valley
|sorçh_reiltys = [[Ard neu-chorpit]] [[jee-veanaghey|jee-veanit]] fo [[gurneilys ynnydagh]] çheusthie monarkaght vunraghtoil
|taghyrt_bunneeaght1 = [[Conaant Svalbard]]
|date_bunneeaght1 = 9 Toshiaght Arree 1920
|taghyrt_bunneeaght2 = [[Slattys Svalbard]]
|date_bunneeaght2 = 17 Jerrey Souree 1925
|traa_ynnydagh = [[Traa ynnydagh yn Oarpey Veanagh|CET]]
|ashchur_utc = +01:00
|traa_ynnydagh_TTLS = [[Traa houree yn Oarpey Veanagh|CEST]]
|ashchur_utc_TTLS = +02:00
|tld = {{hlist|[[.no]]|[[.sj]]}}
|noteyn_tld = Ta .sj er ny enmyssey agh cha nel eh ymmydit
|coad_çhellvane = 47
}}
She [[ellanragh]] ayns [[Mooir yn Arctagh]] eh '''Svalbard'''. T'eh ny lhie çheu hwoaie veih'n [[Yn Oarpey|Oarpey]], mygeayrt lieh-raad eddyr [[Norlynn]] as [[Ard y Twoaie]]. T'eh jeant seose jeh possan ellanyn as ad nyn lhie eddyr 74° as 81° Hwoaie, as 10° as 35° Hiar. Ta'n ellanragh ny chooid smoo twoaie jeh Norlynn. Ta tree ellanyn cummaltit ayn: [[Spitsbergen]], [[Ellan ny Maghouinyn]] as [[Hopen]]. She [[Longyearbyen]] y balley smoo. Ta [[Conaant Svalbard]] (1920) cur enney er kionedeeaght Norlynn er Svalbard as ta Slattys Svalbard (1925) jannoo ee myr slane chooid jeh [[Reeriaght Norlynn]].
==Galleree==
<gallery mode="packed">
Coadan:Adventtoppen Hiorthfjellet from SE side of Adventfjorden Longyearbyen Svalbard on May 23 2025.jpg|Adventtoppen as Hiorthfjellet veih çheu hiar yiass Adventfjorden, Longyearbyen, Svalbard er 23 Boaldyn 2025.
Coadan:Polar bear warning sign at north eastern perimeter of Longyearbyen Svalbard on May 23 2025.jpg|Cowrey raauee mychione maghouinyn baney ec ym-linney hiar hwoaie Longyearbyen, Svalbard, er 23 Boaldyn 2025.
Coadan:Longyearbyen_colourful_homes.jpg|Thieyn colught ayns Longyearbyen
</gallery>
==Noteyn==
{{notelist}}
{{Yn Oarpey}}
{{gurneil eaghtyrys}}
{{bun}}
[[Ronney:Svalbard| ]]
[[Ronney:Ellanree Norlynn]]
[[Ronney:Ellanree 'sy Cheayn Sheear]]
[[Ronney:Thallooyn harrish mooir co-ayrnagh]]
[[Ronney:Cummaghyn thallooin Vooir Barents]]
[[Ronney:Ardjyn yn Arctagh]]
[[Ronney:Aarheynnyn Norlynn]]
[[Ronney:Cryssyn jee-villatit]]
[[Ronney:Thallooyn cogheill]]
[[Ronney:Yn Impiraght Ollanagh ayns ny 1590yn]]
[[Ronney:Yn Impiraght Ollanagh 'sy 17oo eash]]
[[Ronney:Shennaghys marrey yn Phobblaght Ollanagh]]
fcxwmam0gtxywbnf5waeyhdo2yajbwg
395415
395414
2026-10-27T01:11:51Z
MacTire02
219
++
395415
wikitext
text/x-wiki
{{Kishtey fys çheer
|ennym = Svalbard
|jalloo_brattagh = none
|ennym_gienneydagh = Svalbard
|jalloo_caslys = Norway-Svalbard.svg
|sorçh_aarheynn = Steat kionedeeagh
|çhengaghyn_oikoil = [[Norlynnish]]
|preeu-valley = [[Longyearbyen]]
|latd=78 |latm=13 |latNS=N
|longd=15 |longm=33 |longEW=E
|balley_smoo = preeu-valley
|sorçh_reiltys = [[Ard neu-chorpit]] [[jee-veanaghey|jee-veanit]] fo [[gurneilys ynnydagh]] çheusthie monarkaght vunraghtoil
|taghyrt_bunneeaght1 = [[Conaant Svalbard]]
|date_bunneeaght1 = 9 Toshiaght Arree 1920
|taghyrt_bunneeaght2 = [[Slattys Svalbard]]
|date_bunneeaght2 = 17 Jerrey Souree 1925
|traa_ynnydagh = [[Traa ynnydagh yn Oarpey Veanagh|CET]]
|ashchur_utc = +01:00
|traa_ynnydagh_TTLS = [[Traa houree yn Oarpey Veanagh|CEST]]
|ashchur_utc_TTLS = +02:00
|tld = {{hlist|[[.no]]|[[.sj]]}}
|noteyn_tld = Ta .sj er ny enmyssey agh cha nel eh ymmydit
|coad_çhellvane = 47
}}
She [[ellanragh]] ayns [[Mooir yn Arctagh]] eh '''Svalbard'''. T'eh ny lhie çheu hwoaie veih'n [[Yn Oarpey|Oarpey]], mygeayrt lieh-raad eddyr [[Norlynn]] as [[Ard y Twoaie]]. T'eh jeant seose jeh possan ellanyn as ad nyn lhie eddyr 74° as 81° Hwoaie, as 10° as 35° Hiar. Ta'n ellanragh ny chooid smoo twoaie jeh Norlynn. Ta tree ellanyn cummaltit ayn: [[Spitsbergen]], [[Ellan ny Maghouinyn]] as [[Hopen]]. She [[Longyearbyen]] y balley smoo. Ta [[Conaant Svalbard]] (1920) cur enney er kionedeeaght Norlynn er Svalbard as ta Slattys Svalbard (1925) jannoo ee myr slane chooid jeh [[Reeriaght Norlynn]].
==Galleree==
<gallery mode="packed">
Coadan:Adventtoppen Hiorthfjellet from SE side of Adventfjorden Longyearbyen Svalbard on May 23 2025.jpg|Adventtoppen as Hiorthfjellet veih çheu hiar yiass Adventfjorden, Longyearbyen, Svalbard er 23 Boaldyn 2025.
Coadan:Polar bear warning sign at north eastern perimeter of Longyearbyen Svalbard on May 23 2025.jpg|Cowrey raauee mychione maghouinyn baney ec ym-linney hiar hwoaie Longyearbyen, Svalbard, er 23 Boaldyn 2025.
Coadan:Longyearbyen_colourful_homes.jpg|Thieyn colught ayns Longyearbyen
</gallery>
==Noteyn==
{{notelist}}
==Imraaghyn==
{{reflist}}
{{Yn Oarpey}}
{{gurneil eaghtyrys}}
{{bun}}
[[Ronney:Svalbard| ]]
[[Ronney:Ellanree Norlynn]]
[[Ronney:Ellanree 'sy Cheayn Sheear]]
[[Ronney:Thallooyn harrish mooir co-ayrnagh]]
[[Ronney:Cummaghyn thallooin Vooir Barents]]
[[Ronney:Ardjyn yn Arctagh]]
[[Ronney:Aarheynnyn Norlynn]]
[[Ronney:Cryssyn jee-villatit]]
[[Ronney:Thallooyn cogheill]]
[[Ronney:Yn Impiraght Ollanagh ayns ny 1590yn]]
[[Ronney:Yn Impiraght Ollanagh 'sy 17oo eash]]
[[Ronney:Shennaghys marrey yn Phobblaght Ollanagh]]
ihfks7eceugvt7u4oqugq1013xaccmn
Balley Aah Luain
0
2596
395387
393233
2026-10-26T23:39:52Z
MacTire02
219
++
395387
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Balley Aah Luain
|ennym_gienneydagh = Valley Aah Luain
|ennym_dooghyssagh = {{lang|ga|Baile Átha Luain|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Athlone|italics=no}} {{small|([[Baarle]])}}
}}
She balley ayns [[Pobblaght Nerin|Nerin]] eh '''Balley Aah Luain''' ({{langx|ga|Baile Átha Luain}}, {{langx|en|Athlone}}). Ta'n balley ny lhie er [[Yn Çhannon|Awin y Çhannon]] faggys da'n voayl smoo jiassagh jeh [[Loch Rí]]. Ta'n balley ny hoie er gerrey da çheshvean çheer-oaylleeagh ny çheerey, er y joarey eddyr daa choontae - [[Coontae Ros Comain]] ayns [[Queiggey Connaghtey]] 'sy neear, as [[Coontae ny h-Eearvee]] ayns [[Queiggey Lion]] 'sy niar. Rere coontey-pobble 'sy vlein 2006 ta 17,544 cummaltee 'sy valley.
== Baljyn lannoonit ==
Ta Balley Aah Luain lannoonit rish [[Kastell-Briant]] 'sy [[Yn Vritaan (çheer)|Vritaan]] 'sy [[Yn Rank|Rank]]. Ta caghlaaghyn scollagagh taghyrt eddyr scoillyn Valley Aah Luain as scoillyn Kastell-Briant dy mennick. Ta caghlaaghyn scollagagh taghyrt eddyr scoillyn Valley Aah Luain as scoillyn ayns ny baljyn [[Yn Ghermaan|Germaanagh]] [[Ludwigshafen am Rein]] as [[Menden]], ga nagh vel lannoonys eddyr ny baljyn.
==Imraaghyn==
{{rolleyimraaghyn}}
==Kianglaghyn magh==
{{EB1911 poster|Athlone}}
* {{Commons category|Athlone|Balley Aah Luain}}
* [http://www.athlone.ie Athlone.ie] – Ynnyd-eggey yn Valley
{{gurneil eaghtyrys}}
[[Ronney:Balley Aah Luain| ]]
[[Ronney:Buill chummaltit er y Çhannon]]
[[Ronney:Baljyn as baljyn beggey ayns Coontae yn Eearvee]]
[[Ronney:Baljyn as baljyn beggey ayns Coontae Ros Comain]]
[[Ronney:Eear-valjyn corpagh ayns Pobblaght Nerin]]
[[Ronney:Eear-slystyn baljagh ayns Pobblaght Nerin]]
{{sheel çheer Nerin}}
icu014981nnvbhh0kl2c19h7kmhpa71
395388
395387
2026-10-26T23:40:13Z
MacTire02
219
++
395388
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Balley Aah Luain
|ennym_gienneydagh = Valley Aah Luain
|ennym_dooghyssagh = {{lang|ga|Baile Átha Luain|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Athlone|italics=no}} {{small|([[Baarle]])}}
}}
She balley ayns [[Pobblaght Nerin|Nerin]] eh '''Balley Aah Luain''' ({{langx|ga|Baile Átha Luain}}, {{langx|en|Athlone}}). Ta'n balley ny lhie er [[Yn Çhannon|Awin y Çhannon]] faggys da'n voayl smoo jiassagh jeh [[Loch Rí]]. Ta'n balley ny hoie er gerrey da çheshvean çheer-oaylleeagh ny çheerey, er y joarey eddyr daa choontae - [[Coontae Ros Comain]] ayns [[Queiggey Connaghtey]] 'sy neear, as [[Coontae ny h-Eearvee]] ayns [[Queiggey Lion]] 'sy niar. Rere coontey-pobble 'sy vlein 2006 ta 17,544 cummaltee 'sy valley.
== Baljyn lannoonit ==
Ta Balley Aah Luain lannoonit rish [[Kastell-Briant]] 'sy [[Yn Vritaan (çheer)|Vritaan]] 'sy [[Yn Rank|Rank]]. Ta caghlaaghyn scollagagh taghyrt eddyr scoillyn Valley Aah Luain as scoillyn Kastell-Briant dy mennick. Ta caghlaaghyn scollagagh taghyrt eddyr scoillyn Valley Aah Luain as scoillyn ayns ny baljyn [[Yn Ghermaan|Germaanagh]] [[Ludwigshafen am Rein]] as [[Menden]], ga nagh vel lannoonys eddyr ny baljyn.
==Imraaghyn==
{{rolleyimraaghyn}}
==Kianglaghyn magh==
{{Commons category|Athlone|Balley Aah Luain}}
{{EB1911 poster|Athlone}}
* [http://www.athlone.ie Athlone.ie] – Ynnyd-eggey yn Valley
{{gurneil eaghtyrys}}
[[Ronney:Balley Aah Luain| ]]
[[Ronney:Buill chummaltit er y Çhannon]]
[[Ronney:Baljyn as baljyn beggey ayns Coontae yn Eearvee]]
[[Ronney:Baljyn as baljyn beggey ayns Coontae Ros Comain]]
[[Ronney:Eear-valjyn corpagh ayns Pobblaght Nerin]]
[[Ronney:Eear-slystyn baljagh ayns Pobblaght Nerin]]
{{sheel çheer Nerin}}
bltalvtmv0tp3763fog8tnjlfpzmuum
Queiggey Ulley
0
3556
395399
336938
2026-10-27T00:39:36Z
MacTire02
219
++
395399
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Queiggey Ulley
|ennym_gienneydagh = Wheiggey Ulley
|jalloo = none
|sorçh_aarheynn = [[Rolley çheeraghyn y theihll|Çheer]]
|ennym_aarheynn = {{Ubl|[[Pobblaght Nerin|Nerin]]|[[Yn Reeriaght Unnaneysit|Y Reeriaght Unnaneysit]]}}
|aarheynn1 =none
|ennym_dooghyssagh = {{lang|ga|Ulaidh|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Ulster|italics=no}} {{small|([[Baarle]])}}<br/>{{lang|sco|Ulstèr|italics=no}} {{small|([[Baarle]])}}
|jalloo_caslys-çheerey = Leinster_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET/GMT]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST/BST]]
|ashchur_utc_TTSL = +01:00
}}
She fer jeh [[queiggaghyn Nerin]] eh '''Queiggey Ulley''' ny '''Ullee''' ({{langx|ga|Cúige Uladh}} ny {{lang|ga|Ulaidh}}; {{langx|en|Ulster}}; {{langx|sco|label=[[Baarle Albinagh Ultagh]]|Ulstèr}} ny {{lang|sco|''Ulster''}}). Ta'n queiggey jannoo seose y chooid hwoaie jeh ellan [[Nerin]]. V'eh fer jeh ny [[queiggey|queiggaghyn]] (''cúige'') va goll fo stiurey ec ''[[rí ruirech]]'', "ree reeragh" ny "ree ny far-reeaghyn".
Ta'n queiggey goll er rheynn magh eddyr daa steat; ta [[Coontae yn Chavan]], [[Coontae Ghoon ny Ghoal]] as [[Coontae Vuinaghan]] soit ayns [[Pobblaght Nerin]], as ta [[Coontae Aontrym]], [[Coontae Ard Maghey]], [[Coontae yn Doon]], [[Coontae 'er Managh]], [[Coontae Ghoirrey]] as [[Coontae Heer Eoin]] 'sy [[Reeriaght Unnaneysit]]. Ny coondaeghyn 'sy Reeriaght Unnaneysit, t'ad jannoo seose y çheer t'er enney myr [[Nerin Hwoaie]]. She [[Beeal Feirshtey]] y chaayr smoo 'sy wheiggey as ny smoo na 500,000 dooinney cummal 'syn ard moirvaljagh echey.
==Imraaghyn==
{{reflist}}
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
{{bun}}
{{DEFAULTSORT:Ulley}}
[[Ronney:Queiggey Ulley| ]]
[[Ronney:Queiggaghyn Nerin]]
[[Ronney:Ardjyn rheynnit]]
3u6o2rwurceusgikzm41s66uf2ytg72
395400
395399
2026-10-27T00:40:26Z
MacTire02
219
++
395400
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Queiggey Ulley
|ennym_gienneydagh = Wheiggey Ulley
|jalloo = none
|sorçh_aarheynn = [[Rolley çheeraghyn y theihll|Çheer]]
|ennym_aarheynn = {{Ubl|[[Pobblaght Nerin|Nerin]]|[[Yn Reeriaght Unnaneysit|Y Reeriaght Unnaneysit]]}}
|aarheynn1 =none
|ennym_dooghyssagh = {{lang|ga|Ulaidh|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Ulster|italics=no}} {{small|([[Baarle]])}}<br/>{{lang|sco|Ulstèr|italics=no}} {{small|([[Baarle Albinagh Ultagh]])}}
|jalloo_caslys-çheerey = Leinster_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET/GMT]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST/BST]]
|ashchur_utc_TTSL = +01:00
}}
She fer jeh [[queiggaghyn Nerin]] eh '''Queiggey Ulley''' ny '''Ullee''' ({{langx|ga|Cúige Uladh}} ny {{lang|ga|Ulaidh}}; {{langx|en|Ulster}}; {{langx|sco|label=[[Baarle Albinagh Ultagh]]|Ulstèr}} ny {{lang|sco|''Ulster''}}). Ta'n queiggey jannoo seose y chooid hwoaie jeh ellan [[Nerin]]. V'eh fer jeh ny [[queiggey|queiggaghyn]] (''cúige'') va goll fo stiurey ec ''[[rí ruirech]]'', "ree reeragh" ny "ree ny far-reeaghyn".
Ta'n queiggey goll er rheynn magh eddyr daa steat; ta [[Coontae yn Chavan]], [[Coontae Ghoon ny Ghoal]] as [[Coontae Vuinaghan]] soit ayns [[Pobblaght Nerin]], as ta [[Coontae Aontrym]], [[Coontae Ard Maghey]], [[Coontae yn Doon]], [[Coontae 'er Managh]], [[Coontae Ghoirrey]] as [[Coontae Heer Eoin]] 'sy [[Reeriaght Unnaneysit]]. Ny coondaeghyn 'sy Reeriaght Unnaneysit, t'ad jannoo seose y çheer t'er enney myr [[Nerin Hwoaie]]. She [[Beeal Feirshtey]] y chaayr smoo 'sy wheiggey as ny smoo na 500,000 dooinney cummal 'syn ard moirvaljagh echey.
==Imraaghyn==
{{reflist}}
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
{{bun}}
{{DEFAULTSORT:Ulley}}
[[Ronney:Queiggey Ulley| ]]
[[Ronney:Queiggaghyn Nerin]]
[[Ronney:Ardjyn rheynnit]]
6hdbawtbvx3fhzch3jk18oaov7mmdn8
395401
395400
2026-10-27T00:40:49Z
MacTire02
219
++
395401
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Queiggey Ulley
|ennym_gienneydagh = Wheiggey Ulley
|jalloo = none
|sorçh_aarheynn = [[Rolley çheeraghyn y theihll|Çheer]]
|ennym_aarheynn = {{Ubl|[[Pobblaght Nerin|Nerin]]|[[Yn Reeriaght Unnaneysit|Y Reeriaght Unnaneysit]]}}
|aarheynn1 =none
|ennym_dooghyssagh = {{lang|ga|Ulaidh|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Ulster|italics=no}} {{small|([[Baarle]])}}<br/>{{lang|sco|Ulstèr|italics=no}} {{small|([[Baarle Albinagh Ultagh]])}}
|jalloo_caslys-çheerey = Leinster_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET/GMT]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST/BST]]
|ashchur_utc_TTSL = +01:00
}}
She fer jeh [[queiggaghyn Nerin]] eh '''Queiggey Ulley''' ny '''Ullee''' ({{langx|ga|Cúige Uladh}} ny {{lang|ga|Ulaidh}}; {{langx|en|Ulster}}; {{langx|sco|label=[[Baarle Albinagh Ultagh]]|Ulstèr}} ny {{lang|sco|Ulster}}). Ta'n queiggey jannoo seose y chooid hwoaie jeh ellan [[Nerin]]. V'eh fer jeh ny [[queiggey|queiggaghyn]] (''cúige'') va goll fo stiurey ec ''[[rí ruirech]]'', "ree reeragh" ny "ree ny far-reeaghyn".
Ta'n queiggey goll er rheynn magh eddyr daa steat; ta [[Coontae yn Chavan]], [[Coontae Ghoon ny Ghoal]] as [[Coontae Vuinaghan]] soit ayns [[Pobblaght Nerin]], as ta [[Coontae Aontrym]], [[Coontae Ard Maghey]], [[Coontae yn Doon]], [[Coontae 'er Managh]], [[Coontae Ghoirrey]] as [[Coontae Heer Eoin]] 'sy [[Reeriaght Unnaneysit]]. Ny coondaeghyn 'sy Reeriaght Unnaneysit, t'ad jannoo seose y çheer t'er enney myr [[Nerin Hwoaie]]. She [[Beeal Feirshtey]] y chaayr smoo 'sy wheiggey as ny smoo na 500,000 dooinney cummal 'syn ard moirvaljagh echey.
==Imraaghyn==
{{reflist}}
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
{{bun}}
{{DEFAULTSORT:Ulley}}
[[Ronney:Queiggey Ulley| ]]
[[Ronney:Queiggaghyn Nerin]]
[[Ronney:Ardjyn rheynnit]]
q1ux26k3rp10dldvr3xutumpcv5wq7l
395402
395401
2026-10-27T00:41:20Z
MacTire02
219
++
395402
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Queiggey Ulley
|ennym_gienneydagh = Wheiggey Ulley
|jalloo = none
|sorçh_aarheynn = [[Rolley çheeraghyn y theihll|Çheer]]
|ennym_aarheynn = {{Ubl|[[Pobblaght Nerin|Nerin]]|[[Yn Reeriaght Unnaneysit|Y Reeriaght Unnaneysit]]}}
|aarheynn1 =none
|ennym_dooghyssagh = {{lang|ga|Ulaidh|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Ulster|italics=no}} {{small|([[Baarle]])}}<br/>{{lang|sco|Ulstèr|italics=no}} {{small|([[Baarle Albinagh Ultagh]])}}
|jalloo_caslys-çheerey = Ulster_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET/GMT]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST/BST]]
|ashchur_utc_TTSL = +01:00
}}
She fer jeh [[queiggaghyn Nerin]] eh '''Queiggey Ulley''' ny '''Ullee''' ({{langx|ga|Cúige Uladh}} ny {{lang|ga|Ulaidh}}; {{langx|en|Ulster}}; {{langx|sco|label=[[Baarle Albinagh Ultagh]]|Ulstèr}} ny {{lang|sco|Ulster}}). Ta'n queiggey jannoo seose y chooid hwoaie jeh ellan [[Nerin]]. V'eh fer jeh ny [[queiggey|queiggaghyn]] (''cúige'') va goll fo stiurey ec ''[[rí ruirech]]'', "ree reeragh" ny "ree ny far-reeaghyn".
Ta'n queiggey goll er rheynn magh eddyr daa steat; ta [[Coontae yn Chavan]], [[Coontae Ghoon ny Ghoal]] as [[Coontae Vuinaghan]] soit ayns [[Pobblaght Nerin]], as ta [[Coontae Aontrym]], [[Coontae Ard Maghey]], [[Coontae yn Doon]], [[Coontae 'er Managh]], [[Coontae Ghoirrey]] as [[Coontae Heer Eoin]] 'sy [[Reeriaght Unnaneysit]]. Ny coondaeghyn 'sy Reeriaght Unnaneysit, t'ad jannoo seose y çheer t'er enney myr [[Nerin Hwoaie]]. She [[Beeal Feirshtey]] y chaayr smoo 'sy wheiggey as ny smoo na 500,000 dooinney cummal 'syn ard moirvaljagh echey.
==Imraaghyn==
{{reflist}}
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
{{bun}}
{{DEFAULTSORT:Ulley}}
[[Ronney:Queiggey Ulley| ]]
[[Ronney:Queiggaghyn Nerin]]
[[Ronney:Ardjyn rheynnit]]
k768driobh8iwpamggiawy1uw82vg8z
Queiggey Lion
0
3558
395397
322559
2026-10-27T00:23:22Z
MacTire02
219
++
395397
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Queiggey Lion
|ennym_gienneydagh = Wheiggey Lion
|jalloo = none
|ennym_dooghyssagh = {{lang|ga|Laighean|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Leinster|italics=no}} {{small|([[Baarle]])}}
|jalloo_caslys-çheerey = Leinster_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
|ashchur_utc_TTSL = +01:00
}}
She nane jeh [[Queiggaghyn Nerin]] eh '''Queiggey Lion''' ({{langx|en|Leinster}}, {{langx|ga|Laighin}} ny {{lang|ga|Cúige Laighean}}). T'eh ny hoie ayns shiar [[Nerin]] as t'eh jeant seose jeh ny coondaeghyn [[Coontae Chaarlagh|Caarlagh]], [[Coontae Ghivlyn|Divlyn]], [[Coontae yn Eearvee|yn Eearvee]], [[Coontae Cheeill Chennee|Keeill Chennee]], [[Coontae Cheeill Darey|Keeill Darey]], [[Coontae Cheeill Mantan|Keeill Mantan]], [[Coontae Leesh|Leesh]], [[Coontae Lhongfort|Lhongfort]], [[Coontae Lhoo|y Lhoo]], [[Coontae Logh Garman|Logh Garman]], [[Coontae Uíbh Fhailí|Uíbh Fhailí]], as [[Coontae ny Mee|y Vee]]. Rere coontey-pobble ny bleeaney 2006, ta 2,295,123 deiney cummal ayns Queiggey Lion, as lesh shen, t'eh ny wheiggey smoo pobbylagh 'sy çheer.<ref>{{cite web | url=http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 | title=Census 2006 - Population of each province, county and city | accessdate=5 Mee Houney 2010 | language=Baarle | publisher=[[Príomh Oifig Staidrimh na hÉireann]] | archivedate=17 Averil 2011 | archiveurl=https://web.archive.org/web/20110417182520/http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 }}</ref> Ta [[claasagh]] [[airh]]ey er cooylrey eayney ry-akin er [[brattagh Lion]].
== Baljyn mooarey ==
* [[Tamhlacht]] (as slystyn mygeayrt) (103,301)
* [[Baile Bhlainséir]] (60,000)
* [[Cluain Dolcáin]] (43,929)
* [[Leamhcán]] (37,622)
* [[Sord Cholmcille]] (37,806)
* [[Droghad Aah]] (35,090)
* [[Doon Jialgan]] (35,085)
* [[Bray]] (31,901)
* [[Fionnghlas]] (31,529)
* [[Yn Ooive]] (26,938)
* [[Keeill Chennee]] (as slystyn mygeayrt) (23,967)
* [[Yn Naas]] (21,418)
* [[Ceatharlach]] (20,724)
* [[Logh Garman]] (18,590)
* [[Yn Mwyllin Kiarr]] (18,529)
* [[Yn Droghad Noa, Coontae Cheeill Darey|Yn Droghad Noa]] (18,520)
* [[Balley Aah Luain]] (16,888)
* [[Baile Brigín]] (15,559)
* [[Léim an Bhradáin]] (14,676)
* [[Cill Droichid]] (14,675)
* [[Na Clocha Liatha]] (14,569)
* [[Purt Leesh]] (14,275)
* [[Yn Tullagh Vooar]] (13,085)
* [[Lhongfort]] (13,000)
* [[Inver Mooar]] (11,712)
* [[Mullach Íde]] (11,069)
* [[Maanoot]] (10,715)
* [[Keeill Mantan]] (10,070)
== Imraaghyn ==
{{rolleyimraaghyn}}
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
[[Ronney:Queiggey Lion| ]]
[[Ronney:Queiggaghyn Nerin|Lion]]
mljkpq3qmcl5l5e27wojcpgre81z3de
Coontae yn Vee
0
3564
395327
336761
2026-10-26T14:10:47Z
MacTire02
219
++
395327
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = Choontae yn Vee
| ennym = Coontae yn Vee
| ennym_dooghyssagh = {{lang|ga|Contae na Mí|italics=no}} {{small|([[Yernish]])}}<br />{{lang|en|County Meath|italics=no}} {{small|([[Baarle]])}}
| sorçh_balley = [[Coondaeghyn Nerin|Coontae]]
| jarroo-raa = {{lang|ga|Tré Neart le Chéile}}
| çhengey_jarroo-raa = Yernish
| çhyndaa_jarroo-raa = Trooid Niart ry Cheilley
| jalloo_armys = Meath_coa.svg
| jalloo_brattagh = none
| jalloo_caslys-çheerey = Island of Ireland location map Meath.svg
| mooadys_caslys-çheerey = 250px
| ard_coordnaidyn = IE
| taishbyney_coordnaidyn = inline, title
| sorçh_aarheynn = [[Rolley çheeraghyn y theihill|Çheer]]
| ennym_aarheynn = {{brattagh|Ireland|Pobblaght Nerin{{!}}Nerin}}
| sorçh_aarheynn1 = [[Queiggaghyn Nerin|Queiggey]]
| ennym_aarheynn1 = {{brattagh|Leinster|Queiggey Lion}}
| sorçh_aarheynn2 = [[Ardjyn Phobblaght Nerin|Ard]]
| ennym_aarheynn2 = [[Ard y Vean-Hiar, Nerin|Y Mean-Hiar]]
| sorçh_aarheynn3 = <hr>Dáil Éireann
| ennym_aarheynn3 = <hr>[[Yn Vee Heear (co-heiyderys Dáil Éireann)|Y Vee Heear]]<br>[[Yn Vee Hiar (co-heiyderys Dáil Éireann)|Y Vee Hiar]]<br>[[Lhoo (co-heiyderys Dáil Éireann)|Lhoo]]
| sorçh_aarheynn4 = Parlamaid yn UO
| ennym_aarheynn4 = [[Shiar (co-heiyderys Pharlamaid yn Oarpey)|Shiar]]
| sorçh_soieag = Balley coontae
| soieag = [[Yn Ooive]]
| sorçh_reiltys = Coonseil Coontae
| colught_reirey = [[Coonseil Choontae yn Vee]]
| enmys_fer-toshee =
| ennym_fer-toshee =
| slane_earroo_yn_phobble = 184135
| earroo_yn_phobble_er = 2011
| fo-noteyn_earroo_yn_phobble =
| glooaght_y_phobble_km2 = 78.6
| rhenk_earroo_yn_phobble = [[Rolley coondaeghyn Nerin rere earroo yn phobble|9oo]]
| slane_eaghtyr_km2 = 2342
| rhenk_eaghtyr = [[Rolley coondaeghyn Nerin rere eaghtyr|14oo]]
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|GMT]]
| ashchur_utc = +0
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +1
|latd = 53 |latm = 40 |latNS = N
|longd = 06 |longm = 40 |longEW = W
| blank_name_sec1 = Coad
| blank_info_sec1 = MH
| sorçh_coad_postagh =
| coad_postagh =
| coad_ardjynagh =
| ynnyd-eggey = [http://www.meath.ie/ www.meath.ie]
| fo-noteyn =
}}
Ta '''Coontae yn Vee''', ny '''yn Vee''' dy h-aashagh ({{lang-ga|Contae na Mí}} ny {{lang|ga|''an Mhí''}}, {{lang-en|County Meath}}) ny choontae ayns [[Queiggey Lion]], [[Pobblaght Nerin|Nerin]]. Ta ennym y çhenn-reeriaght - [[Reeriaght y Vee]] - currit er y choontae jiu, faagail magh nagh vel 'sy choontae agh cooid jeh'n çhenn-reeriaght. Ta'n far-ennym "y Coontae Reeoil" currit er y choontae er oyr y çhennaghys echey myr soiag [[Ard-Reeaghyn Nerin]].<ref>{{cite web | title = Meath - a rich and royal land | url = http://www.meath.ie/Tourism/Heritage/ | accessdate = 21 May 2010 | author = Meath County Council | archivedate = 10 June 2010 | archiveurl = https://web.archive.org/web/20100610202040/http://www.meath.ie/Tourism/Heritage/ }}</ref><ref>{{cite web | title = County Meath - Newgrange, Slane Castle and the Book of Kells | url = http://www.countymeath.com/ | accessdate = 21 May 2010 | author = countymeath.com | archivedate = 9 March 2010 | archiveurl = https://web.archive.org/web/20100309043357/http://www.countymeath.com/ }}</ref><ref>{{cite book |last1= Rowan Kelleher |first1= Suzanne |title= Frommer's Ireland from $80 a Day |accessdate= 21 May 2010 | edition = 20th |year= 2004 |publisher= Wiley Publishing, Inc |location= Hoboken, New Jersey, SUA |isbn= 0-7645-4217-6 |page= 204 }}</ref> Rere coontey-pobble y vlein 2006 va 162,831 deiney cummal 'sy choontae.<ref>{{Cite web |title=Census 2006 - Population of each province, county and city |url=http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 |accessdate=2010-08-11 |archivedate=2011-04-17 |archiveurl=https://web.archive.org/web/20110417182520/http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 }}</ref> T'eh ny 14oo coontae smoo rere eaghtyr mastey yn 32 choontae ayns Nerin, as ny 13oo coontae smoo rere earroo yn phobble.<ref>{{cite book| first=Eoghan| last=Corry| title=The GAA Book of Lists| publisher=Hodder Headline Ireland| year=2005| id= | pages=186–191}}</ref> T'eh ny nah choontae smoo ayns Queiggey Lion rere eaghtyr as ny 3oo coontae smoo rere earroo yn phobble. She [[yn Ooive]] y balley coontae, raad dy vel y halley coontae as gurneilys ynnydagh y choontae soit. Ta [[Baile Átha Troim]] ny aa-valley coontae, as ta scansh shendeeagh foast ayn myrane lesh y whaiyl cheayrtagh. Ta'n daa ard [[Gaeltacht]] ayns Queiggey Lion nyn soie 'sy choontae - [[Ráth Cairn]] as [[Baile Ghib]].
== Shennaghys ==
[[Coadan:Newgrange.JPG|200px|left|thumb|[[Sí an Bhrú]] - Y tomman limmer shinney as smoo scanshoil ayns Nerin.]]
Ta shennaghys y Vee unnane as shennaghys Nerin, as ta'n coontae berçhal er çheu chummaltys deiney leah. Haink ny chied chummaltee gys y choontae ny smoo na 8,000 bleeantyn er-dy-henney.<ref>{{cite web |url=http://www.theyellowhouse.ie/historic.html |title=Historic Meath |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2010-03-11 |archiveurl=https://web.archive.org/web/20100311211047/http://www.theyellowhouse.ie/historic.html }}</ref> Va'n coontae ny lhie ayns çheshvean Nerin roie-hendeeagh lesh ny shenn-raaidyn as ad goulraghey magh er feie Nerin voish. Veih'n eash shen derrey çheet y Chreestiaght va ram tommanyn limmer as giat troggit lheid as ad ayns [[Sí an Bhrú]], [[Cnobha]], as [[Dubhadh]] ayns [[Brú na Bóinne]], as [[Loch Craobh]] er [[Sliabh na Caillí]] ayns sheear hwoaie yn choontae. 'Sy vlein 433 BNJ, chur [[Noo Perick]] y Chreestiaght lesh gys [[Teamhair na Rí]], preeu-ynnyd Ree yn Vee as ny h-Ard-Reeaghyn Yernagh, as veih'n voayl shen ren y Chreestiaght sheeyney magh er feie ny çheerey.<ref>{{cite web |url=http://www.newadvent.org/cathen/11554a.htm |title=St. Patrick |last=Doorley |first=Mary |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
Va Reeriaght y Vee hene currit er bun mygeayrt y chied eash BNJ liorish [[Tuathal Teachtmhar]] rere tradishoon. Foddee dy vel ad ny reeaghyn leah er y reeriaght na ad jeh ny Uí Enechghlaiss. Va'n clein shen jeh sluight ny [[Fir Bolg]], as va aarheynn y chlein shen, ny [[Fir Domnann]], ry-akin er caslys çheerey Nerin va jeant ec [[Ptolemy]] lesh y phreeu-valley ec Rheba.<ref>{{cite web |url=http://www.rootsweb.com/~irlkik/ihm/ire150.htm |title=Ireland's History in Maps: Ptolemy's Ireland |publisher=rootsweb.com |accessdate=17 Mart, 2009 |first=Dennis |last=Walsh |language=Baarle}} </ref> Veih ny 490yn v'ad scughit ass y Vee harrish [[Sleityn Cheeill Mantan]] liorish ny [[Uí Néill]], as ren [[Clann Cholmáin]] cummaltys er y reeriaght. Ass y chlein shen er haink [[Reeaghyn y Vee]], as va cooid vie jeu nyn Ard-Reeaghyn Yernagh. Haink jerrey lesh y reeriaght 'sy vlein 1172 nar v'ee giootit dys [[Hugh de Lacy, Çhiarn y Vee|Hugh de Lacy]] liorish [[Inry II Hostyn|Ree Inry II Hostyn]].<ref>{{cite web |url=http://killyonguesthouse.ie/historic_meath.html |title=Historic Meath: Trim Castle |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2008-10-02 |archiveurl=https://web.archive.org/web/20081002021114/http://www.killyonguesthouse.ie/historic_meath.html }}</ref> Va [[Baile Átha Troim]] reiht ec de Lacy myr y preeu-valley echey as va [[Caisleán Bhaile Átha Troim|cashtal]] troggit echey er brooinyn [[an Bhóinn]].
Va sheer jeant ass y Vee liorish Parlamaid y Vlein 1297,<ref name="roche">Desmond Roche, ''Local Government in Ireland'', Divlyn, 1982</ref> as ghow ee stiagh coondaeghyn noa-emshyragh y Vee, yn Eearvee, yn Lhongfort, as stugganyn jeh'n Chavan, Vuinaghan, Lhoo, Cheeill Darey, 'ine Goal, as Uíbh Fhailí. 'Sy vlein 1543 va Coontae yn Eearvee rheynnit magh ass y Vee liorish y reiltys Ealisaidagh as daaeed bleeaney ny yei shen va'n Lhongfort rheynnit magh ass yn Eearvee hene.
Ta'n Vee ny soiaghey jeh taghyrtyn mooarey ayns shennaghys noa-emshyragh Nerin, as v'eh 'sy Vee er haghyr [[Cah an Bhóinn]] nar va'n ree Catoleagh [[Jamys II Hostyn]] currit fo haart liorish y ree Protestoonagh [[Illiam III Hostyn]] 'sy vlein 1690 eddyr [[Baile Shláine]] as [[Droghad Aah]]. Myr eiyrtys va quing Phrotestoonagh currit er Nerin. Reesht 'sy vlein 1798, nar dirree irreyderyn Yernagh magh noi'n Chrooin Ghoaldagh, haghyr irree magh 'sy choontae, agh v'ad currit fo haart liorish sidooryn Goaldagh. Ren yn irree magh shen niartaghey er smaght Goaldagh harrish Nerin er oyr y traartys ec ny h-irreyderyn magh, agh cha row ny Yernee jargal ve booiagh lesh shen. Ayns ny 1840yn ren [[Daniel O'Connell]] eiyrtys pooar y chur reesht da ny Catolee ayns Nerin er keim cheddin lesh ny Protestoonee. V'eh ayns [[Teamhair na Rí]] er haghyr y "chruinnaght vooar" echey as ny smoo na millioon feallee ayn 'sy vlein 1843.
Lurg seyrsnys Nerin ayns 1922, hie Coontae yn Vee dy ve ny chrouw-choontae da'n phreeu-valley noa, [[Divlyn]], raad dy row y reiltys ny hoie. Daase earroo yn phobble ayns baljyn va cruinnaghey yn preeu-valley. Ayns ny 1990yn as ny 2000yn leah, myr v'ayns y çheer er feie, haghyr lhiasaghey as bishaghey mooar ayns tarmaynys ny çheerey, as yn ennym "y Çheegyr Celtiagh" currit er y lhing shen.
== Çheer-oaylleeaght ==
[[Coadan:Valley of the river Boyne.jpg|250px|right|thumb|Glion ny Bóinne veih Brú na Bóinne]]
Ta Coontae yn Vee ny lhie ayns twoaie [[Queiggey Lion|Lion]] er coose shiar [[Nerin]]. T'eh caglit liorish [[Mooir Vannin]] da'n shiar as y coose echey 10.4 km er lhiurid. T'eh çhemmit liorish [[Coontae Ghivlyn]] da'n shiar as y shiar yiass, liorish [[Coontae Cheeill Darey]] da'n jiass, liorish [[Coontae Uíbh Fhailí]] da'n sheear yiass, liorish [[Coontae yn Eearvee]] da'n sheear, liorish [[Coontae yn Chavan]] da'n sheear hwoaie, liorish [[Coontae Vuinaghan]] da'n twoaie, as liorish [[Coontae Lhoo]] da'n shiar hwoaie. She thalloo rea yn chooid smoo jeh'n choontae agh ta cruink injil ry-gheddyn ayns sheear hwoaie yn choontae as 'sy twoaie. Ta ram awinyn 'sy choontae chammah as ad teaumey ny loghyn 'syn Eearvee, 'sy Chavan, as ayns Muinaghan, ny teaumey ny curree ayns Uíbh Fhailí as Keeill Darey. T'ad ny h-awinyn smoo scanshoil 'sy choontae na [[an Bhóinn]], [[An Abhainn Dubh, Coontae yn Vee|an Abhainn Dubh]], [[an Ainí]], [[an Eithne]], [[an Ailbhine]], [[an Ifearnóg]], [[an Tulcha]], [[Abhainn Átha Buí]] as [[An Abhainn Rua, Coontae yn Vee|an Abhainn Rua]]. Ta'n Bhóinn hene nane jeh ny h-awinyn smoo scanshoil ayns Nerin er çheu shennaghys as y feayn-skeealeydaght Yernagh, as t'ee roie trooid çheshvean y choontae trooid [[Baile Átha Troim]] as balley [[yn Ooive]].
=== Baljyn ===
* [[Baile Átha Troim]]
* [[Ceanannas, Coontae yn Vee|Ceanannas]]
* [[Yn Ooive]]
=== Baljyn beggey ===
* [[Baile an Bheileogaigh]], [[Baile an Bhiataigh]], [[Baile an Bhóthair, Coontae yn Vee|Baile an Bhóthair]], [[Baile Átha Buí]], [[Baile Ghib]], [[Baile Íomhair]], [[Baile Iúiliáin]], [[Baile Mhic Gormáin]], [[Baile Roibín, Coontae yn Vee|Baile Roibín]], [[Baile Shláine]], [[Baile Uí Mhornáin]], [[Baile Uilcín]], [[Beigthigh]], [[An Bóthar Buí, Coontae yn Vee|An Bóthar Buí]], [[An Bóthar Mín]], [[Buaile na Bréachmhaí]]
* [[Cill an Chairn]], [[Cill Dealga]], [[Cill Dhéagláin]], [[Cill Mheasáin]], [[Cluain Aodha]], [[Cluain Ioraird]], [[Cnoc an Línsigh]]
* [[Damhliag]], [[Domhnach Phádraig]], [[Droichead Chearbhalláin]], [[Dún Búinne]], [[Dún Doire]], [[Dún Samhnaí]], [[Dún Seachlainn]]
* [[An Inse, Coontae yn Vee|An Inse]]
* [[Maigh Dearmhaí]], [[Maigh Muirí]], [[Maigh nEalta]]
* [[An Obair]]
* [[An Scrín, Coontae yn Vee|An Scrín]], [[An Seanchaisleán]]
* [[Teamhair]]
* [[Ráth Cairn]], [[Ráth Moliain]], [[Ráth Tó]]
== Deyn-oaylleeaght ==
Earroo yn phobble rere [[coontey-pobble]] ayns Coontae yn Vee veih'n vlein 1861:
[[Coadan:Population of County Meath (graph).PNG|right|thumb|300px|Earroo pobble Choontae ny Mee veih 1861 derrey 2002.]]
* 1861: 110,373
* 1871: 95,558
* 1881: 87,469
* 1891: 76,987
* 1901: 67,497
* 1911: 65,091
* 1926: 62,969
* 1936: 61,405
* 1946: 66,232
* 1961: 65,122
* 1971: 71,729
* 1981: 95,419
* 1991: 105,370
* 1996: 109,732
* 2002: 134,005
* 2006: 162,831
* 2011: 184,135
== Politickaght ==
Va tree ass ny queig ynnydyn ayns co-heiyderys y Vee cosnit ec [[Fianna Fáil]] veih'n vlein 1987. 'Sy traa cheddin va daa ynnyd cosnit ec [[Fine Gael]] faagail magh ny bleeaney 1992 nar va un ynnyd caillt da [[Partee yn Lught Obbyr (Nerin)|Partee yn Lught Obbyr]], agh va'n ynnyd shen aachosnit ec Fine Gael reesht 'sy vlein 1997. Myr eiyrtys er earroo pobble y choontae ta shey ynnydyn ec Coontae yn Vee nish, as t'eh rheynnit magh ayns daa cho-heiyderys nish: Y Vee Hiar as y Vee Heear (as eh goaill stiagh stugganyn jeh Coontae yn Eearvee).
Va fo-reihys 'sy vlein 2005 cosnit ec McEntee lurg irree ass oik y shenn-[[Taoiseach]], [[John Bruton]] (Fine Gael) as er y reihys echey myr Ambasseyder [[yn Unnaneys Oarpagh|Oarpagh]] da [[ny Steatyn Unnaneysit]].
Va Coonseil Choontae yn Vee fo stiurey Fianna Fáil veih 1985 derrey 1991 as reesht veih 1999 derrey 2004. Haink jerrey lesh y chioneys shen reesht lurg [[Reihyssyn ynnydagh Nerin, 2009|ny reihyssyn ynnydagh ayns 2009]]. She cummal roie ny coonseil jiu na:<ref>{{cite web |url=http://electionsireland.org/results/local/index.cfm |title=Local Elections |date=27 Mean Souree, 2009 |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
{| class="wikitable" style="text-align:right; padding-left:1em"
!align="left"|Blein
!style="background-color: {{Fianna Fáil/meta/daah}}; width: 3px;" |
|[[Fianna Fáil|FF]]
!style="background-color: {{Fine Gael/meta/daah}}; width: 3px;" |
|[[Fine Gael|FG]]
!style="background-color: {{Partee yn Lught Obbyr (Nerin)/meta/daah}}; width: 3px;" |
|[[Partee yn Lught Obbyr (Nerin)|LO]]
!style="background-color: {{Yn Partee Glass (Nerin)/meta/daah}}; width: 3px;" |
|[[Yn Partee Glass (Nerin)|PG]]
!style="background-color: {{Sinn Féin/meta/daah}}; width: 3px;" |
|[[Sinn Féin|SF]]
!style="padding-left:2em"|Elley
|-
|align="left"|2014
|colspan="2"|10
|colspan="2"|13
|colspan="2"|0
|colspan="2"|0
|colspan="2"|8
|colspan="2"|9
|- bgcolor="F3F3FF"
|align="left"|2009
|colspan="2"|8
|colspan="2"|11
|colspan="2"|4
|colspan="2"|0
|colspan="2"|1
|colspan="2"|5
|- bgcolor="F3F3FF"
|align="left"|2004
|colspan="2"|12
|colspan="2"|9
|colspan="2"|0
|colspan="2"|1
|colspan="2"|2
|colspan="2"|5
|-
|align="left"|1999
|colspan="2"|14
|colspan="2"|11
|colspan="2"|0
|colspan="2"|0
|colspan="2"|1
|colspan="2"|3
|}
== Spoyrt ==
She [[bluckaneyrys Gaelgagh]] y [[spoyrt]] smoo cadjin ayns Coontae yn Vee, as [[Craobh Shinsear Peile na hÉireann]] ("Crouw Hinsharagh Bluckaneyrys Nerin") cosnit ec [[CLG na Mí|fwirran bluckaneyrys]] y choontae 7 keayrtyn: ayns ny bleeantyn 1949, 1954, 1967, 1987, 1988, 1996, as 1999. Myrane lesh y vluckaneyrys, ta'n [[immanaght]], y [[ruggyr]] as [[soccer]] cloiet 'sy choontae. She [[Páirc Tailteann]] 'syn Ooive y staid smoo 'sy choontae as y staid shen ymmydit son bluckaneyrys Gaelgagh son y chooid smoo.
== Arraghey ==
=== Raaidyn ===
* She yn [[N3 (raad Nerin)|N3]] preeu-raad y choontae as eh roie veih [[Divlyn]], trooid [[yn Ooive]] as [[yn Cavan|y Cavan]], dys [[Béal Átha Seanaidh]].
* Bayr gleashtanagh yn [[N4 (raad Nerin)|M4]] ta ny lhie ayns Coontae Cheeill Darey as Coontae ny Mee
* Bayr gleashtanagh yn [[N1 (raad Nerin)|M1]] ta goll veih Divlyn dys [[Beeal Feirshtey]]
* Ta'n [[N2 (raad Nerin)|N2]] shaghney yn nah valley smoo 'sy choontae, [[Cill Dhéagláin]]. Ta'n raad shoh ny vollagh dooblit agh ta cagliagh bieauid 120 km/h er, cagliagh bieauid myr ta ry-gheddyn er bayryn gleashtanagh dy cadjin.
=== Raaidyn yiarn ===
* Ta traen troailt trick jannoo shirveish er baljyn beggey slystagh ny Mee as eh kiangley ad rish Divlyn
* Ta crouw-linney veih raad yiarn Divlyn-Beeal Feirshtey ry hoi traaght chooid jannoo kiangley eddyr yn Ooive rish Droghad Aah. Ta'n linney jeeragh veih'n Ooive dys Divlyn doont ec y traa t'ayn agh ta plan ayn y linney shen y aa-osley er linnaghyn polasee traghtee yn reiltys roie.
* Ta shirveish hroailt jannoo shirveishyn er [[An Bóthar Buí, Coontae yn Vee|an Bóthar Buí]]
== Imraaghyn ==
{{rolleyimraaghyn}}
== Jeeagh er neesht ==
* [[Coondaeghyn Nerin]]
== Kianglaghyn mooie ==
* [http://www.meath.ie/ Coonseil Choontae yn Vee] {{en jalloo}}
* [https://web.archive.org/web/20070208074056/http://www.meathtourism.ie/ Turrysaght yn Vee] {{en jalloo}}
* [http://www.cso.ie/census/ Ynnyd-eggey y CSO] {{en jalloo}}
{{Nerin - Coondaeghyn}}
{{Coontae ny Mee}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Vee}}
[[Ronney:Coontae yn Vee| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
etdi974kkc3wbmtc9o294q6tsgh12zi
395329
395327
2026-10-26T14:16:45Z
MacTire02
219
++
395329
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = Choontae yn Vee
| ennym = Coontae yn Vee
| ennym_dooghyssagh = {{lang|ga|Contae na Mí|italics=no}} {{small|([[Yernish]])}}<br />{{lang|en|County Meath|italics=no}} {{small|([[Baarle]])}}
| sorçh_balley = [[Coondaeghyn Nerin|Coontae]]
| jarroo-raa = {{lang|ga|Tré Neart le Chéile}}
| çhengey_jarroo-raa = Yernish
| çhyndaa_jarroo-raa = Trooid Niart ry Cheilley
| jalloo_armys = Meath_coa.svg
| jalloo_brattagh = none
| jalloo_caslys-çheerey = Island of Ireland location map Meath.svg
| mooadys_caslys-çheerey = 250px
| ard_coordnaidyn = IE
| taishbyney_coordnaidyn = inline, title
| sorçh_aarheynn = [[Rolley çheeraghyn y theihill|Çheer]]
| ennym_aarheynn = {{brattagh|Ireland|Pobblaght Nerin{{!}}Nerin}}
| sorçh_aarheynn1 = [[Queiggaghyn Nerin|Queiggey]]
| ennym_aarheynn1 = {{brattagh|Leinster|Queiggey Lion}}
| sorçh_aarheynn2 = [[Ardjyn Phobblaght Nerin|Ard]]
| ennym_aarheynn2 = [[Ard y Vean-Hiar, Nerin|Y Mean-Hiar]]
| sorçh_aarheynn3 = <hr>Dáil Éireann
| ennym_aarheynn3 = <hr>[[Yn Vee Heear (co-heiyderys Dáil Éireann)|Y Vee Heear]]<br>[[Yn Vee Hiar (co-heiyderys Dáil Éireann)|Y Vee Hiar]]<br>[[Lhoo (co-heiyderys Dáil Éireann)|Lhoo]]
| sorçh_aarheynn4 = Parlamaid yn UO
| ennym_aarheynn4 = [[Shiar (co-heiyderys Pharlamaid yn Oarpey)|Shiar]]
| sorçh_soieag = Balley coontae
| soieag = [[Yn Ooive]]
| sorçh_reiltys = Coonseil Coontae
| colught_reirey = [[Coonseil Choontae yn Vee]]
| enmys_fer-toshee =
| ennym_fer-toshee =
| slane_earroo_yn_phobble = 184135
| earroo_yn_phobble_er = 2011
| fo-noteyn_earroo_yn_phobble =
| glooaght_y_phobble_km2 = 78.6
| rhenk_earroo_yn_phobble = [[Rolley coondaeghyn Nerin rere earroo yn phobble|9oo]]
| slane_eaghtyr_km2 = 2342
| rhenk_eaghtyr = [[Rolley coondaeghyn Nerin rere eaghtyr|14oo]]
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
| ashchur_utc = +00:00
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +01:00
|latd = 53 |latm = 40 |latNS = N
|longd = 06 |longm = 40 |longEW = W
| blank_name_sec1 = Coad
| blank_info_sec1 = MH
| sorçh_coad_postagh =
| coad_postagh =
| coad_ardjynagh =
| ynnyd-eggey = [http://www.meath.ie/ www.meath.ie]
| fo-noteyn =
}}
Ta '''Coontae yn Vee''', ny '''yn Vee''' dy h-aashagh ({{lang-ga|Contae na Mí}} ny {{lang|ga|''an Mhí''}}, {{lang-en|County Meath}}) ny choontae ayns [[Queiggey Lion]], [[Pobblaght Nerin|Nerin]]. Ta ennym y çhenn-reeriaght - [[Reeriaght y Vee]] - currit er y choontae jiu, faagail magh nagh vel 'sy choontae agh cooid jeh'n çhenn-reeriaght. Ta'n far-ennym "y Coontae Reeoil" currit er y choontae er oyr y çhennaghys echey myr soiag [[Ard-Reeaghyn Nerin]].<ref>{{cite web | title = Meath - a rich and royal land | url = http://www.meath.ie/Tourism/Heritage/ | accessdate = 21 May 2010 | author = Meath County Council | archivedate = 10 June 2010 | archiveurl = https://web.archive.org/web/20100610202040/http://www.meath.ie/Tourism/Heritage/ }}</ref><ref>{{cite web | title = County Meath - Newgrange, Slane Castle and the Book of Kells | url = http://www.countymeath.com/ | accessdate = 21 May 2010 | author = countymeath.com | archivedate = 9 March 2010 | archiveurl = https://web.archive.org/web/20100309043357/http://www.countymeath.com/ }}</ref><ref>{{cite book |last1= Rowan Kelleher |first1= Suzanne |title= Frommer's Ireland from $80 a Day |accessdate= 21 May 2010 | edition = 20th |year= 2004 |publisher= Wiley Publishing, Inc |location= Hoboken, New Jersey, SUA |isbn= 0-7645-4217-6 |page= 204 }}</ref> Rere coontey-pobble y vlein 2006 va 162,831 deiney cummal 'sy choontae.<ref>{{Cite web |title=Census 2006 - Population of each province, county and city |url=http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 |accessdate=2010-08-11 |archivedate=2011-04-17 |archiveurl=https://web.archive.org/web/20110417182520/http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 }}</ref> T'eh ny 14oo coontae smoo rere eaghtyr mastey yn 32 choontae ayns Nerin, as ny 13oo coontae smoo rere earroo yn phobble.<ref>{{cite book| first=Eoghan| last=Corry| title=The GAA Book of Lists| publisher=Hodder Headline Ireland| year=2005| id= | pages=186–191}}</ref> T'eh ny nah choontae smoo ayns Queiggey Lion rere eaghtyr as ny 3oo coontae smoo rere earroo yn phobble. She [[yn Ooive]] y balley coontae, raad dy vel y halley coontae as gurneilys ynnydagh y choontae soit. Ta [[Baile Átha Troim]] ny aa-valley coontae, as ta scansh shendeeagh foast ayn myrane lesh y whaiyl cheayrtagh. Ta'n daa ard [[Gaeltacht]] ayns Queiggey Lion nyn soie 'sy choontae - [[Ráth Cairn]] as [[Baile Ghib]].
== Shennaghys ==
[[Coadan:Newgrange.JPG|200px|left|thumb|[[Sí an Bhrú]] - Y tomman limmer shinney as smoo scanshoil ayns Nerin.]]
Ta shennaghys y Vee unnane as shennaghys Nerin, as ta'n coontae berçhal er çheu chummaltys deiney leah. Haink ny chied chummaltee gys y choontae ny smoo na 8,000 bleeantyn er-dy-henney.<ref>{{cite web |url=http://www.theyellowhouse.ie/historic.html |title=Historic Meath |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2010-03-11 |archiveurl=https://web.archive.org/web/20100311211047/http://www.theyellowhouse.ie/historic.html }}</ref> Va'n coontae ny lhie ayns çheshvean Nerin roie-hendeeagh lesh ny shenn-raaidyn as ad goulraghey magh er feie Nerin voish. Veih'n eash shen derrey çheet y Chreestiaght va ram tommanyn limmer as giat troggit lheid as ad ayns [[Sí an Bhrú]], [[Cnobha]], as [[Dubhadh]] ayns [[Brú na Bóinne]], as [[Loch Craobh]] er [[Sliabh na Caillí]] ayns sheear hwoaie yn choontae. 'Sy vlein 433 BNJ, chur [[Noo Perick]] y Chreestiaght lesh gys [[Teamhair na Rí]], preeu-ynnyd Ree yn Vee as ny h-Ard-Reeaghyn Yernagh, as veih'n voayl shen ren y Chreestiaght sheeyney magh er feie ny çheerey.<ref>{{cite web |url=http://www.newadvent.org/cathen/11554a.htm |title=St. Patrick |last=Doorley |first=Mary |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
Va Reeriaght y Vee hene currit er bun mygeayrt y chied eash BNJ liorish [[Tuathal Teachtmhar]] rere tradishoon. Foddee dy vel ad ny reeaghyn leah er y reeriaght na ad jeh ny Uí Enechghlaiss. Va'n clein shen jeh sluight ny [[Fir Bolg]], as va aarheynn y chlein shen, ny [[Fir Domnann]], ry-akin er caslys çheerey Nerin va jeant ec [[Ptolemy]] lesh y phreeu-valley ec Rheba.<ref>{{cite web |url=http://www.rootsweb.com/~irlkik/ihm/ire150.htm |title=Ireland's History in Maps: Ptolemy's Ireland |publisher=rootsweb.com |accessdate=17 Mart, 2009 |first=Dennis |last=Walsh |language=Baarle}} </ref> Veih ny 490yn v'ad scughit ass y Vee harrish [[Sleityn Cheeill Mantan]] liorish ny [[Uí Néill]], as ren [[Clann Cholmáin]] cummaltys er y reeriaght. Ass y chlein shen er haink [[Reeaghyn y Vee]], as va cooid vie jeu nyn Ard-Reeaghyn Yernagh. Haink jerrey lesh y reeriaght 'sy vlein 1172 nar v'ee giootit dys [[Hugh de Lacy, Çhiarn y Vee|Hugh de Lacy]] liorish [[Inry II Hostyn|Ree Inry II Hostyn]].<ref>{{cite web |url=http://killyonguesthouse.ie/historic_meath.html |title=Historic Meath: Trim Castle |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2008-10-02 |archiveurl=https://web.archive.org/web/20081002021114/http://www.killyonguesthouse.ie/historic_meath.html }}</ref> Va [[Baile Átha Troim]] reiht ec de Lacy myr y preeu-valley echey as va [[Caisleán Bhaile Átha Troim|cashtal]] troggit echey er brooinyn [[an Bhóinn]].
Va sheer jeant ass y Vee liorish Parlamaid y Vlein 1297,<ref name="roche">Desmond Roche, ''Local Government in Ireland'', Divlyn, 1982</ref> as ghow ee stiagh coondaeghyn noa-emshyragh y Vee, yn Eearvee, yn Lhongfort, as stugganyn jeh'n Chavan, Vuinaghan, Lhoo, Cheeill Darey, 'ine Goal, as Uíbh Fhailí. 'Sy vlein 1543 va Coontae yn Eearvee rheynnit magh ass y Vee liorish y reiltys Ealisaidagh as daaeed bleeaney ny yei shen va'n Lhongfort rheynnit magh ass yn Eearvee hene.
Ta'n Vee ny soiaghey jeh taghyrtyn mooarey ayns shennaghys noa-emshyragh Nerin, as v'eh 'sy Vee er haghyr [[Cah an Bhóinn]] nar va'n ree Catoleagh [[Jamys II Hostyn]] currit fo haart liorish y ree Protestoonagh [[Illiam III Hostyn]] 'sy vlein 1690 eddyr [[Baile Shláine]] as [[Droghad Aah]]. Myr eiyrtys va quing Phrotestoonagh currit er Nerin. Reesht 'sy vlein 1798, nar dirree irreyderyn Yernagh magh noi'n Chrooin Ghoaldagh, haghyr irree magh 'sy choontae, agh v'ad currit fo haart liorish sidooryn Goaldagh. Ren yn irree magh shen niartaghey er smaght Goaldagh harrish Nerin er oyr y traartys ec ny h-irreyderyn magh, agh cha row ny Yernee jargal ve booiagh lesh shen. Ayns ny 1840yn ren [[Daniel O'Connell]] eiyrtys pooar y chur reesht da ny Catolee ayns Nerin er keim cheddin lesh ny Protestoonee. V'eh ayns [[Teamhair na Rí]] er haghyr y "chruinnaght vooar" echey as ny smoo na millioon feallee ayn 'sy vlein 1843.
Lurg seyrsnys Nerin ayns 1922, hie Coontae yn Vee dy ve ny chrouw-choontae da'n phreeu-valley noa, [[Divlyn]], raad dy row y reiltys ny hoie. Daase earroo yn phobble ayns baljyn va cruinnaghey yn preeu-valley. Ayns ny 1990yn as ny 2000yn leah, myr v'ayns y çheer er feie, haghyr lhiasaghey as bishaghey mooar ayns tarmaynys ny çheerey, as yn ennym "y Çheegyr Celtiagh" currit er y lhing shen.
== Çheer-oaylleeaght ==
[[Coadan:Valley of the river Boyne.jpg|250px|right|thumb|Glion ny Bóinne veih Brú na Bóinne]]
Ta Coontae yn Vee ny lhie ayns twoaie [[Queiggey Lion|Lion]] er coose shiar [[Nerin]]. T'eh caglit liorish [[Mooir Vannin]] da'n shiar as y coose echey 10.4 km er lhiurid. T'eh çhemmit liorish [[Coontae Ghivlyn]] da'n shiar as y shiar yiass, liorish [[Coontae Cheeill Darey]] da'n jiass, liorish [[Coontae Uíbh Fhailí]] da'n sheear yiass, liorish [[Coontae yn Eearvee]] da'n sheear, liorish [[Coontae yn Chavan]] da'n sheear hwoaie, liorish [[Coontae Vuinaghan]] da'n twoaie, as liorish [[Coontae Lhoo]] da'n shiar hwoaie. She thalloo rea yn chooid smoo jeh'n choontae agh ta cruink injil ry-gheddyn ayns sheear hwoaie yn choontae as 'sy twoaie. Ta ram awinyn 'sy choontae chammah as ad teaumey ny loghyn 'syn Eearvee, 'sy Chavan, as ayns Muinaghan, ny teaumey ny curree ayns Uíbh Fhailí as Keeill Darey. T'ad ny h-awinyn smoo scanshoil 'sy choontae na [[an Bhóinn]], [[An Abhainn Dubh, Coontae yn Vee|an Abhainn Dubh]], [[an Ainí]], [[an Eithne]], [[an Ailbhine]], [[an Ifearnóg]], [[an Tulcha]], [[Abhainn Átha Buí]] as [[An Abhainn Rua, Coontae yn Vee|an Abhainn Rua]]. Ta'n Bhóinn hene nane jeh ny h-awinyn smoo scanshoil ayns Nerin er çheu shennaghys as y feayn-skeealeydaght Yernagh, as t'ee roie trooid çheshvean y choontae trooid [[Baile Átha Troim]] as balley [[yn Ooive]].
=== Baljyn ===
* [[Baile Átha Troim]]
* [[Ceanannas, Coontae yn Vee|Ceanannas]]
* [[Yn Ooive]]
=== Baljyn beggey ===
* [[Baile an Bheileogaigh]], [[Baile an Bhiataigh]], [[Baile an Bhóthair, Coontae yn Vee|Baile an Bhóthair]], [[Baile Átha Buí]], [[Baile Ghib]], [[Baile Íomhair]], [[Baile Iúiliáin]], [[Baile Mhic Gormáin]], [[Baile Roibín, Coontae yn Vee|Baile Roibín]], [[Baile Shláine]], [[Baile Uí Mhornáin]], [[Baile Uilcín]], [[Beigthigh]], [[An Bóthar Buí, Coontae yn Vee|An Bóthar Buí]], [[An Bóthar Mín]], [[Buaile na Bréachmhaí]]
* [[Cill an Chairn]], [[Cill Dealga]], [[Cill Dhéagláin]], [[Cill Mheasáin]], [[Cluain Aodha]], [[Cluain Ioraird]], [[Cnoc an Línsigh]]
* [[Damhliag]], [[Domhnach Phádraig]], [[Droichead Chearbhalláin]], [[Dún Búinne]], [[Dún Doire]], [[Dún Samhnaí]], [[Dún Seachlainn]]
* [[An Inse, Coontae yn Vee|An Inse]]
* [[Maigh Dearmhaí]], [[Maigh Muirí]], [[Maigh nEalta]]
* [[An Obair]]
* [[An Scrín, Coontae yn Vee|An Scrín]], [[An Seanchaisleán]]
* [[Teamhair]]
* [[Ráth Cairn]], [[Ráth Moliain]], [[Ráth Tó]]
== Deyn-oaylleeaght ==
Earroo yn phobble rere [[coontey-pobble]] ayns Coontae yn Vee veih'n vlein 1861:
[[Coadan:Population of County Meath (graph).PNG|right|thumb|300px|Earroo pobble Choontae ny Mee veih 1861 derrey 2002.]]
* 1861: 110,373
* 1871: 95,558
* 1881: 87,469
* 1891: 76,987
* 1901: 67,497
* 1911: 65,091
* 1926: 62,969
* 1936: 61,405
* 1946: 66,232
* 1961: 65,122
* 1971: 71,729
* 1981: 95,419
* 1991: 105,370
* 1996: 109,732
* 2002: 134,005
* 2006: 162,831
* 2011: 184,135
== Politickaght ==
Va tree ass ny queig ynnydyn ayns co-heiyderys y Vee cosnit ec [[Fianna Fáil]] veih'n vlein 1987. 'Sy traa cheddin va daa ynnyd cosnit ec [[Fine Gael]] faagail magh ny bleeaney 1992 nar va un ynnyd caillt da [[Partee yn Lught Obbyr (Nerin)|Partee yn Lught Obbyr]], agh va'n ynnyd shen aachosnit ec Fine Gael reesht 'sy vlein 1997. Myr eiyrtys er earroo pobble y choontae ta shey ynnydyn ec Coontae yn Vee nish, as t'eh rheynnit magh ayns daa cho-heiyderys nish: Y Vee Hiar as y Vee Heear (as eh goaill stiagh stugganyn jeh Coontae yn Eearvee).
Va fo-reihys 'sy vlein 2005 cosnit ec McEntee lurg irree ass oik y shenn-[[Taoiseach]], [[John Bruton]] (Fine Gael) as er y reihys echey myr Ambasseyder [[yn Unnaneys Oarpagh|Oarpagh]] da [[ny Steatyn Unnaneysit]].
Va Coonseil Choontae yn Vee fo stiurey Fianna Fáil veih 1985 derrey 1991 as reesht veih 1999 derrey 2004. Haink jerrey lesh y chioneys shen reesht lurg [[Reihyssyn ynnydagh Nerin, 2009|ny reihyssyn ynnydagh ayns 2009]]. She cummal roie ny coonseil jiu na:<ref>{{cite web |url=http://electionsireland.org/results/local/index.cfm |title=Local Elections |date=27 Mean Souree, 2009 |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
{| class="wikitable" style="text-align:right; padding-left:1em"
!align="left"|Blein
!style="background-color: {{Fianna Fáil/meta/daah}}; width: 3px;" |
|[[Fianna Fáil|FF]]
!style="background-color: {{Fine Gael/meta/daah}}; width: 3px;" |
|[[Fine Gael|FG]]
!style="background-color: {{Partee yn Lught Obbyr (Nerin)/meta/daah}}; width: 3px;" |
|[[Partee yn Lught Obbyr (Nerin)|LO]]
!style="background-color: {{Yn Partee Glass (Nerin)/meta/daah}}; width: 3px;" |
|[[Yn Partee Glass (Nerin)|PG]]
!style="background-color: {{Sinn Féin/meta/daah}}; width: 3px;" |
|[[Sinn Féin|SF]]
!style="padding-left:2em"|Elley
|-
|align="left"|2014
|colspan="2"|10
|colspan="2"|13
|colspan="2"|0
|colspan="2"|0
|colspan="2"|8
|colspan="2"|9
|- bgcolor="F3F3FF"
|align="left"|2009
|colspan="2"|8
|colspan="2"|11
|colspan="2"|4
|colspan="2"|0
|colspan="2"|1
|colspan="2"|5
|- bgcolor="F3F3FF"
|align="left"|2004
|colspan="2"|12
|colspan="2"|9
|colspan="2"|0
|colspan="2"|1
|colspan="2"|2
|colspan="2"|5
|-
|align="left"|1999
|colspan="2"|14
|colspan="2"|11
|colspan="2"|0
|colspan="2"|0
|colspan="2"|1
|colspan="2"|3
|}
== Spoyrt ==
She [[bluckaneyrys Gaelgagh]] y [[spoyrt]] smoo cadjin ayns Coontae yn Vee, as [[Craobh Shinsear Peile na hÉireann]] ("Crouw Hinsharagh Bluckaneyrys Nerin") cosnit ec [[CLG na Mí|fwirran bluckaneyrys]] y choontae 7 keayrtyn: ayns ny bleeantyn 1949, 1954, 1967, 1987, 1988, 1996, as 1999. Myrane lesh y vluckaneyrys, ta'n [[immanaght]], y [[ruggyr]] as [[soccer]] cloiet 'sy choontae. She [[Páirc Tailteann]] 'syn Ooive y staid smoo 'sy choontae as y staid shen ymmydit son bluckaneyrys Gaelgagh son y chooid smoo.
== Arraghey ==
=== Raaidyn ===
* She yn [[N3 (raad Nerin)|N3]] preeu-raad y choontae as eh roie veih [[Divlyn]], trooid [[yn Ooive]] as [[yn Cavan|y Cavan]], dys [[Béal Átha Seanaidh]].
* Bayr gleashtanagh yn [[N4 (raad Nerin)|M4]] ta ny lhie ayns Coontae Cheeill Darey as Coontae ny Mee
* Bayr gleashtanagh yn [[N1 (raad Nerin)|M1]] ta goll veih Divlyn dys [[Beeal Feirshtey]]
* Ta'n [[N2 (raad Nerin)|N2]] shaghney yn nah valley smoo 'sy choontae, [[Cill Dhéagláin]]. Ta'n raad shoh ny vollagh dooblit agh ta cagliagh bieauid 120 km/h er, cagliagh bieauid myr ta ry-gheddyn er bayryn gleashtanagh dy cadjin.
=== Raaidyn yiarn ===
* Ta traen troailt trick jannoo shirveish er baljyn beggey slystagh ny Mee as eh kiangley ad rish Divlyn
* Ta crouw-linney veih raad yiarn Divlyn-Beeal Feirshtey ry hoi traaght chooid jannoo kiangley eddyr yn Ooive rish Droghad Aah. Ta'n linney jeeragh veih'n Ooive dys Divlyn doont ec y traa t'ayn agh ta plan ayn y linney shen y aa-osley er linnaghyn polasee traghtee yn reiltys roie.
* Ta shirveish hroailt jannoo shirveishyn er [[An Bóthar Buí, Coontae yn Vee|an Bóthar Buí]]
== Imraaghyn ==
{{rolleyimraaghyn}}
== Jeeagh er neesht ==
* [[Coondaeghyn Nerin]]
== Kianglaghyn mooie ==
* [http://www.meath.ie/ Coonseil Choontae yn Vee] {{en jalloo}}
* [https://web.archive.org/web/20070208074056/http://www.meathtourism.ie/ Turrysaght yn Vee] {{en jalloo}}
* [http://www.cso.ie/census/ Ynnyd-eggey y CSO] {{en jalloo}}
{{Nerin - Coondaeghyn}}
{{Coontae ny Mee}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Vee}}
[[Ronney:Coontae yn Vee| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
nz87sg1fpn0oquqe4otgim0673o5mld
395338
395329
2026-10-26T15:19:35Z
MacTire02
219
++
395338
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = Choontae yn Vee
| ennym = Coontae yn Vee
| ennym_dooghyssagh = {{lang|ga|Contae na Mí|italics=no}} {{small|([[Yernish]])}}<br />{{lang|en|County Meath|italics=no}} {{small|([[Baarle]])}}
| sorçh_balley = [[Coondaeghyn Nerin|Coontae]]
| jarroo-raa = {{lang|ga|Tré Neart le Chéile}}
| enmys_bunneeaght = [[Reeriaght y Vee]]
| date_bunneeaght = [[Nerin roie-henndeeagh|Shenndiaght]]
| enmys_bunneeaght1 = [[Çhiarnyaght y Vee]]
| date_bunneeaght1 = 1172
| enmys_bunneeaght3 = Sheerit
| date_bunneeaght3 = 1297
| enmys_bunneeaght4 = [[Slattys Choondaeghyn y Vee as yn Eearvee, 1543|Rheynn y choontae]]
| date_bunneeaght4 = 1542
| çhengey_jarroo-raa = Yernish
| çhengaghyn = none
| çhyndaa_jarroo-raa = Trooid Niart ry Cheilley
| jalloo_armys = Meath_coa.svg
| jalloo_brattagh = none
| jalloo_caslys-çheerey = Island of Ireland location map Meath.svg
| sorçh_reiltys = Coonseil Coontae
| colught_reirey = [[Coonseil Choontae yn Vee]]
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
| ashchur_utc = +00:00
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +01:00
}}
Ta '''Coontae yn Vee''', ny '''yn Vee''' dy h-aashagh ({{lang-ga|Contae na Mí}} ny {{lang|ga|''an Mhí''}}, {{lang-en|County Meath}}) ny choontae ayns [[Queiggey Lion]], [[Pobblaght Nerin|Nerin]]. Ta ennym y çhenn-reeriaght - [[Reeriaght y Vee]] - currit er y choontae jiu, faagail magh nagh vel 'sy choontae agh cooid jeh'n çhenn-reeriaght. Ta'n far-ennym "y Coontae Reeoil" currit er y choontae er oyr y çhennaghys echey myr soiag [[Ard-Reeaghyn Nerin]].<ref>{{cite web | title = Meath - a rich and royal land | url = http://www.meath.ie/Tourism/Heritage/ | accessdate = 21 May 2010 | author = Meath County Council | archivedate = 10 June 2010 | archiveurl = https://web.archive.org/web/20100610202040/http://www.meath.ie/Tourism/Heritage/ }}</ref><ref>{{cite web | title = County Meath - Newgrange, Slane Castle and the Book of Kells | url = http://www.countymeath.com/ | accessdate = 21 May 2010 | author = countymeath.com | archivedate = 9 March 2010 | archiveurl = https://web.archive.org/web/20100309043357/http://www.countymeath.com/ }}</ref><ref>{{cite book |last1= Rowan Kelleher |first1= Suzanne |title= Frommer's Ireland from $80 a Day |accessdate= 21 May 2010 | edition = 20th |year= 2004 |publisher= Wiley Publishing, Inc |location= Hoboken, New Jersey, SUA |isbn= 0-7645-4217-6 |page= 204 }}</ref> Rere coontey-pobble y vlein 2006 va 162,831 deiney cummal 'sy choontae.<ref>{{Cite web |title=Census 2006 - Population of each province, county and city |url=http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 |accessdate=2010-08-11 |archivedate=2011-04-17 |archiveurl=https://web.archive.org/web/20110417182520/http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 }}</ref> T'eh ny 14oo coontae smoo rere eaghtyr mastey yn 32 choontae ayns Nerin, as ny 13oo coontae smoo rere earroo yn phobble.<ref>{{cite book| first=Eoghan| last=Corry| title=The GAA Book of Lists| publisher=Hodder Headline Ireland| year=2005| id= | pages=186–191}}</ref> T'eh ny nah choontae smoo ayns Queiggey Lion rere eaghtyr as ny 3oo coontae smoo rere earroo yn phobble. She [[yn Ooive]] y balley coontae, raad dy vel y halley coontae as gurneilys ynnydagh y choontae soit. Ta [[Baile Átha Troim]] ny aa-valley coontae, as ta scansh shendeeagh foast ayn myrane lesh y whaiyl cheayrtagh. Ta'n daa ard [[Gaeltacht]] ayns Queiggey Lion nyn soie 'sy choontae - [[Ráth Cairn]] as [[Baile Ghib]].
== Shennaghys ==
[[Coadan:Newgrange.JPG|200px|left|thumb|[[Sí an Bhrú]] - Y tomman limmer shinney as smoo scanshoil ayns Nerin.]]
Ta shennaghys y Vee unnane as shennaghys Nerin, as ta'n coontae berçhal er çheu chummaltys deiney leah. Haink ny chied chummaltee gys y choontae ny smoo na 8,000 bleeantyn er-dy-henney.<ref>{{cite web |url=http://www.theyellowhouse.ie/historic.html |title=Historic Meath |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2010-03-11 |archiveurl=https://web.archive.org/web/20100311211047/http://www.theyellowhouse.ie/historic.html }}</ref> Va'n coontae ny lhie ayns çheshvean Nerin roie-hendeeagh lesh ny shenn-raaidyn as ad goulraghey magh er feie Nerin voish. Veih'n eash shen derrey çheet y Chreestiaght va ram tommanyn limmer as giat troggit lheid as ad ayns [[Sí an Bhrú]], [[Cnobha]], as [[Dubhadh]] ayns [[Brú na Bóinne]], as [[Loch Craobh]] er [[Sliabh na Caillí]] ayns sheear hwoaie yn choontae. 'Sy vlein 433 BNJ, chur [[Noo Perick]] y Chreestiaght lesh gys [[Teamhair na Rí]], preeu-ynnyd Ree yn Vee as ny h-Ard-Reeaghyn Yernagh, as veih'n voayl shen ren y Chreestiaght sheeyney magh er feie ny çheerey.<ref>{{cite web |url=http://www.newadvent.org/cathen/11554a.htm |title=St. Patrick |last=Doorley |first=Mary |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
Va Reeriaght y Vee hene currit er bun mygeayrt y chied eash BNJ liorish [[Tuathal Teachtmhar]] rere tradishoon. Foddee dy vel ad ny reeaghyn leah er y reeriaght na ad jeh ny Uí Enechghlaiss. Va'n clein shen jeh sluight ny [[Fir Bolg]], as va aarheynn y chlein shen, ny [[Fir Domnann]], ry-akin er caslys çheerey Nerin va jeant ec [[Ptolemy]] lesh y phreeu-valley ec Rheba.<ref>{{cite web |url=http://www.rootsweb.com/~irlkik/ihm/ire150.htm |title=Ireland's History in Maps: Ptolemy's Ireland |publisher=rootsweb.com |accessdate=17 Mart, 2009 |first=Dennis |last=Walsh |language=Baarle}} </ref> Veih ny 490yn v'ad scughit ass y Vee harrish [[Sleityn Cheeill Mantan]] liorish ny [[Uí Néill]], as ren [[Clann Cholmáin]] cummaltys er y reeriaght. Ass y chlein shen er haink [[Reeaghyn y Vee]], as va cooid vie jeu nyn Ard-Reeaghyn Yernagh. Haink jerrey lesh y reeriaght 'sy vlein 1172 nar v'ee giootit dys [[Hugh de Lacy, Çhiarn y Vee|Hugh de Lacy]] liorish [[Inry II Hostyn|Ree Inry II Hostyn]].<ref>{{cite web |url=http://killyonguesthouse.ie/historic_meath.html |title=Historic Meath: Trim Castle |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2008-10-02 |archiveurl=https://web.archive.org/web/20081002021114/http://www.killyonguesthouse.ie/historic_meath.html }}</ref> Va [[Baile Átha Troim]] reiht ec de Lacy myr y preeu-valley echey as va [[Caisleán Bhaile Átha Troim|cashtal]] troggit echey er brooinyn [[an Bhóinn]].
Va sheer jeant ass y Vee liorish Parlamaid y Vlein 1297,<ref name="roche">Desmond Roche, ''Local Government in Ireland'', Divlyn, 1982</ref> as ghow ee stiagh coondaeghyn noa-emshyragh y Vee, yn Eearvee, yn Lhongfort, as stugganyn jeh'n Chavan, Vuinaghan, Lhoo, Cheeill Darey, 'ine Goal, as Uíbh Fhailí. 'Sy vlein 1543 va Coontae yn Eearvee rheynnit magh ass y Vee liorish y reiltys Ealisaidagh as daaeed bleeaney ny yei shen va'n Lhongfort rheynnit magh ass yn Eearvee hene.
Ta'n Vee ny soiaghey jeh taghyrtyn mooarey ayns shennaghys noa-emshyragh Nerin, as v'eh 'sy Vee er haghyr [[Cah an Bhóinn]] nar va'n ree Catoleagh [[Jamys II Hostyn]] currit fo haart liorish y ree Protestoonagh [[Illiam III Hostyn]] 'sy vlein 1690 eddyr [[Baile Shláine]] as [[Droghad Aah]]. Myr eiyrtys va quing Phrotestoonagh currit er Nerin. Reesht 'sy vlein 1798, nar dirree irreyderyn Yernagh magh noi'n Chrooin Ghoaldagh, haghyr irree magh 'sy choontae, agh v'ad currit fo haart liorish sidooryn Goaldagh. Ren yn irree magh shen niartaghey er smaght Goaldagh harrish Nerin er oyr y traartys ec ny h-irreyderyn magh, agh cha row ny Yernee jargal ve booiagh lesh shen. Ayns ny 1840yn ren [[Daniel O'Connell]] eiyrtys pooar y chur reesht da ny Catolee ayns Nerin er keim cheddin lesh ny Protestoonee. V'eh ayns [[Teamhair na Rí]] er haghyr y "chruinnaght vooar" echey as ny smoo na millioon feallee ayn 'sy vlein 1843.
Lurg seyrsnys Nerin ayns 1922, hie Coontae yn Vee dy ve ny chrouw-choontae da'n phreeu-valley noa, [[Divlyn]], raad dy row y reiltys ny hoie. Daase earroo yn phobble ayns baljyn va cruinnaghey yn preeu-valley. Ayns ny 1990yn as ny 2000yn leah, myr v'ayns y çheer er feie, haghyr lhiasaghey as bishaghey mooar ayns tarmaynys ny çheerey, as yn ennym "y Çheegyr Celtiagh" currit er y lhing shen.
== Çheer-oaylleeaght ==
[[Coadan:Valley of the river Boyne.jpg|250px|right|thumb|Glion ny Bóinne veih Brú na Bóinne]]
Ta Coontae yn Vee ny lhie ayns twoaie [[Queiggey Lion|Lion]] er coose shiar [[Nerin]]. T'eh caglit liorish [[Mooir Vannin]] da'n shiar as y coose echey 10.4 km er lhiurid. T'eh çhemmit liorish [[Coontae Ghivlyn]] da'n shiar as y shiar yiass, liorish [[Coontae Cheeill Darey]] da'n jiass, liorish [[Coontae Uíbh Fhailí]] da'n sheear yiass, liorish [[Coontae yn Eearvee]] da'n sheear, liorish [[Coontae yn Chavan]] da'n sheear hwoaie, liorish [[Coontae Vuinaghan]] da'n twoaie, as liorish [[Coontae Lhoo]] da'n shiar hwoaie. She thalloo rea yn chooid smoo jeh'n choontae agh ta cruink injil ry-gheddyn ayns sheear hwoaie yn choontae as 'sy twoaie. Ta ram awinyn 'sy choontae chammah as ad teaumey ny loghyn 'syn Eearvee, 'sy Chavan, as ayns Muinaghan, ny teaumey ny curree ayns Uíbh Fhailí as Keeill Darey. T'ad ny h-awinyn smoo scanshoil 'sy choontae na [[an Bhóinn]], [[An Abhainn Dubh, Coontae yn Vee|an Abhainn Dubh]], [[an Ainí]], [[an Eithne]], [[an Ailbhine]], [[an Ifearnóg]], [[an Tulcha]], [[Abhainn Átha Buí]] as [[An Abhainn Rua, Coontae yn Vee|an Abhainn Rua]]. Ta'n Bhóinn hene nane jeh ny h-awinyn smoo scanshoil ayns Nerin er çheu shennaghys as y feayn-skeealeydaght Yernagh, as t'ee roie trooid çheshvean y choontae trooid [[Baile Átha Troim]] as balley [[yn Ooive]].
=== Baljyn ===
* [[Baile Átha Troim]]
* [[Ceanannas, Coontae yn Vee|Ceanannas]]
* [[Yn Ooive]]
=== Baljyn beggey ===
* [[Baile an Bheileogaigh]], [[Baile an Bhiataigh]], [[Baile an Bhóthair, Coontae yn Vee|Baile an Bhóthair]], [[Baile Átha Buí]], [[Baile Ghib]], [[Baile Íomhair]], [[Baile Iúiliáin]], [[Baile Mhic Gormáin]], [[Baile Roibín, Coontae yn Vee|Baile Roibín]], [[Baile Shláine]], [[Baile Uí Mhornáin]], [[Baile Uilcín]], [[Beigthigh]], [[An Bóthar Buí, Coontae yn Vee|An Bóthar Buí]], [[An Bóthar Mín]], [[Buaile na Bréachmhaí]]
* [[Cill an Chairn]], [[Cill Dealga]], [[Cill Dhéagláin]], [[Cill Mheasáin]], [[Cluain Aodha]], [[Cluain Ioraird]], [[Cnoc an Línsigh]]
* [[Damhliag]], [[Domhnach Phádraig]], [[Droichead Chearbhalláin]], [[Dún Búinne]], [[Dún Doire]], [[Dún Samhnaí]], [[Dún Seachlainn]]
* [[An Inse, Coontae yn Vee|An Inse]]
* [[Maigh Dearmhaí]], [[Maigh Muirí]], [[Maigh nEalta]]
* [[An Obair]]
* [[An Scrín, Coontae yn Vee|An Scrín]], [[An Seanchaisleán]]
* [[Teamhair]]
* [[Ráth Cairn]], [[Ráth Moliain]], [[Ráth Tó]]
== Deyn-oaylleeaght ==
Earroo yn phobble rere [[coontey-pobble]] ayns Coontae yn Vee veih'n vlein 1861:
[[Coadan:Population of County Meath (graph).PNG|right|thumb|300px|Earroo pobble Choontae ny Mee veih 1861 derrey 2002.]]
* 1861: 110,373
* 1871: 95,558
* 1881: 87,469
* 1891: 76,987
* 1901: 67,497
* 1911: 65,091
* 1926: 62,969
* 1936: 61,405
* 1946: 66,232
* 1961: 65,122
* 1971: 71,729
* 1981: 95,419
* 1991: 105,370
* 1996: 109,732
* 2002: 134,005
* 2006: 162,831
* 2011: 184,135
== Politickaght ==
Va tree ass ny queig ynnydyn ayns co-heiyderys y Vee cosnit ec [[Fianna Fáil]] veih'n vlein 1987. 'Sy traa cheddin va daa ynnyd cosnit ec [[Fine Gael]] faagail magh ny bleeaney 1992 nar va un ynnyd caillt da [[Partee yn Lught Obbyr (Nerin)|Partee yn Lught Obbyr]], agh va'n ynnyd shen aachosnit ec Fine Gael reesht 'sy vlein 1997. Myr eiyrtys er earroo pobble y choontae ta shey ynnydyn ec Coontae yn Vee nish, as t'eh rheynnit magh ayns daa cho-heiyderys nish: Y Vee Hiar as y Vee Heear (as eh goaill stiagh stugganyn jeh Coontae yn Eearvee).
Va fo-reihys 'sy vlein 2005 cosnit ec McEntee lurg irree ass oik y shenn-[[Taoiseach]], [[John Bruton]] (Fine Gael) as er y reihys echey myr Ambasseyder [[yn Unnaneys Oarpagh|Oarpagh]] da [[ny Steatyn Unnaneysit]].
Va Coonseil Choontae yn Vee fo stiurey Fianna Fáil veih 1985 derrey 1991 as reesht veih 1999 derrey 2004. Haink jerrey lesh y chioneys shen reesht lurg [[Reihyssyn ynnydagh Nerin, 2009|ny reihyssyn ynnydagh ayns 2009]]. She cummal roie ny coonseil jiu na:<ref>{{cite web |url=http://electionsireland.org/results/local/index.cfm |title=Local Elections |date=27 Mean Souree, 2009 |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
{| class="wikitable" style="text-align:right; padding-left:1em"
!align="left"|Blein
!style="background-color: {{Fianna Fáil/meta/daah}}; width: 3px;" |
|[[Fianna Fáil|FF]]
!style="background-color: {{Fine Gael/meta/daah}}; width: 3px;" |
|[[Fine Gael|FG]]
!style="background-color: {{Partee yn Lught Obbyr (Nerin)/meta/daah}}; width: 3px;" |
|[[Partee yn Lught Obbyr (Nerin)|LO]]
!style="background-color: {{Yn Partee Glass (Nerin)/meta/daah}}; width: 3px;" |
|[[Yn Partee Glass (Nerin)|PG]]
!style="background-color: {{Sinn Féin/meta/daah}}; width: 3px;" |
|[[Sinn Féin|SF]]
!style="padding-left:2em"|Elley
|-
|align="left"|2014
|colspan="2"|10
|colspan="2"|13
|colspan="2"|0
|colspan="2"|0
|colspan="2"|8
|colspan="2"|9
|- bgcolor="F3F3FF"
|align="left"|2009
|colspan="2"|8
|colspan="2"|11
|colspan="2"|4
|colspan="2"|0
|colspan="2"|1
|colspan="2"|5
|- bgcolor="F3F3FF"
|align="left"|2004
|colspan="2"|12
|colspan="2"|9
|colspan="2"|0
|colspan="2"|1
|colspan="2"|2
|colspan="2"|5
|-
|align="left"|1999
|colspan="2"|14
|colspan="2"|11
|colspan="2"|0
|colspan="2"|0
|colspan="2"|1
|colspan="2"|3
|}
== Spoyrt ==
She [[bluckaneyrys Gaelgagh]] y [[spoyrt]] smoo cadjin ayns Coontae yn Vee, as [[Craobh Shinsear Peile na hÉireann]] ("Crouw Hinsharagh Bluckaneyrys Nerin") cosnit ec [[CLG na Mí|fwirran bluckaneyrys]] y choontae 7 keayrtyn: ayns ny bleeantyn 1949, 1954, 1967, 1987, 1988, 1996, as 1999. Myrane lesh y vluckaneyrys, ta'n [[immanaght]], y [[ruggyr]] as [[soccer]] cloiet 'sy choontae. She [[Páirc Tailteann]] 'syn Ooive y staid smoo 'sy choontae as y staid shen ymmydit son bluckaneyrys Gaelgagh son y chooid smoo.
== Arraghey ==
=== Raaidyn ===
* She yn [[N3 (raad Nerin)|N3]] preeu-raad y choontae as eh roie veih [[Divlyn]], trooid [[yn Ooive]] as [[yn Cavan|y Cavan]], dys [[Béal Átha Seanaidh]].
* Bayr gleashtanagh yn [[N4 (raad Nerin)|M4]] ta ny lhie ayns Coontae Cheeill Darey as Coontae ny Mee
* Bayr gleashtanagh yn [[N1 (raad Nerin)|M1]] ta goll veih Divlyn dys [[Beeal Feirshtey]]
* Ta'n [[N2 (raad Nerin)|N2]] shaghney yn nah valley smoo 'sy choontae, [[Cill Dhéagláin]]. Ta'n raad shoh ny vollagh dooblit agh ta cagliagh bieauid 120 km/h er, cagliagh bieauid myr ta ry-gheddyn er bayryn gleashtanagh dy cadjin.
=== Raaidyn yiarn ===
* Ta traen troailt trick jannoo shirveish er baljyn beggey slystagh ny Mee as eh kiangley ad rish Divlyn
* Ta crouw-linney veih raad yiarn Divlyn-Beeal Feirshtey ry hoi traaght chooid jannoo kiangley eddyr yn Ooive rish Droghad Aah. Ta'n linney jeeragh veih'n Ooive dys Divlyn doont ec y traa t'ayn agh ta plan ayn y linney shen y aa-osley er linnaghyn polasee traghtee yn reiltys roie.
* Ta shirveish hroailt jannoo shirveishyn er [[An Bóthar Buí, Coontae yn Vee|an Bóthar Buí]]
== Imraaghyn ==
{{rolleyimraaghyn}}
== Jeeagh er neesht ==
* [[Coondaeghyn Nerin]]
== Kianglaghyn mooie ==
* [http://www.meath.ie/ Coonseil Choontae yn Vee] {{en jalloo}}
* [https://web.archive.org/web/20070208074056/http://www.meathtourism.ie/ Turrysaght yn Vee] {{en jalloo}}
* [http://www.cso.ie/census/ Ynnyd-eggey y CSO] {{en jalloo}}
{{Nerin - Coondaeghyn}}
{{Coontae ny Mee}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Vee}}
[[Ronney:Coontae yn Vee| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
5ytdarg7kf5ilqdg76l5hy2cniqzkgk
395339
395338
2026-10-26T15:20:28Z
MacTire02
219
clowanyn kiartit
395339
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = Choontae yn Vee
| ennym = Coontae yn Vee
| ennym_dooghyssagh = {{lang|ga|Contae na Mí|italics=no}} {{small|([[Yernish]])}}<br />{{lang|en|County Meath|italics=no}} {{small|([[Baarle]])}}
| sorçh_balley = [[Coondaeghyn Nerin|Coontae]]
| jarroo-raa = {{lang|ga|Tré Neart le Chéile}}
| enmys_bunneeaght = [[Reeriaght y Vee]]
| date_bunneeaght = [[Nerin roie-henndeeagh|Shenndiaght]]
| enmys_bunneeaght1 = [[Çhiarnyaght y Vee]]
| date_bunneeaght1 = 1172
| enmys_bunneeaght3 = Sheerit
| date_bunneeaght3 = 1297
| enmys_bunneeaght4 = [[Slattys Choondaeghyn y Vee as yn Eearvee, 1543|Rheynn y choontae]]
| date_bunneeaght4 = 1542
| çhengey_jarroo-raa = Yernish
| çhengaghyn = none
| çhyndaa_jarroo-raa = Trooid Niart ry Cheilley
| jalloo_armys = Meath_coa.svg
| jalloo_brattagh = none
| jalloo_caslys-çheerey = Island of Ireland location map Meath.svg
| sorçh_reiltys = Coonseil Coontae
| colught_reirey = [[Coonseil Choontae yn Vee]]
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
| ashchur_utc = +00:00
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +01:00
}}
Ta '''Coontae yn Vee''', ny '''yn Vee''' dy h-aashagh ({{langx|ga|Contae na Mí}} ny {{lang|ga|an Mhí}}, {{langx|en|County Meath}}) ny choontae ayns [[Queiggey Lion]], [[Pobblaght Nerin|Nerin]]. Ta ennym y çhenn-reeriaght - [[Reeriaght y Vee]] - currit er y choontae jiu, faagail magh nagh vel 'sy choontae agh cooid jeh'n çhenn-reeriaght. Ta'n far-ennym "y Coontae Reeoil" currit er y choontae er oyr y çhennaghys echey myr soiag [[Ard-Reeaghyn Nerin]].<ref>{{cite web | title = Meath - a rich and royal land | url = http://www.meath.ie/Tourism/Heritage/ | accessdate = 21 May 2010 | author = Meath County Council | archivedate = 10 June 2010 | archiveurl = https://web.archive.org/web/20100610202040/http://www.meath.ie/Tourism/Heritage/ }}</ref><ref>{{cite web | title = County Meath - Newgrange, Slane Castle and the Book of Kells | url = http://www.countymeath.com/ | accessdate = 21 May 2010 | author = countymeath.com | archivedate = 9 March 2010 | archiveurl = https://web.archive.org/web/20100309043357/http://www.countymeath.com/ }}</ref><ref>{{cite book |last1= Rowan Kelleher |first1= Suzanne |title= Frommer's Ireland from $80 a Day |accessdate= 21 May 2010 | edition = 20th |year= 2004 |publisher= Wiley Publishing, Inc |location= Hoboken, New Jersey, SUA |isbn= 0-7645-4217-6 |page= 204 }}</ref> Rere coontey-pobble y vlein 2006 va 162,831 deiney cummal 'sy choontae.<ref>{{Cite web |title=Census 2006 - Population of each province, county and city |url=http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 |accessdate=2010-08-11 |archivedate=2011-04-17 |archiveurl=https://web.archive.org/web/20110417182520/http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 }}</ref> T'eh ny 14oo coontae smoo rere eaghtyr mastey yn 32 choontae ayns Nerin, as ny 13oo coontae smoo rere earroo yn phobble.<ref>{{cite book| first=Eoghan| last=Corry| title=The GAA Book of Lists| publisher=Hodder Headline Ireland| year=2005| id= | pages=186–191}}</ref> T'eh ny nah choontae smoo ayns Queiggey Lion rere eaghtyr as ny 3oo coontae smoo rere earroo yn phobble. She [[yn Ooive]] y balley coontae, raad dy vel y halley coontae as gurneilys ynnydagh y choontae soit. Ta [[Baile Átha Troim]] ny aa-valley coontae, as ta scansh shendeeagh foast ayn myrane lesh y whaiyl cheayrtagh. Ta'n daa ard [[Gaeltacht]] ayns Queiggey Lion nyn soie 'sy choontae - [[Ráth Cairn]] as [[Baile Ghib]].
== Shennaghys ==
[[Coadan:Newgrange.JPG|200px|left|thumb|[[Sí an Bhrú]] - Y tomman limmer shinney as smoo scanshoil ayns Nerin.]]
Ta shennaghys y Vee unnane as shennaghys Nerin, as ta'n coontae berçhal er çheu chummaltys deiney leah. Haink ny chied chummaltee gys y choontae ny smoo na 8,000 bleeantyn er-dy-henney.<ref>{{cite web |url=http://www.theyellowhouse.ie/historic.html |title=Historic Meath |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2010-03-11 |archiveurl=https://web.archive.org/web/20100311211047/http://www.theyellowhouse.ie/historic.html }}</ref> Va'n coontae ny lhie ayns çheshvean Nerin roie-hendeeagh lesh ny shenn-raaidyn as ad goulraghey magh er feie Nerin voish. Veih'n eash shen derrey çheet y Chreestiaght va ram tommanyn limmer as giat troggit lheid as ad ayns [[Sí an Bhrú]], [[Cnobha]], as [[Dubhadh]] ayns [[Brú na Bóinne]], as [[Loch Craobh]] er [[Sliabh na Caillí]] ayns sheear hwoaie yn choontae. 'Sy vlein 433 BNJ, chur [[Noo Perick]] y Chreestiaght lesh gys [[Teamhair na Rí]], preeu-ynnyd Ree yn Vee as ny h-Ard-Reeaghyn Yernagh, as veih'n voayl shen ren y Chreestiaght sheeyney magh er feie ny çheerey.<ref>{{cite web |url=http://www.newadvent.org/cathen/11554a.htm |title=St. Patrick |last=Doorley |first=Mary |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
Va Reeriaght y Vee hene currit er bun mygeayrt y chied eash BNJ liorish [[Tuathal Teachtmhar]] rere tradishoon. Foddee dy vel ad ny reeaghyn leah er y reeriaght na ad jeh ny Uí Enechghlaiss. Va'n clein shen jeh sluight ny [[Fir Bolg]], as va aarheynn y chlein shen, ny [[Fir Domnann]], ry-akin er caslys çheerey Nerin va jeant ec [[Ptolemy]] lesh y phreeu-valley ec Rheba.<ref>{{cite web |url=http://www.rootsweb.com/~irlkik/ihm/ire150.htm |title=Ireland's History in Maps: Ptolemy's Ireland |publisher=rootsweb.com |accessdate=17 Mart, 2009 |first=Dennis |last=Walsh |language=Baarle}} </ref> Veih ny 490yn v'ad scughit ass y Vee harrish [[Sleityn Cheeill Mantan]] liorish ny [[Uí Néill]], as ren [[Clann Cholmáin]] cummaltys er y reeriaght. Ass y chlein shen er haink [[Reeaghyn y Vee]], as va cooid vie jeu nyn Ard-Reeaghyn Yernagh. Haink jerrey lesh y reeriaght 'sy vlein 1172 nar v'ee giootit dys [[Hugh de Lacy, Çhiarn y Vee|Hugh de Lacy]] liorish [[Inry II Hostyn|Ree Inry II Hostyn]].<ref>{{cite web |url=http://killyonguesthouse.ie/historic_meath.html |title=Historic Meath: Trim Castle |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2008-10-02 |archiveurl=https://web.archive.org/web/20081002021114/http://www.killyonguesthouse.ie/historic_meath.html }}</ref> Va [[Baile Átha Troim]] reiht ec de Lacy myr y preeu-valley echey as va [[Caisleán Bhaile Átha Troim|cashtal]] troggit echey er brooinyn [[an Bhóinn]].
Va sheer jeant ass y Vee liorish Parlamaid y Vlein 1297,<ref name="roche">Desmond Roche, ''Local Government in Ireland'', Divlyn, 1982</ref> as ghow ee stiagh coondaeghyn noa-emshyragh y Vee, yn Eearvee, yn Lhongfort, as stugganyn jeh'n Chavan, Vuinaghan, Lhoo, Cheeill Darey, 'ine Goal, as Uíbh Fhailí. 'Sy vlein 1543 va Coontae yn Eearvee rheynnit magh ass y Vee liorish y reiltys Ealisaidagh as daaeed bleeaney ny yei shen va'n Lhongfort rheynnit magh ass yn Eearvee hene.
Ta'n Vee ny soiaghey jeh taghyrtyn mooarey ayns shennaghys noa-emshyragh Nerin, as v'eh 'sy Vee er haghyr [[Cah an Bhóinn]] nar va'n ree Catoleagh [[Jamys II Hostyn]] currit fo haart liorish y ree Protestoonagh [[Illiam III Hostyn]] 'sy vlein 1690 eddyr [[Baile Shláine]] as [[Droghad Aah]]. Myr eiyrtys va quing Phrotestoonagh currit er Nerin. Reesht 'sy vlein 1798, nar dirree irreyderyn Yernagh magh noi'n Chrooin Ghoaldagh, haghyr irree magh 'sy choontae, agh v'ad currit fo haart liorish sidooryn Goaldagh. Ren yn irree magh shen niartaghey er smaght Goaldagh harrish Nerin er oyr y traartys ec ny h-irreyderyn magh, agh cha row ny Yernee jargal ve booiagh lesh shen. Ayns ny 1840yn ren [[Daniel O'Connell]] eiyrtys pooar y chur reesht da ny Catolee ayns Nerin er keim cheddin lesh ny Protestoonee. V'eh ayns [[Teamhair na Rí]] er haghyr y "chruinnaght vooar" echey as ny smoo na millioon feallee ayn 'sy vlein 1843.
Lurg seyrsnys Nerin ayns 1922, hie Coontae yn Vee dy ve ny chrouw-choontae da'n phreeu-valley noa, [[Divlyn]], raad dy row y reiltys ny hoie. Daase earroo yn phobble ayns baljyn va cruinnaghey yn preeu-valley. Ayns ny 1990yn as ny 2000yn leah, myr v'ayns y çheer er feie, haghyr lhiasaghey as bishaghey mooar ayns tarmaynys ny çheerey, as yn ennym "y Çheegyr Celtiagh" currit er y lhing shen.
== Çheer-oaylleeaght ==
[[Coadan:Valley of the river Boyne.jpg|250px|right|thumb|Glion ny Bóinne veih Brú na Bóinne]]
Ta Coontae yn Vee ny lhie ayns twoaie [[Queiggey Lion|Lion]] er coose shiar [[Nerin]]. T'eh caglit liorish [[Mooir Vannin]] da'n shiar as y coose echey 10.4 km er lhiurid. T'eh çhemmit liorish [[Coontae Ghivlyn]] da'n shiar as y shiar yiass, liorish [[Coontae Cheeill Darey]] da'n jiass, liorish [[Coontae Uíbh Fhailí]] da'n sheear yiass, liorish [[Coontae yn Eearvee]] da'n sheear, liorish [[Coontae yn Chavan]] da'n sheear hwoaie, liorish [[Coontae Vuinaghan]] da'n twoaie, as liorish [[Coontae Lhoo]] da'n shiar hwoaie. She thalloo rea yn chooid smoo jeh'n choontae agh ta cruink injil ry-gheddyn ayns sheear hwoaie yn choontae as 'sy twoaie. Ta ram awinyn 'sy choontae chammah as ad teaumey ny loghyn 'syn Eearvee, 'sy Chavan, as ayns Muinaghan, ny teaumey ny curree ayns Uíbh Fhailí as Keeill Darey. T'ad ny h-awinyn smoo scanshoil 'sy choontae na [[an Bhóinn]], [[An Abhainn Dubh, Coontae yn Vee|an Abhainn Dubh]], [[an Ainí]], [[an Eithne]], [[an Ailbhine]], [[an Ifearnóg]], [[an Tulcha]], [[Abhainn Átha Buí]] as [[An Abhainn Rua, Coontae yn Vee|an Abhainn Rua]]. Ta'n Bhóinn hene nane jeh ny h-awinyn smoo scanshoil ayns Nerin er çheu shennaghys as y feayn-skeealeydaght Yernagh, as t'ee roie trooid çheshvean y choontae trooid [[Baile Átha Troim]] as balley [[yn Ooive]].
=== Baljyn ===
* [[Baile Átha Troim]]
* [[Ceanannas, Coontae yn Vee|Ceanannas]]
* [[Yn Ooive]]
=== Baljyn beggey ===
* [[Baile an Bheileogaigh]], [[Baile an Bhiataigh]], [[Baile an Bhóthair, Coontae yn Vee|Baile an Bhóthair]], [[Baile Átha Buí]], [[Baile Ghib]], [[Baile Íomhair]], [[Baile Iúiliáin]], [[Baile Mhic Gormáin]], [[Baile Roibín, Coontae yn Vee|Baile Roibín]], [[Baile Shláine]], [[Baile Uí Mhornáin]], [[Baile Uilcín]], [[Beigthigh]], [[An Bóthar Buí, Coontae yn Vee|An Bóthar Buí]], [[An Bóthar Mín]], [[Buaile na Bréachmhaí]]
* [[Cill an Chairn]], [[Cill Dealga]], [[Cill Dhéagláin]], [[Cill Mheasáin]], [[Cluain Aodha]], [[Cluain Ioraird]], [[Cnoc an Línsigh]]
* [[Damhliag]], [[Domhnach Phádraig]], [[Droichead Chearbhalláin]], [[Dún Búinne]], [[Dún Doire]], [[Dún Samhnaí]], [[Dún Seachlainn]]
* [[An Inse, Coontae yn Vee|An Inse]]
* [[Maigh Dearmhaí]], [[Maigh Muirí]], [[Maigh nEalta]]
* [[An Obair]]
* [[An Scrín, Coontae yn Vee|An Scrín]], [[An Seanchaisleán]]
* [[Teamhair]]
* [[Ráth Cairn]], [[Ráth Moliain]], [[Ráth Tó]]
== Deyn-oaylleeaght ==
Earroo yn phobble rere [[coontey-pobble]] ayns Coontae yn Vee veih'n vlein 1861:
[[Coadan:Population of County Meath (graph).PNG|right|thumb|300px|Earroo pobble Choontae ny Mee veih 1861 derrey 2002.]]
* 1861: 110,373
* 1871: 95,558
* 1881: 87,469
* 1891: 76,987
* 1901: 67,497
* 1911: 65,091
* 1926: 62,969
* 1936: 61,405
* 1946: 66,232
* 1961: 65,122
* 1971: 71,729
* 1981: 95,419
* 1991: 105,370
* 1996: 109,732
* 2002: 134,005
* 2006: 162,831
* 2011: 184,135
== Politickaght ==
Va tree ass ny queig ynnydyn ayns co-heiyderys y Vee cosnit ec [[Fianna Fáil]] veih'n vlein 1987. 'Sy traa cheddin va daa ynnyd cosnit ec [[Fine Gael]] faagail magh ny bleeaney 1992 nar va un ynnyd caillt da [[Partee yn Lught Obbyr (Nerin)|Partee yn Lught Obbyr]], agh va'n ynnyd shen aachosnit ec Fine Gael reesht 'sy vlein 1997. Myr eiyrtys er earroo pobble y choontae ta shey ynnydyn ec Coontae yn Vee nish, as t'eh rheynnit magh ayns daa cho-heiyderys nish: Y Vee Hiar as y Vee Heear (as eh goaill stiagh stugganyn jeh Coontae yn Eearvee).
Va fo-reihys 'sy vlein 2005 cosnit ec McEntee lurg irree ass oik y shenn-[[Taoiseach]], [[John Bruton]] (Fine Gael) as er y reihys echey myr Ambasseyder [[yn Unnaneys Oarpagh|Oarpagh]] da [[ny Steatyn Unnaneysit]].
Va Coonseil Choontae yn Vee fo stiurey Fianna Fáil veih 1985 derrey 1991 as reesht veih 1999 derrey 2004. Haink jerrey lesh y chioneys shen reesht lurg [[Reihyssyn ynnydagh Nerin, 2009|ny reihyssyn ynnydagh ayns 2009]]. She cummal roie ny coonseil jiu na:<ref>{{cite web |url=http://electionsireland.org/results/local/index.cfm |title=Local Elections |date=27 Mean Souree, 2009 |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
{| class="wikitable" style="text-align:right; padding-left:1em"
!align="left"|Blein
!style="background-color: {{Fianna Fáil/meta/daah}}; width: 3px;" |
|[[Fianna Fáil|FF]]
!style="background-color: {{Fine Gael/meta/daah}}; width: 3px;" |
|[[Fine Gael|FG]]
!style="background-color: {{Partee yn Lught Obbyr (Nerin)/meta/daah}}; width: 3px;" |
|[[Partee yn Lught Obbyr (Nerin)|LO]]
!style="background-color: {{Yn Partee Glass (Nerin)/meta/daah}}; width: 3px;" |
|[[Yn Partee Glass (Nerin)|PG]]
!style="background-color: {{Sinn Féin/meta/daah}}; width: 3px;" |
|[[Sinn Féin|SF]]
!style="padding-left:2em"|Elley
|-
|align="left"|2014
|colspan="2"|10
|colspan="2"|13
|colspan="2"|0
|colspan="2"|0
|colspan="2"|8
|colspan="2"|9
|- bgcolor="F3F3FF"
|align="left"|2009
|colspan="2"|8
|colspan="2"|11
|colspan="2"|4
|colspan="2"|0
|colspan="2"|1
|colspan="2"|5
|- bgcolor="F3F3FF"
|align="left"|2004
|colspan="2"|12
|colspan="2"|9
|colspan="2"|0
|colspan="2"|1
|colspan="2"|2
|colspan="2"|5
|-
|align="left"|1999
|colspan="2"|14
|colspan="2"|11
|colspan="2"|0
|colspan="2"|0
|colspan="2"|1
|colspan="2"|3
|}
== Spoyrt ==
She [[bluckaneyrys Gaelgagh]] y [[spoyrt]] smoo cadjin ayns Coontae yn Vee, as [[Craobh Shinsear Peile na hÉireann]] ("Crouw Hinsharagh Bluckaneyrys Nerin") cosnit ec [[CLG na Mí|fwirran bluckaneyrys]] y choontae 7 keayrtyn: ayns ny bleeantyn 1949, 1954, 1967, 1987, 1988, 1996, as 1999. Myrane lesh y vluckaneyrys, ta'n [[immanaght]], y [[ruggyr]] as [[soccer]] cloiet 'sy choontae. She [[Páirc Tailteann]] 'syn Ooive y staid smoo 'sy choontae as y staid shen ymmydit son bluckaneyrys Gaelgagh son y chooid smoo.
== Arraghey ==
=== Raaidyn ===
* She yn [[N3 (raad Nerin)|N3]] preeu-raad y choontae as eh roie veih [[Divlyn]], trooid [[yn Ooive]] as [[yn Cavan|y Cavan]], dys [[Béal Átha Seanaidh]].
* Bayr gleashtanagh yn [[N4 (raad Nerin)|M4]] ta ny lhie ayns Coontae Cheeill Darey as Coontae ny Mee
* Bayr gleashtanagh yn [[N1 (raad Nerin)|M1]] ta goll veih Divlyn dys [[Beeal Feirshtey]]
* Ta'n [[N2 (raad Nerin)|N2]] shaghney yn nah valley smoo 'sy choontae, [[Cill Dhéagláin]]. Ta'n raad shoh ny vollagh dooblit agh ta cagliagh bieauid 120 km/h er, cagliagh bieauid myr ta ry-gheddyn er bayryn gleashtanagh dy cadjin.
=== Raaidyn yiarn ===
* Ta traen troailt trick jannoo shirveish er baljyn beggey slystagh ny Mee as eh kiangley ad rish Divlyn
* Ta crouw-linney veih raad yiarn Divlyn-Beeal Feirshtey ry hoi traaght chooid jannoo kiangley eddyr yn Ooive rish Droghad Aah. Ta'n linney jeeragh veih'n Ooive dys Divlyn doont ec y traa t'ayn agh ta plan ayn y linney shen y aa-osley er linnaghyn polasee traghtee yn reiltys roie.
* Ta shirveish hroailt jannoo shirveishyn er [[An Bóthar Buí, Coontae yn Vee|an Bóthar Buí]]
== Imraaghyn ==
{{rolleyimraaghyn}}
== Jeeagh er neesht ==
* [[Coondaeghyn Nerin]]
== Kianglaghyn mooie ==
* [http://www.meath.ie/ Coonseil Choontae yn Vee] {{en jalloo}}
* [https://web.archive.org/web/20070208074056/http://www.meathtourism.ie/ Turrysaght yn Vee] {{en jalloo}}
* [http://www.cso.ie/census/ Ynnyd-eggey y CSO] {{en jalloo}}
{{Nerin - Coondaeghyn}}
{{Coontae ny Mee}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Vee}}
[[Ronney:Coontae yn Vee| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
ts7e1rno0t0ohoo118f5pwtjq1a60p2
395340
395339
2026-10-26T15:21:17Z
MacTire02
219
lettyraghey
395340
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = Choontae yn Vee
| ennym = Coontae yn Vee
| ennym_dooghyssagh = {{lang|ga|Contae na Mí|italics=no}} {{small|([[Yernish]])}}<br />{{lang|en|County Meath|italics=no}} {{small|([[Baarle]])}}
| sorçh_balley = [[Coondaeghyn Nerin|Coontae]]
| jarroo-raa = {{lang|ga|Tré Neart le Chéile}}
| enmys_bunneeaght = [[Reeriaght y Vee]]
| date_bunneeaght = [[Nerin roie-henndeeagh|Shenndiaght]]
| enmys_bunneeaght1 = [[Çhiarnaght y Vee]]
| date_bunneeaght1 = 1172
| enmys_bunneeaght3 = Sheerit
| date_bunneeaght3 = 1297
| enmys_bunneeaght4 = [[Slattys Choondaeghyn y Vee as yn Eearvee, 1543|Rheynn y choontae]]
| date_bunneeaght4 = 1542
| çhengey_jarroo-raa = Yernish
| çhengaghyn = none
| çhyndaa_jarroo-raa = Trooid Niart ry Cheilley
| jalloo_armys = Meath_coa.svg
| jalloo_brattagh = none
| jalloo_caslys-çheerey = Island of Ireland location map Meath.svg
| sorçh_reiltys = Coonseil Coontae
| colught_reirey = [[Coonseil Choontae yn Vee]]
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
| ashchur_utc = +00:00
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +01:00
}}
Ta '''Coontae yn Vee''', ny '''yn Vee''' dy h-aashagh ({{langx|ga|Contae na Mí}} ny {{lang|ga|an Mhí}}, {{langx|en|County Meath}}) ny choontae ayns [[Queiggey Lion]], [[Pobblaght Nerin|Nerin]]. Ta ennym y çhenn-reeriaght - [[Reeriaght y Vee]] - currit er y choontae jiu, faagail magh nagh vel 'sy choontae agh cooid jeh'n çhenn-reeriaght. Ta'n far-ennym "y Coontae Reeoil" currit er y choontae er oyr y çhennaghys echey myr soiag [[Ard-Reeaghyn Nerin]].<ref>{{cite web | title = Meath - a rich and royal land | url = http://www.meath.ie/Tourism/Heritage/ | accessdate = 21 May 2010 | author = Meath County Council | archivedate = 10 June 2010 | archiveurl = https://web.archive.org/web/20100610202040/http://www.meath.ie/Tourism/Heritage/ }}</ref><ref>{{cite web | title = County Meath - Newgrange, Slane Castle and the Book of Kells | url = http://www.countymeath.com/ | accessdate = 21 May 2010 | author = countymeath.com | archivedate = 9 March 2010 | archiveurl = https://web.archive.org/web/20100309043357/http://www.countymeath.com/ }}</ref><ref>{{cite book |last1= Rowan Kelleher |first1= Suzanne |title= Frommer's Ireland from $80 a Day |accessdate= 21 May 2010 | edition = 20th |year= 2004 |publisher= Wiley Publishing, Inc |location= Hoboken, New Jersey, SUA |isbn= 0-7645-4217-6 |page= 204 }}</ref> Rere coontey-pobble y vlein 2006 va 162,831 deiney cummal 'sy choontae.<ref>{{Cite web |title=Census 2006 - Population of each province, county and city |url=http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 |accessdate=2010-08-11 |archivedate=2011-04-17 |archiveurl=https://web.archive.org/web/20110417182520/http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 }}</ref> T'eh ny 14oo coontae smoo rere eaghtyr mastey yn 32 choontae ayns Nerin, as ny 13oo coontae smoo rere earroo yn phobble.<ref>{{cite book| first=Eoghan| last=Corry| title=The GAA Book of Lists| publisher=Hodder Headline Ireland| year=2005| id= | pages=186–191}}</ref> T'eh ny nah choontae smoo ayns Queiggey Lion rere eaghtyr as ny 3oo coontae smoo rere earroo yn phobble. She [[yn Ooive]] y balley coontae, raad dy vel y halley coontae as gurneilys ynnydagh y choontae soit. Ta [[Baile Átha Troim]] ny aa-valley coontae, as ta scansh shendeeagh foast ayn myrane lesh y whaiyl cheayrtagh. Ta'n daa ard [[Gaeltacht]] ayns Queiggey Lion nyn soie 'sy choontae - [[Ráth Cairn]] as [[Baile Ghib]].
== Shennaghys ==
[[Coadan:Newgrange.JPG|200px|left|thumb|[[Sí an Bhrú]] - Y tomman limmer shinney as smoo scanshoil ayns Nerin.]]
Ta shennaghys y Vee unnane as shennaghys Nerin, as ta'n coontae berçhal er çheu chummaltys deiney leah. Haink ny chied chummaltee gys y choontae ny smoo na 8,000 bleeantyn er-dy-henney.<ref>{{cite web |url=http://www.theyellowhouse.ie/historic.html |title=Historic Meath |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2010-03-11 |archiveurl=https://web.archive.org/web/20100311211047/http://www.theyellowhouse.ie/historic.html }}</ref> Va'n coontae ny lhie ayns çheshvean Nerin roie-hendeeagh lesh ny shenn-raaidyn as ad goulraghey magh er feie Nerin voish. Veih'n eash shen derrey çheet y Chreestiaght va ram tommanyn limmer as giat troggit lheid as ad ayns [[Sí an Bhrú]], [[Cnobha]], as [[Dubhadh]] ayns [[Brú na Bóinne]], as [[Loch Craobh]] er [[Sliabh na Caillí]] ayns sheear hwoaie yn choontae. 'Sy vlein 433 BNJ, chur [[Noo Perick]] y Chreestiaght lesh gys [[Teamhair na Rí]], preeu-ynnyd Ree yn Vee as ny h-Ard-Reeaghyn Yernagh, as veih'n voayl shen ren y Chreestiaght sheeyney magh er feie ny çheerey.<ref>{{cite web |url=http://www.newadvent.org/cathen/11554a.htm |title=St. Patrick |last=Doorley |first=Mary |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
Va Reeriaght y Vee hene currit er bun mygeayrt y chied eash BNJ liorish [[Tuathal Teachtmhar]] rere tradishoon. Foddee dy vel ad ny reeaghyn leah er y reeriaght na ad jeh ny Uí Enechghlaiss. Va'n clein shen jeh sluight ny [[Fir Bolg]], as va aarheynn y chlein shen, ny [[Fir Domnann]], ry-akin er caslys çheerey Nerin va jeant ec [[Ptolemy]] lesh y phreeu-valley ec Rheba.<ref>{{cite web |url=http://www.rootsweb.com/~irlkik/ihm/ire150.htm |title=Ireland's History in Maps: Ptolemy's Ireland |publisher=rootsweb.com |accessdate=17 Mart, 2009 |first=Dennis |last=Walsh |language=Baarle}} </ref> Veih ny 490yn v'ad scughit ass y Vee harrish [[Sleityn Cheeill Mantan]] liorish ny [[Uí Néill]], as ren [[Clann Cholmáin]] cummaltys er y reeriaght. Ass y chlein shen er haink [[Reeaghyn y Vee]], as va cooid vie jeu nyn Ard-Reeaghyn Yernagh. Haink jerrey lesh y reeriaght 'sy vlein 1172 nar v'ee giootit dys [[Hugh de Lacy, Çhiarn y Vee|Hugh de Lacy]] liorish [[Inry II Hostyn|Ree Inry II Hostyn]].<ref>{{cite web |url=http://killyonguesthouse.ie/historic_meath.html |title=Historic Meath: Trim Castle |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2008-10-02 |archiveurl=https://web.archive.org/web/20081002021114/http://www.killyonguesthouse.ie/historic_meath.html }}</ref> Va [[Baile Átha Troim]] reiht ec de Lacy myr y preeu-valley echey as va [[Caisleán Bhaile Átha Troim|cashtal]] troggit echey er brooinyn [[an Bhóinn]].
Va sheer jeant ass y Vee liorish Parlamaid y Vlein 1297,<ref name="roche">Desmond Roche, ''Local Government in Ireland'', Divlyn, 1982</ref> as ghow ee stiagh coondaeghyn noa-emshyragh y Vee, yn Eearvee, yn Lhongfort, as stugganyn jeh'n Chavan, Vuinaghan, Lhoo, Cheeill Darey, 'ine Goal, as Uíbh Fhailí. 'Sy vlein 1543 va Coontae yn Eearvee rheynnit magh ass y Vee liorish y reiltys Ealisaidagh as daaeed bleeaney ny yei shen va'n Lhongfort rheynnit magh ass yn Eearvee hene.
Ta'n Vee ny soiaghey jeh taghyrtyn mooarey ayns shennaghys noa-emshyragh Nerin, as v'eh 'sy Vee er haghyr [[Cah an Bhóinn]] nar va'n ree Catoleagh [[Jamys II Hostyn]] currit fo haart liorish y ree Protestoonagh [[Illiam III Hostyn]] 'sy vlein 1690 eddyr [[Baile Shláine]] as [[Droghad Aah]]. Myr eiyrtys va quing Phrotestoonagh currit er Nerin. Reesht 'sy vlein 1798, nar dirree irreyderyn Yernagh magh noi'n Chrooin Ghoaldagh, haghyr irree magh 'sy choontae, agh v'ad currit fo haart liorish sidooryn Goaldagh. Ren yn irree magh shen niartaghey er smaght Goaldagh harrish Nerin er oyr y traartys ec ny h-irreyderyn magh, agh cha row ny Yernee jargal ve booiagh lesh shen. Ayns ny 1840yn ren [[Daniel O'Connell]] eiyrtys pooar y chur reesht da ny Catolee ayns Nerin er keim cheddin lesh ny Protestoonee. V'eh ayns [[Teamhair na Rí]] er haghyr y "chruinnaght vooar" echey as ny smoo na millioon feallee ayn 'sy vlein 1843.
Lurg seyrsnys Nerin ayns 1922, hie Coontae yn Vee dy ve ny chrouw-choontae da'n phreeu-valley noa, [[Divlyn]], raad dy row y reiltys ny hoie. Daase earroo yn phobble ayns baljyn va cruinnaghey yn preeu-valley. Ayns ny 1990yn as ny 2000yn leah, myr v'ayns y çheer er feie, haghyr lhiasaghey as bishaghey mooar ayns tarmaynys ny çheerey, as yn ennym "y Çheegyr Celtiagh" currit er y lhing shen.
== Çheer-oaylleeaght ==
[[Coadan:Valley of the river Boyne.jpg|250px|right|thumb|Glion ny Bóinne veih Brú na Bóinne]]
Ta Coontae yn Vee ny lhie ayns twoaie [[Queiggey Lion|Lion]] er coose shiar [[Nerin]]. T'eh caglit liorish [[Mooir Vannin]] da'n shiar as y coose echey 10.4 km er lhiurid. T'eh çhemmit liorish [[Coontae Ghivlyn]] da'n shiar as y shiar yiass, liorish [[Coontae Cheeill Darey]] da'n jiass, liorish [[Coontae Uíbh Fhailí]] da'n sheear yiass, liorish [[Coontae yn Eearvee]] da'n sheear, liorish [[Coontae yn Chavan]] da'n sheear hwoaie, liorish [[Coontae Vuinaghan]] da'n twoaie, as liorish [[Coontae Lhoo]] da'n shiar hwoaie. She thalloo rea yn chooid smoo jeh'n choontae agh ta cruink injil ry-gheddyn ayns sheear hwoaie yn choontae as 'sy twoaie. Ta ram awinyn 'sy choontae chammah as ad teaumey ny loghyn 'syn Eearvee, 'sy Chavan, as ayns Muinaghan, ny teaumey ny curree ayns Uíbh Fhailí as Keeill Darey. T'ad ny h-awinyn smoo scanshoil 'sy choontae na [[an Bhóinn]], [[An Abhainn Dubh, Coontae yn Vee|an Abhainn Dubh]], [[an Ainí]], [[an Eithne]], [[an Ailbhine]], [[an Ifearnóg]], [[an Tulcha]], [[Abhainn Átha Buí]] as [[An Abhainn Rua, Coontae yn Vee|an Abhainn Rua]]. Ta'n Bhóinn hene nane jeh ny h-awinyn smoo scanshoil ayns Nerin er çheu shennaghys as y feayn-skeealeydaght Yernagh, as t'ee roie trooid çheshvean y choontae trooid [[Baile Átha Troim]] as balley [[yn Ooive]].
=== Baljyn ===
* [[Baile Átha Troim]]
* [[Ceanannas, Coontae yn Vee|Ceanannas]]
* [[Yn Ooive]]
=== Baljyn beggey ===
* [[Baile an Bheileogaigh]], [[Baile an Bhiataigh]], [[Baile an Bhóthair, Coontae yn Vee|Baile an Bhóthair]], [[Baile Átha Buí]], [[Baile Ghib]], [[Baile Íomhair]], [[Baile Iúiliáin]], [[Baile Mhic Gormáin]], [[Baile Roibín, Coontae yn Vee|Baile Roibín]], [[Baile Shláine]], [[Baile Uí Mhornáin]], [[Baile Uilcín]], [[Beigthigh]], [[An Bóthar Buí, Coontae yn Vee|An Bóthar Buí]], [[An Bóthar Mín]], [[Buaile na Bréachmhaí]]
* [[Cill an Chairn]], [[Cill Dealga]], [[Cill Dhéagláin]], [[Cill Mheasáin]], [[Cluain Aodha]], [[Cluain Ioraird]], [[Cnoc an Línsigh]]
* [[Damhliag]], [[Domhnach Phádraig]], [[Droichead Chearbhalláin]], [[Dún Búinne]], [[Dún Doire]], [[Dún Samhnaí]], [[Dún Seachlainn]]
* [[An Inse, Coontae yn Vee|An Inse]]
* [[Maigh Dearmhaí]], [[Maigh Muirí]], [[Maigh nEalta]]
* [[An Obair]]
* [[An Scrín, Coontae yn Vee|An Scrín]], [[An Seanchaisleán]]
* [[Teamhair]]
* [[Ráth Cairn]], [[Ráth Moliain]], [[Ráth Tó]]
== Deyn-oaylleeaght ==
Earroo yn phobble rere [[coontey-pobble]] ayns Coontae yn Vee veih'n vlein 1861:
[[Coadan:Population of County Meath (graph).PNG|right|thumb|300px|Earroo pobble Choontae ny Mee veih 1861 derrey 2002.]]
* 1861: 110,373
* 1871: 95,558
* 1881: 87,469
* 1891: 76,987
* 1901: 67,497
* 1911: 65,091
* 1926: 62,969
* 1936: 61,405
* 1946: 66,232
* 1961: 65,122
* 1971: 71,729
* 1981: 95,419
* 1991: 105,370
* 1996: 109,732
* 2002: 134,005
* 2006: 162,831
* 2011: 184,135
== Politickaght ==
Va tree ass ny queig ynnydyn ayns co-heiyderys y Vee cosnit ec [[Fianna Fáil]] veih'n vlein 1987. 'Sy traa cheddin va daa ynnyd cosnit ec [[Fine Gael]] faagail magh ny bleeaney 1992 nar va un ynnyd caillt da [[Partee yn Lught Obbyr (Nerin)|Partee yn Lught Obbyr]], agh va'n ynnyd shen aachosnit ec Fine Gael reesht 'sy vlein 1997. Myr eiyrtys er earroo pobble y choontae ta shey ynnydyn ec Coontae yn Vee nish, as t'eh rheynnit magh ayns daa cho-heiyderys nish: Y Vee Hiar as y Vee Heear (as eh goaill stiagh stugganyn jeh Coontae yn Eearvee).
Va fo-reihys 'sy vlein 2005 cosnit ec McEntee lurg irree ass oik y shenn-[[Taoiseach]], [[John Bruton]] (Fine Gael) as er y reihys echey myr Ambasseyder [[yn Unnaneys Oarpagh|Oarpagh]] da [[ny Steatyn Unnaneysit]].
Va Coonseil Choontae yn Vee fo stiurey Fianna Fáil veih 1985 derrey 1991 as reesht veih 1999 derrey 2004. Haink jerrey lesh y chioneys shen reesht lurg [[Reihyssyn ynnydagh Nerin, 2009|ny reihyssyn ynnydagh ayns 2009]]. She cummal roie ny coonseil jiu na:<ref>{{cite web |url=http://electionsireland.org/results/local/index.cfm |title=Local Elections |date=27 Mean Souree, 2009 |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
{| class="wikitable" style="text-align:right; padding-left:1em"
!align="left"|Blein
!style="background-color: {{Fianna Fáil/meta/daah}}; width: 3px;" |
|[[Fianna Fáil|FF]]
!style="background-color: {{Fine Gael/meta/daah}}; width: 3px;" |
|[[Fine Gael|FG]]
!style="background-color: {{Partee yn Lught Obbyr (Nerin)/meta/daah}}; width: 3px;" |
|[[Partee yn Lught Obbyr (Nerin)|LO]]
!style="background-color: {{Yn Partee Glass (Nerin)/meta/daah}}; width: 3px;" |
|[[Yn Partee Glass (Nerin)|PG]]
!style="background-color: {{Sinn Féin/meta/daah}}; width: 3px;" |
|[[Sinn Féin|SF]]
!style="padding-left:2em"|Elley
|-
|align="left"|2014
|colspan="2"|10
|colspan="2"|13
|colspan="2"|0
|colspan="2"|0
|colspan="2"|8
|colspan="2"|9
|- bgcolor="F3F3FF"
|align="left"|2009
|colspan="2"|8
|colspan="2"|11
|colspan="2"|4
|colspan="2"|0
|colspan="2"|1
|colspan="2"|5
|- bgcolor="F3F3FF"
|align="left"|2004
|colspan="2"|12
|colspan="2"|9
|colspan="2"|0
|colspan="2"|1
|colspan="2"|2
|colspan="2"|5
|-
|align="left"|1999
|colspan="2"|14
|colspan="2"|11
|colspan="2"|0
|colspan="2"|0
|colspan="2"|1
|colspan="2"|3
|}
== Spoyrt ==
She [[bluckaneyrys Gaelgagh]] y [[spoyrt]] smoo cadjin ayns Coontae yn Vee, as [[Craobh Shinsear Peile na hÉireann]] ("Crouw Hinsharagh Bluckaneyrys Nerin") cosnit ec [[CLG na Mí|fwirran bluckaneyrys]] y choontae 7 keayrtyn: ayns ny bleeantyn 1949, 1954, 1967, 1987, 1988, 1996, as 1999. Myrane lesh y vluckaneyrys, ta'n [[immanaght]], y [[ruggyr]] as [[soccer]] cloiet 'sy choontae. She [[Páirc Tailteann]] 'syn Ooive y staid smoo 'sy choontae as y staid shen ymmydit son bluckaneyrys Gaelgagh son y chooid smoo.
== Arraghey ==
=== Raaidyn ===
* She yn [[N3 (raad Nerin)|N3]] preeu-raad y choontae as eh roie veih [[Divlyn]], trooid [[yn Ooive]] as [[yn Cavan|y Cavan]], dys [[Béal Átha Seanaidh]].
* Bayr gleashtanagh yn [[N4 (raad Nerin)|M4]] ta ny lhie ayns Coontae Cheeill Darey as Coontae ny Mee
* Bayr gleashtanagh yn [[N1 (raad Nerin)|M1]] ta goll veih Divlyn dys [[Beeal Feirshtey]]
* Ta'n [[N2 (raad Nerin)|N2]] shaghney yn nah valley smoo 'sy choontae, [[Cill Dhéagláin]]. Ta'n raad shoh ny vollagh dooblit agh ta cagliagh bieauid 120 km/h er, cagliagh bieauid myr ta ry-gheddyn er bayryn gleashtanagh dy cadjin.
=== Raaidyn yiarn ===
* Ta traen troailt trick jannoo shirveish er baljyn beggey slystagh ny Mee as eh kiangley ad rish Divlyn
* Ta crouw-linney veih raad yiarn Divlyn-Beeal Feirshtey ry hoi traaght chooid jannoo kiangley eddyr yn Ooive rish Droghad Aah. Ta'n linney jeeragh veih'n Ooive dys Divlyn doont ec y traa t'ayn agh ta plan ayn y linney shen y aa-osley er linnaghyn polasee traghtee yn reiltys roie.
* Ta shirveish hroailt jannoo shirveishyn er [[An Bóthar Buí, Coontae yn Vee|an Bóthar Buí]]
== Imraaghyn ==
{{rolleyimraaghyn}}
== Jeeagh er neesht ==
* [[Coondaeghyn Nerin]]
== Kianglaghyn mooie ==
* [http://www.meath.ie/ Coonseil Choontae yn Vee] {{en jalloo}}
* [https://web.archive.org/web/20070208074056/http://www.meathtourism.ie/ Turrysaght yn Vee] {{en jalloo}}
* [http://www.cso.ie/census/ Ynnyd-eggey y CSO] {{en jalloo}}
{{Nerin - Coondaeghyn}}
{{Coontae ny Mee}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Vee}}
[[Ronney:Coontae yn Vee| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
92cn99j9tck8sjd6bc8v3qpvnwktr15
395350
395340
2026-10-26T17:49:07Z
MacTire02
219
++
395350
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = Choontae yn Vee
| ennym = Coontae yn Vee
| ennym_dooghyssagh = {{lang|ga|Contae na Mí|italics=no}} {{small|([[Yernish]])}}<br />{{lang|en|County Meath|italics=no}} {{small|([[Baarle]])}}
| sorçh_balley = [[Coondaeghyn Nerin|Coontae]]
| jarroo-raa = {{lang|ga|Tré Neart le Chéile}}
| enmys_bunneeaght = [[Reeriaght y Vee]]
| date_bunneeaght = [[Nerin roie-henndeeagh|Shenndiaght]]
| enmys_bunneeaght1 = [[Çhiarnaght y Vee]]
| date_bunneeaght1 = 1172
| enmys_bunneeaght3 = Sheerit
| date_bunneeaght3 = 1297
| enmys_bunneeaght4 = [[Slattys Choondaeghyn y Vee as yn Eearvee, 1543|Rheynn y choontae]]
| date_bunneeaght4 = 1542
| çhengey_jarroo-raa = Yernish
| çhengaghyn = none
| çhyndaa_jarroo-raa = Trooid Niart ry Cheilley
| jalloo_armys = Meath_coa.svg
| jalloo_brattagh = none
| jalloo_caslys-çheerey = Island of Ireland location map Meath.svg
| sorçh_reiltys = Coonseil choontae
| colught_reirey = [[Coonseil Choontae yn Vee]]
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
| ashchur_utc = +00:00
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +01:00
}}
Ta '''Coontae yn Vee''', ny '''yn Vee''' dy h-aashagh ({{langx|ga|Contae na Mí}} ny {{lang|ga|an Mhí}}, {{langx|en|County Meath}}) ny choontae ayns [[Queiggey Lion]], [[Pobblaght Nerin|Nerin]]. Ta ennym y çhenn-reeriaght - [[Reeriaght y Vee]] - currit er y choontae jiu, faagail magh nagh vel 'sy choontae agh cooid jeh'n çhenn-reeriaght. Ta'n far-ennym "y Coontae Reeoil" currit er y choontae er oyr y çhennaghys echey myr soiag [[Ard-Reeaghyn Nerin]].<ref>{{cite web | title = Meath - a rich and royal land | url = http://www.meath.ie/Tourism/Heritage/ | accessdate = 21 May 2010 | author = Meath County Council | archivedate = 10 June 2010 | archiveurl = https://web.archive.org/web/20100610202040/http://www.meath.ie/Tourism/Heritage/ }}</ref><ref>{{cite web | title = County Meath - Newgrange, Slane Castle and the Book of Kells | url = http://www.countymeath.com/ | accessdate = 21 May 2010 | author = countymeath.com | archivedate = 9 March 2010 | archiveurl = https://web.archive.org/web/20100309043357/http://www.countymeath.com/ }}</ref><ref>{{cite book |last1= Rowan Kelleher |first1= Suzanne |title= Frommer's Ireland from $80 a Day |accessdate= 21 May 2010 | edition = 20th |year= 2004 |publisher= Wiley Publishing, Inc |location= Hoboken, New Jersey, SUA |isbn= 0-7645-4217-6 |page= 204 }}</ref> Rere coontey-pobble y vlein 2006 va 162,831 deiney cummal 'sy choontae.<ref>{{Cite web |title=Census 2006 - Population of each province, county and city |url=http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 |accessdate=2010-08-11 |archivedate=2011-04-17 |archiveurl=https://web.archive.org/web/20110417182520/http://beyond2020.cso.ie/Census/TableViewer/tableView.aspx?ReportId=75467 }}</ref> T'eh ny 14oo coontae smoo rere eaghtyr mastey yn 32 choontae ayns Nerin, as ny 13oo coontae smoo rere earroo yn phobble.<ref>{{cite book| first=Eoghan| last=Corry| title=The GAA Book of Lists| publisher=Hodder Headline Ireland| year=2005| id= | pages=186–191}}</ref> T'eh ny nah choontae smoo ayns Queiggey Lion rere eaghtyr as ny 3oo coontae smoo rere earroo yn phobble. She [[yn Ooive]] y balley coontae, raad dy vel y halley coontae as gurneilys ynnydagh y choontae soit. Ta [[Baile Átha Troim]] ny aa-valley coontae, as ta scansh shendeeagh foast ayn myrane lesh y whaiyl cheayrtagh. Ta'n daa ard [[Gaeltacht]] ayns Queiggey Lion nyn soie 'sy choontae - [[Ráth Cairn]] as [[Baile Ghib]].
== Shennaghys ==
[[Coadan:Newgrange.JPG|200px|left|thumb|[[Sí an Bhrú]] - Y tomman limmer shinney as smoo scanshoil ayns Nerin.]]
Ta shennaghys y Vee unnane as shennaghys Nerin, as ta'n coontae berçhal er çheu chummaltys deiney leah. Haink ny chied chummaltee gys y choontae ny smoo na 8,000 bleeantyn er-dy-henney.<ref>{{cite web |url=http://www.theyellowhouse.ie/historic.html |title=Historic Meath |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2010-03-11 |archiveurl=https://web.archive.org/web/20100311211047/http://www.theyellowhouse.ie/historic.html }}</ref> Va'n coontae ny lhie ayns çheshvean Nerin roie-hendeeagh lesh ny shenn-raaidyn as ad goulraghey magh er feie Nerin voish. Veih'n eash shen derrey çheet y Chreestiaght va ram tommanyn limmer as giat troggit lheid as ad ayns [[Sí an Bhrú]], [[Cnobha]], as [[Dubhadh]] ayns [[Brú na Bóinne]], as [[Loch Craobh]] er [[Sliabh na Caillí]] ayns sheear hwoaie yn choontae. 'Sy vlein 433 BNJ, chur [[Noo Perick]] y Chreestiaght lesh gys [[Teamhair na Rí]], preeu-ynnyd Ree yn Vee as ny h-Ard-Reeaghyn Yernagh, as veih'n voayl shen ren y Chreestiaght sheeyney magh er feie ny çheerey.<ref>{{cite web |url=http://www.newadvent.org/cathen/11554a.htm |title=St. Patrick |last=Doorley |first=Mary |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
Va Reeriaght y Vee hene currit er bun mygeayrt y chied eash BNJ liorish [[Tuathal Teachtmhar]] rere tradishoon. Foddee dy vel ad ny reeaghyn leah er y reeriaght na ad jeh ny Uí Enechghlaiss. Va'n clein shen jeh sluight ny [[Fir Bolg]], as va aarheynn y chlein shen, ny [[Fir Domnann]], ry-akin er caslys çheerey Nerin va jeant ec [[Ptolemy]] lesh y phreeu-valley ec Rheba.<ref>{{cite web |url=http://www.rootsweb.com/~irlkik/ihm/ire150.htm |title=Ireland's History in Maps: Ptolemy's Ireland |publisher=rootsweb.com |accessdate=17 Mart, 2009 |first=Dennis |last=Walsh |language=Baarle}} </ref> Veih ny 490yn v'ad scughit ass y Vee harrish [[Sleityn Cheeill Mantan]] liorish ny [[Uí Néill]], as ren [[Clann Cholmáin]] cummaltys er y reeriaght. Ass y chlein shen er haink [[Reeaghyn y Vee]], as va cooid vie jeu nyn Ard-Reeaghyn Yernagh. Haink jerrey lesh y reeriaght 'sy vlein 1172 nar v'ee giootit dys [[Hugh de Lacy, Çhiarn y Vee|Hugh de Lacy]] liorish [[Inry II Hostyn|Ree Inry II Hostyn]].<ref>{{cite web |url=http://killyonguesthouse.ie/historic_meath.html |title=Historic Meath: Trim Castle |accessdate=27 Mean Souree, 2009 |language=Baarle |archivedate=2008-10-02 |archiveurl=https://web.archive.org/web/20081002021114/http://www.killyonguesthouse.ie/historic_meath.html }}</ref> Va [[Baile Átha Troim]] reiht ec de Lacy myr y preeu-valley echey as va [[Caisleán Bhaile Átha Troim|cashtal]] troggit echey er brooinyn [[an Bhóinn]].
Va sheer jeant ass y Vee liorish Parlamaid y Vlein 1297,<ref name="roche">Desmond Roche, ''Local Government in Ireland'', Divlyn, 1982</ref> as ghow ee stiagh coondaeghyn noa-emshyragh y Vee, yn Eearvee, yn Lhongfort, as stugganyn jeh'n Chavan, Vuinaghan, Lhoo, Cheeill Darey, 'ine Goal, as Uíbh Fhailí. 'Sy vlein 1543 va Coontae yn Eearvee rheynnit magh ass y Vee liorish y reiltys Ealisaidagh as daaeed bleeaney ny yei shen va'n Lhongfort rheynnit magh ass yn Eearvee hene.
Ta'n Vee ny soiaghey jeh taghyrtyn mooarey ayns shennaghys noa-emshyragh Nerin, as v'eh 'sy Vee er haghyr [[Cah an Bhóinn]] nar va'n ree Catoleagh [[Jamys II Hostyn]] currit fo haart liorish y ree Protestoonagh [[Illiam III Hostyn]] 'sy vlein 1690 eddyr [[Baile Shláine]] as [[Droghad Aah]]. Myr eiyrtys va quing Phrotestoonagh currit er Nerin. Reesht 'sy vlein 1798, nar dirree irreyderyn Yernagh magh noi'n Chrooin Ghoaldagh, haghyr irree magh 'sy choontae, agh v'ad currit fo haart liorish sidooryn Goaldagh. Ren yn irree magh shen niartaghey er smaght Goaldagh harrish Nerin er oyr y traartys ec ny h-irreyderyn magh, agh cha row ny Yernee jargal ve booiagh lesh shen. Ayns ny 1840yn ren [[Daniel O'Connell]] eiyrtys pooar y chur reesht da ny Catolee ayns Nerin er keim cheddin lesh ny Protestoonee. V'eh ayns [[Teamhair na Rí]] er haghyr y "chruinnaght vooar" echey as ny smoo na millioon feallee ayn 'sy vlein 1843.
Lurg seyrsnys Nerin ayns 1922, hie Coontae yn Vee dy ve ny chrouw-choontae da'n phreeu-valley noa, [[Divlyn]], raad dy row y reiltys ny hoie. Daase earroo yn phobble ayns baljyn va cruinnaghey yn preeu-valley. Ayns ny 1990yn as ny 2000yn leah, myr v'ayns y çheer er feie, haghyr lhiasaghey as bishaghey mooar ayns tarmaynys ny çheerey, as yn ennym "y Çheegyr Celtiagh" currit er y lhing shen.
== Çheer-oaylleeaght ==
[[Coadan:Valley of the river Boyne.jpg|250px|right|thumb|Glion ny Bóinne veih Brú na Bóinne]]
Ta Coontae yn Vee ny lhie ayns twoaie [[Queiggey Lion|Lion]] er coose shiar [[Nerin]]. T'eh caglit liorish [[Mooir Vannin]] da'n shiar as y coose echey 10.4 km er lhiurid. T'eh çhemmit liorish [[Coontae Ghivlyn]] da'n shiar as y shiar yiass, liorish [[Coontae Cheeill Darey]] da'n jiass, liorish [[Coontae Uíbh Fhailí]] da'n sheear yiass, liorish [[Coontae yn Eearvee]] da'n sheear, liorish [[Coontae yn Chavan]] da'n sheear hwoaie, liorish [[Coontae Vuinaghan]] da'n twoaie, as liorish [[Coontae Lhoo]] da'n shiar hwoaie. She thalloo rea yn chooid smoo jeh'n choontae agh ta cruink injil ry-gheddyn ayns sheear hwoaie yn choontae as 'sy twoaie. Ta ram awinyn 'sy choontae chammah as ad teaumey ny loghyn 'syn Eearvee, 'sy Chavan, as ayns Muinaghan, ny teaumey ny curree ayns Uíbh Fhailí as Keeill Darey. T'ad ny h-awinyn smoo scanshoil 'sy choontae na [[an Bhóinn]], [[An Abhainn Dubh, Coontae yn Vee|an Abhainn Dubh]], [[an Ainí]], [[an Eithne]], [[an Ailbhine]], [[an Ifearnóg]], [[an Tulcha]], [[Abhainn Átha Buí]] as [[An Abhainn Rua, Coontae yn Vee|an Abhainn Rua]]. Ta'n Bhóinn hene nane jeh ny h-awinyn smoo scanshoil ayns Nerin er çheu shennaghys as y feayn-skeealeydaght Yernagh, as t'ee roie trooid çheshvean y choontae trooid [[Baile Átha Troim]] as balley [[yn Ooive]].
=== Baljyn ===
* [[Baile Átha Troim]]
* [[Ceanannas, Coontae yn Vee|Ceanannas]]
* [[Yn Ooive]]
=== Baljyn beggey ===
* [[Baile an Bheileogaigh]], [[Baile an Bhiataigh]], [[Baile an Bhóthair, Coontae yn Vee|Baile an Bhóthair]], [[Baile Átha Buí]], [[Baile Ghib]], [[Baile Íomhair]], [[Baile Iúiliáin]], [[Baile Mhic Gormáin]], [[Baile Roibín, Coontae yn Vee|Baile Roibín]], [[Baile Shláine]], [[Baile Uí Mhornáin]], [[Baile Uilcín]], [[Beigthigh]], [[An Bóthar Buí, Coontae yn Vee|An Bóthar Buí]], [[An Bóthar Mín]], [[Buaile na Bréachmhaí]]
* [[Cill an Chairn]], [[Cill Dealga]], [[Cill Dhéagláin]], [[Cill Mheasáin]], [[Cluain Aodha]], [[Cluain Ioraird]], [[Cnoc an Línsigh]]
* [[Damhliag]], [[Domhnach Phádraig]], [[Droichead Chearbhalláin]], [[Dún Búinne]], [[Dún Doire]], [[Dún Samhnaí]], [[Dún Seachlainn]]
* [[An Inse, Coontae yn Vee|An Inse]]
* [[Maigh Dearmhaí]], [[Maigh Muirí]], [[Maigh nEalta]]
* [[An Obair]]
* [[An Scrín, Coontae yn Vee|An Scrín]], [[An Seanchaisleán]]
* [[Teamhair]]
* [[Ráth Cairn]], [[Ráth Moliain]], [[Ráth Tó]]
== Deyn-oaylleeaght ==
Earroo yn phobble rere [[coontey-pobble]] ayns Coontae yn Vee veih'n vlein 1861:
[[Coadan:Population of County Meath (graph).PNG|right|thumb|300px|Earroo pobble Choontae ny Mee veih 1861 derrey 2002.]]
* 1861: 110,373
* 1871: 95,558
* 1881: 87,469
* 1891: 76,987
* 1901: 67,497
* 1911: 65,091
* 1926: 62,969
* 1936: 61,405
* 1946: 66,232
* 1961: 65,122
* 1971: 71,729
* 1981: 95,419
* 1991: 105,370
* 1996: 109,732
* 2002: 134,005
* 2006: 162,831
* 2011: 184,135
== Politickaght ==
Va tree ass ny queig ynnydyn ayns co-heiyderys y Vee cosnit ec [[Fianna Fáil]] veih'n vlein 1987. 'Sy traa cheddin va daa ynnyd cosnit ec [[Fine Gael]] faagail magh ny bleeaney 1992 nar va un ynnyd caillt da [[Partee yn Lught Obbyr (Nerin)|Partee yn Lught Obbyr]], agh va'n ynnyd shen aachosnit ec Fine Gael reesht 'sy vlein 1997. Myr eiyrtys er earroo pobble y choontae ta shey ynnydyn ec Coontae yn Vee nish, as t'eh rheynnit magh ayns daa cho-heiyderys nish: Y Vee Hiar as y Vee Heear (as eh goaill stiagh stugganyn jeh Coontae yn Eearvee).
Va fo-reihys 'sy vlein 2005 cosnit ec McEntee lurg irree ass oik y shenn-[[Taoiseach]], [[John Bruton]] (Fine Gael) as er y reihys echey myr Ambasseyder [[yn Unnaneys Oarpagh|Oarpagh]] da [[ny Steatyn Unnaneysit]].
Va Coonseil Choontae yn Vee fo stiurey Fianna Fáil veih 1985 derrey 1991 as reesht veih 1999 derrey 2004. Haink jerrey lesh y chioneys shen reesht lurg [[Reihyssyn ynnydagh Nerin, 2009|ny reihyssyn ynnydagh ayns 2009]]. She cummal roie ny coonseil jiu na:<ref>{{cite web |url=http://electionsireland.org/results/local/index.cfm |title=Local Elections |date=27 Mean Souree, 2009 |accessdate=27 Mean Souree, 2009 |language=Baarle}}</ref>
{| class="wikitable" style="text-align:right; padding-left:1em"
!align="left"|Blein
!style="background-color: {{Fianna Fáil/meta/daah}}; width: 3px;" |
|[[Fianna Fáil|FF]]
!style="background-color: {{Fine Gael/meta/daah}}; width: 3px;" |
|[[Fine Gael|FG]]
!style="background-color: {{Partee yn Lught Obbyr (Nerin)/meta/daah}}; width: 3px;" |
|[[Partee yn Lught Obbyr (Nerin)|LO]]
!style="background-color: {{Yn Partee Glass (Nerin)/meta/daah}}; width: 3px;" |
|[[Yn Partee Glass (Nerin)|PG]]
!style="background-color: {{Sinn Féin/meta/daah}}; width: 3px;" |
|[[Sinn Féin|SF]]
!style="padding-left:2em"|Elley
|-
|align="left"|2014
|colspan="2"|10
|colspan="2"|13
|colspan="2"|0
|colspan="2"|0
|colspan="2"|8
|colspan="2"|9
|- bgcolor="F3F3FF"
|align="left"|2009
|colspan="2"|8
|colspan="2"|11
|colspan="2"|4
|colspan="2"|0
|colspan="2"|1
|colspan="2"|5
|- bgcolor="F3F3FF"
|align="left"|2004
|colspan="2"|12
|colspan="2"|9
|colspan="2"|0
|colspan="2"|1
|colspan="2"|2
|colspan="2"|5
|-
|align="left"|1999
|colspan="2"|14
|colspan="2"|11
|colspan="2"|0
|colspan="2"|0
|colspan="2"|1
|colspan="2"|3
|}
== Spoyrt ==
She [[bluckaneyrys Gaelgagh]] y [[spoyrt]] smoo cadjin ayns Coontae yn Vee, as [[Craobh Shinsear Peile na hÉireann]] ("Crouw Hinsharagh Bluckaneyrys Nerin") cosnit ec [[CLG na Mí|fwirran bluckaneyrys]] y choontae 7 keayrtyn: ayns ny bleeantyn 1949, 1954, 1967, 1987, 1988, 1996, as 1999. Myrane lesh y vluckaneyrys, ta'n [[immanaght]], y [[ruggyr]] as [[soccer]] cloiet 'sy choontae. She [[Páirc Tailteann]] 'syn Ooive y staid smoo 'sy choontae as y staid shen ymmydit son bluckaneyrys Gaelgagh son y chooid smoo.
== Arraghey ==
=== Raaidyn ===
* She yn [[N3 (raad Nerin)|N3]] preeu-raad y choontae as eh roie veih [[Divlyn]], trooid [[yn Ooive]] as [[yn Cavan|y Cavan]], dys [[Béal Átha Seanaidh]].
* Bayr gleashtanagh yn [[N4 (raad Nerin)|M4]] ta ny lhie ayns Coontae Cheeill Darey as Coontae ny Mee
* Bayr gleashtanagh yn [[N1 (raad Nerin)|M1]] ta goll veih Divlyn dys [[Beeal Feirshtey]]
* Ta'n [[N2 (raad Nerin)|N2]] shaghney yn nah valley smoo 'sy choontae, [[Cill Dhéagláin]]. Ta'n raad shoh ny vollagh dooblit agh ta cagliagh bieauid 120 km/h er, cagliagh bieauid myr ta ry-gheddyn er bayryn gleashtanagh dy cadjin.
=== Raaidyn yiarn ===
* Ta traen troailt trick jannoo shirveish er baljyn beggey slystagh ny Mee as eh kiangley ad rish Divlyn
* Ta crouw-linney veih raad yiarn Divlyn-Beeal Feirshtey ry hoi traaght chooid jannoo kiangley eddyr yn Ooive rish Droghad Aah. Ta'n linney jeeragh veih'n Ooive dys Divlyn doont ec y traa t'ayn agh ta plan ayn y linney shen y aa-osley er linnaghyn polasee traghtee yn reiltys roie.
* Ta shirveish hroailt jannoo shirveishyn er [[An Bóthar Buí, Coontae yn Vee|an Bóthar Buí]]
== Imraaghyn ==
{{rolleyimraaghyn}}
== Jeeagh er neesht ==
* [[Coondaeghyn Nerin]]
== Kianglaghyn mooie ==
* [http://www.meath.ie/ Coonseil Choontae yn Vee] {{en jalloo}}
* [https://web.archive.org/web/20070208074056/http://www.meathtourism.ie/ Turrysaght yn Vee] {{en jalloo}}
* [http://www.cso.ie/census/ Ynnyd-eggey y CSO] {{en jalloo}}
{{Nerin - Coondaeghyn}}
{{Coontae ny Mee}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Vee}}
[[Ronney:Coontae yn Vee| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
g3ywrzmrpbp5g7o99dch0ey0jr25oaz
Coontae Vay Eo
0
3566
395377
336765
2026-10-26T22:55:59Z
MacTire02
219
++
395377
wikitext
text/x-wiki
{{Kishtey fys boayl
|sorçh_boayl = [[Coondaeghyn Nerin|Coontae]]
|ennym = Coontae Vay Eo
|ennym_gienneydagh = Choontae Vay Eo
|ennym_dooghyssagh = {{lang|ga|Contae Mhaigh Eo|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|County Mayo|italics=no}} {{small|([[Baarle]])}}
|jarroo-raa = {{lang|ga|Dia is Muire Linn}}
|çhengey_jarroo-raa = Yernish
|çhyndaa_jarroo-raa = Jee as Moirrey Lhien
|jalloo_armys = Cullee Choontae Vay Eo.png
|jalloo_caslys-çheerey = Island of Ireland location map Mayo.svg
}}
She [[coontae]] ayns [[Pobblaght Nerin]] ee '''May Eo''' ny '''Coontae Vay Eo'''. Ta'n coontae soit ayns [[Connaghtey]], nane jeh ny queiggaghyn Yernagh. She [[Cashtal y Varrey]] yn [[preeu-valley]].
==Imraaghyn==
{{reflist}}
{{Nerin - Coondaeghyn}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Vay Eo}}
{{bun}}
[[Ronney:Coontae Vay Eo| ]]
[[Ronney:Queiggey Connaghtey]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
i2c9zkcvk1m9egik64ry3ahljtxkdxr
395380
395377
2026-10-26T22:58:25Z
MacTire02
219
++
395380
wikitext
text/x-wiki
{{Kishtey fys boayl
|sorçh_boayl = [[Coondaeghyn Nerin|Coontae]]
|ennym = Coontae Vay Eo
|ennym_gienneydagh = Choontae Vay Eo
|ennym_dooghyssagh = {{lang|ga|Contae Mhaigh Eo|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|County Mayo|italics=no}} {{small|([[Baarle]])}}
|jarroo-raa = {{lang|ga|Dia is Muire Linn}}
|çhengey_jarroo-raa = Yernish
|çhyndaa_jarroo-raa = Jee as Moirrey Lhien
|jalloo_armys = Cullee Choontae Vay Eo.png
|jalloo_caslys-çheerey = Island of Ireland location map Mayo.svg
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
| ashchur_utc = +00:00
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +01:00
}}
She [[coontae]] ayns [[Pobblaght Nerin]] ee '''May Eo''' ny '''Coontae Vay Eo'''. Ta'n coontae soit ayns [[Connaghtey]], nane jeh ny queiggaghyn Yernagh. She [[Cashtal y Varrey]] yn [[preeu-valley]].
==Imraaghyn==
{{reflist}}
{{Nerin - Coondaeghyn}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Vay Eo}}
{{bun}}
[[Ronney:Coontae Vay Eo| ]]
[[Ronney:Queiggey Connaghtey]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
51s30eo7spyeydirgjerc9hm67lcxyt
Queiggey Connaghtey
0
3569
395393
273753
2026-10-27T00:12:13Z
MacTire02
219
++
395393
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Queiggey Connaghtey
|ennym_gienneydagh = Wheiggey Connaghtey
|jalloo = none
|ennym_dooghyssagh = {{lang|ga|Connachta|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Connacht|italics=no}} {{small|([[Baarle]])}}
|jalloo_caslys-çheerey = Connacht_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
|ashchur_utc_TTSL = +01:00
}}
Ta '''Queiggey Connaghtey''' ([[Baarle]]: ''Connacht'', [[Yernish]]: ''Connachta'' ny ''Cúige Chonnacht'') ny wheiggey heear [[Nerin]], as t'ee jeant seose jeh ny [[Coondaeghyn Nerin|coondaeghyn]] [[Coontae ny Galliu|Galliu]], [[Coontae Lheeahtrim|Lheeahtrim]], [[Coontae Vay Eo|May Eo]], [[Coontae Ros Comain|Ros Comain]] as [[Coontae Shliggee|Shliggagh]]. T'ad [[Galliu]] 'sy jiass as [[Shliggagh]] 'sy twoaie ny baljyn smoo 'sy wheiggey. T'ee ny queiggey sloo ayns Nerin, lesh 503,083 cummaltee 'sy vlein 2006.
== Yernish ==
Ta'n [[Yernish]] loayrit ayns ny h-ardjyn [[Gaeltacht]] jeh Coondaeghyn ny Galliu as Vay Eo, as ta'n kione smoo ayns sheear ny Galliu as ee coodaghey [[Cois Fharraige]] (''[[Yernish]]'' son "Rish y Cheayn"), as rinkyn [[Conamara|Chonamara]] as [[Dúiche Sheoigheach]] ("Slyst Shoynagh").
== Çheer-oaylleeaght ==
[[Coadan:Mweelrea depuis Rosroe - Killary harbour-Mweelrea.JPG|200px|left|thumb|She Maol Réidh yn slieau s'yrjey]]
She [[Maol Réidh]] (814 m) y boayl s'yrjey ayns Queiggey Connaghtey, as ta'n slieau shen ny lhie ayns [[Coontae Vay Eo]]. She [[Aghill]] yn ellan smoo, as ee ny h-ellan smoo ayns Nerin, myrgeddin. She [[Loch Coirib]] y logh smoo.
Ta [[Galliu]] ny balley smoo 'sy wheiggey lesh 72,414 cummaltee 'sy valley hene. T'ad [[Shliggagh]] (19,402), [[Caisleán an Bharraigh]] (11,891) as [[Beeal yn Aah, Coontae Vay Eo|Beeal yn Aah]] (10,409) ny baljyn mooarey scanshoil elley.
<div style="clear:left"></div>
== Politickaght ==
Va '''Connaghtey-Ulley''' fer jeh ny [[Co-heiyderys|co-heiyderyssyn]] son reihyssyn dys [[Parlamaid ny h-Oarpey]] derrey 2004 choud's va'n co-heiyderys noa, [[Sheear-Hwoaie (co-heiyderys Oarpagh)|Nerin Heear Hwoaie]], currit ayns e ynnyd.
== Jeeagh er neesht ==
* [[Yernish Chonnaghtey]]
* [[Cóiced Ol nEchmacht]]
* [[Cooiney Connaghtey]]
* [[Diuc Chonnaghtey]]
* [[Reeriaghtyn Nerin|Reeriaghtyn Henn Nerin]]
* [[Reeghyn Chonnaghtey]]
* [[Queiggaghyn Nerin]]
* [[Connachta]]
* [[Medb]] (Medhbh , Maeve), Ben-rein Chonnaghtey ayns [[Çhymshal Ulley]].
* [[CLG Connaghtey]]
* [[Connacht Rugby]]
* [[Çhiarnyn Chonnaghtey]]
* [[Connaught Rangers|The Connaught Rangers]]
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
[[Ronney:Queiggey Connaghtey| ]]
[[Ronney:Fir Bolg|Connaghtey]]
[[Ronney:Queiggaghyn Nerin|Connaghtey]]
3upreewznk0dubkd5t3bn2emykx8xw3
395394
395393
2026-10-27T00:17:59Z
MacTire02
219
++
395394
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Queiggey Connaghtey
|ennym_gienneydagh = Wheiggey Connaghtey
|jalloo = none
|ennym_dooghyssagh = {{lang|ga|Connachta|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Connacht|italics=no}} {{small|([[Baarle]])}}
|jalloo_caslys-çheerey = Connacht_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
|ashchur_utc_TTSL = +01:00
}}
Ta '''Queiggey Connaghtey''' ({{langx|en|Connacht}}, {{langx|ga|Connachta}} ny {{lang|ga|Cúige Chonnacht}}) ny wheiggey heear [[Nerin]], as t'ee jeant seose jeh ny [[Coondaeghyn Nerin|coondaeghyn]] [[Coontae ny Galliu|Galliu]], [[Coontae Lheeahtrim|Lheeahtrim]], [[Coontae Vay Eo|May Eo]], [[Coontae Ros Comain|Ros Comain]] as [[Coontae Shliggee|Shliggagh]]. T'ad [[Galliu]] 'sy jiass as [[Shliggagh]] 'sy twoaie ny baljyn smoo 'sy wheiggey. T'ee ny queiggey sloo ayns Nerin, lesh 503,083 cummaltee 'sy vlein 2006.
== Yernish ==
Ta'n [[Yernish]] loayrit ayns ny h-ardjyn [[Gaeltacht]] jeh Coondaeghyn ny Galliu as Vay Eo, as ta'n kione smoo ayns sheear ny Galliu as ee coodaghey [[Cois Fharraige]] (''[[Yernish]]'' son "Rish y Cheayn"), as rinkyn [[Conamara|Chonamara]] as [[Dúiche Sheoigheach]] ("Slyst Shoynagh").
== Çheer-oaylleeaght ==
[[Coadan:Mweelrea depuis Rosroe - Killary harbour-Mweelrea.JPG|200px|left|thumb|She Maol Réidh yn slieau s'yrjey]]
She [[Maol Réidh]] (814 m) y boayl s'yrjey ayns Queiggey Connaghtey, as ta'n slieau shen ny lhie ayns [[Coontae Vay Eo]]. She [[Aghill]] yn ellan smoo, as ee ny h-ellan smoo ayns Nerin, myrgeddin. She [[Loch Coirib]] y logh smoo.
Ta [[Galliu]] ny balley smoo 'sy wheiggey lesh 72,414 cummaltee 'sy valley hene. T'ad [[Shliggagh]] (19,402), [[Caisleán an Bharraigh]] (11,891) as [[Beeal yn Aah, Coontae Vay Eo|Beeal yn Aah]] (10,409) ny baljyn mooarey scanshoil elley.
<div style="clear:left"></div>
== Politickaght ==
Va '''Connaghtey-Ulley''' fer jeh ny [[Co-heiyderys|co-heiyderyssyn]] son reihyssyn dys [[Parlamaid ny h-Oarpey]] derrey 2004 choud's va'n co-heiyderys noa, [[Sheear-Hwoaie (co-heiyderys Oarpagh)|Nerin Heear Hwoaie]], currit ayns e ynnyd.
== Jeeagh er neesht ==
* [[Yernish Chonnaghtey]]
* [[Cóiced Ol nEchmacht]]
* [[Cooiney Connaghtey]]
* [[Diuc Chonnaghtey]]
* [[Reeriaghtyn Nerin|Reeriaghtyn Henn Nerin]]
* [[Reeghyn Chonnaghtey]]
* [[Queiggaghyn Nerin]]
* [[Connachta]]
* [[Medb]] (Medhbh , Maeve), Ben-rein Chonnaghtey ayns [[Çhymshal Ulley]].
* [[CLG Connaghtey]]
* [[Connacht Rugby]]
* [[Çhiarnyn Chonnaghtey]]
* [[Connaught Rangers|The Connaught Rangers]]
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
[[Ronney:Queiggey Connaghtey| ]]
[[Ronney:Fir Bolg|Connaghtey]]
[[Ronney:Queiggaghyn Nerin|Connaghtey]]
4xulwihcfryim0ie3dzbchaq0yuppe9
395395
395394
2026-10-27T00:18:28Z
MacTire02
219
++
395395
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Queiggey Connaghtey
|ennym_gienneydagh = Wheiggey Connaghtey
|jalloo = none
|ennym_dooghyssagh = {{lang|ga|Connachta|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Connacht|italics=no}} {{small|([[Baarle]])}}
|jalloo_caslys-çheerey = Connacht_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
|ashchur_utc_TTSL = +01:00
}}
Ta '''Queiggey Connaghtey''' ({{langx|en|Connacht}}, {{langx|ga|Connachta}} ny {{lang|ga|Cúige Chonnacht}}) ny wheiggey heear [[Nerin]], as t'ee jeant seose jeh ny [[Coondaeghyn Nerin|coondaeghyn]] [[Coontae ny Galliu|Galliu]], [[Coontae Lheeahtrim|Lheeahtrim]], [[Coontae Vay Eo|May Eo]], [[Coontae Ros Comain|Ros Comain]] as [[Coontae Shliggee|Shliggagh]]. T'ad [[Galliu]] 'sy jiass as [[Shliggagh]] 'sy twoaie ny baljyn smoo 'sy wheiggey. T'ee ny queiggey sloo ayns Nerin, lesh 503,083 cummaltee 'sy vlein 2006.
== Yernish ==
Ta'n [[Yernish]] loayrit ayns ny h-ardjyn [[Gaeltacht]] jeh Coondaeghyn ny Galliu as Vay Eo, as ta'n kione smoo ayns sheear ny Galliu as ee coodaghey [[Cois Fharraige]] (''[[Yernish]]'' son "Rish y Cheayn"), as rinkyn [[Conamara|Chonamara]] as [[Dúiche Sheoigheach]] ("Slyst Shoynagh").
== Çheer-oaylleeaght ==
[[Coadan:Mweelrea depuis Rosroe - Killary harbour-Mweelrea.JPG|200px|left|thumb|She Maol Réidh yn slieau s'yrjey]]
She [[Maol Réidh]] (814 m) y boayl s'yrjey ayns Queiggey Connaghtey, as ta'n slieau shen ny lhie ayns [[Coontae Vay Eo]]. She [[Aghill]] yn ellan smoo, as ee ny h-ellan smoo ayns Nerin, myrgeddin. She [[Loch Coirib]] y logh smoo.
Ta [[Galliu]] ny balley smoo 'sy wheiggey lesh 72,414 cummaltee 'sy valley hene. T'ad [[Shliggagh]] (19,402), [[Caisleán an Bharraigh]] (11,891) as [[Beeal yn Aah, Coontae Vay Eo|Beeal yn Aah]] (10,409) ny baljyn mooarey scanshoil elley.
<div style="clear:left"></div>
== Politickaght ==
Va '''Connaghtey-Ulley''' fer jeh ny [[Co-heiyderys|co-heiyderyssyn]] son reihyssyn dys [[Parlamaid ny h-Oarpey]] derrey 2004 choud's va'n co-heiyderys noa, [[Sheear-Hwoaie (co-heiyderys Oarpagh)|Nerin Heear Hwoaie]], currit ayns e ynnyd.
== Jeeagh er neesht ==
* [[Yernish Chonnaghtey]]
* [[Cóiced Ol nEchmacht]]
* [[Cooiney Connaghtey]]
* [[Diuc Chonnaghtey]]
* [[Reeriaghtyn Nerin|Reeriaghtyn Henn Nerin]]
* [[Reeghyn Chonnaghtey]]
* [[Queiggaghyn Nerin]]
* [[Connachta]]
* [[Medb]] (Medhbh , Maeve), Ben-rein Chonnaghtey ayns [[Çhymshal Ulley]].
* [[CLG Connaghtey]]
* [[Connacht Rugby]]
* [[Çhiarnyn Chonnaghtey]]
* [[Connaught Rangers|The Connaught Rangers]]
==Imraaghyn==
{{reflist}}
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
[[Ronney:Queiggey Connaghtey| ]]
[[Ronney:Fir Bolg|Connaghtey]]
[[Ronney:Queiggaghyn Nerin|Connaghtey]]
iryd0c1y54wsmy20ncpvesnkd1k1zqn
Queiggey Mooan
0
3572
395391
273756
2026-10-27T00:06:16Z
MacTire02
219
++
395391
wikitext
text/x-wiki
{{Kishtey fys boayl
|sorçh_boayl = [[Queiggaghyn Nerin|Queiggey]]
|ennym = Queiggey Mooan
|ennym_gienneydagh = Wheiggey Mooan
|jalloo = none
|ennym_dooghyssagh = {{lang|ga|An Mhumhain|italics=no}}<ref name="logainm">{{cite web |title=ISO 3166-2 NEWSLETTER |url=http://www.iso.org/iso/iso_3166-2_newsletter_ii-1_corrected_2010-02-19.pdf |website=www.iso.org |access-date=30 Mee ny Nollick 2012 |archive-date=3 Toshiaght Arree 2017 |date= 19 Toshiaght Arree 2010 |archive-url=https://web.archive.org/web/20170203140951/http://www.iso.org/iso/iso_3166-2_newsletter_ii-1_corrected_2010-02-19.pdf |url-status=live }}</ref> {{small|([[Yernish]])}}<br/>{{lang|en|Munster|italics=no}}<ref name="logainm"/> {{small|([[Baarle]])}}
|jalloo_caslys-çheerey = Munster_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
|ashchur_utc_TTSL = +01:00
}}
Ta '''Queiggey Mooan''' ({{langx|en|Munster}}, {{langx|ga|Cúige Mumhan}} ny {{lang|ga|An Mhumhain}}) nane jeh ny [[Queiggaghyn Nerin|queiggaghyn Yernagh]]. She [[Corkee]] yn ard-valley smoo.
Ta'n queiggey rheynnit ayns 6 coondaeghyn:
* [[Coontae Hybbyrt Aarey|Çhybbyrt Aarey]]
** [[Çhybbyrt Aarey Hwoaie]]
** [[Çhybbyrt Aarey Yiass]]
* [[Coontae yn Chlaair|Yn Claar]]
* [[Coontae Chorkee|Corkee]]
* [[Coontae Cherree|Kerree]]
* [[Coontae Limmeragh|Limmeragh]]
* [[Coontae Phurt Largey|Purt Largey]]
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
[[Ronney:Queiggey Mooan| ]]
[[Ronney:Queiggaghyn Nerin|Mooan]]
3m4accjk65ef880zwqly98zrk6fpttw
395392
395391
2026-10-27T00:06:37Z
MacTire02
219
++
395392
wikitext
text/x-wiki
{{Kishtey fys boayl
|sorçh_boayl = [[Queiggaghyn Nerin|Queiggey]]
|ennym = Queiggey Mooan
|ennym_gienneydagh = Wheiggey Mooan
|jalloo = none
|ennym_dooghyssagh = {{lang|ga|An Mhumhain|italics=no}}<ref name="logainm">{{cite web |title=ISO 3166-2 NEWSLETTER |url=http://www.iso.org/iso/iso_3166-2_newsletter_ii-1_corrected_2010-02-19.pdf |website=www.iso.org |access-date=30 Mee ny Nollick 2012 |archive-date=3 Toshiaght Arree 2017 |date= 19 Toshiaght Arree 2010 |archive-url=https://web.archive.org/web/20170203140951/http://www.iso.org/iso/iso_3166-2_newsletter_ii-1_corrected_2010-02-19.pdf |url-status=live }}</ref> {{small|([[Yernish]])}}<br/>{{lang|en|Munster|italics=no}}<ref name="logainm"/> {{small|([[Baarle]])}}
|jalloo_caslys-çheerey = Munster_locator_map.svg
|cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
|ashchur_utc = +00:00
|cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
|ashchur_utc_TTSL = +01:00
}}
Ta '''Queiggey Mooan''' ({{langx|en|Munster}}, {{langx|ga|Cúige Mumhan}} ny {{lang|ga|An Mhumhain}}) nane jeh ny [[Queiggaghyn Nerin|queiggaghyn Yernagh]]. She [[Corkee]] yn ard-valley smoo.
Ta'n queiggey rheynnit ayns 6 coondaeghyn:
* [[Coontae Hybbyrt Aarey|Çhybbyrt Aarey]]
** [[Çhybbyrt Aarey Hwoaie]]
** [[Çhybbyrt Aarey Yiass]]
* [[Coontae yn Chlaair|Yn Claar]]
* [[Coontae Chorkee|Corkee]]
* [[Coontae Cherree|Kerree]]
* [[Coontae Limmeragh|Limmeragh]]
* [[Coontae Phurt Largey|Purt Largey]]
==Imraaghyn==
{{reflist}}
{{Nerin - Coondaeghyn}}
{{gurneil eaghtyrys}}
[[Ronney:Queiggey Mooan| ]]
[[Ronney:Queiggaghyn Nerin|Mooan]]
7bh43q6xdt0czysxeqc3tyutvtiemke
Yn Ooive
0
3574
395307
360212
2026-10-26T12:39:37Z
MacTire02
219
++
395307
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = yn Ooive
| ennym = Yn Ooive
| ennym_oikoil_gienneydagh =
| ennym_oikoil =
| ennym_elley = <small>''An Uaimh'' <small>([[Yernish|ga]])</small><br/>''Navan'' <small>([[Baarle|en]])</small></small>
| ennym_dooghyssagh =
| sorçh_balley = Balley
| jalloo_armys = Cullee ny h-Ooive.png
| mooadys_armys = 85px
| jarroo-raa =
| far-ennym =
| jalloo_bun_speyrey = MarketSquareNavan.JPG
| mooadys_jalloo = 250px
| fo-heidyl_jalloo = An Chearnóg ("Y Kerrin"), çheshvean yn Ooive
| caslys-çheerey_broo-freeney = ny h-Erin
| soiaghey_lipaid_broo-freeney =
| fo-heidyl_caslys-çheerey_broo-freeney = Soiaghey yn Ooive ayns Nerin
| mooadys_caslys-çheerey_broo-freeney =
| ard_coordnaidyn = IE
| taishbyney_coordnaidyn = inline, title
| sorçh_aarheynn = [[Rolley çheeraghyn y theihill|Çheer]]
| ennym_aarheynn = {{brattagh|Ireland|Pobblaght Nerin{{!}}Nerin}}
| sorçh_aarheynn1 = [[Queiggaghyn Nerin|Queiggey]]
| ennym_aarheynn1 = {{brattagh|Leinster|Queiggey Lion}}
| sorçh_aarheynn2 = [[Coondaeghyn Nerin|Coontae]]
| ennym_aarheynn2 = [[Coontae yn Vee|Yn Vee]]
| sorçh_aarheynn3 = [[Dáil Éireann]]
| ennym_aarheynn3 = [[Yn Vee Heear (co-heiyderys Dáil Éireann)|Yn Vee Heear]]
| sorçh_aarheynn4 = [[Parlamaid yn Oarpey]]
| ennym_aarheynn4 = [[Shiar (co-heiyderys Pharlamaid yn Oarpey)|Shiar]]
| sorçh_slane = Balley
| slane_earroo_yn_phobble = 28179
| enmys_earroo_yn_phobble_bane1 = Binn
| earroo_yn_phobble_bane1 = 15855
| earroo_yn_phobble_er = 2011
| fo-noteyn_earroo_yn_phobble = <ref name=noteyEaghtyrPobble/><ref name=cso2011>{{cite web
|url = http://www.cso.ie/gaeilge/census/Table8.htm
|title = Actual and percentage change in population 2006 to 2011 by Province County City Urban area Rural area and Electoral division by District, Year and Statistic 2011
|accessdate = 16 Jerrey Souree 2011
|date = 2011
|work = Census 2011 - Preliminary Results
|publisher = [[Príomh Oifig Staidrimh na hÉireann]]
}} {{en jalloo}}</ref>
| glooaght_y_phobble_km2 = <!--1589-->
| slane_eaghtyr_km2 = 1.99
| fo-noteyn_eaghtyr = (Roish 2009)<ref name=noteyEaghtyrPobble>Ayns Mee Averil 2009 va joarey yn valley sheeynt magh 'sy choontae dy ghoaill stiagh ny smoo thalloo as ny smoo na 14,000 deiney</ref><ref name=csoTable6>{{cite web
|url = http://www.cso.ie/census/documents/census2006_Table_6.pdf
|title = Table 6 - Population and area of each Province, County, City, urban area, rural area and Electoral Division, 2002 and 2006
|accessdate = 2010-07-25
|date = 2007-04-26
|format = PDF
|work = Census 2006, Volume 1 - Population Classified by Area
|publisher = [[Central Statistics Office (Nerin)|Oik Staydraa Nerin]]
|pages = d. 71
}} {{en jalloo}}</ref>
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
| ashchur_utc = +0
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +1
| yrjid_m = 42
| latd = 53 |latm = 39 |lats = 10 |latNS = N
| longd = 06 |longm = 40 |longs = 53 |longEW = W
| blank_name_sec1 = [[Ingagh ogheragh Nerin]]
| blank_info_sec1 = {{iem4ibx|N872677}}
| coad_ardjynagh = +353 46
| ynnyd-eggey =
| fo-noteyn =
}}
She preeu-valley as y balley smoo ayns [[Coontae yn Vee]] ee '''yn Ooive''' ({{langx|ga|An Uaimh}}, {{langx|en|Navan}}). Ta'n balley ny lhie ayns çheshvean y choontae er [[Raaidyn ayns Nerin|Phreeu-raad Ashoonagh]] yn [[N3 (raad Nerin)|N3]] mygeayrt 50 kilometeryn sheear hwoaie veih [[Divlyn]] as 25 kilometeryn sheear veih [[Droghad Aah]]. Ta'n balley ny lhie ayns [[Gleann na Bóinne]] ("Glion an Bhóinn") ec çheet ry-cheilley ny h-awinyn [[An Abhainn Dubh, Coontae yn Vee|An Abhainn Dubh]] ("Yn Awin Dhoo") as [[an Bhóinn]]. Myrane lesh shen, ta'n balley ny lhie 20 km seose yn awin veih [[Brú na Bóinne]] (ny lhiaghtyn noalittagh ta goaill stiagh [[Sí an Bhrú]], [[Cnobha]], as [[Dubhadh]]). Ta ny buill hendeeagh [[Teamhair na Rí]], [[Mannishter Beigthigh]], [[An Scrín, Coontae yn Vee|An Scrín]] as [[Baile Shláine]] soit faggys da'n valley. Ta [[Baile Átha Troim]] ny lhie seose awin an Bhóinn veih'n Ooive, as ta [[Ceanannas, Coontae yn Vee|Ceanannas]] ny lhie seose yn Abhainn Dubh voee.
== Baljyn lannoonagh ==
{| class="wikitable" "text-align:left;font-size:100%;"|
|-
! style="background: #811541; color: #FFFFFF" ! |
! style="background: #811541; color: #FFFFFF" height="17" width="120" | Çheer
! style="background: #810001; color: #FFFFFF" ! |
! style="background: #810001; color: #FFFFFF" ! width="100" | Boayl
! style="background: #811541; color: #FFFFFF" ! |
! style="background: #811541; color: #FFFFFF" ! width="130" | Coontae / Slyst / Ard / Steat
! style="background: #811541; color: #FFFFFF" ! width="40" | Date
|-
! style="background: #FFFFEF; color: #000000" ! | {{brattagh|Italy}}
|! style="background: #FFFFEF; color: #000000" ! | [[Yn Iddaal]]
! style="background: #FFFFCF; color: #000000" ! | [[Coadan:Bobbio-Stemma.svg|25px|]]
|! style="background: #FFFFCF; color: #000000" ! | '''[[Bobbio]]'''
! style="background: #FFFFEF; color: #000000" ! | [[Coadan:Flag_of_Emilia-Romagna_(de_facto).svg|25px|border]]
|! style="background: #FFFFEF; color: #000000" ! | ''[[Emilia-Romagna]]''
|! style="background: #FFFFEF; color: #000000" ! | 2002<ref>{{cite web| url=http://www.catholicbishops.ie/media-centre/press-release-archive/4-2002/712-56-2002 |title=Freedom of the City of Bobbio (Italy) conferred on Cardinal Cahal Daly |date=22 Sauin, 2002 | accessdate=26 Mean Souree, 2009 |language=Baarle}}</ref>
|-
! style="background: #FFFFEF; color: #000000" ! | {{brattagh|Italy}}
|! style="background: #FFFFEF; color: #000000" ! | [[Yn Iddaal]]
! style="background: #FFFFCF; color: #000000" ! |
|! style="background: #FFFFCF; color: #000000" ! | '''[[Broccostella]]'''
! style="background: #FFFFEF; color: #000000" ! | [[Coadan:Flag_of_Lazio.svg|25px|border]]
|! style="background: #FFFFEF; color: #000000" ! | ''[[Lazio]]''
|! style="background: #FFFFEF; color: #000000" ! | 2006<ref>{{cite web | url=http://www.meathchronicle.ie/news/roundup/articles/2009/08/19/390523 | title=Group visits Navan's twin town in Italy | date=19 Luanistyn, 2009 | accessdate=01 Mean Fouyir, 2009 | language=Baarle | archivedate=2017-07-05 | archiveurl=https://web.archive.org/web/20170705233455/http://www.meathchronicle.ie/news/roundup/articles/2009/08/19/390523 }}</ref><ref>{{cite web| url=http://www.meathlive.com/_news/localarticle.asp?NID=91479&NCID=13 |title=Twinning charter signed in Navan |date=20 Mean Souree, 2006 | accessdate=01 Mean Fouyir, 2009 |language=Baarle}}</ref>
|}
== Imraaghyn ==
{{rolleyimraaghyn}}
{{Coontae ny Mee}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Ooive, Yn}}
[[Ronney:Yn Ooive| ]]
[[Ronney:Baljyn coontae ayns Pobblaght Nerin]]
[[Ronney:Baljyn as baljyn beggey ayns Coontae yn Vee]]
[[Ronney:Skeeraghyn theayagh Choontae yn Vee]]
[[Ronney:Eear-slystyn baljagh ayns Pobblaght Nerin]]
[[Ronney:Eear-valjyn corpagh ayns Pobblaght Nerin]]
n7bj4pmv9joqa4jksdfoqov4ti1ywg9
395341
395307
2026-10-26T15:38:49Z
MacTire02
219
++
395341
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = yn Ooive
| ennym = Yn Ooive
| ennym_dooghyssagh = {{lang|ga|An Uaimh|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|Navan|italics=no}} {{small|([[Baarle]])}}
| sorçh_balley = Balley coontae
| jalloo_bun_speyrey = MarketSquareNavan.JPG
| fo-heidyl_jalloo = An Chearnóg ("Y Kerrin"), çheshvean yn Ooive
| caslys-çheerey_broo-freeney = ny h-Erin
| soiaghey_lipaid_broo-freeney =
| fo-heidyl_caslys-çheerey_broo-freeney = Soiaghey yn Ooive ayns Nerin
| mooadys_caslys-çheerey_broo-freeney =
|enmys_rheynn-reihys = [[Rheynnyn-reihys Dáil Éireann|Rheynnyn-reihys]]
|rheynn-reihys = [[Yn Vee Heear|Y Vee Heear]]
|rheynn-reihys2 = [[Yn Vee Hiar|Y Vee Hiar]]
|rheynn-reihys3 = [[Yn Lhoo (rheynn-reihys)|Y Lhoo]]
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
| ashchur_utc = +00:00
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +01:00
}}
She preeu-valley as y balley smoo ayns [[Coontae yn Vee]] ee '''yn Ooive''' ({{langx|ga|An Uaimh}}, {{langx|en|Navan}}). Ta'n balley ny lhie ayns çheshvean y choontae er [[Raaidyn ayns Nerin|Phreeu-raad Ashoonagh]] yn [[N3 (raad Nerin)|N3]] mygeayrt {{cvt|50|km}} sheear hwoaie veih [[Divlyn]] as {{cvt|25|km}} sheear veih [[Droghad Aah]]. Ta'n balley ny lhie ayns [[Gleann na Bóinne]] ("Glion an Bhóinn") ec çheet ry-cheilley ny h-awinyn [[An Abhainn Dubh, Coontae yn Vee|An Abhainn Dubh]] ("Yn Awin Dhoo") as [[an Bhóinn]]. Myrane lesh shen, ta'n balley ny lhie {{cvt|20|km}} seose yn awin veih [[Brú na Bóinne]] (ny lhiaghtyn noalittagh ta goaill stiagh [[Sí an Bhrú]], [[Cnobha]], as [[Dubhadh]]). Ta ny buill hendeeagh [[Teamhair na Rí]], [[Mannishter Beigthigh]], [[An Scrín, Coontae yn Vee|An Scrín]] as [[Baile Shláine]] soit faggys da'n valley. Ta [[Baile Átha Troim]] ny lhie seose awin an Bhóinn veih'n Ooive, as ta [[Ceanannas, Coontae yn Vee|Ceanannas]] ny lhie seose yn Abhainn Dubh voee.
== Baljyn lannoonagh ==
{| class="wikitable" "text-align:left;font-size:100%;"|
|-
! style="background: #811541; color: #FFFFFF" ! |
! style="background: #811541; color: #FFFFFF" height="17" width="120" | Çheer
! style="background: #810001; color: #FFFFFF" ! |
! style="background: #810001; color: #FFFFFF" ! width="100" | Boayl
! style="background: #811541; color: #FFFFFF" ! |
! style="background: #811541; color: #FFFFFF" ! width="130" | Coontae / Slyst / Ard / Steat
! style="background: #811541; color: #FFFFFF" ! width="40" | Date
|-
! style="background: #FFFFEF; color: #000000" ! | {{brattagh|Italy}}
|! style="background: #FFFFEF; color: #000000" ! | [[Yn Iddaal]]
! style="background: #FFFFCF; color: #000000" ! | [[Coadan:Bobbio-Stemma.svg|25px|]]
|! style="background: #FFFFCF; color: #000000" ! | '''[[Bobbio]]'''
! style="background: #FFFFEF; color: #000000" ! | [[Coadan:Flag_of_Emilia-Romagna_(de_facto).svg|25px|border]]
|! style="background: #FFFFEF; color: #000000" ! | ''[[Emilia-Romagna]]''
|! style="background: #FFFFEF; color: #000000" ! | 2002<ref>{{cite web| url=http://www.catholicbishops.ie/media-centre/press-release-archive/4-2002/712-56-2002 |title=Freedom of the City of Bobbio (Italy) conferred on Cardinal Cahal Daly |date=22 Mee Houney 2002 | accessdate=26 Mean Souree 2009 |language=Baarle}}</ref>
|-
! style="background: #FFFFEF; color: #000000" ! | {{brattagh|Italy}}
|! style="background: #FFFFEF; color: #000000" ! | [[Yn Iddaal]]
! style="background: #FFFFCF; color: #000000" ! |
|! style="background: #FFFFCF; color: #000000" ! | '''[[Broccostella]]'''
! style="background: #FFFFEF; color: #000000" ! | [[Coadan:Flag_of_Lazio.svg|25px|border]]
|! style="background: #FFFFEF; color: #000000" ! | ''[[Lazio]]''
|! style="background: #FFFFEF; color: #000000" ! | 2006<ref>{{cite web | url=http://www.meathchronicle.ie/news/roundup/articles/2009/08/19/390523 | title=Group visits Navan's twin town in Italy | date=19 Luanistyn 2009 | accessdate=1 Mean Fouyir 2009 | language=Baarle | archivedate=5 Jerrey Souree 2017 | archiveurl=https://web.archive.org/web/20170705233455/http://www.meathchronicle.ie/news/roundup/articles/2009/08/19/390523 }}</ref><ref>{{cite web| url=http://www.meathlive.com/_news/localarticle.asp?NID=91479&NCID=13 |title=Twinning charter signed in Navan |date=20 Mean Souree 2006 | accessdate=1 Mean Fouyir 2009 |language=Baarle}}</ref>
|}
== Imraaghyn ==
{{rolleyimraaghyn}}
{{Coontae ny Mee}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Ooive, Yn}}
[[Ronney:Yn Ooive| ]]
[[Ronney:Baljyn coontae ayns Pobblaght Nerin]]
[[Ronney:Baljyn as baljyn beggey ayns Coontae yn Vee]]
[[Ronney:Skeeraghyn theayagh Choontae yn Vee]]
[[Ronney:Eear-slystyn baljagh ayns Pobblaght Nerin]]
[[Ronney:Eear-valjyn corpagh ayns Pobblaght Nerin]]
6y9tg6p33vdmbet2dao42o6ebiobfog
Coontae Ghivlyn
0
3579
395353
369708
2026-10-26T19:53:47Z
MacTire02
219
++
395353
wikitext
text/x-wiki
{{Kishtey fys boayl
|ennym = Coontae Ghivlyn
|ennym_gienneydagh = Choontae Ghivlyn
|ennym_dooghyssagh = {{lang|ga|Contae Bhaile Átha Cliath|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|County Dublin|italics=no}} {{small|([[Baarle]])}}
|jarroo-raa = Beart do réir ár mbriathar
|çhengey_jarroo-raa= Yernish
|çhyndaa_jarroo-raa= Jantys rere y fockle ain
|jalloo_armys = Cullee Choontae Ghivlyn.png
|jalloo_brattagh = none
|jalloo_caslys-çheerey = Island of Ireland location map Dublin.svg
|soiag = [[Divlyn]]
}}
Ta '''Coontae Ghivlyn''' ({{langx|ga|Contae Átha Cliath}}, {{langx|en|County Dublin}}), ny '''Ard Ghivlyn''' jiu<ref name="r1">{{cite web|url=http://www.irishstatutebook.ie/ZZSI394Y1993.html|title=Local Government Act, 1991 (Regional Authorities) (Establishment) Order, 1993|accessdate=2009-07-31|archivedate=2007-02-11|archiveurl=https://web.archive.org/web/20070211080238/http://www.irishstatutebook.ie/ZZSI394Y1993.html}}</ref> ({{langx|ga|Réigiún Átha Cliath}}, {{langx|en|Dublin Region}}), ny ard as ny choontae tradishoonagh ta goaill stiagh ard-valley [[Divlyn|Ghivlyn]], [[preeu-valley]] [[Pobblaght Nerin|Nerin]], myrane lesh ny coondaeghyn noa-emshiragh [[Coontae Ghoon Laoire-Rhaa yn Doon|Doon Laoire-Rhaa yn Doon]], [[Coontae 'ine Goal|Fine Goal]] as [[Coontae Ghivlyn Yiass|Divlyn Yiass]]. She [[Lught-Reill Ardjynagh Ghivlyn]] ny [[Ardjyn Phobblaght Nerin|lught-reill ardjynagh]] da'n ard. Va Divyln nane jeh ny [[Coondaeghyn Nerin|coondaeghyn]] shinney ayns Nerin dy ve kiaddit, ayns ny 1100yn jeianagh liorish [[Juan Hostyn|Ree Juan Hostyn]].
== Soiaghey as staydys ==
Ta Divlyn ny hoie er coose hiar Nerin ayns [[Queiggaghyn Nerin|Queiggey]] [[Queiggey Lion|Lion]].
Va staydys [[coontae]] formoil ec yn ard roish y skeaylley echey myr coontae ayns 1994, lesh Ayrn 9 Cooid 1(a) jeh'n ''Local Government (Dublin) Act, 1993'' as eh gra "dy bee jerrey lesh y choontae" veih'n 1d Jerrey Geuree 1994.<ref>[[Slattys yn Oireachtas]]: [https://web.archive.org/web/20070227133331/http://www.irishstatutebook.ie/ZZA31Y1993S9.html Local Government (Dublin) Act, 1993 (Section 9 Part 1(a))]</ref> Ec y traa shen, as myr freggyrt rish tuarastyl jeh'n Choonseil Oarpagh va taishbyney dy row Nerin ny çheer smoo laarit 'syn [[Unnaneys Oarpagh]], v'eh briwnyssit nagh row un choontae 'syn ard so-stiurey as deynlagh rere perspeghtaght ghurneilys ynnydagh. Va'n coontae skeayllt dy formoil as va ny coondaeghyn [[Coontae Ghoon Laoire-Rhaa yn Doon|Doon Laoire-Rhaa yn Doon]], [[Coontae 'ine Goal|Fine Goal]], as [[Coontae Ghivlyn Yiass|Divlyn Yiass]] currit ayns e ynnyd, lesh soiaghey coontae hene ec dagh fer jeu. Va fys mie ec y reiltys er mooads y slattys v'er ny gholl trooid y Dáil, as eh currit ayns noteyn dy geyre ec [[Avril Doyle]] ayns [[Dáil Éireann]] er 3 Sauin 1993, tra v'eh fogrit eck dy row "Y Billey roin jiu cur jerrey lesh Coontae Ghivlyn dy breeoil, as myr dooiney va ruggit as troggit 'syn ard shoh ayns Nerin ta mee smooinaghtyn dy vel eh quaagh dy vel shin 'sy Thie shoh cur jerrey lesh Coontae Ghivlyn. Cha nel mee shickyr dy vel ny Divlynee toiggal cre ta shin jannoo jiu, agh she shen yn stayd dy breeoil."<ref>"The Bill before us today effectively abolishes County Dublin, and as one born and bred in these parts of Ireland I find it rather strange that we in this House are abolishing County Dublin. I am not sure whether Dubliners realise that that is what we are about today, but in effect that is the case." [[Dáil Éireann]]: [https://web.archive.org/web/20050319103229/http://www.oireachtas-debates.gov.ie/D/0435/D.0435.199311030007.html Parliamentary Debates (3 Sauin, 1993)]</ref>
=== Staydys roie ===
'Sy traa t'ayn jiu, ta kuse vooar dy heshaghtyn, bingyssyn steat as fwirranyn spoyrt gobbraghey er bunneydys "Choontae Ghivlyn". Rere shen, ta tharmane ayn mychione leighoilid ny coondaeghyn noa - ga dy vel staydys [[coontae reiragh]] oc as y staydys shen yn un staydys ta freilt rere y vunraght ayns [[Pobblaght Nerin]]. Ta cur sheese er Coontae Ghivlyn ayns slattyssaght myr "Ard Ghivlyn" ynrican rere conaantyn y ''Local Government Act, 1991 (Regional Authorities) (Establishment) Order, 1993'',<ref name="r1" /> as she shen y termeeaght ta ymmydit dy h-oikoil ec ny kiare coonseilyn reiragh ayns Divlyn ayns cuir-magh naight bentyn rish ard y çhenn choontae. Ta ymmyd er lheh jeh'n enmys ''[[Ard Ghivlyn Mooar]]'' cur seose tharmane chammah, as yn ard shen jeant seose jeh Ard Ghivlyn myrane lesh ny coondaeghyn [[Coontae Cheeill Darey|Keeill Darey]], [[Coontae ny Mee|yn Vee]] as [[Coontae Cheeill Mantan|Keeill Mantan]]. Rere coontey-pobble ny bleeaney 2002<ref name="r4">[[Oik Meanagh ny Staydraa (Nerin)|Oik Meanagh ny Staydraa]]: [http://www.cso.ie/census/Vol1.htm Census 2002 (Volume 1- Population Classified by Area)] <!--NB Needs to be revised for these figures http://www.cso.ie/census/documents/vol1_entire.pdf --></ref> va 1,122,821 cummaltee ayns Ard Ghivlyn, as eh jannoo 28% jeh pobble ny çheerey.
== Gurneilys ynnydagh ==
[[Coadan:Map of the Dublin Region2.PNG|thumb|180px|right|Caslys-çheerey Choontae Ghivlyn lesh ny kiare rheynnyn reiragh t'ayn nish]]
Ta [[Coonseil Ard-Valjagh Ghivlyn]] er ve ayn er feie ram eashyn, er enney myr ''Co-chorp Ghivlyn'' myr [[coontae corpagh]], as va [[Coonseil Choontae Ghivlyn]] scryssit magh 'sy vlein 1994. Va tree coonseilyn noa currit ayns e ynnyd: T'ad ny rheynnyn reiragh ynnydagh t'ayns Ard Ghivlyn jiu na:
{| class="wikitable" BORDER=1 CELLSPACING=0 CELLPADDING="3" align=center
| rowspan="2"|'''Ennym'''
| rowspan="2" |'''Caslys<br />çheerey'''
| colspan="2" align=center|'''Eaghtyr'''
| rowspan="2"|'''Earroo yn phobble''': <br /><center>2006</center>
|-
|align=center|km²
|align=center|mi ker
|-
| [[Divlyn]]
| align=center| 1
| 114.99 km<sup>2</sup> (12.6%)
| 44.40 mi ker (12.6%)
| 505,739 (42.6%)
|-
| [[Coontae Ghoon Laoire-Raah yn Doon|Doon Laoire-Raah yn Doon]]
| align=center| 2
| 127.31 km<sup>2</sup> (13.9%)
| 49.15 mi ker (13.9%)
| 193,688 (16.3%)
|-
| [[Coontae 'ine Goal|Fine Goal]]
| align=center| 3
| 448.07 km<sup>2</sup> (49.1%)
| 173.00 mi ker (49.1%)
| 239,813 (20.2%)
|-
| [[Coontae Aah Cleeah Yiass|Balley Aah Cleeah Yiass]]
| align=center| 4
| 222.74 km<sup>2</sup> (24.4%)
| 86.00 mi ker (20.2%)
| 246,919 (20.8%)
|}
=== Meoir Ghivlyn ===
Ayns Mee Voaldyn ny bleeaney 2009, v'eh fogrit magh ec [[John Gormley]], [[Shirveishagh Çhymmyltaght, Eiraght as Gurneilys Ynnydagh]], dy bee "Meoir Ghivlyn" reiht dy jeeragh veih 2010, as va ny currymyn echey cosoylagh rish ad t'ec [[Meoir Lunnin]], as dy bee e churrymyn sheeynt magh er feie ny kiare rheynnyn reiragh çheusthie jeh shenn choontae Ghivlyn.<ref>
{{cite news |url=http://www.independent.ie/national-news/dublin-to-get-first-directly-elected-mayor-by-next-year-1736938.html |title=Dublin to get first directly elected mayor by next year |last=Molony |first=Senan |date=13 Boaldyn 2009 |work=[[Irish Independent]] |accessdate=2009-05-13}}</ref> Bee'n Meoir ny chaairliagh er [[Údarás Iompair Bhaile Átha Cliath]].<ref>
{{cite news |url=http://www.irishtimes.com/newspaper/breaking/2009/0512/breaking75.htm |title=Dublin to elect mayor next year |last=Edwards |first=Elaine |date=12 Boaldyn 2009 |work=[[The Irish Times]] |accessdate=2009-05-13}}
</ref> Ta [[Ard-Veoir Ghivlyn]] roie ny chaairliagh er y Choonseil Ard-Valjagh, as ta'n oik shen er ny reih dagh blein.
== Baljyn as fo-valjyn ==
* [[Áth an Ghainimh]], [[An Aill]], [[An Briotás]], [[An Caisleán Nua, Coontae Ghivlyn|An Caisleán Nua]], [[An Charraig Dhubh]], [[An Cloigín Gorm]], [[An Choill Mhór]], [[An Port Thoir]], [[Ard Aidhin]]
* [[Baile Adaim]], [[Baile an Ásaigh]], [[Baile an Bhóthair, Coontae Ghivlyn|Baile an Bhóthair]], [[Baile an Hartaigh]], [[Baile an Huntaigh]], [[Baile an Lobhair]], [[Baile an Mhuilinn]], [[Baile an Teampaill]], [[Baile an Tirialaigh]], [[Baile an tSaoir]], [[Baile Bhailcín]], [[Baile Bhlainséir]], [[Baile Breac]], [[Baile Brigín]], [[Baile Baodáin]], [[Baile Dúill]], [[Baile Éamainn]], [[Baile Formaid]], [[Baile na nGabhar]], [[Baile Munna]], [[Baile na Manach]], [[Baile na Miontan]], [[Baile Pheire]], [[Baile Phámar]], [[Baile Phib]], [[Baile Rónáin]], [[Baile Uí Lachnáin]], [[Baile Ghrífín]], [[Baile Uí Chuilinn]], [[Baile na Ridire]], [[Beaumont]], [[Belfield]], [[Binn Éadair]], [[Bóthar na gCloch]]
* [[Cabán tSíle]], [[Cabrach]], [[Caisleán Crucha]], [[Cam Uisce]], [[An Carnán]], [[Baile an Chairpintéaraigh]], [[Carraig an tSionnaigh]], [[Carraig Maonais]], [[An Chéim]], [[An Chúlóg]], [[Cill Bharróg]], [[Cill Easra]], [[Cill Fhionntáin]], [[Cill Iníon Léinín]], [[Cill Mac Oda]], [[Cill Mhaighneann]], [[Cill Na Manach]], [[Cill Tiarnáin]], [[Cionn Sáile]], [[Cluain Dolcáin]], [[Cluain Ioraird]], [[Cluain Saileach]], [[Cluain Sceach]], [[Cluain Seach]], [[Cluain Tarbh]], [[Cnocán Doirinne]], [[Cnoc Mhuirfean]], [[Coill na Silíní]], [[Cois Bá]], [[An Com]], [[Croimghlinn]], [[Crois Araild]], [[Cuan Aoibhinn]], [[Cuas an Ghainimh]], [[Cúl Mhín]]
* [[Darndál]], [[Dartraí]], [[Deilginis]], [[Divlyn]], [[Domhnach Bat]], [[Domhnach Broc]], [[Domhnach Cearnaigh]], [[Domhnach Míde]], [[Droichead na Dothra]], [[Droichead na hInse]], [[Droim Conrach]], [[Droimneach]], [[Dumhach Thrá]], [[Doon Laoire]], [[Dún Droma]]
* [[Faiche na Rás]], [[Fionnradharc]], [[Fionnbhrú]], [[Fionnghlas]]
* [[Na Glasáin]], [[Glas Naíon]], [[Glas Tuathail]], [[Gleancuillean]], [[Gleann na gCaorach]], [[Gráinseach Ghormáin]], [[Gráinseach an Déin]], [[Na Glaschnoic]]
* [[Iarthar na Cathrach]], [[Inse Chór]]
* [[Cill Shalcháin]], [[Cnoc Liamhna]]
* [[Leamhcán]], [[Lusca]]
* [[Margadh na Feirme]], [[Marino]], [[Muirfin]], [[Mullach Eadrad]], [[Mullach Íde]]
* [[Ongar]]
* [[Port Mearnóg]]
* [[Raghnallach]], [[Ráth Cúil]], [[Ráth Eanaigh]], [[Ráth Fearnáin]], [[Ráth Garbh]], [[Ráth Maonais]], [[Ráth Mhichíl]], [[Ráth Miontáin]], [[Rialto]], [[An Rinn, Coontae Ghivlyn|An Rinn]], [[Ros Eó]], [[Rockbrook]]
* [[Sáile Cnocáin]], [[Na Sceirí]], [[An Seanbhábhún]], [[Seanchill]], [[Seantrabh]], [[Séipéal Iosóid]], [[Sord Cholmcille]], [[Stigh Lorcáin]]
* [[Tamhlacht]], [[Teach Mealóg]], [[Teach na Giúise]], [[Teach Sagairt]], [[Teampaill Ghil]], [[Tír an Iúir]]
== Jeeagh er neesht ==
* [[Rolley mannishteryn as prioraghtyn ayns Pobblaght Nerin#Coontae Ghivlyn|Rolley mannishteryn as prioraghtyn ayns Pobblaght Nerin (Coontae Ghivlyn)]]
* [[Rolley aarheynnyn Choontae Ghivlyn]]
* [[Barranyssyn Nerin|Son aarheynnyn barranagh y çhenn choontae]]
== Imraaghyn ==
{{rolleyimraaghyn}}
== Kianglaghyn mooie ==
* [https://web.archive.org/web/20040719074422/http://www.dra.ie/ Lught-Reill Ardjynagh Ghivlyn]
* [https://web.archive.org/web/20040618040951/http://www.irish-architecture.com/buildings_ireland/dublin/ Seyrnaght Choontae Ghivlyn]
* [https://web.archive.org/web/20061019234739/http://scripts.ireland.com/ancestor/fuses/civilparish/index.cfm?fuseaction=GetMap&CityCounty=Dublin%20city Skeeraghyn theayagh Choontae Ghivlyn, veih Ireland.com]
{{Nerin - Coondaeghyn}}
{{Ardjyn Phobblaght Nerin}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Ghivlyn}}
[[Ronney:Coontae Ghivlyn| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn staddyssaghtoil NUTS Phobblaght Nerin]]
mtugumsbta29jbhdh10x55z583y8y5q
395368
395353
2026-10-26T22:13:29Z
MacTire02
219
++
395368
wikitext
text/x-wiki
{{Kishtey fys boayl
|sorçh_boayl = [[Condaeghyn Nerin|Coontae]]
|ennym = Coontae Ghivlyn
|ennym_gienneydagh = Choontae Ghivlyn
|ennym_dooghyssagh = {{lang|ga|Contae Bhaile Átha Cliath|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|County Dublin|italics=no}} {{small|([[Baarle]])}}
|jarroo-raa = Beart do réir ár mbriathar
|çhengey_jarroo-raa= Yernish
|çhyndaa_jarroo-raa= Jantys rere y fockle ain
|jalloo_armys = Cullee Choontae Ghivlyn.png
|jalloo_brattagh = none
|jalloo_caslys-çheerey = Island of Ireland location map Dublin.svg
|soiag = [[Divlyn]]
}}
Ta '''Coontae Ghivlyn''' ({{langx|ga|Contae Átha Cliath}}, {{langx|en|County Dublin}}), ny '''Ard Ghivlyn''' jiu<ref name="r1">{{cite web|url=http://www.irishstatutebook.ie/ZZSI394Y1993.html|title=Local Government Act, 1991 (Regional Authorities) (Establishment) Order, 1993|accessdate=2009-07-31|archivedate=2007-02-11|archiveurl=https://web.archive.org/web/20070211080238/http://www.irishstatutebook.ie/ZZSI394Y1993.html}}</ref> ({{langx|ga|Réigiún Átha Cliath}}, {{langx|en|Dublin Region}}), ny ard as ny choontae tradishoonagh ta goaill stiagh ard-valley [[Divlyn|Ghivlyn]], [[preeu-valley]] [[Pobblaght Nerin|Nerin]], myrane lesh ny coondaeghyn noa-emshiragh [[Coontae Ghoon Laoire-Rhaa yn Doon|Doon Laoire-Rhaa yn Doon]], [[Coontae 'ine Goal|Fine Goal]] as [[Coontae Ghivlyn Yiass|Divlyn Yiass]]. She [[Lught-Reill Ardjynagh Ghivlyn]] ny [[Ardjyn Phobblaght Nerin|lught-reill ardjynagh]] da'n ard. Va Divyln nane jeh ny [[Coondaeghyn Nerin|coondaeghyn]] shinney ayns Nerin dy ve kiaddit, ayns ny 1100yn jeianagh liorish [[Juan Hostyn|Ree Juan Hostyn]].
== Soiaghey as staydys ==
Ta Divlyn ny hoie er coose hiar Nerin ayns [[Queiggaghyn Nerin|Queiggey]] [[Queiggey Lion|Lion]].
Va staydys [[coontae]] formoil ec yn ard roish y skeaylley echey myr coontae ayns 1994, lesh Ayrn 9 Cooid 1(a) jeh'n ''Local Government (Dublin) Act, 1993'' as eh gra "dy bee jerrey lesh y choontae" veih'n 1d Jerrey Geuree 1994.<ref>[[Slattys yn Oireachtas]]: [https://web.archive.org/web/20070227133331/http://www.irishstatutebook.ie/ZZA31Y1993S9.html Local Government (Dublin) Act, 1993 (Section 9 Part 1(a))]</ref> Ec y traa shen, as myr freggyrt rish tuarastyl jeh'n Choonseil Oarpagh va taishbyney dy row Nerin ny çheer smoo laarit 'syn [[Unnaneys Oarpagh]], v'eh briwnyssit nagh row un choontae 'syn ard so-stiurey as deynlagh rere perspeghtaght ghurneilys ynnydagh. Va'n coontae skeayllt dy formoil as va ny coondaeghyn [[Coontae Ghoon Laoire-Rhaa yn Doon|Doon Laoire-Rhaa yn Doon]], [[Coontae 'ine Goal|Fine Goal]], as [[Coontae Ghivlyn Yiass|Divlyn Yiass]] currit ayns e ynnyd, lesh soiaghey coontae hene ec dagh fer jeu. Va fys mie ec y reiltys er mooads y slattys v'er ny gholl trooid y Dáil, as eh currit ayns noteyn dy geyre ec [[Avril Doyle]] ayns [[Dáil Éireann]] er 3 Sauin 1993, tra v'eh fogrit eck dy row "Y Billey roin jiu cur jerrey lesh Coontae Ghivlyn dy breeoil, as myr dooiney va ruggit as troggit 'syn ard shoh ayns Nerin ta mee smooinaghtyn dy vel eh quaagh dy vel shin 'sy Thie shoh cur jerrey lesh Coontae Ghivlyn. Cha nel mee shickyr dy vel ny Divlynee toiggal cre ta shin jannoo jiu, agh she shen yn stayd dy breeoil."<ref>"The Bill before us today effectively abolishes County Dublin, and as one born and bred in these parts of Ireland I find it rather strange that we in this House are abolishing County Dublin. I am not sure whether Dubliners realise that that is what we are about today, but in effect that is the case." [[Dáil Éireann]]: [https://web.archive.org/web/20050319103229/http://www.oireachtas-debates.gov.ie/D/0435/D.0435.199311030007.html Parliamentary Debates (3 Sauin, 1993)]</ref>
=== Staydys roie ===
'Sy traa t'ayn jiu, ta kuse vooar dy heshaghtyn, bingyssyn steat as fwirranyn spoyrt gobbraghey er bunneydys "Choontae Ghivlyn". Rere shen, ta tharmane ayn mychione leighoilid ny coondaeghyn noa - ga dy vel staydys [[coontae reiragh]] oc as y staydys shen yn un staydys ta freilt rere y vunraght ayns [[Pobblaght Nerin]]. Ta cur sheese er Coontae Ghivlyn ayns slattyssaght myr "Ard Ghivlyn" ynrican rere conaantyn y ''Local Government Act, 1991 (Regional Authorities) (Establishment) Order, 1993'',<ref name="r1" /> as she shen y termeeaght ta ymmydit dy h-oikoil ec ny kiare coonseilyn reiragh ayns Divlyn ayns cuir-magh naight bentyn rish ard y çhenn choontae. Ta ymmyd er lheh jeh'n enmys ''[[Ard Ghivlyn Mooar]]'' cur seose tharmane chammah, as yn ard shen jeant seose jeh Ard Ghivlyn myrane lesh ny coondaeghyn [[Coontae Cheeill Darey|Keeill Darey]], [[Coontae ny Mee|yn Vee]] as [[Coontae Cheeill Mantan|Keeill Mantan]]. Rere coontey-pobble ny bleeaney 2002<ref name="r4">[[Oik Meanagh ny Staydraa (Nerin)|Oik Meanagh ny Staydraa]]: [http://www.cso.ie/census/Vol1.htm Census 2002 (Volume 1- Population Classified by Area)] <!--NB Needs to be revised for these figures http://www.cso.ie/census/documents/vol1_entire.pdf --></ref> va 1,122,821 cummaltee ayns Ard Ghivlyn, as eh jannoo 28% jeh pobble ny çheerey.
== Gurneilys ynnydagh ==
[[Coadan:Map of the Dublin Region2.PNG|thumb|180px|right|Caslys-çheerey Choontae Ghivlyn lesh ny kiare rheynnyn reiragh t'ayn nish]]
Ta [[Coonseil Ard-Valjagh Ghivlyn]] er ve ayn er feie ram eashyn, er enney myr ''Co-chorp Ghivlyn'' myr [[coontae corpagh]], as va [[Coonseil Choontae Ghivlyn]] scryssit magh 'sy vlein 1994. Va tree coonseilyn noa currit ayns e ynnyd: T'ad ny rheynnyn reiragh ynnydagh t'ayns Ard Ghivlyn jiu na:
{| class="wikitable" BORDER=1 CELLSPACING=0 CELLPADDING="3" align=center
| rowspan="2"|'''Ennym'''
| rowspan="2" |'''Caslys<br />çheerey'''
| colspan="2" align=center|'''Eaghtyr'''
| rowspan="2"|'''Earroo yn phobble''': <br /><center>2006</center>
|-
|align=center|km²
|align=center|mi ker
|-
| [[Divlyn]]
| align=center| 1
| 114.99 km<sup>2</sup> (12.6%)
| 44.40 mi ker (12.6%)
| 505,739 (42.6%)
|-
| [[Coontae Ghoon Laoire-Raah yn Doon|Doon Laoire-Raah yn Doon]]
| align=center| 2
| 127.31 km<sup>2</sup> (13.9%)
| 49.15 mi ker (13.9%)
| 193,688 (16.3%)
|-
| [[Coontae 'ine Goal|Fine Goal]]
| align=center| 3
| 448.07 km<sup>2</sup> (49.1%)
| 173.00 mi ker (49.1%)
| 239,813 (20.2%)
|-
| [[Coontae Aah Cleeah Yiass|Balley Aah Cleeah Yiass]]
| align=center| 4
| 222.74 km<sup>2</sup> (24.4%)
| 86.00 mi ker (20.2%)
| 246,919 (20.8%)
|}
=== Meoir Ghivlyn ===
Ayns Mee Voaldyn ny bleeaney 2009, v'eh fogrit magh ec [[John Gormley]], [[Shirveishagh Çhymmyltaght, Eiraght as Gurneilys Ynnydagh]], dy bee "Meoir Ghivlyn" reiht dy jeeragh veih 2010, as va ny currymyn echey cosoylagh rish ad t'ec [[Meoir Lunnin]], as dy bee e churrymyn sheeynt magh er feie ny kiare rheynnyn reiragh çheusthie jeh shenn choontae Ghivlyn.<ref>
{{cite news |url=http://www.independent.ie/national-news/dublin-to-get-first-directly-elected-mayor-by-next-year-1736938.html |title=Dublin to get first directly elected mayor by next year |last=Molony |first=Senan |date=13 Boaldyn 2009 |work=[[Irish Independent]] |accessdate=2009-05-13}}</ref> Bee'n Meoir ny chaairliagh er [[Údarás Iompair Bhaile Átha Cliath]].<ref>
{{cite news |url=http://www.irishtimes.com/newspaper/breaking/2009/0512/breaking75.htm |title=Dublin to elect mayor next year |last=Edwards |first=Elaine |date=12 Boaldyn 2009 |work=[[The Irish Times]] |accessdate=2009-05-13}}
</ref> Ta [[Ard-Veoir Ghivlyn]] roie ny chaairliagh er y Choonseil Ard-Valjagh, as ta'n oik shen er ny reih dagh blein.
== Baljyn as fo-valjyn ==
* [[Áth an Ghainimh]], [[An Aill]], [[An Briotás]], [[An Caisleán Nua, Coontae Ghivlyn|An Caisleán Nua]], [[An Charraig Dhubh]], [[An Cloigín Gorm]], [[An Choill Mhór]], [[An Port Thoir]], [[Ard Aidhin]]
* [[Baile Adaim]], [[Baile an Ásaigh]], [[Baile an Bhóthair, Coontae Ghivlyn|Baile an Bhóthair]], [[Baile an Hartaigh]], [[Baile an Huntaigh]], [[Baile an Lobhair]], [[Baile an Mhuilinn]], [[Baile an Teampaill]], [[Baile an Tirialaigh]], [[Baile an tSaoir]], [[Baile Bhailcín]], [[Baile Bhlainséir]], [[Baile Breac]], [[Baile Brigín]], [[Baile Baodáin]], [[Baile Dúill]], [[Baile Éamainn]], [[Baile Formaid]], [[Baile na nGabhar]], [[Baile Munna]], [[Baile na Manach]], [[Baile na Miontan]], [[Baile Pheire]], [[Baile Phámar]], [[Baile Phib]], [[Baile Rónáin]], [[Baile Uí Lachnáin]], [[Baile Ghrífín]], [[Baile Uí Chuilinn]], [[Baile na Ridire]], [[Beaumont]], [[Belfield]], [[Binn Éadair]], [[Bóthar na gCloch]]
* [[Cabán tSíle]], [[Cabrach]], [[Caisleán Crucha]], [[Cam Uisce]], [[An Carnán]], [[Baile an Chairpintéaraigh]], [[Carraig an tSionnaigh]], [[Carraig Maonais]], [[An Chéim]], [[An Chúlóg]], [[Cill Bharróg]], [[Cill Easra]], [[Cill Fhionntáin]], [[Cill Iníon Léinín]], [[Cill Mac Oda]], [[Cill Mhaighneann]], [[Cill Na Manach]], [[Cill Tiarnáin]], [[Cionn Sáile]], [[Cluain Dolcáin]], [[Cluain Ioraird]], [[Cluain Saileach]], [[Cluain Sceach]], [[Cluain Seach]], [[Cluain Tarbh]], [[Cnocán Doirinne]], [[Cnoc Mhuirfean]], [[Coill na Silíní]], [[Cois Bá]], [[An Com]], [[Croimghlinn]], [[Crois Araild]], [[Cuan Aoibhinn]], [[Cuas an Ghainimh]], [[Cúl Mhín]]
* [[Darndál]], [[Dartraí]], [[Deilginis]], [[Divlyn]], [[Domhnach Bat]], [[Domhnach Broc]], [[Domhnach Cearnaigh]], [[Domhnach Míde]], [[Droichead na Dothra]], [[Droichead na hInse]], [[Droim Conrach]], [[Droimneach]], [[Dumhach Thrá]], [[Doon Laoire]], [[Dún Droma]]
* [[Faiche na Rás]], [[Fionnradharc]], [[Fionnbhrú]], [[Fionnghlas]]
* [[Na Glasáin]], [[Glas Naíon]], [[Glas Tuathail]], [[Gleancuillean]], [[Gleann na gCaorach]], [[Gráinseach Ghormáin]], [[Gráinseach an Déin]], [[Na Glaschnoic]]
* [[Iarthar na Cathrach]], [[Inse Chór]]
* [[Cill Shalcháin]], [[Cnoc Liamhna]]
* [[Leamhcán]], [[Lusca]]
* [[Margadh na Feirme]], [[Marino]], [[Muirfin]], [[Mullach Eadrad]], [[Mullach Íde]]
* [[Ongar]]
* [[Port Mearnóg]]
* [[Raghnallach]], [[Ráth Cúil]], [[Ráth Eanaigh]], [[Ráth Fearnáin]], [[Ráth Garbh]], [[Ráth Maonais]], [[Ráth Mhichíl]], [[Ráth Miontáin]], [[Rialto]], [[An Rinn, Coontae Ghivlyn|An Rinn]], [[Ros Eó]], [[Rockbrook]]
* [[Sáile Cnocáin]], [[Na Sceirí]], [[An Seanbhábhún]], [[Seanchill]], [[Seantrabh]], [[Séipéal Iosóid]], [[Sord Cholmcille]], [[Stigh Lorcáin]]
* [[Tamhlacht]], [[Teach Mealóg]], [[Teach na Giúise]], [[Teach Sagairt]], [[Teampaill Ghil]], [[Tír an Iúir]]
== Jeeagh er neesht ==
* [[Rolley mannishteryn as prioraghtyn ayns Pobblaght Nerin#Coontae Ghivlyn|Rolley mannishteryn as prioraghtyn ayns Pobblaght Nerin (Coontae Ghivlyn)]]
* [[Rolley aarheynnyn Choontae Ghivlyn]]
* [[Barranyssyn Nerin|Son aarheynnyn barranagh y çhenn choontae]]
== Imraaghyn ==
{{rolleyimraaghyn}}
== Kianglaghyn mooie ==
* [https://web.archive.org/web/20040719074422/http://www.dra.ie/ Lught-Reill Ardjynagh Ghivlyn]
* [https://web.archive.org/web/20040618040951/http://www.irish-architecture.com/buildings_ireland/dublin/ Seyrnaght Choontae Ghivlyn]
* [https://web.archive.org/web/20061019234739/http://scripts.ireland.com/ancestor/fuses/civilparish/index.cfm?fuseaction=GetMap&CityCounty=Dublin%20city Skeeraghyn theayagh Choontae Ghivlyn, veih Ireland.com]
{{Nerin - Coondaeghyn}}
{{Ardjyn Phobblaght Nerin}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Ghivlyn}}
[[Ronney:Coontae Ghivlyn| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn staddyssaghtoil NUTS Phobblaght Nerin]]
emsofqj4ol2xzv84yd9aq0lat46kydf
395369
395368
2026-10-26T22:13:51Z
MacTire02
219
++
395369
wikitext
text/x-wiki
{{Kishtey fys boayl
|sorçh_boayl = [[Coondaeghyn Nerin|Coontae]]
|ennym = Coontae Ghivlyn
|ennym_gienneydagh = Choontae Ghivlyn
|ennym_dooghyssagh = {{lang|ga|Contae Bhaile Átha Cliath|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|County Dublin|italics=no}} {{small|([[Baarle]])}}
|jarroo-raa = Beart do réir ár mbriathar
|çhengey_jarroo-raa= Yernish
|çhyndaa_jarroo-raa= Jantys rere y fockle ain
|jalloo_armys = Cullee Choontae Ghivlyn.png
|jalloo_brattagh = none
|jalloo_caslys-çheerey = Island of Ireland location map Dublin.svg
|soiag = [[Divlyn]]
}}
Ta '''Coontae Ghivlyn''' ({{langx|ga|Contae Átha Cliath}}, {{langx|en|County Dublin}}), ny '''Ard Ghivlyn''' jiu<ref name="r1">{{cite web|url=http://www.irishstatutebook.ie/ZZSI394Y1993.html|title=Local Government Act, 1991 (Regional Authorities) (Establishment) Order, 1993|accessdate=2009-07-31|archivedate=2007-02-11|archiveurl=https://web.archive.org/web/20070211080238/http://www.irishstatutebook.ie/ZZSI394Y1993.html}}</ref> ({{langx|ga|Réigiún Átha Cliath}}, {{langx|en|Dublin Region}}), ny ard as ny choontae tradishoonagh ta goaill stiagh ard-valley [[Divlyn|Ghivlyn]], [[preeu-valley]] [[Pobblaght Nerin|Nerin]], myrane lesh ny coondaeghyn noa-emshiragh [[Coontae Ghoon Laoire-Rhaa yn Doon|Doon Laoire-Rhaa yn Doon]], [[Coontae 'ine Goal|Fine Goal]] as [[Coontae Ghivlyn Yiass|Divlyn Yiass]]. She [[Lught-Reill Ardjynagh Ghivlyn]] ny [[Ardjyn Phobblaght Nerin|lught-reill ardjynagh]] da'n ard. Va Divyln nane jeh ny [[Coondaeghyn Nerin|coondaeghyn]] shinney ayns Nerin dy ve kiaddit, ayns ny 1100yn jeianagh liorish [[Juan Hostyn|Ree Juan Hostyn]].
== Soiaghey as staydys ==
Ta Divlyn ny hoie er coose hiar Nerin ayns [[Queiggaghyn Nerin|Queiggey]] [[Queiggey Lion|Lion]].
Va staydys [[coontae]] formoil ec yn ard roish y skeaylley echey myr coontae ayns 1994, lesh Ayrn 9 Cooid 1(a) jeh'n ''Local Government (Dublin) Act, 1993'' as eh gra "dy bee jerrey lesh y choontae" veih'n 1d Jerrey Geuree 1994.<ref>[[Slattys yn Oireachtas]]: [https://web.archive.org/web/20070227133331/http://www.irishstatutebook.ie/ZZA31Y1993S9.html Local Government (Dublin) Act, 1993 (Section 9 Part 1(a))]</ref> Ec y traa shen, as myr freggyrt rish tuarastyl jeh'n Choonseil Oarpagh va taishbyney dy row Nerin ny çheer smoo laarit 'syn [[Unnaneys Oarpagh]], v'eh briwnyssit nagh row un choontae 'syn ard so-stiurey as deynlagh rere perspeghtaght ghurneilys ynnydagh. Va'n coontae skeayllt dy formoil as va ny coondaeghyn [[Coontae Ghoon Laoire-Rhaa yn Doon|Doon Laoire-Rhaa yn Doon]], [[Coontae 'ine Goal|Fine Goal]], as [[Coontae Ghivlyn Yiass|Divlyn Yiass]] currit ayns e ynnyd, lesh soiaghey coontae hene ec dagh fer jeu. Va fys mie ec y reiltys er mooads y slattys v'er ny gholl trooid y Dáil, as eh currit ayns noteyn dy geyre ec [[Avril Doyle]] ayns [[Dáil Éireann]] er 3 Sauin 1993, tra v'eh fogrit eck dy row "Y Billey roin jiu cur jerrey lesh Coontae Ghivlyn dy breeoil, as myr dooiney va ruggit as troggit 'syn ard shoh ayns Nerin ta mee smooinaghtyn dy vel eh quaagh dy vel shin 'sy Thie shoh cur jerrey lesh Coontae Ghivlyn. Cha nel mee shickyr dy vel ny Divlynee toiggal cre ta shin jannoo jiu, agh she shen yn stayd dy breeoil."<ref>"The Bill before us today effectively abolishes County Dublin, and as one born and bred in these parts of Ireland I find it rather strange that we in this House are abolishing County Dublin. I am not sure whether Dubliners realise that that is what we are about today, but in effect that is the case." [[Dáil Éireann]]: [https://web.archive.org/web/20050319103229/http://www.oireachtas-debates.gov.ie/D/0435/D.0435.199311030007.html Parliamentary Debates (3 Sauin, 1993)]</ref>
=== Staydys roie ===
'Sy traa t'ayn jiu, ta kuse vooar dy heshaghtyn, bingyssyn steat as fwirranyn spoyrt gobbraghey er bunneydys "Choontae Ghivlyn". Rere shen, ta tharmane ayn mychione leighoilid ny coondaeghyn noa - ga dy vel staydys [[coontae reiragh]] oc as y staydys shen yn un staydys ta freilt rere y vunraght ayns [[Pobblaght Nerin]]. Ta cur sheese er Coontae Ghivlyn ayns slattyssaght myr "Ard Ghivlyn" ynrican rere conaantyn y ''Local Government Act, 1991 (Regional Authorities) (Establishment) Order, 1993'',<ref name="r1" /> as she shen y termeeaght ta ymmydit dy h-oikoil ec ny kiare coonseilyn reiragh ayns Divlyn ayns cuir-magh naight bentyn rish ard y çhenn choontae. Ta ymmyd er lheh jeh'n enmys ''[[Ard Ghivlyn Mooar]]'' cur seose tharmane chammah, as yn ard shen jeant seose jeh Ard Ghivlyn myrane lesh ny coondaeghyn [[Coontae Cheeill Darey|Keeill Darey]], [[Coontae ny Mee|yn Vee]] as [[Coontae Cheeill Mantan|Keeill Mantan]]. Rere coontey-pobble ny bleeaney 2002<ref name="r4">[[Oik Meanagh ny Staydraa (Nerin)|Oik Meanagh ny Staydraa]]: [http://www.cso.ie/census/Vol1.htm Census 2002 (Volume 1- Population Classified by Area)] <!--NB Needs to be revised for these figures http://www.cso.ie/census/documents/vol1_entire.pdf --></ref> va 1,122,821 cummaltee ayns Ard Ghivlyn, as eh jannoo 28% jeh pobble ny çheerey.
== Gurneilys ynnydagh ==
[[Coadan:Map of the Dublin Region2.PNG|thumb|180px|right|Caslys-çheerey Choontae Ghivlyn lesh ny kiare rheynnyn reiragh t'ayn nish]]
Ta [[Coonseil Ard-Valjagh Ghivlyn]] er ve ayn er feie ram eashyn, er enney myr ''Co-chorp Ghivlyn'' myr [[coontae corpagh]], as va [[Coonseil Choontae Ghivlyn]] scryssit magh 'sy vlein 1994. Va tree coonseilyn noa currit ayns e ynnyd: T'ad ny rheynnyn reiragh ynnydagh t'ayns Ard Ghivlyn jiu na:
{| class="wikitable" BORDER=1 CELLSPACING=0 CELLPADDING="3" align=center
| rowspan="2"|'''Ennym'''
| rowspan="2" |'''Caslys<br />çheerey'''
| colspan="2" align=center|'''Eaghtyr'''
| rowspan="2"|'''Earroo yn phobble''': <br /><center>2006</center>
|-
|align=center|km²
|align=center|mi ker
|-
| [[Divlyn]]
| align=center| 1
| 114.99 km<sup>2</sup> (12.6%)
| 44.40 mi ker (12.6%)
| 505,739 (42.6%)
|-
| [[Coontae Ghoon Laoire-Raah yn Doon|Doon Laoire-Raah yn Doon]]
| align=center| 2
| 127.31 km<sup>2</sup> (13.9%)
| 49.15 mi ker (13.9%)
| 193,688 (16.3%)
|-
| [[Coontae 'ine Goal|Fine Goal]]
| align=center| 3
| 448.07 km<sup>2</sup> (49.1%)
| 173.00 mi ker (49.1%)
| 239,813 (20.2%)
|-
| [[Coontae Aah Cleeah Yiass|Balley Aah Cleeah Yiass]]
| align=center| 4
| 222.74 km<sup>2</sup> (24.4%)
| 86.00 mi ker (20.2%)
| 246,919 (20.8%)
|}
=== Meoir Ghivlyn ===
Ayns Mee Voaldyn ny bleeaney 2009, v'eh fogrit magh ec [[John Gormley]], [[Shirveishagh Çhymmyltaght, Eiraght as Gurneilys Ynnydagh]], dy bee "Meoir Ghivlyn" reiht dy jeeragh veih 2010, as va ny currymyn echey cosoylagh rish ad t'ec [[Meoir Lunnin]], as dy bee e churrymyn sheeynt magh er feie ny kiare rheynnyn reiragh çheusthie jeh shenn choontae Ghivlyn.<ref>
{{cite news |url=http://www.independent.ie/national-news/dublin-to-get-first-directly-elected-mayor-by-next-year-1736938.html |title=Dublin to get first directly elected mayor by next year |last=Molony |first=Senan |date=13 Boaldyn 2009 |work=[[Irish Independent]] |accessdate=2009-05-13}}</ref> Bee'n Meoir ny chaairliagh er [[Údarás Iompair Bhaile Átha Cliath]].<ref>
{{cite news |url=http://www.irishtimes.com/newspaper/breaking/2009/0512/breaking75.htm |title=Dublin to elect mayor next year |last=Edwards |first=Elaine |date=12 Boaldyn 2009 |work=[[The Irish Times]] |accessdate=2009-05-13}}
</ref> Ta [[Ard-Veoir Ghivlyn]] roie ny chaairliagh er y Choonseil Ard-Valjagh, as ta'n oik shen er ny reih dagh blein.
== Baljyn as fo-valjyn ==
* [[Áth an Ghainimh]], [[An Aill]], [[An Briotás]], [[An Caisleán Nua, Coontae Ghivlyn|An Caisleán Nua]], [[An Charraig Dhubh]], [[An Cloigín Gorm]], [[An Choill Mhór]], [[An Port Thoir]], [[Ard Aidhin]]
* [[Baile Adaim]], [[Baile an Ásaigh]], [[Baile an Bhóthair, Coontae Ghivlyn|Baile an Bhóthair]], [[Baile an Hartaigh]], [[Baile an Huntaigh]], [[Baile an Lobhair]], [[Baile an Mhuilinn]], [[Baile an Teampaill]], [[Baile an Tirialaigh]], [[Baile an tSaoir]], [[Baile Bhailcín]], [[Baile Bhlainséir]], [[Baile Breac]], [[Baile Brigín]], [[Baile Baodáin]], [[Baile Dúill]], [[Baile Éamainn]], [[Baile Formaid]], [[Baile na nGabhar]], [[Baile Munna]], [[Baile na Manach]], [[Baile na Miontan]], [[Baile Pheire]], [[Baile Phámar]], [[Baile Phib]], [[Baile Rónáin]], [[Baile Uí Lachnáin]], [[Baile Ghrífín]], [[Baile Uí Chuilinn]], [[Baile na Ridire]], [[Beaumont]], [[Belfield]], [[Binn Éadair]], [[Bóthar na gCloch]]
* [[Cabán tSíle]], [[Cabrach]], [[Caisleán Crucha]], [[Cam Uisce]], [[An Carnán]], [[Baile an Chairpintéaraigh]], [[Carraig an tSionnaigh]], [[Carraig Maonais]], [[An Chéim]], [[An Chúlóg]], [[Cill Bharróg]], [[Cill Easra]], [[Cill Fhionntáin]], [[Cill Iníon Léinín]], [[Cill Mac Oda]], [[Cill Mhaighneann]], [[Cill Na Manach]], [[Cill Tiarnáin]], [[Cionn Sáile]], [[Cluain Dolcáin]], [[Cluain Ioraird]], [[Cluain Saileach]], [[Cluain Sceach]], [[Cluain Seach]], [[Cluain Tarbh]], [[Cnocán Doirinne]], [[Cnoc Mhuirfean]], [[Coill na Silíní]], [[Cois Bá]], [[An Com]], [[Croimghlinn]], [[Crois Araild]], [[Cuan Aoibhinn]], [[Cuas an Ghainimh]], [[Cúl Mhín]]
* [[Darndál]], [[Dartraí]], [[Deilginis]], [[Divlyn]], [[Domhnach Bat]], [[Domhnach Broc]], [[Domhnach Cearnaigh]], [[Domhnach Míde]], [[Droichead na Dothra]], [[Droichead na hInse]], [[Droim Conrach]], [[Droimneach]], [[Dumhach Thrá]], [[Doon Laoire]], [[Dún Droma]]
* [[Faiche na Rás]], [[Fionnradharc]], [[Fionnbhrú]], [[Fionnghlas]]
* [[Na Glasáin]], [[Glas Naíon]], [[Glas Tuathail]], [[Gleancuillean]], [[Gleann na gCaorach]], [[Gráinseach Ghormáin]], [[Gráinseach an Déin]], [[Na Glaschnoic]]
* [[Iarthar na Cathrach]], [[Inse Chór]]
* [[Cill Shalcháin]], [[Cnoc Liamhna]]
* [[Leamhcán]], [[Lusca]]
* [[Margadh na Feirme]], [[Marino]], [[Muirfin]], [[Mullach Eadrad]], [[Mullach Íde]]
* [[Ongar]]
* [[Port Mearnóg]]
* [[Raghnallach]], [[Ráth Cúil]], [[Ráth Eanaigh]], [[Ráth Fearnáin]], [[Ráth Garbh]], [[Ráth Maonais]], [[Ráth Mhichíl]], [[Ráth Miontáin]], [[Rialto]], [[An Rinn, Coontae Ghivlyn|An Rinn]], [[Ros Eó]], [[Rockbrook]]
* [[Sáile Cnocáin]], [[Na Sceirí]], [[An Seanbhábhún]], [[Seanchill]], [[Seantrabh]], [[Séipéal Iosóid]], [[Sord Cholmcille]], [[Stigh Lorcáin]]
* [[Tamhlacht]], [[Teach Mealóg]], [[Teach na Giúise]], [[Teach Sagairt]], [[Teampaill Ghil]], [[Tír an Iúir]]
== Jeeagh er neesht ==
* [[Rolley mannishteryn as prioraghtyn ayns Pobblaght Nerin#Coontae Ghivlyn|Rolley mannishteryn as prioraghtyn ayns Pobblaght Nerin (Coontae Ghivlyn)]]
* [[Rolley aarheynnyn Choontae Ghivlyn]]
* [[Barranyssyn Nerin|Son aarheynnyn barranagh y çhenn choontae]]
== Imraaghyn ==
{{rolleyimraaghyn}}
== Kianglaghyn mooie ==
* [https://web.archive.org/web/20040719074422/http://www.dra.ie/ Lught-Reill Ardjynagh Ghivlyn]
* [https://web.archive.org/web/20040618040951/http://www.irish-architecture.com/buildings_ireland/dublin/ Seyrnaght Choontae Ghivlyn]
* [https://web.archive.org/web/20061019234739/http://scripts.ireland.com/ancestor/fuses/civilparish/index.cfm?fuseaction=GetMap&CityCounty=Dublin%20city Skeeraghyn theayagh Choontae Ghivlyn, veih Ireland.com]
{{Nerin - Coondaeghyn}}
{{Ardjyn Phobblaght Nerin}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Ghivlyn}}
[[Ronney:Coontae Ghivlyn| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn staddyssaghtoil NUTS Phobblaght Nerin]]
5una3ucafe3vjaypco7606aq3gbpbkb
Coontae yn Lhongfort
0
3593
395421
368692
2026-10-27T01:51:51Z
MacTire02
219
++
395421
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = Choontae yn Lhongfort
| ennym = Coontae yn Lhongfort
| ennym_dooghyssagh = {{lang|ga|Contae an Longfoirt|italics=no}} {{small|([[Yernish]])}}<br />{{lang|en|County Longford|italics=no}} {{small|([[Baarle]])}}
| sorçh_balley = [[Coondaeghyn Nerin|Coontae]]
| jarroo-raa = {{lang|ga|Daingean agus Dílis}}
| çhengey_jarroo-raa = Yernish
| çhengaghyn = none
| çhyndaa_jarroo-raa = Niartal as Leighalagh
| enmys_bunneeaght = Bunnit
| date_bunneeaght = 1570<ref>{{cite web|url=https://www.historyireland.com/early-modern-history-1500-1700/geographical-loyalty-counties-palatinates-boroughs-and-ridings/|title='Geographical loyalty'? Counties, palatinates, boroughs and ridings|date=6 Mayrnt 2013|access-date=23 Mean Souree 2019|archive-date=23 Mean Souree 2019|archive-url=https://web.archive.org/web/20190623214300/https://www.historyireland.com/early-modern-history-1500-1700/geographical-loyalty-counties-palatinates-boroughs-and-ridings/|url-status=live}}</ref>
| jalloo_armys = Longford_Coat_of_Arms.png
| jalloo_brattagh = none
| jalloo_caslys-çheerey = Island of Ireland location map Longford.svg
| sorçh_reiltys = Coonseil choontae
| colught_reirey = [[Coonseil Choontae yn Vee]]
| cryss_hraa = [[Traa ynnydagh yn Oarpey Heear|WET]]
| ashchur_utc = +00:00
| cryss_hraa_TTSL = [[Traa Chadjinit Nerin|IST]]
| ashchur_utc_TTSL = +01:00
}}
She [[coontae]] ayns [[Pobblaght Nerin]] eh '''yn Lhongfort''' ny '''Coontae yn Lhongfort''' ({{langx|ga|Contae an Longfoirt}}, {{langx|en|County Longford}}). Ta'n coontae soit ayns [[Queiggey Lion]], nane jeh ny queiggaghyn Yernagh. She [[yn Lhongfort]] y [[preeu-valley]].
==Imraaghyn==
{{reflist}}
{{Nerin - Coondaeghyn}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Lhongfort}}
{{bun}}
[[Ronney:Coontae yn Lhongfort| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
eef0u6pc0wb933ed930jqbqqmcysouk
Divlyn Yiass
0
3606
395342
368691
2026-10-26T17:09:13Z
MacTire02
219
++
395342
wikitext
text/x-wiki
{{Kishtey fys boayl
|sorçh_boayl = [[Coondaeghyn Nerin|Coontae]]
|ennym = Coontae Ghivlyn Yiass
|ennym_gienneydagh = Ghivlyn Yiass
|ennym_dooghyssagh = {{lang|ga|Contae Átha Cliath Theas|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|South Dublin County|italics=no}}
|jarroo-raa = {{lang|ga|Ag Seo Ár gCúram}}
|çhyndaa_jarroo-raa= Ec Shoh yn Currym Ain
|çhengey_jarroo-raa= Yernish
|jalloo_armys = Cullee Choontae Ghivlyn Yiass.png
|jalloo_caslys-çheerey = Island_of_Ireland_location_map_South_Dublin.svg
|preeu-valley = [[Tamhlacht]]
}}
She [[coontae]] ayns [[Pobblaght Nerin]] eh '''Coontae Ghivlyn Yiass''' ny '''Coontae Aah Cleeah Yiass''' ({{langx|ga|Contae Átha Cliath Theas}}, {{langx|en|South Dublin County}}). Ta'n coontae soit ayns [[Queiggey Lion]], nane jeh ny queiggaghyn Yernagh. She [[Tamhlacht]] y [[preeu-valley]].
{{Nerin - Coondaeghyn}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Divlyn Yiass}}
[[Ronney:Divlyn Yiass| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
[[Ronney:Bunneeaghtyn ayns Nerin 'sy vlein 1994]]
[[Ronney:Steatyn as thallooyn bunnit ayns 1994]]
d3r3pfyjk65h3j3t8v904smlq4bd30h
395345
395342
2026-10-26T17:20:51Z
MacTire02
219
ronney elley
395345
wikitext
text/x-wiki
{{Kishtey fys boayl
|sorçh_boayl = [[Coondaeghyn Nerin|Coontae]]
|ennym = Coontae Ghivlyn Yiass
|ennym_gienneydagh = Ghivlyn Yiass
|ennym_dooghyssagh = {{lang|ga|Contae Átha Cliath Theas|italics=no}} {{small|([[Yernish]])}}<br/>{{lang|en|South Dublin County|italics=no}}
|jarroo-raa = {{lang|ga|Ag Seo Ár gCúram}}
|çhyndaa_jarroo-raa= Ec Shoh yn Currym Ain
|çhengey_jarroo-raa= Yernish
|jalloo_armys = Cullee Choontae Ghivlyn Yiass.png
|jalloo_caslys-çheerey = Island_of_Ireland_location_map_South_Dublin.svg
|preeu-valley = [[Tamhlacht]]
}}
She [[coontae]] ayns [[Pobblaght Nerin]] eh '''Coontae Ghivlyn Yiass''' ny '''Coontae Aah Cleeah Yiass''' ({{langx|ga|Contae Átha Cliath Theas}}, {{langx|en|South Dublin County}}). Ta'n coontae soit ayns [[Queiggey Lion]], nane jeh ny queiggaghyn Yernagh. She [[Tamhlacht]] y [[preeu-valley]].
{{Nerin - Coondaeghyn}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Divlyn Yiass}}
[[Ronney:Divlyn Yiass| ]]
[[Ronney:Queiggey Lion]]
[[Ronney:Coondaeghyn Phobblaght Nerin]]
[[Ronney:Ardjyn gurneilys ynnydagh Phobblaght Nerin]]
[[Ronney:Bunneeaghtyn ayns Nerin 'sy vlein 1994]]
[[Ronney:Steatyn as thallooyn bunnit 'sy vlein 1994]]
al6gnkzvshg3iuu80bl6rm81s7sp2uq
Paul Haddacks
0
4062
395419
346795
2026-10-27T01:38:32Z
MacTire02
219
++
395419
wikitext
text/x-wiki
{{WD Kishtey Fys Dooinney
|boayl_ruggyr = [[Bath]], Sostyn
|date_ruggyr = {{date_ruggyr|df=y|1946|10|27}}
}}
{{Politickaght Vannin}}
She [[Lhiass-chiannoort Vannin|Lhiass-chiannoort]] er [[Mannin]] veih 2005 derrey 2011 eh yn '''Reejerey Paul Kenneth Haddacks''' (ruggit er 27 Jerrey Fouyir 1946). T'eh cummal ayns Thie y Reiltys ayns [[Kione Droghad]].
== Scoill as coorse-bea ==
Va Haddacks ynsit ayns [[Kingswood School]], [[Bath]] as hie eh stiagh ayns [[Lhuingys Chaggee Hostyn]] 'sy vlein 1964. Erreish da er n'eddyn keim ass y [[Britannia Royal Naval College]], [[Dartmouth]] v'eh ny vyn-oikagh er frigaidyn as lhongyn traartagh [[Lhuingys y Niar Foddey]]. Ayns 1971 ghow eh kioneys er hene fo'n lhong noa, HMS ''Scimitar''. Ren ad Anneyder jeh ayns 1979 as v'eh ny churmeyder fo ny frigaidyn [[HMS Cleopatra (F28)|HMS ''Cleopatra'']] as [[HMS Naiad (F39)|HMS ''Naiad'']]. Ren ad Captan jeh ayns 1984 as haink er dy vel ny fo-stiureyder son cummaghyn lhuingyssagh roish e hyndaa gys y cheayn myr Oikagh Kioneysagh y lhong vooar [[HMS Intrepid (L11)|HMS ''Intrepid'']]. Va Paul reiht ayns 2001 myr Stiureyder Fwirran Caggeeaght Eddyr-ashoonagh [[NATO]].
Haink jerrey lesh e hirveish obbrit ayns Lhuingys Chaggee Hostyn ec jerrey 2004, as v'eh pointit dy ve ny Lhiass-chiannoort Vannin er 17 Jerrey Fouyir 2005. She yn treeoo oikagh 'syn oik tradishoonagh shoh.
== Mooinjer ==
Ta Paul poost rish y [[Yn Chanadey|Chanadagh]] Penny ta ny [[boandyr Nightingale]] ayns y [[St Thomas' Hospital|Thie lheihys Noo Thomas]], [[Lunnin]]. Ta mac oc, ta ny ard-choontyseyr lhuingey lesh [[Princess Cruise Lines]].
== Kiangley magh ==
* [http://www.gnn.gov.uk/environment/detail.asp?ReleaseID=156907&NewsAreaID=2&NavigatedFromDepartment=True Greasane Naight Reiltys yn RU]
==References==
{{reflist}}
{{s-start}}
{{s-mil}}
{{s-bef | before = [[John Cheshire (offishear y Çhirveish Aer Reeoil)|John Cheshire]]}}
{{s-ttl | title = [[Rolley Beayn-ynnydee yn Reeriaght Unnaneysit dys Reagheydys Chonaant yn Atlantagh Hwoaie|Ynnydagh Caggee yn RU dys NATO]] | years =1997–2000}}
{{s-aft | after =[[Michael Willcocks]]}}
|-
{{s-gov}}
{{s-bef|before=[[Mike Kerruish|Michael Kerruish]]<br><small>(Shallidagh)</small>}}
{{s-ttl|title=[[Lhiass-chiannoort Vannin]]|years=2005–2011}}
{{s-aft|after=[[Adam Wood]]}}
{{end}}
{{Lhiass-chiannoort Vannin}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Haddacks, Paul}}
{{bun}}
[[Ronney:Ruggyryn 'sy vlein 1946]]
[[Ronney:Feallee vio]]
[[Ronney:Lhiass-chiannoortyn Vannin]]
[[Ronney:Ard-marree y Lhuingys Chaggee Reeoil]]
[[Ronney:Reejereeyn Anneyder Oardyr y Tobbyr Oonlee]]
[[Ronney:Skimmee yn Çhirveish Aer Reeoil ayns Caggey yn Lhoob]]
53frdkf7ai0kgq1umc8rp00s3w5yq0x
395420
395419
2026-10-27T01:38:44Z
MacTire02
219
++
395420
wikitext
text/x-wiki
{{WD Kishtey Fys Dooinney
|boayl_ruggyr = [[Bath]], Sostyn
|date_ruggyr = {{date_ruggyr|df=y|1946|10|27}}
}}
{{Politickaght Vannin}}
She [[Lhiass-chiannoort Vannin|Lhiass-chiannoort]] er [[Mannin]] veih 2005 derrey 2011 eh yn '''Reejerey Paul Kenneth Haddacks''' (ruggit er 27 Jerrey Fouyir 1946). T'eh cummal ayns Thie y Reiltys ayns [[Kione Droghad]].
== Scoill as coorse-bea ==
Va Haddacks ynsit ayns [[Kingswood School]], [[Bath]] as hie eh stiagh ayns [[Lhuingys Chaggee Hostyn]] 'sy vlein 1964. Erreish da er n'eddyn keim ass y [[Britannia Royal Naval College]], [[Dartmouth]] v'eh ny vyn-oikagh er frigaidyn as lhongyn traartagh [[Lhuingys y Niar Foddey]]. Ayns 1971 ghow eh kioneys er hene fo'n lhong noa, HMS ''Scimitar''. Ren ad Anneyder jeh ayns 1979 as v'eh ny churmeyder fo ny frigaidyn [[HMS Cleopatra (F28)|HMS ''Cleopatra'']] as [[HMS Naiad (F39)|HMS ''Naiad'']]. Ren ad Captan jeh ayns 1984 as haink er dy vel ny fo-stiureyder son cummaghyn lhuingyssagh roish e hyndaa gys y cheayn myr Oikagh Kioneysagh y lhong vooar [[HMS Intrepid (L11)|HMS ''Intrepid'']]. Va Paul reiht ayns 2001 myr Stiureyder Fwirran Caggeeaght Eddyr-ashoonagh [[NATO]].
Haink jerrey lesh e hirveish obbrit ayns Lhuingys Chaggee Hostyn ec jerrey 2004, as v'eh pointit dy ve ny Lhiass-chiannoort Vannin er 17 Jerrey Fouyir 2005. She yn treeoo oikagh 'syn oik tradishoonagh shoh.
== Mooinjer ==
Ta Paul poost rish y [[Yn Chanadey|Chanadagh]] Penny ta ny [[boandyr Nightingale]] ayns y [[St Thomas' Hospital|Thie lheihys Noo Thomas]], [[Lunnin]]. Ta mac oc, ta ny ard-choontyseyr lhuingey lesh [[Princess Cruise Lines]].
== Kiangley magh ==
* [http://www.gnn.gov.uk/environment/detail.asp?ReleaseID=156907&NewsAreaID=2&NavigatedFromDepartment=True Greasane Naight Reiltys yn RU]
==Imraaghyn==
{{reflist}}
{{s-start}}
{{s-mil}}
{{s-bef | before = [[John Cheshire (offishear y Çhirveish Aer Reeoil)|John Cheshire]]}}
{{s-ttl | title = [[Rolley Beayn-ynnydee yn Reeriaght Unnaneysit dys Reagheydys Chonaant yn Atlantagh Hwoaie|Ynnydagh Caggee yn RU dys NATO]] | years =1997–2000}}
{{s-aft | after =[[Michael Willcocks]]}}
|-
{{s-gov}}
{{s-bef|before=[[Mike Kerruish|Michael Kerruish]]<br><small>(Shallidagh)</small>}}
{{s-ttl|title=[[Lhiass-chiannoort Vannin]]|years=2005–2011}}
{{s-aft|after=[[Adam Wood]]}}
{{end}}
{{Lhiass-chiannoort Vannin}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Haddacks, Paul}}
{{bun}}
[[Ronney:Ruggyryn 'sy vlein 1946]]
[[Ronney:Feallee vio]]
[[Ronney:Lhiass-chiannoortyn Vannin]]
[[Ronney:Ard-marree y Lhuingys Chaggee Reeoil]]
[[Ronney:Reejereeyn Anneyder Oardyr y Tobbyr Oonlee]]
[[Ronney:Skimmee yn Çhirveish Aer Reeoil ayns Caggey yn Lhoob]]
glnnv0oiqndk9l5g8dukw443evh3fsx
Mark Latham
0
4837
395371
346454
2026-10-26T22:18:25Z
InternetArchiveBot
16702
Rescuing 1 sources and tagging 0 as dead. #IABot (v2.0.9.6)
395371
wikitext
text/x-wiki
{{WD Kishtey Fys Dooinney
| jalloo = Mark Latham - Church And State Summit 2018 04.jpg
| fo-heidyl = Latham ayns 2018
| boayl_ruggyr = [[Ashcroft, Bretyn Yiass Noa|Ashcroft]], [[Bretyn Yiass Noa]], yn Austrail
}}
Ta '''Mark William Latham''' (ruggit er 28 Toshiaght Arree 1961) ny pholitickeyr [[Yn Austrail|Austrailagh]]. V'eh ny 'er toshee er y chondaigys ayns Ard-Whaiyl yn Austrail veih'n 3 Nollick derrey Jerrey Geuree 2005.
==Kianglaghyn magh==
{{Commons category|Mark Latham}}
*[https://www.fedcourt.gov.au/services/access-to-files-and-transcripts/online-files/greenwich-v-latham Greenwich v Latham] – Coadan er-linney ec [[Quaiyl Chonastagh yn Austrail]]
* Abraham, Matt (9 Jerrey Souree 2004). [https://web.archive.org/web/20051201105200/http://crikey.com.au/politics/2004/07/09-0004.html Howard's toughest interview of the year]. ''Crikey.com.au''
* Allard, Tom; & Metherell, Mark (11 Jerrey Fouyir 2004). [https://www.smh.com.au/articles/2004/10/10/1097406429506.html Late release of policy cost Latham the Lodge]. ''The Sydney Morning Herald''.
*[http://www.economist.com/displayStory.cfm?story_id=2267198 A fair dinkum Labor hero] (4 Nollick 2003). ''[[The Economist]]''.
*[https://web.archive.org/web/20210801053811/https://www.news.com.au/common/story_page/0,4057,11983068%255E421,00.html Ill health ends Latham's career] {{Webarchive|url=https://web.archive.org/web/20210801053811/https://www.news.com.au/common/story_page/0,4057,11983068%255E421,00.html |date=1 Luanistyn 2021 }}. ''NEWS.com.au''.
*[http://www.abc.net.au/news/newsitems/200501/s1284113.htm Latham quits] (18 Jerrey Geuree 2005). ''ABC News Online''.
{{S-start}}
{{S-civ}}
{{Succession box| title=[[Caayr Liverpool (Bretyn Yiass Noa)|Meoir Liverpool]] | before=[[Colin Harrington (meoir)|Colin Harrington]] | after=[[George Paciullo]] | years=1991–1994}}
{{S-par|au}}
{{Succession box| title=[[Rheynn Werriwa|Oltey son Werriwa]] | before=[[John Kerin]] | after=[[Chris Hayes (politickeyr)|Chris Hayes]] | years=1994–2005}}
{{S-ppo}}
{{Succession box| title=Toshiagh [[Partee Lught Obbyr yn Austrail|Phartee Lught Obbyr yn Austrail]] | before=[[Simon Crean]] | after=[[Kim Beazley]] | years=2003–2005}}
{{S-end}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Latham, Mark}}
[[Ronney:Ruggyryn 'sy vlein 1961]]
[[Ronney:Feallee vio]]
[[Ronney:Coonseilee ynnydagh Vretyn Yiass Noa]]
[[Ronney:Pobblaghtee Austrailagh]]
[[Ronney:Meechredjuee Austrailagh]]
[[Ronney:Screeudeyryn politickagh Austrailagh]]
[[Ronney:Keird-heshaghtee Austrailagh]]
[[Ronney:Olteynyn Phartee Lught Obbyr yn Austrail ayns Parlamaid yn Austrail]]
[[Ronney:Olteynyn Un Ashoon ayns Parlamaid Vretyn Yiass Noa]]
[[Ronney:Toshee yn Chondaigys (yn Austrail)]]
[[Ronney:Olteynyn Hie Ynnydee yn Austrail]]
[[Ronney:Olteynyn Hie Ynnydee yn Austrail son Werriwa]]
[[Ronney:Politickeyryn firryn Austrailagh]]
[[Ronney:Feallee ass Sydney]]
[[Ronney:Meoiryn er buill ayns Bretyn Yiass Noa]]
[[Ronney:Toshee Phartee Lught Obbyr yn Austrail]]
[[Ronney:Naighteyryn as çhebbeyderyn Sky News Australia]]
[[Ronney:Olteynyn Choonseil Slattyssagh Vretyn Yiass Noa]]
[[Ronney:Cremeyderyn Austrailagh yn Islam]]
[[Ronney:Politickeyryn Un Ashoon (yn Austrail)]]
{{bun}}
3ad6vmx0n17dett7ekgy0w01cd8ycnd
Ladinish
0
9305
395406
375889
2026-10-27T00:58:28Z
MacTire02
219
++
395406
wikitext
text/x-wiki
{{Kishtey fys çhengey
| ennym = Ladinish
| jalloo = Ladin2 K.jpg
| ennymdooghyssagh = ''lingaz ladin'', ''ladin''
| steatyn = [[Yn Iddaal]]
| ard = [[Ladinia]] ([[Trentino-Alto Adige/Südtirol]]<br />[[Veneto]])
| loayreyderyn = 41,129
| date = 2006<ref name=veneto2006>{{citation |last1=Dell'Aquila |first1=Vittorio |last2=Iannàccaro |first2=Gabriele |title=Survey Ladins: Usi linguistici nelle valli ladine |language=it |trans-title=Survey Ladins: Ymmydyn çhengoaylleeagh ayns ny Glionteenyn Ladjynagh |date=2006 |publisher=Regione autonoma Trentino-Alto Adige |isbn=88-86053-69-X |page=196 |url=https://www.academia.edu/1635334}}</ref>–2011<ref name=altoadige2011>{{cite web |title=South Tyrol in Figures |work=Declaration of language group affiliation – Population Census 2011 |url=http://www.provinz.bz.it/astat/de/bevoelkerung/458.asp?aktuelles_action=300&aktuelles_image_id=563169 |format=PDF |access-date=2012-10-07 |archive-date=28 Jerrey Souree 2013 |archive-url=https://web.archive.org/web/20130728113109/http://www.provinz.bz.it/astat/de/bevoelkerung/458.asp?aktuelles_action=300&aktuelles_image_id=563169 |url-status=dead }}</ref><ref name=trentino2011>{{cite web |url=http://www.statistica.provincia.tn.it/binary/pat_statistica/demografia/15CensGenPopolazione.1340956277.pdf
|title=15° Censimento della popolazione e delle abitazioni. Rilevazione sulla consistenza e la dislocazione territoriale degli appartenenti alle popolazioni di lingua ladina, mòchena e cimbra (dati provvisori) |trans-title=15oo Coontey Pobble as Cummallyn. Creearey er cohassooaght jee-hoiaghey thallooinagh pobbylyn Ladinisheyryn, loayreyderyn Mòchena, as Cimbrisheyryn (fysseree hallidagh) |year=2012 |publisher=Queiggey Hene-reiltagh Trento |language=Iddaalish |access-date=2012-10-07}}</ref>
| kynneeaght = [[Ladinee]]
| daah kynney = Ind-Oarpagh
| fam2 = [[Çhengaghyn Iddaalagh|Iddaalagh]]
| fam3 = [[Çhengaghyn Ladjyno-Faliscagh|Ladjyno-Faliscagh]]
| fam4 = [[Ladjyn]]agh
| fam5 = [[Çhengaghyn Romanagh|Romanagh]]
| fam6 = [[Çhengaghyn Iddaalagh Heear|Iddaalagh Heear]]
| fam7 = [[Çhengaghyn Romanagh Heear|Heear]]
| fam8 = [[Çhengaghyn Goal-Romanagh|Goal]]-[[Çhengaghyn Romanagh Ibeiragh|Ibeiragh]]?
| fam9 = [[Çhengaghyn Goal-Romanagh|Goal-Romanagh]]
| fam10 = Goal-Rhaetagh?
| fam11 = [[Çhengaghyn Rhaeto-Romanagh|Rhaeto-Romanagh]]<ref>{{Cite web |url=https://glottolog.org/resource/languoid/id/ladi1250 |title=Ladin |date=2022-05-24 |access-date=2022-10-07 |website=[[Glottolog]] |last1=Hammarström |first1=Harald |archive-url=https://web.archive.org/web/20221007144616/https://glottolog.org/resource/languoid/id/ladi1250 |archive-date=2022-10-07 |url-status=live |publisher=[[Max Planck Institute for Evolutionary Anthropology]] |last2=Forkel |first2=Robert |last3=Haspelmath |first3=Martin |last4=Bank |first4=Sebastian}}</ref>
| abb1 = [[Abbyrt Cadorino|Cadorino]]
| abb2 = [[Abbyrtyn Fornes|Fornes]]
| abb3 = [[Abbyrt Nones|Nones]]
| abb4 = a.r.e.
| script = [[Script Ladjynagh]]
| stund1 = [[Ladin Gholomitagh]]
| jantys = [http://www.spell-termles.ladinia.net/en.html Oik cour Plannal y Ladinish]<br />[http://www.istladin.net/eng/indexeng.html Laare Cultooragh y Ladinish Majon di Fascegn]<br />[[Istitut Ladin Micurà de Rü]]<br />[[Istituto Ladin de la Dolomites]]
| iso3 = lld
| glotto = ladi1250
| glottorefname = Ladin
| lingua = 51-AAA-l
| fogrey = IPA
| caslys-çheerey = Idioma ladino.PNG
| fo-heidyl_caslys-çheerey = Rheynn y Ladinish
}}
She çhengey Romanagh ee '''Ladinish''' ({{langx|it|ladino}}}}, {{lang|de|Ladinisch}}}}), as t'ee ry-chlashtyn [[yn Iddaal|'syn Iddaal]]. Ta mysh 30 000 loayeyderyn eck, as [[Iddaalish]] as [[Germaanish]] ec y chooid smoo jeu myrgeddin. Ta Ladin coontit myr myn-hengey oikoil ny h-Iddaal neayr's 1999, rere leigh 482/1999 ny h-Iddaal, ''[[Norme in materia di tutela delle minoranze linguistiche storiche]]''.<ref>{{enmyseddyrvoggyl
| obbyr = Legge 15 Dicembre 1999, n. 482
| ennym = La Camera dei Deputati - XVI Legislatura
| kiangley = http://www.camera.it/parlam/leggi/elelenum.htm
| çhengey = Iddaalish
| datefeddyn = 2009-04-22
| date = 1999-12-15
}}</ref>
Ta'n bun cheddin ecksh as t'ec [[Furlanish]].
== Imraaghyn ==
{{rolleyimraaghyn}}
{{Çhengaghyn yn Iddaal}}
{{Çhengaghyn Rhaeto-Romanagh}}
{{Çhengaghyn Romanagh}}
{{Gurneil eaghtyrys}}
[[Ronney:Ladinish| ]]
[[Ronney:Çhengaghyn Iddaalagh Heear]]
[[Ronney:Çhengaghyn Trentino-Alto Adige/Südtirol]]
[[Ronney:Çhengaghyn Veneto]]
[[Ronney:Çhengaghyn ayns gaue gyn ourys]]
[[Ronney:Çhangaghyn Romanagh ayns gaue]]
[[Ronney:Çhengaghyn yn Oarpey ayns gaue]]
oz4eb730lfpi0hfsjupwl8nf1t8d1ew
395407
395406
2026-10-27T00:58:50Z
MacTire02
219
++
395407
wikitext
text/x-wiki
{{Kishtey fys çhengey
| ennym = Ladinish
| jalloo = Ladin2 K.jpg
| ennymdooghyssagh = ''lingaz ladin'', ''ladin''
| steatyn = [[Yn Iddaal]]
| ard = [[Ladinia]] ([[Trentino-Alto Adige/Südtirol]]<br />[[Veneto]])
| loayreyderyn = 41,129
| date = 2006<ref name=veneto2006>{{citation |last1=Dell'Aquila |first1=Vittorio |last2=Iannàccaro |first2=Gabriele |title=Survey Ladins: Usi linguistici nelle valli ladine |language=it |trans-title=Survey Ladins: Ymmydyn çhengoaylleeagh ayns ny Glionteenyn Ladjynagh |date=2006 |publisher=Regione autonoma Trentino-Alto Adige |isbn=88-86053-69-X |page=196 |url=https://www.academia.edu/1635334}}</ref>–2011<ref name=altoadige2011>{{cite web |title=South Tyrol in Figures |work=Declaration of language group affiliation – Population Census 2011 |url=http://www.provinz.bz.it/astat/de/bevoelkerung/458.asp?aktuelles_action=300&aktuelles_image_id=563169 |format=PDF |access-date=2012-10-07 |archive-date=28 Jerrey Souree 2013 |archive-url=https://web.archive.org/web/20130728113109/http://www.provinz.bz.it/astat/de/bevoelkerung/458.asp?aktuelles_action=300&aktuelles_image_id=563169 |url-status=dead }}</ref><ref name=trentino2011>{{cite web |url=http://www.statistica.provincia.tn.it/binary/pat_statistica/demografia/15CensGenPopolazione.1340956277.pdf
|title=15° Censimento della popolazione e delle abitazioni. Rilevazione sulla consistenza e la dislocazione territoriale degli appartenenti alle popolazioni di lingua ladina, mòchena e cimbra (dati provvisori) |trans-title=15oo Coontey Pobble as Cummallyn. Creearey er cohassooaght jee-hoiaghey thallooinagh pobbylyn Ladinisheyryn, loayreyderyn Mòchena, as Cimbrisheyryn (fysseree hallidagh) |year=2012 |publisher=Queiggey Hene-reiltagh Trento |language=Iddaalish |access-date=2012-10-07}}</ref>
| kynneeaght = [[Ladinee]]
| daah kynney = Ind-Oarpagh
| fam2 = [[Çhengaghyn Iddaalagh|Iddaalagh]]
| fam3 = [[Çhengaghyn Ladjyno-Faliscagh|Ladjyno-Faliscagh]]
| fam4 = [[Ladjyn]]agh
| fam5 = [[Çhengaghyn Romanagh|Romanagh]]
| fam6 = [[Çhengaghyn Iddaalagh Heear|Iddaalagh Heear]]
| fam7 = [[Çhengaghyn Romanagh Heear|Heear]]
| fam8 = [[Çhengaghyn Goal-Romanagh|Goal]]-[[Çhengaghyn Romanagh Ibeiragh|Ibeiragh]]?
| fam9 = [[Çhengaghyn Goal-Romanagh|Goal-Romanagh]]
| fam10 = Goal-Rhaetagh?
| fam11 = [[Çhengaghyn Rhaeto-Romanagh|Rhaeto-Romanagh]]<ref>{{Cite web |url=https://glottolog.org/resource/languoid/id/ladi1250 |title=Ladin |date=2022-05-24 |access-date=2022-10-07 |website=[[Glottolog]] |last1=Hammarström |first1=Harald |archive-url=https://web.archive.org/web/20221007144616/https://glottolog.org/resource/languoid/id/ladi1250 |archive-date=2022-10-07 |url-status=live |publisher=[[Max Planck Institute for Evolutionary Anthropology]] |last2=Forkel |first2=Robert |last3=Haspelmath |first3=Martin |last4=Bank |first4=Sebastian}}</ref>
| abb1 = [[Abbyrt Cadorino|Cadorino]]
| abb2 = [[Abbyrtyn Fornes|Fornes]]
| abb3 = [[Abbyrt Nones|Nones]]
| abb4 = a.r.e.
| script = [[Script Ladjynagh]]
| stund1 = [[Ladin Gholomitagh]]
| jantys = [http://www.spell-termles.ladinia.net/en.html Oik cour Plannal y Ladinish]<br />[http://www.istladin.net/eng/indexeng.html Laare Cultooragh y Ladinish Majon di Fascegn]<br />[[Istitut Ladin Micurà de Rü]]<br />[[Istituto Ladin de la Dolomites]]
| iso3 = lld
| glotto = ladi1250
| glottorefname = Ladin
| lingua = 51-AAA-l
| fogrey = IPA
| caslys-çheerey = Idioma ladino.PNG
| fo-heidyl_caslys-çheerey = Rheynn y Ladinish
}}
She çhengey Romanagh ee '''Ladinish''' ({{langx|it|ladino}}, {{lang|de|Ladinisch}}), as t'ee ry-chlashtyn [[yn Iddaal|'syn Iddaal]]. Ta mysh 30 000 loayeyderyn eck, as [[Iddaalish]] as [[Germaanish]] ec y chooid smoo jeu myrgeddin. Ta Ladin coontit myr myn-hengey oikoil ny h-Iddaal neayr's 1999, rere leigh 482/1999 ny h-Iddaal, ''[[Norme in materia di tutela delle minoranze linguistiche storiche]]''.<ref>{{enmyseddyrvoggyl
| obbyr = Legge 15 Dicembre 1999, n. 482
| ennym = La Camera dei Deputati - XVI Legislatura
| kiangley = http://www.camera.it/parlam/leggi/elelenum.htm
| çhengey = Iddaalish
| datefeddyn = 2009-04-22
| date = 1999-12-15
}}</ref>
Ta'n bun cheddin ecksh as t'ec [[Furlanish]].
== Imraaghyn ==
{{rolleyimraaghyn}}
{{Çhengaghyn yn Iddaal}}
{{Çhengaghyn Rhaeto-Romanagh}}
{{Çhengaghyn Romanagh}}
{{Gurneil eaghtyrys}}
[[Ronney:Ladinish| ]]
[[Ronney:Çhengaghyn Iddaalagh Heear]]
[[Ronney:Çhengaghyn Trentino-Alto Adige/Südtirol]]
[[Ronney:Çhengaghyn Veneto]]
[[Ronney:Çhengaghyn ayns gaue gyn ourys]]
[[Ronney:Çhangaghyn Romanagh ayns gaue]]
[[Ronney:Çhengaghyn yn Oarpey ayns gaue]]
6iwqpkphdenf8vf7fjvrmfs5zreyec9
395408
395407
2026-10-27T00:59:52Z
MacTire02
219
++
395408
wikitext
text/x-wiki
{{Kishtey fys çhengey
| ennym = Ladinish
| jalloo = Ladin2 K.jpg
| ennymdooghyssagh = ''lingaz ladin'', ''ladin''
| steatyn = [[Yn Iddaal]]
| ard = [[Ladinia]] ([[Trentino-Alto Adige/Südtirol]]<br />[[Veneto]])
| loayreyderyn = 41,129
| date = 2006<ref name=veneto2006>{{citation |last1=Dell'Aquila |first1=Vittorio |last2=Iannàccaro |first2=Gabriele |title=Survey Ladins: Usi linguistici nelle valli ladine |language=it |trans-title=Survey Ladins: Ymmydyn çhengoaylleeagh ayns ny Glionteenyn Ladjynagh |date=2006 |publisher=Regione autonoma Trentino-Alto Adige |isbn=88-86053-69-X |page=196 |url=https://www.academia.edu/1635334}}</ref>–2011<ref name=altoadige2011>{{cite web |title=South Tyrol in Figures |work=Declaration of language group affiliation – Population Census 2011 |url=http://www.provinz.bz.it/astat/de/bevoelkerung/458.asp?aktuelles_action=300&aktuelles_image_id=563169 |format=PDF |access-date=2012-10-07 |archive-date=28 Jerrey Souree 2013 |archive-url=https://web.archive.org/web/20130728113109/http://www.provinz.bz.it/astat/de/bevoelkerung/458.asp?aktuelles_action=300&aktuelles_image_id=563169 |url-status=dead }}</ref><ref name=trentino2011>{{cite web |url=http://www.statistica.provincia.tn.it/binary/pat_statistica/demografia/15CensGenPopolazione.1340956277.pdf
|title=15° Censimento della popolazione e delle abitazioni. Rilevazione sulla consistenza e la dislocazione territoriale degli appartenenti alle popolazioni di lingua ladina, mòchena e cimbra (dati provvisori) |trans-title=15oo Coontey Pobble as Cummallyn. Creearey er cohassooaght jee-hoiaghey thallooinagh pobbylyn Ladinisheyryn, loayreyderyn Mòchena, as Cimbrisheyryn (fysseree hallidagh) |year=2012 |publisher=Queiggey Hene-reiltagh Trento |language=Iddaalish |access-date=2012-10-07}}</ref>
| kynneeaght = [[Ladinee]]
| daah kynney = Ind-Oarpagh
| fam2 = [[Çhengaghyn Iddaalagh|Iddaalagh]]
| fam3 = [[Çhengaghyn Ladjyno-Faliscagh|Ladjyno-Faliscagh]]
| fam4 = [[Ladjyn]]agh
| fam5 = [[Çhengaghyn Romanagh|Romanagh]]
| fam6 = [[Çhengaghyn Iddaalagh Heear|Iddaalagh Heear]]
| fam7 = [[Çhengaghyn Romanagh Heear|Heear]]
| fam8 = [[Çhengaghyn Goal-Romanagh|Goal]]-[[Çhengaghyn Romanagh Ibeiragh|Ibeiragh]]?
| fam9 = [[Çhengaghyn Goal-Romanagh|Goal-Romanagh]]
| fam10 = Goal-Rhaetagh?
| fam11 = [[Çhengaghyn Rhaeto-Romanagh|Rhaeto-Romanagh]]<ref>{{Cite web |url=https://glottolog.org/resource/languoid/id/ladi1250 |title=Ladin |date=2022-05-24 |access-date=2022-10-07 |website=[[Glottolog]] |last1=Hammarström |first1=Harald |archive-url=https://web.archive.org/web/20221007144616/https://glottolog.org/resource/languoid/id/ladi1250 |archive-date=2022-10-07 |url-status=live |publisher=[[Max Planck Institute for Evolutionary Anthropology]] |last2=Forkel |first2=Robert |last3=Haspelmath |first3=Martin |last4=Bank |first4=Sebastian}}</ref>
| abb1 = [[Abbyrt Cadorino|Cadorino]]
| abb2 = [[Abbyrtyn Fornes|Fornes]]
| abb3 = [[Abbyrt Nones|Nones]]
| abb4 = a.r.e.
| script = [[Script Ladjynagh]]
| stund1 = [[Ladin Gholomitagh]]
| jantys = [http://www.spell-termles.ladinia.net/en.html Oik cour Plannal y Ladinish]<br />[http://www.istladin.net/eng/indexeng.html Laare Cultooragh y Ladinish Majon di Fascegn]<br />[[Istitut Ladin Micurà de Rü]]<br />[[Istituto Ladin de la Dolomites]]
| iso3 = lld
| glotto = ladi1250
| glottorefname = Ladin
| lingua = 51-AAA-l
| fogrey = IPA
| caslys-çheerey = Idioma ladino.PNG
| fo-heidyl_caslys-çheerey = Rheynn y Ladinish
}}
She çhengey Romanagh ee '''Ladinish''' ({{lang|lld|ladin}} 'sy çhengey hene; {{langx|it|ladino}}, {{Langx|de|Ladinisch}}), as t'ee ry-chlashtyn [[yn Iddaal|'syn Iddaal]]. Ta mysh 30 000 loayeyderyn eck, as [[Iddaalish]] as [[Germaanish]] ec y chooid smoo jeu myrgeddin. Ta Ladin coontit myr myn-hengey oikoil ny h-Iddaal neayr's 1999, rere leigh 482/1999 ny h-Iddaal, ''[[Norme in materia di tutela delle minoranze linguistiche storiche]]''.<ref>{{enmyseddyrvoggyl
| obbyr = Legge 15 Dicembre 1999, n. 482
| ennym = La Camera dei Deputati - XVI Legislatura
| kiangley = http://www.camera.it/parlam/leggi/elelenum.htm
| çhengey = Iddaalish
| datefeddyn = 2009-04-22
| date = 1999-12-15
}}</ref>
Ta'n bun cheddin ecksh as t'ec [[Furlanish]].
== Imraaghyn ==
{{rolleyimraaghyn}}
{{Çhengaghyn yn Iddaal}}
{{Çhengaghyn Rhaeto-Romanagh}}
{{Çhengaghyn Romanagh}}
{{Gurneil eaghtyrys}}
[[Ronney:Ladinish| ]]
[[Ronney:Çhengaghyn Iddaalagh Heear]]
[[Ronney:Çhengaghyn Trentino-Alto Adige/Südtirol]]
[[Ronney:Çhengaghyn Veneto]]
[[Ronney:Çhengaghyn ayns gaue gyn ourys]]
[[Ronney:Çhangaghyn Romanagh ayns gaue]]
[[Ronney:Çhengaghyn yn Oarpey ayns gaue]]
ay6mu8v4iowel2v06s8yvany55ig1px
Corys ogher ingagh Nerin
0
13994
395310
289613
2026-10-26T13:03:02Z
MacTire02
219
MacTire02 moved page [[Corys ingagh ogheragh Nerin]] to [[Corys ogher ingagh Nerin]]
289613
wikitext
text/x-wiki
Ta '''corys ingagh ogheragh Nerin''' ({{lang-en|Irish grid reference system}}, {{lang-ga|Eangach thagartha náisiúnta na hÉireann}}) ny chorys dy [[ingagh ogheragh|ingee ogheragh]] ta ymmydit dy cadjin ayns [[Nerin]] (ayns [[Pobblaght Nerin]] as [[Nerin Hwoaie]]). Ta'n ingagh Yernagh lhie harrish [[corys ingagh ogheragh ashoonagh y Vretyn Vooar]].
{{bun}}
[[Ronney:Çheer-oaylleeaght Nerin]]
[[Ronney:Coryssyn co-ordnaidyn çheer-oaylleeagh]]
[[Ronney:Coryssyn towsheydys thallooin]]
5njsmbepkf4j8qb71eal0a0b55pp8v0
395312
395310
2026-10-26T13:04:03Z
MacTire02
219
++
395312
wikitext
text/x-wiki
Ta '''corys ogher ingagh Nerin''' ny '''corys ingagh ogheragh Nerin''' ({{langx|en|Irish grid reference system}}, {{langx|ga|Eangach thagartha náisiúnta na hÉireann}}) ny chorys dy [[ingagh ogheragh|ingee ogheragh]] ta ymmydit dy cadjin ayns [[Nerin]] (ayns [[Pobblaght Nerin]] as [[Nerin Hwoaie]]). Ta'n ingagh Yernagh lhie harrish [[Ogher ingagh OS|corys ingagh ogheragh ashoonagh y Vretyn Vooar]].
{{gurneil eaghtyrys}}
{{bun}}
[[Ronney:Çheer-oaylleeaght Nerin]]
[[Ronney:Coryssyn co-ordnaidyn çheer-oaylleeagh]]
[[Ronney:Coryssyn towsheydys thallooin]]
heduh7uigiokozjxo1ut0xav7vtdypn
Peter Stallard
0
14605
395417
324595
2026-10-27T01:23:23Z
MacTire02
219
++
395417
wikitext
text/x-wiki
{{WD Kishtey Fys Dooinney
|date_ruggyr = {{date_ruggyr|1915|03|06|df=y}}
|date_baaish = {{date as eash marroo|1995|10|25|1915|03|06|df=y}}
}}
She reireyder coloinagh [[Reeriaght Unnaneysit|Goaldagh]] va yn '''Reejerey Peter Hyla Gawne Stallard''' [[Oardyr Noo Maayl as Noo Shorys|KCMG]] [[Oardyr Reeoil Victoria|CVO]] [[Oardyr yn Impiraght Ghoaldagh|MBE]]<ref>{{cite web | url = http://www.ox.ac.uk/gazette/1995-6/weekly/231195/coll.htm | title = Obituaries | language = Baarle | accessdate = 9 Mee Houney 2010 | publisher = [[Ollooscoill Aah yn Ollee]] | archivedate = 2012-04-15 | archiveurl = https://web.archive.org/web/20120415203329/http://www.ox.ac.uk/gazette/1995-6/weekly/231195/coll.htm }}</ref> (1915–1995).
Eddyr 9 Mee ny Nollick 1961 as 11 Jerrey Souree 1966 v'eh ny [[Kiannoort ny Hondooraghyn Goaldagh|Chiannoort]] er [[ny Hondooraghyn Goaldagh]]<ref>{{cite web | url = http://www.rulers.org/rulb1.html | title = Countries Ba-Bo | accessdate = 9 Mee Houney 2010 | language = Baarle | publisher = Rulers}}</ref> as eddyr 7 Mean Fouyir 1966 as 1974 v'eh ny [[Lhiass-chiannoort Vannin|Lhiass-chiannoort]] er [[Mannin]].<ref>{{cite web | url = http://www.worldstatesmen.org/Isle_of_Man.htm | title = Isle of Man | language = Baarle | accessdate = 9 Mee Houney 2010 | publisher = World Statesmen.org }}</ref>
==Imraaghyn==
{{reflist}}
{{s-start}}
{{s-gov}}
{{succession box
| before=[[Colin Hardwick Thornley|Colin Thornley]]
| title=[[Kiannoort ny Hondooraghyn Goaldagh]] | years=1961–1966
| after=[[John Warburton Paul|John Paul]]
}}
|-
{{s-bef|before=[[Ronald Garvey|Ronald Garvey]]}}
{{s-ttl|title=[[Lhiass-chiannoort Vannin]]|years=1966–1974}}
{{s-aft|after=[[John Warburton Paul|John Paul]]}}
{{s-end}}
{{Lhiass-chiannoort Vannin}}
{{gurneil eaghtyrys}}
{{DEFAULTSORT:Stallard, Peter}}
[[Ronney:Ruggyryn 'sy vlein 1915]]
[[Ronney:Baaseyn 'sy vlein 1995]]
[[Ronney:Politickeyryn firryn Manninagh]]
[[Ronney:Politickeyryn Manninagh y 20d eash]]
[[Ronney:Reejereeyn Anneyder Oardyr Noo Maayl as Noo Shorys]]
[[Ronney:Anneyderyn Oardyr Reeoil Victoria]]
[[Ronney:Anneyderyn Oardyr yn Impiraght Ghoaldagh]]
[[Ronney:Kiannoortyn ny Hondooraghyn Goaldagh]]
[[Ronney:Lhiass-chiannoortyn Vannin]]
[[Ronney:Olteynyn Oardyr yn Impiraght Ghoaldagh]]
cdqot4kq101tesruprxuvtq6b6iyj03
Clowan:Kishtey fys boayl/doc
10
15859
395323
290756
2026-10-26T13:56:29Z
MacTire02
219
++
395323
wikitext
text/x-wiki
{{Fo-ghuillag docamadys}}
<!-- Documentation for Clowan:Kishtey fys boayl. Parameter names in the first column are preferred; the second column lists legacy names that still work. -->
'''Kishtey fys boayl''' is an infobox for any place: a village, town, county, gmina, oblast, and so on. It is built from [[Module:Kishtey fys boayl]], which runs one submodule for each section. Almost everything is filled in from Wikidata when it is left out; anything given by hand wins.
== Rules that apply everywhere ==
* '''Manual wins.''' A parameter given in the article replaces the Wikidata value.
* '''<code>none</code>''' hides a field, for example <code>jarroo-raa=none</code> when Wikidata holds a slogan that is not an official motto.
* '''<code><section>_wd=none</code>''' turns off every Wikidata fill in a section (<code>aarheynn_wd</code>, <code>çhengaghyn_wd</code>, <code>reiltys_wd</code>, <code>bunneeaght_wd</code>, <code>eaghtyr_wd</code>, <code>yrjid_wd</code>, <code>pobble_wd</code>, <code>crysshraa_wd</code>, <code>coadyn_wd</code>, <code>lannoon_wd</code>, <code>ynnyd_wd</code>). Parameters set by hand still show.
* '''<code>noteyn_<name></code>''' adds a footnote (<code>{{efn}}</code>) and '''<code>imraa_<name></code>''' adds a reference to the field <code><name></code>. Wikidata values bring their own references.
* '''Unknown parameters''' are flagged in red italics in preview, and the article is added to [[Ronney:Duillagyn gymmydey kishtey fys boayl marish parameadaryn gyn enney]].
* Dates are shown as a year only.
== Title ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>ennym</code> || || Common name (default: page title).
|-
| <code>ennym_oikoil</code> || || Official name; shown on its own row when both names are given.
|-
| <code>ennym_dooghyssagh</code> || || Native name. <code>çhengey_ennym_dooghyssagh</code> gives its language code. Default: Wikidata P1705, unless it is Manx or repeats the name above.
|-
| <code>ennym_elley</code> || || Other name. <code>çhengey_ennym_elley</code> gives its language code.
|-
| <code>sorçh_boayl</code> || <code>sorçh_balley</code>, <code>sorçh</code> || Type band under the title, for example "Ard-valley". Default: Manx label of the item's type (P31). <code>none</code> hides it.
|}
== Images ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>jalloo</code> || Image: a bare file name, or full image markup. Default: Wikidata P18.
|-
| <code>jalloo_bun_speyrey</code> || Legacy name for the main image file; <code>jalloo</code> with a bare file name does the same.
|-
| <code>mooadys_jalloo</code>, <code>alt_jalloo</code>, <code>fo-heidyl_jalloo</code> || Size, alt text, caption.
|-
| <code>jalloo_brattagh</code> / <code>jalloo_seal</code> / <code>jalloo_armys</code> / <code>jalloo_cowrey_bane</code> || Flag (P41), seal (P158), arms (P94), logo (P154). Flags, seals, arms and logos are never linked unless <code>kiangley_brattagh</code> etc. is set.
|-
| <code>mooadys_<name></code>, <code>alt_<name></code> || Size and alt text for each of those four (<code>brattagh</code>, <code>seal</code>, <code>armys</code>, <code>cowrey_bane</code>).
|-
| <code>sorçh_cowrey_bane</code> || Label for the logo.
|-
| <code>ennym_gienneydagh</code> || Name used in alt text and captions.
|}
== Names and symbols (nickname, motto, anthem) ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>far-ennym</code> || Nickname.
|-
| <code>jarroo-raa</code> || Motto (Wikidata P1451). Legacy: <code>jarroo_raa</code>, <code>jarroo-raa1</code>, <code>jarroo-raa_ashoonagh</code>. Numbered <code>jarroo-raa2</code>… for more. Shown in straight quotes.
|-
| <code>anthym</code>, <code>arrane</code> || Anthem and song, same suffix set as the motto (<code>anthym1</code>, …).
|-
| <code>çhengey_<name></code> || Language code of the line.
|-
| <code>çhyndaa_<name></code> (legacy <code>chyndaa_</code>) || Translation.
|-
| <code>tessen-lettyraghey_<name></code> || Transliteration.
|-
| <code>coadan_<name></code> || Audio file.
|-
| <code>gyn_cowraghyn_aaraa_<name></code> || Stops the quotation marks.
|}
== Place in the world ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>aarheynn</code>, <code>aarheynn1</code>… || <code>ennym_aarheynn</code>, <code>çheer</code> (first level) || Administrative levels from the top (country, region, …), up to 7. Default: Wikidata P17 then the "located in" chain (P131).
|-
| <code>sorçh_aarheynn</code>, <code>sorçh_aarheynn1</code>… || || Label for that level. Default: Manx label of the unit's type.
|-
| <code>aarheynn_wd</code> || || <code>none</code> turns the Wikidata hierarchy off.
|-
| <code>soiag</code> || <code>soieag</code> || Seat or capital (P36). <code>sorçh_soiag</code> is its label. <code>soiag1</code> is a second seat, labelled "Eear-hoiag".
|-
| <code>p1</code>…<code>p50</code> || || Constituent parts, typed by hand. <code>ayrnyn</code> gives one value instead; <code>sorçh_ayrnyn</code> is the label (default "Baljyn corpagh" by hand, "Ayrnyn" from Wikidata P150); <code>aght_ayrnyn</code> is <code>para</code> (one paragraph) or <code>coll</code> (collapsed list).
|-
| <code>bunneyder</code>, <code>enmysit_son</code> || || Founder (P112), named after (P138).
|-
| <code>date_bunneeaght</code>, <code>enmys_bunneeaght</code> (and <code>…1</code> to <code>…5</code>) || || Dated events, shown as bullets. Default: founding year (P571). <code>date_mooghey</code> and <code>enmys_mooghey</code> add one more dated line (for example an end date).
|-
| <code>fo-noteyn_bunneeaght</code> || || Footnote on the header.
|-
| <code>çhengey_oikoil</code> || <code>çhengaghyn_oikoil</code> || Official languages (P37), shown as a horizontal list.
|-
| <code>çhengaghyn</code> || <code>çhengaghyn_loayrit</code> || Languages spoken (P2936).
|}
== Government ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>enmys_toshiagh</code>, <code>enmys_toshiagh1</code>… || <code>enmys_fer-toshee</code>, <code>enmys_fer_toshee</code> || Title of the leader, for example "Meoir". Up to 6 leaders. In the legacy names "fer toshee" means "male leader", so new articles should use <code>toshiagh</code>.
|-
| <code>toshiagh</code>, <code>toshiagh1</code>… || <code>fer-toshee</code>, <code>ennym_toshiagh</code>, <code>ennym_fer-toshee</code> || Name of the leader.
|-
| <code>partee_toshiagh</code> || <code>partee_fer-toshee</code>, <code>partee_fer_toshee</code> || Party of the first leader, shown with the party template.
|-
| <code>noteyn_toshiagh</code>, <code>imraa_toshiagh</code> || <code>…_fer-toshee</code> || Footnote and reference for a leader.
|-
| <code>colught_reirey</code> || || Governing body ("Colught" row), by hand only.
|-
| <code>rheynn-reihys</code>, <code>rheynn-reihys1</code>… || || Constituencies, shown in an unbulleted list. <code>rheynnyn-reihys</code> gives them as one list; <code>enmys_rheynn_reihys</code> sets the label (default: Wikidata P7938's Manx label).
|-
| <code>sorçh_reiltys</code>, <code>fo-noteyn_reiltys</code> || || Type of government (default: Wikidata P122) and a footnote.
|-
| <code>reiltys_wd</code> || || <code>none</code> stops Wikidata leaders (P6, P1313) and constituencies (P7938).
|}
== Area, elevation, population ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>unnid_towshan</code> || <code>tosheeaght_unnid</code> || <code>metric</code>, <code>imperial</code> or <code>dunam</code>. Default: the primary unit of the country (the other unit follows in brackets).
|-
| <code>eaghtyr_km2</code>, <code>eaghtyr_mi_ker</code>, <code>eaghtyr_dunam</code> || <code>slane_eaghtyr_km2</code> etc. || Total area. Default: Wikidata P2046. <code>mooadys_eaghtyr</code> sets decimals.
|-
| <code>enmys_eaghtyr_slane</code> || <code>sorçh_slane</code> || Label of the total row (default "Slane").
|-
| <code>eaghtyr_thalloo</code>, <code>eaghtyr_ushtey</code>, <code>eaghtyr_baljagh</code>, <code>eaghtyr_çheerey</code>, <code>eaghtyr_moir</code>, <code>eaghtyr_bane1</code>, <code>eaghtyr_bane2</code> || || Sub-areas (each with <code>_km2</code> and <code>_mi_ker</code>). <code>kiangley_<stem></code> makes the label a link.
|-
| <code>eaghtyr_ushtey_sy_cheead</code> || <code>ushtey_sy_cheead</code> || Water share. Default: Wikidata P2927.
|-
| <code>noteyn_eaghtyr</code>, <code>imraa_eaghtyr</code>, <code>note_eaghtyr</code>, <code>fo-noteyn_eaghtyr</code> || || Notes and references.
|-
| <code>yrjid_m</code>, <code>yrjid_tr</code> || || Elevation in metres and feet. Default: Wikidata P2044. <code>mooadys_yrjid</code> sets decimals.
|-
| <code>boayl_s'yrjey_m</code>, <code>boayl_s'yrjey_tr</code>, <code>ennym_boayl_s'yrjey</code> || <code>boayl_syrjey_…</code> || Highest point, with its name (P610).
|-
| <code>boayl_s'inshley_m</code>, <code>boayl_s'inshley_tr</code>, <code>ennym_boayl_s'inshley</code> || <code>boayl_sinshley_…</code> || Lowest point (P1589).
|-
| <code>earroo_yn_phobble</code> || || Population. Default: latest census (P1082), then latest estimate. The header shows its year.
|-
| <code>blein_earroo_yn_phobble</code> || <code>earroo_yn_phobble_er</code> || Year of that figure (never bold).
|-
| <code>ooley_earroo_yn_phobble</code> || || Second figure, with <code>blein_ooley_earroo_yn_phobble</code> (<code>ooley_earroo_yn_phobble_er</code>) as year.
|-
| <code>slane_earroo_yn_phobble</code> || || Total, when the main figure is only for the settlement; the main row is then named by <code>sorçh_boayl</code>.
|-
| <code>earroo_yn_phobble_baljagh</code>, <code>_çheerey</code>, <code>_moir</code>, <code>_bane1</code>, <code>_bane2</code> || || Urban, rural, metropolitan and two free sub-populations. <code>enmys_earroo_yn_phobble_bane1</code> names them.
|-
| <code>glooaght_y_phobble_km2</code>, <code>glooaght_y_phobble_mi_ker</code> || || Density. Default: calculated, with the inputs' references.
|-
| <code>ennym_ny_cummaltee</code> || || Demonym. Default: Wikidata P1549 in Manx.
|-
| <code>note_earroo_yn_phobble</code>, <code>fo-noteyn_earroo_yn_phobble</code>, <code>noteyn_…</code>, <code>imraa_…</code> || || Notes and references.
|}
== Demographics, time, codes ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>sorçh_deynoaylleeaght1</code>, <code>…2</code> || || Header of a demographics group; <code>fo-noteyn_deynoaylleeaght1</code> adds a footnote.
|-
| <code>enmys1_deynoaylleeaght1</code>… <code>enmys5_…</code> with <code>fys1_…</code>… <code>fys5_…</code> || || Label and value for each line (up to 5, in 2 groups).
|-
| <code>cryss_hraa</code>, <code>cryss_hraa1</code>, <code>cryss_hraa2</code> || || Time zone name. <code>ashchur_utc</code> (<code>ashchur</code>) gives the UTC offset, shown as <code>[[UTC+01:00]]</code>. Default: Wikidata P421 and P2907.
|-
| <code>cryss_hraa_THHL</code>, <code>ashchur_utc_THHL</code> (and <code>…1</code>, <code>…2</code>) || <code>…_TTSL</code> || Daylight-saving time, labelled "Sourey (THHL)".
|-
| <code>coad_postagh</code> || || Postal code. Several, separated by <code>/</code> or <code>,</code>, show as a horizontal list (label "Coadyn postagh"). Default: Wikidata P281. <code>sorçh_coad_postagh</code> sets the label.
|-
| <code>coad_ardjynagh</code> || || Area code, shown with the dialling code: "+44 1624". Default: P473 plus the country's P474.
|-
| <code>coad_çhellvane_cheer</code> || <code>coad_çhellvane_ashoonagh</code> || Dialling code to put in front; <code>none</code> shows the area code alone.
|-
| <code>ogher_ingagh_os</code>, <code>ogher_ingagh_yernagh</code> || || Ordnance Survey (P613) and Irish (P4091) grid references.
|-
| <code>geocode</code> || || Geocode.
|-
| <code>coad_iso</code> || || ISO 3166-2 code (P300).
|-
| <code>plait_recortyssee</code> || || Vehicle registration code (P395).
|-
| <code>lannoon1</code>…<code>lannoon9</code> || || Twin towns. <code>çheer_lannoon1</code>… gives each one's country; both are free text. Default: Wikidata P190, shown as "[[town]] ([[country]])" with the Celtic region instead of the sovereign state, and a Celtic-language name when there is no Manx one. <code>sorçh_lannoon</code> sets the header.
|}
== Blank fields and website ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>blank_name</code>, <code>blank_info</code>, <code>blank1_name</code>…<code>blank7_info</code> (and <code>…_sec1</code>) || Free label and value rows in section 1.
|-
| <code>blank_name_sec2</code>, <code>blank_info_sec2</code>, <code>blank1_name_sec2</code>… || The same for section 2.
|-
| <code>fo-noteyn</code> || Footnotes for the whole infobox; small text just above the website.
|-
| <code>ynnyd-eggey</code> || Official website (default: Wikidata P856). Shown last, across the full width, with no label. A bare address becomes a link.
|}
== Transliterations of the name ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>çhengey1_aascreeu</code>, <code>çhengey2_aascreeu</code> || Language of a block of other-script forms ("Aascreeu(yn) …").
|-
| <code>sorçh_çhengey1_aascreeu</code>, <code>fys_çhengey1_aascreeu</code>, … <code>sorçh1_…</code>/<code>fys1_…</code> up to 6 || Label and value pairs in the block.
|}
== Map and coordinates ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>latd</code>, <code>latm</code>, <code>lats</code>, <code>latNS</code>, <code>longd</code>, <code>longm</code>, <code>longs</code>, <code>longEW</code> || Coordinates by hand. Default: Wikidata P625. <code>latd=none</code> hides them.
|-
| <code>sorçh_coor</code>, <code>mair_coor</code>, <code>coord_a</code>, <code>ard_coordnaidyn</code>, <code>cummey_coordnaidyn</code> || Label, extras for the coordinates.
|-
| <code>imraa_coordnaidyn</code>, <code>fo-noteyn_coordnaidyn</code> || Reference and footnote for the coordinates.
|-
| <code>jalloo_caslys-çheerey</code>, <code>mooadys_caslys-çheerey</code>, <code>alt_caslys-çheerey</code>, <code>fo-heidyl_caslys-çheerey</code> (and <code>…1</code>, <code>…2</code>) || Location maps by hand.
|-
| <code>jalloo_caslys-çheerey_bunneydagh</code> … || Background map with a dot; <code>ponk_x</code> and <code>ponk_y</code> place it, <code>jalloo_caslys-çheerey_ponk</code> sets the dot.
|-
| <code>caslys-çheerey_çheer</code>, <code>soiaghey_lipaid</code>, <code>releef_caslys-çheerey</code>, <code>zoom_caslys-çheerey</code> (<code>mapframe-zoom</code>), <code>lipaid_caslys2</code>, <code>lipaid_caslys_follaghey</code>, <code>mapframe</code> || Pushpin map country, outline, relief, zoom, and the interactive map.
|-
| <code>ennym_er_caslys</code>, <code>ennym_caslys_jesh</code> || Text before and after the name in the map caption.
|}
== Notes for editors ==
* Footnotes and references are accepted by every section as <code>noteyn_<name></code> and <code>imraa_<name></code>.
* The infobox is a single table, so it works the same in the Android app. Red links are not shown there.
* The sections are separate modules: <code>Module:Kishtey fys boayl/</code> followed by <code>aascreeu</code>, <code>jalloo</code>, <code>bratteeyn</code>, <code>cowraghyn</code>, <code>caslyssyn</code>, <code>aarheynn</code>, <code>bunneeaght</code>, <code>soiag</code>, <code>çhengaghyn</code>, <code>reiltys</code>, <code>eaghtyr</code>, <code>yrjid</code>, <code>pobble</code>, <code>deynoaylleeaght</code>, <code>crysshraa</code>, <code>coadyn</code>, <code>lannoon</code>, <code>blank</code>, <code>ynnyd-eggey</code>, plus the shared <code>unnidyn</code>.
mps0ia6zds8d4uklwbww22nzcdx8zqn
395324
395323
2026-10-26T13:56:54Z
MacTire02
219
++
395324
wikitext
text/x-wiki
{{Fo-ghuillag docamadys}}
<!-- Documentation for Clowan:Kishtey fys boayl. Parameter names in the first column are preferred; the second column lists legacy names that still work. -->
'''Kishtey fys boayl''' is an infobox for any place: a village, town, county, gmina, oblast, and so on. It is built from [[Module:Kishtey fys boayl]], which runs one submodule for each section. Almost everything is filled in from Wikidata when it is left out; anything given by hand wins.
== Rules that apply everywhere ==
* '''Manual wins.''' A parameter given in the article replaces the Wikidata value.
* '''<code>none</code>''' hides a field, for example <code>jarroo-raa=none</code> when Wikidata holds a slogan that is not an official motto.
* '''<code><section>_wd=none</code>''' turns off every Wikidata fill in a section (<code>aarheynn_wd</code>, <code>çhengaghyn_wd</code>, <code>reiltys_wd</code>, <code>bunneeaght_wd</code>, <code>eaghtyr_wd</code>, <code>yrjid_wd</code>, <code>pobble_wd</code>, <code>crysshraa_wd</code>, <code>coadyn_wd</code>, <code>lannoon_wd</code>, <code>ynnyd_wd</code>). Parameters set by hand still show.
* '''<code>noteyn_<name></code>''' adds a footnote (<code>{{efn}}</code>) and '''<code>imraa_<name></code>''' adds a reference to the field <code><name></code>. Wikidata values bring their own references.
* '''Unknown parameters''' are flagged in red italics in preview, and the article is added to [[Ronney:Duillagyn gymmydey kishtey fys boayl marish parameadaryn gyn enney]].
* Dates are shown as a year only.
== Title ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>ennym</code> || || Common name (default: page title).
|-
| <code>ennym_oikoil</code> || || Official name; shown on its own row when both names are given.
|-
| <code>ennym_dooghyssagh</code> || || Native name. <code>çhengey_ennym_dooghyssagh</code> gives its language code. Default: Wikidata P1705, unless it is Manx or repeats the name above.
|-
| <code>ennym_elley</code> || || Other name. <code>çhengey_ennym_elley</code> gives its language code.
|-
| <code>sorçh_boayl</code> || <code>sorçh_balley</code>, <code>sorçh</code> || Type band under the title, for example "Ard-valley". Default: Manx label of the item's type (P31). <code>none</code> hides it.
|}
== Images ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>jalloo</code> || Image: a bare file name, or full image markup. Default: Wikidata P18.
|-
| <code>jalloo_bun_speyrey</code> || Legacy name for the main image file; <code>jalloo</code> with a bare file name does the same.
|-
| <code>mooadys_jalloo</code>, <code>alt_jalloo</code>, <code>fo-heidyl_jalloo</code> || Size, alt text, caption.
|-
| <code>jalloo_brattagh</code> / <code>jalloo_seal</code> / <code>jalloo_armys</code> / <code>jalloo_cowrey_bane</code> || Flag (P41), seal (P158), arms (P94), logo (P154). Flags, seals, arms and logos are never linked unless <code>kiangley_brattagh</code> etc. is set.
|-
| <code>mooadys_<name></code>, <code>alt_<name></code> || Size and alt text for each of those four (<code>brattagh</code>, <code>seal</code>, <code>armys</code>, <code>cowrey_bane</code>).
|-
| <code>sorçh_cowrey_bane</code> || Label for the logo.
|-
| <code>ennym_gienneydagh</code> || Name used in alt text and captions.
|}
== Names and symbols (nickname, motto, anthem) ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>far-ennym</code> || Nickname.
|-
| <code>jarroo-raa</code> || Motto (Wikidata P1451). Legacy: <code>jarroo_raa</code>, <code>jarroo-raa1</code>, <code>jarroo-raa_ashoonagh</code>. Numbered <code>jarroo-raa2</code>… for more. Shown in straight quotes.
|-
| <code>anthym</code>, <code>arrane</code> || Anthem and song, same suffix set as the motto (<code>anthym1</code>, …).
|-
| <code>çhengey_<name></code> || Language code of the line.
|-
| <code>çhyndaa_<name></code> (legacy <code>chyndaa_</code>) || Translation.
|-
| <code>tessen-lettyraghey_<name></code> || Transliteration.
|-
| <code>coadan_<name></code> || Audio file.
|-
| <code>gyn_cowraghyn_aaraa_<name></code> || Stops the quotation marks.
|}
== Place in the world ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>aarheynn</code>, <code>aarheynn1</code>… || <code>ennym_aarheynn</code>, <code>çheer</code> (first level) || Administrative levels from the top (country, region, …), up to 7. Default: Wikidata P17 then the "located in" chain (P131).
|-
| <code>sorçh_aarheynn</code>, <code>sorçh_aarheynn1</code>… || || Label for that level. Default: Manx label of the unit's type.
|-
| <code>aarheynn_wd</code> || || <code>none</code> turns the Wikidata hierarchy off.
|-
| <code>soiag</code> || <code>soieag</code> || Seat or capital (P36). <code>sorçh_soiag</code> is its label. <code>soiag1</code> is a second seat, labelled "Eear-hoiag".
|-
| <code>p1</code>…<code>p50</code> || || Constituent parts, typed by hand. <code>ayrnyn</code> gives one value instead; <code>sorçh_ayrnyn</code> is the label (default "Baljyn corpagh" by hand, "Ayrnyn" from Wikidata P150); <code>aght_ayrnyn</code> is <code>para</code> (one paragraph) or <code>coll</code> (collapsed list).
|-
| <code>bunneyder</code>, <code>enmysit_son</code> || || Founder (P112), named after (P138).
|-
| <code>date_bunneeaght</code>, <code>enmys_bunneeaght</code> (and <code>…1</code> to <code>…5</code>) || || Dated events, shown as bullets. Default: founding year (P571). <code>date_mooghey</code> and <code>enmys_mooghey</code> add one more dated line (for example an end date).
|-
| <code>fo-noteyn_bunneeaght</code> || || Footnote on the header.
|-
| <code>çhengey_oikoil</code> || <code>çhengaghyn_oikoil</code> || Official languages (P37), shown as a horizontal list.
|-
| <code>çhengaghyn</code> || <code>çhengaghyn_loayrit</code> || Languages spoken (P2936).
|}
== Government ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>enmys_toshiagh</code>, <code>enmys_toshiagh1</code>… || <code>enmys_fer-toshee</code>, <code>enmys_fer_toshee</code> || Title of the leader, for example "Meoir". Up to 6 leaders. In the legacy names "fer toshee" means "male leader", so new articles should use <code>toshiagh</code>.
|-
| <code>toshiagh</code>, <code>toshiagh1</code>… || <code>fer-toshee</code>, <code>ennym_toshiagh</code>, <code>ennym_fer-toshee</code> || Name of the leader.
|-
| <code>partee_toshiagh</code> || <code>partee_fer-toshee</code>, <code>partee_fer_toshee</code> || Party of the first leader, shown with the party template.
|-
| <code>noteyn_toshiagh</code>, <code>imraa_toshiagh</code> || <code>…_fer-toshee</code> || Footnote and reference for a leader.
|-
| <code>colught_reirey</code> || || Governing body ("Colught" row), by hand only.
|-
| <code>rheynn-reihys</code>, <code>rheynn-reihys1</code>… || || Constituencies, shown in an unbulleted list. <code>rheynnyn-reihys</code> gives them as one list; <code>enmys_rheynn_reihys</code> sets the label (default: Wikidata P7938's Manx label).
|-
| <code>sorçh_reiltys</code>, <code>fo-noteyn_reiltys</code> || || Type of government (default: Wikidata P122) and a footnote.
|-
| <code>reiltys_wd</code> || || <code>none</code> stops Wikidata leaders (P6, P1313) and constituencies (P7938).
|}
== Area, elevation, population ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>unnid_towshan</code> || <code>tosheeaght_unnid</code> || <code>metric</code>, <code>imperial</code> or <code>dunam</code>. Default: the primary unit of the country (the other unit follows in brackets).
|-
| <code>eaghtyr_km2</code>, <code>eaghtyr_mi_ker</code>, <code>eaghtyr_dunam</code> || <code>slane_eaghtyr_km2</code> etc. || Total area. Default: Wikidata P2046. <code>mooadys_eaghtyr</code> sets decimals.
|-
| <code>enmys_eaghtyr_slane</code> || <code>sorçh_slane</code> || Label of the total row (default "Slane").
|-
| <code>eaghtyr_thalloo</code>, <code>eaghtyr_ushtey</code>, <code>eaghtyr_baljagh</code>, <code>eaghtyr_çheerey</code>, <code>eaghtyr_moir</code>, <code>eaghtyr_bane1</code>, <code>eaghtyr_bane2</code> || || Sub-areas (each with <code>_km2</code> and <code>_mi_ker</code>). <code>kiangley_<stem></code> makes the label a link.
|-
| <code>eaghtyr_ushtey_sy_cheead</code> || <code>ushtey_sy_cheead</code> || Water share. Default: Wikidata P2927.
|-
| <code>noteyn_eaghtyr</code>, <code>imraa_eaghtyr</code>, <code>note_eaghtyr</code>, <code>fo-noteyn_eaghtyr</code> || || Notes and references.
|-
| <code>yrjid_m</code>, <code>yrjid_tr</code> || || Elevation in metres and feet. Default: Wikidata P2044. <code>mooadys_yrjid</code> sets decimals.
|-
| <code>boayl_s'yrjey_m</code>, <code>boayl_s'yrjey_tr</code>, <code>ennym_boayl_s'yrjey</code> || <code>boayl_syrjey_…</code> || Highest point, with its name (P610).
|-
| <code>boayl_s'inshley_m</code>, <code>boayl_s'inshley_tr</code>, <code>ennym_boayl_s'inshley</code> || <code>boayl_sinshley_…</code> || Lowest point (P1589).
|-
| <code>earroo_yn_phobble</code> || || Population. Default: latest census (P1082), then latest estimate. The header shows its year.
|-
| <code>blein_earroo_yn_phobble</code> || <code>earroo_yn_phobble_er</code> || Year of that figure (never bold).
|-
| <code>ooley_earroo_yn_phobble</code> || || Second figure, with <code>blein_ooley_earroo_yn_phobble</code> (<code>ooley_earroo_yn_phobble_er</code>) as year.
|-
| <code>slane_earroo_yn_phobble</code> || || Total, when the main figure is only for the settlement; the main row is then named by <code>sorçh_boayl</code>.
|-
| <code>earroo_yn_phobble_baljagh</code>, <code>_çheerey</code>, <code>_moir</code>, <code>_bane1</code>, <code>_bane2</code> || || Urban, rural, metropolitan and two free sub-populations. <code>enmys_earroo_yn_phobble_bane1</code> names them.
|-
| <code>glooaght_y_phobble_km2</code>, <code>glooaght_y_phobble_mi_ker</code> || || Density. Default: calculated, with the inputs' references.
|-
| <code>ennym_ny_cummaltee</code> || || Demonym. Default: Wikidata P1549 in Manx.
|-
| <code>note_earroo_yn_phobble</code>, <code>fo-noteyn_earroo_yn_phobble</code>, <code>noteyn_…</code>, <code>imraa_…</code> || || Notes and references.
|}
== Demographics, time, codes ==
{| class="wikitable"
! Parameter !! Legacy !! Description
|-
| <code>sorçh_deynoaylleeaght1</code>, <code>…2</code> || || Header of a demographics group; <code>fo-noteyn_deynoaylleeaght1</code> adds a footnote.
|-
| <code>enmys1_deynoaylleeaght1</code>… <code>enmys5_…</code> with <code>fys1_…</code>… <code>fys5_…</code> || || Label and value for each line (up to 5, in 2 groups).
|-
| <code>cryss_hraa</code>, <code>cryss_hraa1</code>, <code>cryss_hraa2</code> || || Time zone name. <code>ashchur_utc</code> (<code>ashchur</code>) gives the UTC offset, shown as <code>[[UTC+01:00]]</code>. Default: Wikidata P421 and P2907.
|-
| <code>cryss_hraa_THHL</code>, <code>ashchur_utc_THHL</code> (and <code>…1</code>, <code>…2</code>) || <code>…_TTSL</code> || Daylight-saving time, labelled "Sourey (THHL)".
|-
| <code>coad_postagh</code> || || Postal code. Several, separated by <code>/</code> or <code>,</code>, show as a horizontal list (label "Coadyn postagh"). Default: Wikidata P281. <code>sorçh_coad_postagh</code> sets the label.
|-
| <code>coad_ardjynagh</code> || || Area code, shown with the dialling code: "+44 1624". Default: P473 plus the country's P474.
|-
| <code>coad_çhellvane_cheer</code> || <code>coad_çhellvane_ashoonagh</code> || Dialling code to put in front; <code>none</code> shows the area code alone.
|-
| <code>ogher_ingagh_os</code>, <code>ogher_ingagh_yernagh</code> || || Ordnance Survey (P613) and Irish (P4091) grid references.
|-
| <code>geocode</code> || || Geocode.
|-
| <code>coad_iso</code> || || ISO 3166-2 code (P300).
|-
| <code>plait_recortyssee</code> || || Vehicle registration code (P395).
|-
| <code>lannoon1</code>…<code>lannoon9</code> || || Twin towns. <code>çheer_lannoon1</code>… gives each one's country; both are free text. Default: Wikidata P190, shown as "[[town]] ([[country]])" with the Celtic region instead of the sovereign state, and a Celtic-language name when there is no Manx one. <code>sorçh_lannoon</code> sets the header.
|}
== Blank fields and website ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>blank_name</code>, <code>blank_info</code>, <code>blank1_name</code>…<code>blank7_info</code> (and <code>…_sec1</code>) || Free label and value rows in section 1.
|-
| <code>blank_name_sec2</code>, <code>blank_info_sec2</code>, <code>blank1_name_sec2</code>… || The same for section 2.
|-
| <code>fo-noteyn</code> || Footnotes for the whole infobox; small text just above the website.
|-
| <code>ynnyd-eggey</code> || Official website (default: Wikidata P856). Shown last, across the full width, with no label. A bare address becomes a link.
|}
== Transliterations of the name ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>çhengey1_aascreeu</code>, <code>çhengey2_aascreeu</code> || Language of a block of other-script forms ("Aascreeu(yn) …").
|-
| <code>sorçh_çhengey1_aascreeu</code>, <code>fys_çhengey1_aascreeu</code>, … <code>sorçh1_…</code>/<code>fys1_…</code> up to 6 || Label and value pairs in the block.
|}
== Map and coordinates ==
{| class="wikitable"
! Parameter !! Description
|-
| <code>latd</code>, <code>latm</code>, <code>lats</code>, <code>latNS</code>, <code>longd</code>, <code>longm</code>, <code>longs</code>, <code>longEW</code> || Coordinates by hand. Default: Wikidata P625. <code>latd=none</code> hides them.
|-
| <code>sorçh_coor</code>, <code>mair_coor</code>, <code>coord_a</code>, <code>ard_coordnaidyn</code>, <code>cummey_coordnaidyn</code> || Label, extras for the coordinates.
|-
| <code>imraa_coordnaidyn</code>, <code>fo-noteyn_coordnaidyn</code> || Reference and footnote for the coordinates.
|-
| <code>jalloo_caslys-çheerey</code>, <code>mooadys_caslys-çheerey</code>, <code>alt_caslys-çheerey</code>, <code>fo-heidyl_caslys-çheerey</code> (and <code>…1</code>, <code>…2</code>) || Location maps by hand.
|-
| <code>jalloo_caslys-çheerey_bunneydagh</code> … || Background map with a dot; <code>ponk_x</code> and <code>ponk_y</code> place it, <code>jalloo_caslys-çheerey_ponk</code> sets the dot.
|-
| <code>caslys-çheerey_çheer</code>, <code>soiaghey_lipaid</code>, <code>releef_caslys-çheerey</code>, <code>zoom_caslys-çheerey</code> (<code>mapframe-zoom</code>), <code>lipaid_caslys2</code>, <code>lipaid_caslys_follaghey</code>, <code>mapframe</code> || Pushpin map country, outline, relief, zoom, and the interactive map.
|-
| <code>ennym_er_caslys</code>, <code>ennym_caslys_jesh</code> || Text before and after the name in the map caption.
|}
== Notes for editors ==
* Footnotes and references are accepted by every section as <code>noteyn_<name></code> and <code>imraa_<name></code>.
* The infobox is a single table, so it works the same in the Android app. Red links are not shown there.
* The sections are separate modules: <code>Module:Kishtey fys boayl/</code> followed by <code>aascreeu</code>, <code>jalloo</code>, <code>bratteeyn</code>, <code>cowraghyn</code>, <code>caslyssyn</code>, <code>aarheynn</code>, <code>bunneeaght</code>, <code>soiag</code>, <code>çhengaghyn</code>, <code>reiltys</code>, <code>eaghtyr</code>, <code>yrjid</code>, <code>pobble</code>, <code>deynoaylleeaght</code>, <code>crysshraa</code>, <code>coadyn</code>, <code>lannoon</code>, <code>blank</code>, <code>ynnyd-eggey</code>, plus the shared <code>unnidyn</code>.
==Noteyn==
{{notelist}}
==Imraaghyn==
{{reflist}}
7j3f79kr1fvwpvvn1c8hepncut0hihb
Ingagh ogheragh Nerin
0
15991
395314
186775
2026-10-26T13:06:52Z
Xqbot
1136
Fixing double redirect from [[Corys ingagh ogheragh Nerin]] to [[Corys ogher ingagh Nerin]]
395314
wikitext
text/x-wiki
#REDIRECT [[Corys ogher ingagh Nerin]]
i8fq91gm7r91fz5hvqgctljtiyvl72c
Slyst Haifa
0
17804
395403
369002
2026-10-27T00:48:04Z
MacTire02
219
++
395403
wikitext
text/x-wiki
{{Kishtey fys boayl
| ennym_gienneydagh = Slyst Haifa
| ennym = Slyst Haifa
| ennym_dooghyssagh = {{lang|he|מחוז חיפה}} {{small|([[Ewnish]])}}<br/>{{lang|ar|{{script/Arabic|منطقة حيفا}}}} {{small|([[Arabish]])}}
| sorçh_balley = [[Slystyn Israel|Slyst]]
| jalloo_caslys-çheerey = Haifa District in Israel (semi-Israel areas hatched).svg
| sorçh_soieag = Preeu-valley
| soieag = [[Haifa]]
| cryss_hraa = [[Traa ynnydagh Israel|IST]]
| ashchur_utc = +02:00
| cryss_hraa_TTSL = [[Traa houree Israel|IDT]]
| ashchur_utc_TTSL = +03:00
}}
She fer jeh [[slystyn Israel|slystyn]] [[Israel]] ee '''Slyst Haifa''' ({{lang-he-n|מחוז חיפה}}, {{tessen-lettyraghey|he|Mehoz Ḥeifa}}; {{langx|ar|منطقة حيفا}}). Ta'n clyst 864 km² er eaghtyr. She [[Haifa]] y preeu-valley.
Rere staydraa veih [[Ard-Rheynn Staydraa Israel]] 'sy vlein 2005, va 858,000 deiney cummal 'sy clyst. She Ewnyn 71.27% jeh pobble y lyst. Ta 18.81% nyn Arabee Voslymagh, 1.78% nyn Arabee Chreestee, as 2.52% nyn Nroosee. Cha row 4.9% jeh pobble y lyst rang-oardit rere craueeaght.
==Gurneilys ynnydagh==
{| class="wikitable"
!width="300;" style="font-size:larger; background:#00008B; color:white;"|Caayryn
!width="300;" style="font-size:larger; background:#00008B; color:white;"|Coonseilyn ynnydagh
!width="300;" style="font-size:larger; background:#00008B; color:white;"|Coonseilyn ardjynagh
|-
|valign=top|
*[[Baqa-Jatt]]
*[[Hadera]]
*[[Haifa]]
*[[Nesher]]
*[[Or Akiva]]
*[[Kiryat Ata]]
*[[Kiryat Bialik]]
*[[Kiryat Motzkin]]
*[[Kiryat Yam]]
*[[Tirat Carmel]]
*[[Umm al-Fahm]]
|valign=top|
*[[Ar'ara]]
*[[Basma]]
*[[Binyamina-Giv'at Ada]]
*[[Daliyat al-Karmel]]
*[[Fureidis]]
*[[Isfiya]]
*[[Jisr az-Zarqa]]
*[[Kafr Qara]]
*[[Katzir-Harish]]
*[[Kiryat Tivon]]
*[[Ma'ale Iron]]
*[[Pardes Hanna-Karkur]]
*[[Rekhasim]]
*[[Zikhron Ya'akov]]
|valign=top|
*[[Coonseil Ardjynagh Alona|Alona]]
*[[Coonseil Ardjynagh Hof HaCarmel|Hof HaCarmel]]
*[[Coonseil Ardjynagh Menashe|Menashe]]
*[[Coonseil Ardjynagh Zevulun|Zevulun]]
|}
==Imraaghyn==
{{reflist}}
{{Slystyn Israel}}
{{gurneil eaghtyrys}}
{{DEFAULTSORT:Haifa}}
[[Ronney:Slyst Haifa| ]]
[[Ronney:Slystyn Israel]]
95llc347x1qpl6jd77a76m6t53gvm3b
Pobblaght Hene-reiltagh y Chrimeea
0
19451
395356
336443
2026-10-26T20:31:23Z
MacTire02
219
++
395356
wikitext
text/x-wiki
{{Ymmydynelley|yn phobblaght hene-reiltagh Ookraanagh er Lieh-innys y Chrimeea|Yn Chrimeea (reddaghey)}}
{{Kishtey fys çheer
|ennym = Pobblaght Hene-reiltagh y Chrimeea
|ennym_foddey_cadjincliaghtagh= {{small|{{Name in various languages
| name = {{nobold|''(ayns ny çhengaghyn oikoil)''}}
| uk = {{lang|uk|Автономна Республіка Крим}}<br />{{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}
| ru = {{lang|ru|Автономная Республика Крым}}<br />{{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}
| crh = {{lang|crh|Qırım Muhtar Cumhuriyeti|italics=no}}
}}}}
|ennym_gienneydagh = y Chrimeea
|jalloo_brattagh = Flag of Crimea.svg
|jalloo_cleinney = Emblem of Crimea.svg
|jalloo_caslys = Crimea in Ukraine.svg
|arrane_ashoonagh = {{lang|ru|[[Anthym Steat y Chrimeea|Нивы и горы твои волшебны, Родина]]|italics=no}}
|çhyndaa_arrane_ashoonagh = S'druiaghtagh dty vagheryn as dty sleityn, Heer Ghooie
|tessen-lettyraghey_arrane_ashoonagh= {{tessen-lettyraghey|ru|Nivy i gory tvoi volshebny, Rodina}}
|çhengey_arrane_ashoonagh = Rooshish
|çhengaghyn_oikoil = {{hlist|[[Ookraanish]]|[[Rooshish]]|[[Tatarish Chrimeeagh]]}}
|imraa_çhengaghyn_oikoil = <ref>{{cite web |author1=[[Verkhovna Rada yn Chrimeea]] |title=Constitution of the Autonomous Republic of Crimea |url=https://en.wikisource.org/wiki/Constitution_of_Crimea,_1998#CHAPTER_3._Securing_Rights_and_Freedoms_of_Ukrainian_Nationals_and_Rights_of_Ethnic_Groups_in_the_Autonomous_Republic_of_Crimea |access-date=19 Mee ny Nollick 2022 |pages=Rheynn 1, Olt 10 |quote="In the Autonomous Republic of Crimea, alongside with the [[Ookraanish|official language]], the application and development, use and protection of [[Rooshish|Russian]], [[Tatarish Chrimeeagh|Crimean Tatar]] and other ethnic groups’ languages shall be secured."}}</ref>
|preeu-valley = [[Simferopol]]
|possanyn_kynneeagh = {{unbulleted list
| 60.12% [[Rooshee 'syn Ookraan|Rooshee]]
| 25.78% [[Ookraanee]]
| {{nowrap|14.1% [[Tataree Chrimeeagh]]}}
}}
|blein_possanyn_kynneeagh = 2001
|latd=44 |latm=56 |latNS=N |longd=34 |longm=06 |longEW=E
|balley_smoo = preeu-valley
|sorçh_reiltys = [[Pobblaght hene-reiltagh]]
|eaghtyr_km2 = 26,100
|eaghtyr_mi_ker = 10,038
|pobble_coontey = 2,033,700
|blein_coontey_pobble = 2001
|glooaght_pobble_km2 = 75.6
|glooaght_pobble_mi_ker = 196.6
|quaiyl = [[Ard-Choonseil y Chrimeea]]
|taghyrt_bunneeaght1 = [[Pobblaght Hene-reiltagh Hoveidjagh Hoshiallagh y Chrimeea (1991–1992)|Hene-reiltys]]
|date_bunneeaght1 = 12 Toshiaght Arree 1991
|taghyrt_bunneeaght2 = [[Bunraght Phobblaght Hene-reiltagh y Chrimeea|Bunraght]]
|date_bunneeaght2 = 21 Jerrey Fouyir 1998
|taghyrt_bunneeaght3 = [[Thallooyn yn Ookraan fo cummaltys y Roosh|Cummaltys Rooshagh]]
|date_bunneeaght3 = 20 Toshiaght Arree 2014{{efn|'Sy vlein 2015 chur [[parlamaid yn Ookraan]] 20 Toshiaght Arree 2014 sheese dy h-oikoil myr date "toshiaght [[Thallooyn yn Ookraan fo cummaltys y Roosh|cummaltys shallidagh y Chrimeea as Sevastopol lesh y Roosh]]."<ref name="10404918crimea">[https://www.unian.info/m/society/10404918-twitter-verifies-account-of-russia-s-mfa-in-crimea-ukraine-files-complaint.html Twitter verifies account of Russia's MFA in Crimea, Ukraine files complaint], [[UNIAN]] (11 Jerrey Geuree 2019)<br />{{in lang|uk}} [https://archive.khpg.org/en/1458478037 Crimean prosecutor threatens reprisals against 50 Euromaidan activists], KhPG (4 Mean Souree 2015)</ref>}}
|taghyrt_bunneeaght4 = [[Goaill-stiagh y Chrimeea lesh y Roosh, 2014|Goit stiagh lesh y Roosh]]
|date_bunneeaght4 = 18 Mayrnt 2014<ref>{{cite news|last1=Toal|first1=Gerald|last2=O’Loughlin|first2=John|last3=M. Bakke|first3=Kristin|title=Six years and $20 billion in Russian investment later, Crimeans are happy with Russian annexation Point|url=https://www.washingtonpost.com/politics/2020/03/18/six-years-20-billion-russian-investment-later-crimeans-are-happy-with-russian-annexation/|date=18 Mayrnt 2020|newspaper=The Washington Post|access-date=28 Jerrey Geuree 2021}}</ref>
|argid = [[Hryvnia Ookraanagh]]
|coad_argid = UAH
|traa_ynnydagh = [[Traa ynnydagh yn Oarpey Hiar|EET]]
|ashchur_utc = +02:00
|traa_ynnydagh_TTLS = [[Traa Houree yn Oarpey Hiar|EEST]]
|ashchur_utc_TTLS = +03:00
|coad_çhellvane = 380
}}
She [[pobblaght hene-reiltagh]] jeh'n [[Yn Ookraan|Ookraan]] ee '''Pobblaght Hene-reiltagh y Chrimeea''' ({{langx|uk|Автономна Республіка Крим}} {{tessen-lettyraghey|Avtonomna Respublika Krym}}, {{langx|ru|Автономная Республика Крым}} {{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}, {{langx|crh|Qırım Muhtar Cumhuriyeti}}). Ta'n phobblaght hene-reiltagh goaill stiagh y chooid smoo jeh lieh-innys y [[Yn Chrimeea|Chrimeea]]. T'ee çhemmit 'sy jiass as 'sy neear liorish [[Yn Vooir Ghoo|y Vooir Ghoo]], 'sy niar liorish [[Mooir Azov]] as [[Keyllys Kerch]], as 'sy twoaie liorish yn Ookraan. Cha nel agh taagher keyl kiangley yn lieh-innys rish y çheer vooar. Ta [[Sevastopol|Caayr Sevastopol]] çhemmal rish y phobblaght hene-reiltagh 'sy neear yiass. She [[Simferopol]] preeu-valley yn phobblaght hene-reiltagh.
'Sy vlein 2007, va 1,973,185 sleih cummal 'sy phobblaght hene-reiltagh. Lesh shen, va 2,352,385 dooinney cummal ayn 'sy vlein shen. She Rooshee 58.32% jeh pobble yn ard, Ookraanee 24.32% as Tataree Chrimeeagh 12.1%.
==Imraaghyn==
{{reflist}}
{{Aarheynnyn ny h-Ookraan}}
{{Gurneil eaghtyrys}}
{{Coord|45.3|34.4|scale:2000000|display=title}}
{{DEFAULTSORT:Chrimeea, Pobblaght Hene-reiltagh}}
[[Ronney:Pobblaght Hene-reiltagh y Chrimeea|*]]
[[Ronney:Shennaghys politickagh y Chrimeea]]
[[Ronney:Pobblaghtyn hene-reiltagh yn Ookraan]]
[[Ronney:Thallooyn arganeyssit 'syn Oarpey]]
[[Ronney:Rheynnyn reiragh yn Ookraan]]
[[Ronney:Steatyn as thallooyn bunnit 'sy vlein 1991]]
[[Ronney:Reiltyssyn hene-reiltagh 'syn eebyrtys]]
[[Ronney:Shennaghys y Chrimeea rere earish]]
7eo0faidinwrb4z6ahrr5g9ugckcfqz
395358
395356
2026-10-26T20:40:20Z
MacTire02
219
++
395358
wikitext
text/x-wiki
{{Ymmydynelley|yn phobblaght hene-reiltagh Ookraanagh er Lieh-innys y Chrimeea|Yn Chrimeea (reddaghey)}}
{{Kishtey fys çheer
|ennym = Pobblaght Hene-reiltagh y Chrimeea
|ennym_foddey_cadjincliaghtagh= {{small|{{Name in various languages
| name = {{nobold|''(ayns ny çhengaghyn oikoil)''}}
| uk = {{lang|uk|Автономна Республіка Крим}}<br />{{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}
| ru = {{lang|ru|Автономная Республика Крым}}<br />{{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}
| crh = {{lang|crh|Qırım Muhtar Cumhuriyeti|italics=no}}
}}}}
|ennym_gienneydagh = y Chrimeea
|jalloo_brattagh = Flag of Crimea.svg
|jalloo_cleinney = Emblem of Crimea.svg
|jalloo_caslys = Crimea in Ukraine.svg
|arrane_ashoonagh = {{lang|ru|[[Anthym Steat y Chrimeea|Нивы и горы твои волшебны, Родина]]|italics=no}}
|çhyndaa_arrane_ashoonagh = S'druiaghtagh dty vagheryn as dty sleityn, Heer Ghooie
|tessen-lettyraghey_arrane_ashoonagh= {{tessen-lettyraghey|ru|Nivy i gory tvoi volshebny, Rodina}}
|çhengey_arrane_ashoonagh = Rooshish
|çhengaghyn_oikoil = {{hlist|[[Ookraanish]]|[[Rooshish]]|[[Tatarish Chrimeeagh]]}}
|imraa_çhengaghyn_oikoil = <ref>{{cite web |author1=[[Verkhovna Rada yn Chrimeea]] |title=Constitution of the Autonomous Republic of Crimea |url=https://en.wikisource.org/wiki/Constitution_of_Crimea,_1998#CHAPTER_3._Securing_Rights_and_Freedoms_of_Ukrainian_Nationals_and_Rights_of_Ethnic_Groups_in_the_Autonomous_Republic_of_Crimea |access-date=19 Mee ny Nollick 2022 |pages=Rheynn 1, Olt 10 |quote="In the Autonomous Republic of Crimea, alongside with the [[Ookraanish|official language]], the application and development, use and protection of [[Rooshish|Russian]], [[Tatarish Chrimeeagh|Crimean Tatar]] and other ethnic groups’ languages shall be secured."}}</ref>
|preeu-valley = [[Simferopol]]
|possanyn_kynneeagh = {{unbulleted list
| 60.12% [[Rooshee 'syn Ookraan|Rooshee]]
| 25.78% [[Ookraanee]]
| {{nowrap|14.1% [[Tataree Chrimeeagh]]}}
}}
|blein_possanyn_kynneeagh = 2001
|latd=44 |latm=56 |latNS=N |longd=34 |longm=06 |longEW=E
|balley_smoo = preeu-valley
|sorçh_reiltys = [[Pobblaght hene-reiltagh]]
|eaghtyr_km2 = 26,100
|eaghtyr_mi_ker = 10,038
|pobble_coontey = 2,033,700
|blein_coontey_pobble = 2001
|glooaght_pobble_km2 = 75.6
|glooaght_pobble_mi_ker = 196.6
|quaiyl = [[Ard-Choonseil y Chrimeea]]
|taghyrt_bunneeaght1 = [[Pobblaght Hene-reiltagh Hoveidjagh Hoshiallagh y Chrimeea (1991–1992)|Hene-reiltys]]
|date_bunneeaght1 = 12 Toshiaght Arree 1991
|taghyrt_bunneeaght2 = [[Bunraght Phobblaght Hene-reiltagh y Chrimeea|Bunraght]]
|date_bunneeaght2 = 21 Jerrey Fouyir 1998
|taghyrt_bunneeaght3 = [[Thallooyn yn Ookraan fo cummaltys y Roosh|Cummaltys Rooshagh]]
|date_bunneeaght3 = 20 Toshiaght Arree 2014{{efn|'Sy vlein 2015 chur [[parlamaid yn Ookraan]] 20 Toshiaght Arree 2014 sheese dy h-oikoil myr date "toshiaght [[Thallooyn yn Ookraan fo cummaltys y Roosh|cummaltys shallidagh y Chrimeea as Sevastopol lesh y Roosh]]."<ref name="10404918crimea">[https://www.unian.info/m/society/10404918-twitter-verifies-account-of-russia-s-mfa-in-crimea-ukraine-files-complaint.html Twitter verifies account of Russia's MFA in Crimea, Ukraine files complaint], [[UNIAN]] (11 Jerrey Geuree 2019)<br />{{in lang|uk}} [https://archive.khpg.org/en/1458478037 Crimean prosecutor threatens reprisals against 50 Euromaidan activists], KhPG (4 Mean Souree 2015)</ref>}}
|taghyrt_bunneeaght4 = [[Goaill-stiagh y Chrimeea lesh y Roosh, 2014|Goit stiagh lesh y Roosh]]
|date_bunneeaght4 = 18 Mayrnt 2014<ref>{{cite news|last1=Toal|first1=Gerald|last2=O’Loughlin|first2=John|last3=M. Bakke|first3=Kristin|title=Six years and $20 billion in Russian investment later, Crimeans are happy with Russian annexation Point|url=https://www.washingtonpost.com/politics/2020/03/18/six-years-20-billion-russian-investment-later-crimeans-are-happy-with-russian-annexation/|date=18 Mayrnt 2020|newspaper=The Washington Post|access-date=28 Jerrey Geuree 2021}}</ref>
|argid = [[Hryvnia Ookraanagh]]
|coad_argid = UAH
|traa_ynnydagh = [[Traa ynnydagh yn Oarpey Hiar|EET]]
|ashchur_utc = +02:00
|traa_ynnydagh_TTLS = [[Traa Houree yn Oarpey Hiar|EEST]]
|ashchur_utc_TTLS = +03:00
|coad_çhellvane = 380
}}
She [[pobblaght hene-reiltagh]] jeh'n [[Yn Ookraan|Ookraan]] ee '''Pobblaght Hene-reiltagh y Chrimeea''' ({{langx|uk|Автономна Республіка Крим}} {{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}, {{langx|ru|Автономная Республика Крым}} {{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}, {{langx|crh|Qırım Muhtar Cumhuriyeti}}). Ta'n phobblaght hene-reiltagh goaill stiagh y chooid smoo jeh lieh-innys y [[Yn Chrimeea|Chrimeea]]. T'ee çhemmit 'sy jiass as 'sy neear liorish [[Yn Vooir Ghoo|y Vooir Ghoo]], 'sy niar liorish [[Mooir Azov]] as [[Keyllys Kerch]], as 'sy twoaie liorish yn Ookraan. Cha nel agh taagher keyl kiangley yn lieh-innys rish y çheer vooar. Ta [[Sevastopol|Caayr Sevastopol]] çhemmal rish y phobblaght hene-reiltagh 'sy neear yiass. She [[Simferopol]] preeu-valley yn phobblaght hene-reiltagh.
'Sy vlein 2007, va 1,973,185 sleih cummal 'sy phobblaght hene-reiltagh. Lesh shen, va 2,352,385 dooinney cummal ayn 'sy vlein shen. She Rooshee 58.32% jeh pobble yn ard, Ookraanee 24.32% as Tataree Chrimeeagh 12.1%.
==Imraaghyn==
{{reflist}}
{{Aarheynnyn ny h-Ookraan}}
{{Gurneil eaghtyrys}}
{{Coord|45.3|34.4|scale:2000000|display=title}}
{{DEFAULTSORT:Chrimeea, Pobblaght Hene-reiltagh}}
[[Ronney:Pobblaght Hene-reiltagh y Chrimeea|*]]
[[Ronney:Shennaghys politickagh y Chrimeea]]
[[Ronney:Pobblaghtyn hene-reiltagh yn Ookraan]]
[[Ronney:Thallooyn arganeyssit 'syn Oarpey]]
[[Ronney:Rheynnyn reiragh yn Ookraan]]
[[Ronney:Steatyn as thallooyn bunnit 'sy vlein 1991]]
[[Ronney:Reiltyssyn hene-reiltagh 'syn eebyrtys]]
[[Ronney:Shennaghys y Chrimeea rere earish]]
sd0f5ndjh5jqhtetq89jrwv23namq0z
395360
395358
2026-10-26T20:42:26Z
MacTire02
219
++
395360
wikitext
text/x-wiki
{{Ymmydynelley|yn phobblaght hene-reiltagh Ookraanagh er Lieh-innys y Chrimeea|Yn Chrimeea (reddaghey)}}
{{Kishtey fys çheer
|ennym = Pobblaght Hene-reiltagh y Chrimeea
|ennym_foddey_cadjincliaghtagh= {{small|{{Name in various languages
| name = {{nobold|''(ayns ny çhengaghyn oikoil)''}}
| uk = {{lang|uk|Автономна Республіка Крим}}<br />{{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}
| ru = {{lang|ru|Автономная Республика Крым}}<br />{{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}
| crh = {{lang|crh|Qırım Muhtar Cumhuriyeti|italics=no}}
}}}}
|ennym_gienneydagh = y Chrimeea
|jalloo_brattagh = Flag of Crimea.svg
|jalloo_cleinney = Emblem of Crimea.svg
|jalloo_caslys = Crimea in Ukraine.svg
|arrane_ashoonagh = {{lang|ru|[[Anthym Steat y Chrimeea|Нивы и горы твои волшебны, Родина]]|italics=no}}
|çhyndaa_arrane_ashoonagh = S'druiaghtagh dty vagheryn as dty sleityn, Heer Ghooie
|tessen-lettyraghey_arrane_ashoonagh= {{tessen-lettyraghey|ru|Nivy i gory tvoi volshebny, Rodina}}
|çhengey_arrane_ashoonagh = Rooshish
|çhengaghyn_oikoil = {{hlist|[[Ookraanish]]|[[Rooshish]]|[[Tatarish Chrimeeagh]]}}
|imraa_çhengaghyn_oikoil = <ref>{{cite web |author1=[[Verkhovna Rada yn Chrimeea]] |title=Constitution of the Autonomous Republic of Crimea |url=https://en.wikisource.org/wiki/Constitution_of_Crimea,_1998#CHAPTER_3._Securing_Rights_and_Freedoms_of_Ukrainian_Nationals_and_Rights_of_Ethnic_Groups_in_the_Autonomous_Republic_of_Crimea |access-date=19 Mee ny Nollick 2022 |pages=Rheynn 1, Olt 10 |quote="In the Autonomous Republic of Crimea, alongside with the [[Ookraanish|official language]], the application and development, use and protection of [[Rooshish|Russian]], [[Tatarish Chrimeeagh|Crimean Tatar]] and other ethnic groups’ languages shall be secured."}}</ref>
|preeu-valley = [[Simferopol]]
|possanyn_kynneeagh = {{unbulleted list
| 60.12% [[Rooshee 'syn Ookraan|Rooshee]]
| 25.78% [[Ookraanee]]
| {{nowrap|14.1% [[Tataree Chrimeeagh]]}}
}}
|blein_possanyn_kynneeagh = 2001
|latd=44 |latm=56 |latNS=N |longd=34 |longm=06 |longEW=E
|balley_smoo = preeu-valley
|sorçh_reiltys = [[Pobblaght hene-reiltagh]]
|eaghtyr_km2 = 26,100
|eaghtyr_mi_ker = 10,038
|pobble_coontey = 2,033,700
|blein_coontey_pobble = 2001
|glooaght_pobble_km2 = 75.6
|glooaght_pobble_mi_ker = 196.6
|quaiyl = [[Ard-Choonseil y Chrimeea]]
|taghyrt_bunneeaght1 = [[Pobblaght Hene-reiltagh Hoveidjagh Hoshiallagh y Chrimeea (1991–1992)|Hene-reiltys]]
|date_bunneeaght1 = 12 Toshiaght Arree 1991
|taghyrt_bunneeaght2 = [[Bunraght Phobblaght Hene-reiltagh y Chrimeea|Bunraght]]
|date_bunneeaght2 = 21 Jerrey Fouyir 1998
|taghyrt_bunneeaght3 = [[Thallooyn yn Ookraan fo cummaltys y Roosh|Cummaltys Rooshagh]]
|date_bunneeaght3 = 20 Toshiaght Arree 2014{{efn|'Sy vlein 2015 chur [[parlamaid yn Ookraan]] 20 Toshiaght Arree 2014 sheese dy h-oikoil myr date "toshiaght [[Thallooyn yn Ookraan fo cummaltys y Roosh|cummaltys shallidagh y Chrimeea as Sevastopol lesh y Roosh]]."<ref name="10404918crimea">[https://www.unian.info/m/society/10404918-twitter-verifies-account-of-russia-s-mfa-in-crimea-ukraine-files-complaint.html Twitter verifies account of Russia's MFA in Crimea, Ukraine files complaint], [[UNIAN]] (11 Jerrey Geuree 2019)<br />{{in lang|uk}} [https://archive.khpg.org/en/1458478037 Crimean prosecutor threatens reprisals against 50 Euromaidan activists], KhPG (4 Mean Souree 2015)</ref>}}
|taghyrt_bunneeaght4 = [[Goaill-stiagh y Chrimeea lesh y Roosh, 2014|Goit stiagh lesh y Roosh]]
|date_bunneeaght4 = 18 Mayrnt 2014<ref>{{cite news|last1=Toal|first1=Gerald|last2=O’Loughlin|first2=John|last3=M. Bakke|first3=Kristin|title=Six years and $20 billion in Russian investment later, Crimeans are happy with Russian annexation Point|url=https://www.washingtonpost.com/politics/2020/03/18/six-years-20-billion-russian-investment-later-crimeans-are-happy-with-russian-annexation/|date=18 Mayrnt 2020|newspaper=The Washington Post|access-date=28 Jerrey Geuree 2021}}</ref>
|argid = [[Hryvnia Ookraanagh]]
|coad_argid = UAH
|traa_ynnydagh = [[Traa ynnydagh yn Oarpey Hiar|EET]]
|ashchur_utc = +02:00
|traa_ynnydagh_TTLS = [[Traa Houree yn Oarpey Hiar|EEST]]
|ashchur_utc_TTLS = +03:00
|coad_çhellvane = 380
}}
She [[pobblaght hene-reiltagh]] jeh'n [[Yn Ookraan|Ookraan]] ee '''Pobblaght Hene-reiltagh y Chrimeea''' ({{langx|uk|Автономна Республіка Крим}} {{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}, {{langx|ru|Автономная Республика Крым}} {{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}, {{langx|crh|Qırım Muhtar Cumhuriyeti}}). Ta'n phobblaght hene-reiltagh goaill stiagh y chooid smoo jeh lieh-innys y [[Yn Chrimeea|Chrimeea]]. T'ee çhemmit 'sy jiass as 'sy neear liorish [[Yn Vooir Ghoo|y Vooir Ghoo]], 'sy niar liorish [[Mooir Azov]] as [[Keyllys Kerch]], as 'sy twoaie liorish yn Ookraan. Cha nel agh taagher keyl kiangley yn lieh-innys rish y çheer vooar. Ta [[Sevastopol|Caayr Sevastopol]] çhemmal rish y phobblaght hene-reiltagh 'sy neear yiass. She [[Simferopol]] preeu-valley yn phobblaght hene-reiltagh.
'Sy vlein 2007, va 1,973,185 sleih cummal 'sy phobblaght hene-reiltagh. Lesh shen, va 2,352,385 dooinney cummal ayn 'sy vlein shen. She Rooshee 58.32% jeh pobble yn ard, Ookraanee 24.32% as Tataree Chrimeeagh 12.1%.
==Noteyn==
{{notelist}}
==Imraaghyn==
{{reflist}}
{{Aarheynnyn ny h-Ookraan}}
{{Gurneil eaghtyrys}}
{{Coord|45.3|34.4|scale:2000000|display=title}}
{{DEFAULTSORT:Chrimeea, Pobblaght Hene-reiltagh}}
[[Ronney:Pobblaght Hene-reiltagh y Chrimeea|*]]
[[Ronney:Shennaghys politickagh y Chrimeea]]
[[Ronney:Pobblaghtyn hene-reiltagh yn Ookraan]]
[[Ronney:Thallooyn arganeyssit 'syn Oarpey]]
[[Ronney:Rheynnyn reiragh yn Ookraan]]
[[Ronney:Steatyn as thallooyn bunnit 'sy vlein 1991]]
[[Ronney:Reiltyssyn hene-reiltagh 'syn eebyrtys]]
[[Ronney:Shennaghys y Chrimeea rere earish]]
pkouy6569yzgfw5rn33aelyrx83vvfm
395367
395360
2026-10-26T21:37:50Z
MacTire02
219
++
395367
wikitext
text/x-wiki
{{Ymmydynelley|yn phobblaght hene-reiltagh Ookraanagh er Lieh-innys y Chrimeea|Yn Chrimeea (reddaghey)}}
{{Kishtey fys çheer
|ennym = Pobblaght Hene-reiltagh y Chrimeea
|ennym_foddey_cadjincliaghtagh= {{small|{{Name in various languages
| name = {{nobold|''(ayns ny çhengaghyn oikoil)''}}
| uk = {{lang|uk|Автономна Республіка Крим}}<br />{{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}
| ru = {{lang|ru|Автономная Республика Крым}}<br />{{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}
| crh = {{lang|crh|Qırım Muhtar Cumhuriyeti|italics=no}}
}}}}
|ennym_gienneydagh = y Chrimeea
|jalloo_brattagh = Flag of Crimea.svg
|jalloo_cleinney = Emblem of Crimea.svg
|jalloo_caslys = Crimea in Ukraine.svg
|arrane_ashoonagh = {{lang|ru|[[Anthym Steat y Chrimeea|Нивы и горы твои волшебны, Родина]]|italics=no}}
|çhyndaa_arrane_ashoonagh = S'druiaghtagh dty vagheryn as dty sleityn, Heer Ghooie
|tessen-lettyraghey_arrane_ashoonagh= {{tessen-lettyraghey|ru|Nivy i gory tvoi volshebny, Rodina}}
|çhengey_arrane_ashoonagh = Rooshish
|çhengaghyn_oikoil = {{hlist|[[Ookraanish]]|[[Rooshish]]|[[Tatarish Chrimeeagh]]}}
|imraa_çhengaghyn_oikoil = <ref>{{cite web |author1=[[Verkhovna Rada yn Chrimeea]] |title=Constitution of the Autonomous Republic of Crimea |url=https://en.wikisource.org/wiki/Constitution_of_Crimea,_1998#CHAPTER_3._Securing_Rights_and_Freedoms_of_Ukrainian_Nationals_and_Rights_of_Ethnic_Groups_in_the_Autonomous_Republic_of_Crimea |access-date=19 Mee ny Nollick 2022 |pages=Rheynn 1, Olt 10 |quote="In the Autonomous Republic of Crimea, alongside with the [[Ookraanish|official language]], the application and development, use and protection of [[Rooshish|Russian]], [[Tatarish Chrimeeagh|Crimean Tatar]] and other ethnic groups’ languages shall be secured."}}</ref>
|preeu-valley = [[Simferopol]]
|imraa_aarheynn = none
|possanyn_kynneeagh = {{unbulleted list
| 60.12% [[Rooshee 'syn Ookraan|Rooshee]]
| 25.78% [[Ookraanee]]
| {{nowrap|14.1% [[Tataree Chrimeeagh]]}}
}}
|blein_possanyn_kynneeagh = 2001
|latd=44 |latm=56 |latNS=N |longd=34 |longm=06 |longEW=E
|balley_smoo = preeu-valley
|sorçh_reiltys = [[Pobblaght hene-reiltagh]]
|eaghtyr_km2 = 26,100
|eaghtyr_mi_ker = 10,038
|pobble_coontey = 2,033,700
|blein_coontey_pobble = 2001
|glooaght_pobble_km2 = 75.6
|glooaght_pobble_mi_ker = 196.6
|quaiyl = [[Ard-Choonseil y Chrimeea]]
|taghyrt_bunneeaght1 = [[Pobblaght Hene-reiltagh Hoveidjagh Hoshiallagh y Chrimeea (1991–1992)|Hene-reiltys]]
|date_bunneeaght1 = 12 Toshiaght Arree 1991
|taghyrt_bunneeaght2 = [[Bunraght Phobblaght Hene-reiltagh y Chrimeea|Bunraght]]
|date_bunneeaght2 = 21 Jerrey Fouyir 1998
|taghyrt_bunneeaght3 = [[Thallooyn yn Ookraan fo cummaltys y Roosh|Cummaltys Rooshagh]]
|date_bunneeaght3 = 20 Toshiaght Arree 2014{{efn|'Sy vlein 2015 chur [[parlamaid yn Ookraan]] 20 Toshiaght Arree 2014 sheese dy h-oikoil myr date "toshiaght [[Thallooyn yn Ookraan fo cummaltys y Roosh|cummaltys shallidagh y Chrimeea as Sevastopol lesh y Roosh]]."<ref name="10404918crimea">[https://www.unian.info/m/society/10404918-twitter-verifies-account-of-russia-s-mfa-in-crimea-ukraine-files-complaint.html Twitter verifies account of Russia's MFA in Crimea, Ukraine files complaint], [[UNIAN]] (11 Jerrey Geuree 2019)<br />{{in lang|uk}} [https://archive.khpg.org/en/1458478037 Crimean prosecutor threatens reprisals against 50 Euromaidan activists], KhPG (4 Mean Souree 2015)</ref>}}
|taghyrt_bunneeaght4 = [[Goaill-stiagh y Chrimeea lesh y Roosh, 2014|Goit stiagh lesh y Roosh]]
|date_bunneeaght4 = 18 Mayrnt 2014<ref>{{cite news|last1=Toal|first1=Gerald|last2=O’Loughlin|first2=John|last3=M. Bakke|first3=Kristin|title=Six years and $20 billion in Russian investment later, Crimeans are happy with Russian annexation Point|url=https://www.washingtonpost.com/politics/2020/03/18/six-years-20-billion-russian-investment-later-crimeans-are-happy-with-russian-annexation/|date=18 Mayrnt 2020|newspaper=The Washington Post|access-date=28 Jerrey Geuree 2021}}</ref>
|argid = [[Hryvnia Ookraanagh]]
|coad_argid = UAH
|traa_ynnydagh = [[Traa ynnydagh yn Oarpey Hiar|EET]]
|ashchur_utc = +02:00
|traa_ynnydagh_TTLS = [[Traa Houree yn Oarpey Hiar|EEST]]
|ashchur_utc_TTLS = +03:00
|coad_çhellvane = 380
}}
She [[pobblaght hene-reiltagh]] jeh'n [[Yn Ookraan|Ookraan]] ee '''Pobblaght Hene-reiltagh y Chrimeea''' ({{langx|uk|Автономна Республіка Крим}} {{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}, {{langx|ru|Автономная Республика Крым}} {{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}, {{langx|crh|Qırım Muhtar Cumhuriyeti}}). Ta'n phobblaght hene-reiltagh goaill stiagh y chooid smoo jeh lieh-innys y [[Yn Chrimeea|Chrimeea]]. T'ee çhemmit 'sy jiass as 'sy neear liorish [[Yn Vooir Ghoo|y Vooir Ghoo]], 'sy niar liorish [[Mooir Azov]] as [[Keyllys Kerch]], as 'sy twoaie liorish yn Ookraan. Cha nel agh taagher keyl kiangley yn lieh-innys rish y çheer vooar. Ta [[Sevastopol|Caayr Sevastopol]] çhemmal rish y phobblaght hene-reiltagh 'sy neear yiass. She [[Simferopol]] preeu-valley yn phobblaght hene-reiltagh.
'Sy vlein 2007, va 1,973,185 sleih cummal 'sy phobblaght hene-reiltagh. Lesh shen, va 2,352,385 dooinney cummal ayn 'sy vlein shen. She Rooshee 58.32% jeh pobble yn ard, Ookraanee 24.32% as Tataree Chrimeeagh 12.1%.
==Noteyn==
{{notelist}}
==Imraaghyn==
{{reflist}}
{{Aarheynnyn ny h-Ookraan}}
{{Gurneil eaghtyrys}}
{{Coord|45.3|34.4|scale:2000000|display=title}}
{{DEFAULTSORT:Chrimeea, Pobblaght Hene-reiltagh}}
[[Ronney:Pobblaght Hene-reiltagh y Chrimeea|*]]
[[Ronney:Shennaghys politickagh y Chrimeea]]
[[Ronney:Pobblaghtyn hene-reiltagh yn Ookraan]]
[[Ronney:Thallooyn arganeyssit 'syn Oarpey]]
[[Ronney:Rheynnyn reiragh yn Ookraan]]
[[Ronney:Steatyn as thallooyn bunnit 'sy vlein 1991]]
[[Ronney:Reiltyssyn hene-reiltagh 'syn eebyrtys]]
[[Ronney:Shennaghys y Chrimeea rere earish]]
1pnruv6c0hnkqufjnigungud68c03dq
395373
395367
2026-10-26T22:22:01Z
MacTire02
219
++
395373
wikitext
text/x-wiki
{{Ymmydynelley|yn phobblaght hene-reiltagh Ookraanagh er Lieh-innys y Chrimeea|Yn Chrimeea (reddaghey)}}
{{Kishtey fys çheer
|ennym = Pobblaght Hene-reiltagh y Chrimeea
|ennym_foddey_cadjincliaghtagh= {{small|{{Name in various languages
| name = {{nobold|''(ayns ny çhengaghyn oikoil)''}}
| uk = {{lang|uk|Автономна Республіка Крим}}<br />{{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}
| ru = {{lang|ru|Автономная Республика Крым}}<br />{{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}
| crh = {{lang|crh|Qırım Muhtar Cumhuriyeti|italics=no}}
}}}}
|ennym_gienneydagh = y Chrimeea
|jalloo_brattagh = Flag of Crimea.svg
|jalloo_cleinney = Emblem of Crimea.svg
|jalloo_caslys = Crimea in Ukraine.svg
|arrane_ashoonagh = {{lang|ru|[[Anthym Steat y Chrimeea|Нивы и горы твои волшебны, Родина]]|italics=no}}
|çhyndaa_arrane_ashoonagh = S'druiaghtagh dty vagheryn as dty sleityn, Heer Ghooie
|tessen-lettyraghey_arrane_ashoonagh= {{tessen-lettyraghey|ru|Nivy i gory tvoi volshebny, Rodina}}
|çhengey_arrane_ashoonagh = Rooshish
|çhengaghyn_oikoil = {{hlist|[[Ookraanish]]|[[Rooshish]]|[[Tatarish Chrimeeagh]]}}
|imraa_çhengaghyn_oikoil = <ref>{{cite web |author1=[[Verkhovna Rada yn Chrimeea]] |title=Constitution of the Autonomous Republic of Crimea |url=https://en.wikisource.org/wiki/Constitution_of_Crimea,_1998#CHAPTER_3._Securing_Rights_and_Freedoms_of_Ukrainian_Nationals_and_Rights_of_Ethnic_Groups_in_the_Autonomous_Republic_of_Crimea |access-date=19 Mee ny Nollick 2022 |pages=Rheynn 1, Olt 10 |quote="In the Autonomous Republic of Crimea, alongside with the [[Ookraanish|official language]], the application and development, use and protection of [[Rooshish|Russian]], [[Tatarish Chrimeeagh|Crimean Tatar]] and other ethnic groups’ languages shall be secured."}}</ref>
|preeu-valley = [[Simferopol]]
|imraa_aarheynn = none
|possanyn_kynneeagh = {{unbulleted list
| 60.12% [[Rooshee 'syn Ookraan|Rooshee]]
| 25.78% [[Ookraanee]]
| {14.1% [[Tataree Chrimeeagh]]
}}
|blein_possanyn_kynneeagh = 2001
|latd=44 |latm=56 |latNS=N |longd=34 |longm=06 |longEW=E
|balley_smoo = preeu-valley
|sorçh_reiltys = [[Pobblaght hene-reiltagh]]
|eaghtyr_km2 = 26,100
|eaghtyr_mi_ker = 10,038
|pobble_coontey = 2,033,700
|blein_coontey_pobble = 2001
|glooaght_pobble_km2 = 75.6
|glooaght_pobble_mi_ker = 196.6
|quaiyl = [[Ard-Choonseil y Chrimeea]]
|taghyrt_bunneeaght1 = [[Pobblaght Hene-reiltagh Hoveidjagh Hoshiallagh y Chrimeea (1991–1992)|Hene-reiltys]]
|date_bunneeaght1 = 12 Toshiaght Arree 1991
|taghyrt_bunneeaght2 = [[Bunraght Phobblaght Hene-reiltagh y Chrimeea|Bunraght]]
|date_bunneeaght2 = 21 Jerrey Fouyir 1998
|taghyrt_bunneeaght3 = [[Thallooyn yn Ookraan fo cummaltys y Roosh|Cummaltys Rooshagh]]
|date_bunneeaght3 = 20 Toshiaght Arree 2014{{efn|'Sy vlein 2015 chur [[parlamaid yn Ookraan]] 20 Toshiaght Arree 2014 sheese dy h-oikoil myr date "toshiaght [[Thallooyn yn Ookraan fo cummaltys y Roosh|cummaltys shallidagh y Chrimeea as Sevastopol lesh y Roosh]]."<ref name="10404918crimea">[https://www.unian.info/m/society/10404918-twitter-verifies-account-of-russia-s-mfa-in-crimea-ukraine-files-complaint.html Twitter verifies account of Russia's MFA in Crimea, Ukraine files complaint], [[UNIAN]] (11 Jerrey Geuree 2019)<br />{{in lang|uk}} [https://archive.khpg.org/en/1458478037 Crimean prosecutor threatens reprisals against 50 Euromaidan activists], KhPG (4 Mean Souree 2015)</ref>}}
|taghyrt_bunneeaght4 = [[Goaill-stiagh y Chrimeea lesh y Roosh, 2014|Goit stiagh lesh y Roosh]]
|date_bunneeaght4 = 18 Mayrnt 2014<ref>{{cite news|last1=Toal|first1=Gerald|last2=O’Loughlin|first2=John|last3=M. Bakke|first3=Kristin|title=Six years and $20 billion in Russian investment later, Crimeans are happy with Russian annexation Point|url=https://www.washingtonpost.com/politics/2020/03/18/six-years-20-billion-russian-investment-later-crimeans-are-happy-with-russian-annexation/|date=18 Mayrnt 2020|newspaper=The Washington Post|access-date=28 Jerrey Geuree 2021}}</ref>
|argid = [[Hryvnia Ookraanagh]]
|coad_argid = UAH
|traa_ynnydagh = [[Traa ynnydagh yn Oarpey Hiar|EET]]
|ashchur_utc = +02:00
|traa_ynnydagh_TTLS = [[Traa Houree yn Oarpey Hiar|EEST]]
|ashchur_utc_TTLS = +03:00
|coad_çhellvane = 380
}}
She [[pobblaght hene-reiltagh]] jeh'n [[Yn Ookraan|Ookraan]] ee '''Pobblaght Hene-reiltagh y Chrimeea''' ({{langx|uk|Автономна Республіка Крим}} {{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}, {{langx|ru|Автономная Республика Крым}} {{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}, {{langx|crh|Qırım Muhtar Cumhuriyeti}}). Ta'n phobblaght hene-reiltagh goaill stiagh y chooid smoo jeh lieh-innys y [[Yn Chrimeea|Chrimeea]]. T'ee çhemmit 'sy jiass as 'sy neear liorish [[Yn Vooir Ghoo|y Vooir Ghoo]], 'sy niar liorish [[Mooir Azov]] as [[Keyllys Kerch]], as 'sy twoaie liorish yn Ookraan. Cha nel agh taagher keyl kiangley yn lieh-innys rish y çheer vooar. Ta [[Sevastopol|Caayr Sevastopol]] çhemmal rish y phobblaght hene-reiltagh 'sy neear yiass. She [[Simferopol]] preeu-valley yn phobblaght hene-reiltagh.
'Sy vlein 2007, va 1,973,185 sleih cummal 'sy phobblaght hene-reiltagh. Lesh shen, va 2,352,385 dooinney cummal ayn 'sy vlein shen. She Rooshee 58.32% jeh pobble yn ard, Ookraanee 24.32% as Tataree Chrimeeagh 12.1%.
==Noteyn==
{{notelist}}
==Imraaghyn==
{{reflist}}
{{Aarheynnyn ny h-Ookraan}}
{{Gurneil eaghtyrys}}
{{Coord|45.3|34.4|scale:2000000|display=title}}
{{DEFAULTSORT:Chrimeea, Pobblaght Hene-reiltagh}}
[[Ronney:Pobblaght Hene-reiltagh y Chrimeea|*]]
[[Ronney:Shennaghys politickagh y Chrimeea]]
[[Ronney:Pobblaghtyn hene-reiltagh yn Ookraan]]
[[Ronney:Thallooyn arganeyssit 'syn Oarpey]]
[[Ronney:Rheynnyn reiragh yn Ookraan]]
[[Ronney:Steatyn as thallooyn bunnit 'sy vlein 1991]]
[[Ronney:Reiltyssyn hene-reiltagh 'syn eebyrtys]]
[[Ronney:Shennaghys y Chrimeea rere earish]]
suxzt3p9thmw9vviudebe844d0qh9qw
395374
395373
2026-10-26T22:22:13Z
MacTire02
219
++
395374
wikitext
text/x-wiki
{{Ymmydynelley|yn phobblaght hene-reiltagh Ookraanagh er Lieh-innys y Chrimeea|Yn Chrimeea (reddaghey)}}
{{Kishtey fys çheer
|ennym = Pobblaght Hene-reiltagh y Chrimeea
|ennym_foddey_cadjincliaghtagh= {{small|{{Name in various languages
| name = {{nobold|''(ayns ny çhengaghyn oikoil)''}}
| uk = {{lang|uk|Автономна Республіка Крим}}<br />{{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}
| ru = {{lang|ru|Автономная Республика Крым}}<br />{{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}
| crh = {{lang|crh|Qırım Muhtar Cumhuriyeti|italics=no}}
}}}}
|ennym_gienneydagh = y Chrimeea
|jalloo_brattagh = Flag of Crimea.svg
|jalloo_cleinney = Emblem of Crimea.svg
|jalloo_caslys = Crimea in Ukraine.svg
|arrane_ashoonagh = {{lang|ru|[[Anthym Steat y Chrimeea|Нивы и горы твои волшебны, Родина]]|italics=no}}
|çhyndaa_arrane_ashoonagh = S'druiaghtagh dty vagheryn as dty sleityn, Heer Ghooie
|tessen-lettyraghey_arrane_ashoonagh= {{tessen-lettyraghey|ru|Nivy i gory tvoi volshebny, Rodina}}
|çhengey_arrane_ashoonagh = Rooshish
|çhengaghyn_oikoil = {{hlist|[[Ookraanish]]|[[Rooshish]]|[[Tatarish Chrimeeagh]]}}
|imraa_çhengaghyn_oikoil = <ref>{{cite web |author1=[[Verkhovna Rada yn Chrimeea]] |title=Constitution of the Autonomous Republic of Crimea |url=https://en.wikisource.org/wiki/Constitution_of_Crimea,_1998#CHAPTER_3._Securing_Rights_and_Freedoms_of_Ukrainian_Nationals_and_Rights_of_Ethnic_Groups_in_the_Autonomous_Republic_of_Crimea |access-date=19 Mee ny Nollick 2022 |pages=Rheynn 1, Olt 10 |quote="In the Autonomous Republic of Crimea, alongside with the [[Ookraanish|official language]], the application and development, use and protection of [[Rooshish|Russian]], [[Tatarish Chrimeeagh|Crimean Tatar]] and other ethnic groups’ languages shall be secured."}}</ref>
|preeu-valley = [[Simferopol]]
|imraa_aarheynn = none
|possanyn_kynneeagh = {{unbulleted list
| 60.12% [[Rooshee 'syn Ookraan|Rooshee]]
| 25.78% [[Ookraanee]]
| 14.1% [[Tataree Chrimeeagh]]
}}
|blein_possanyn_kynneeagh = 2001
|latd=44 |latm=56 |latNS=N |longd=34 |longm=06 |longEW=E
|balley_smoo = preeu-valley
|sorçh_reiltys = [[Pobblaght hene-reiltagh]]
|eaghtyr_km2 = 26,100
|eaghtyr_mi_ker = 10,038
|pobble_coontey = 2,033,700
|blein_coontey_pobble = 2001
|glooaght_pobble_km2 = 75.6
|glooaght_pobble_mi_ker = 196.6
|quaiyl = [[Ard-Choonseil y Chrimeea]]
|taghyrt_bunneeaght1 = [[Pobblaght Hene-reiltagh Hoveidjagh Hoshiallagh y Chrimeea (1991–1992)|Hene-reiltys]]
|date_bunneeaght1 = 12 Toshiaght Arree 1991
|taghyrt_bunneeaght2 = [[Bunraght Phobblaght Hene-reiltagh y Chrimeea|Bunraght]]
|date_bunneeaght2 = 21 Jerrey Fouyir 1998
|taghyrt_bunneeaght3 = [[Thallooyn yn Ookraan fo cummaltys y Roosh|Cummaltys Rooshagh]]
|date_bunneeaght3 = 20 Toshiaght Arree 2014{{efn|'Sy vlein 2015 chur [[parlamaid yn Ookraan]] 20 Toshiaght Arree 2014 sheese dy h-oikoil myr date "toshiaght [[Thallooyn yn Ookraan fo cummaltys y Roosh|cummaltys shallidagh y Chrimeea as Sevastopol lesh y Roosh]]."<ref name="10404918crimea">[https://www.unian.info/m/society/10404918-twitter-verifies-account-of-russia-s-mfa-in-crimea-ukraine-files-complaint.html Twitter verifies account of Russia's MFA in Crimea, Ukraine files complaint], [[UNIAN]] (11 Jerrey Geuree 2019)<br />{{in lang|uk}} [https://archive.khpg.org/en/1458478037 Crimean prosecutor threatens reprisals against 50 Euromaidan activists], KhPG (4 Mean Souree 2015)</ref>}}
|taghyrt_bunneeaght4 = [[Goaill-stiagh y Chrimeea lesh y Roosh, 2014|Goit stiagh lesh y Roosh]]
|date_bunneeaght4 = 18 Mayrnt 2014<ref>{{cite news|last1=Toal|first1=Gerald|last2=O’Loughlin|first2=John|last3=M. Bakke|first3=Kristin|title=Six years and $20 billion in Russian investment later, Crimeans are happy with Russian annexation Point|url=https://www.washingtonpost.com/politics/2020/03/18/six-years-20-billion-russian-investment-later-crimeans-are-happy-with-russian-annexation/|date=18 Mayrnt 2020|newspaper=The Washington Post|access-date=28 Jerrey Geuree 2021}}</ref>
|argid = [[Hryvnia Ookraanagh]]
|coad_argid = UAH
|traa_ynnydagh = [[Traa ynnydagh yn Oarpey Hiar|EET]]
|ashchur_utc = +02:00
|traa_ynnydagh_TTLS = [[Traa Houree yn Oarpey Hiar|EEST]]
|ashchur_utc_TTLS = +03:00
|coad_çhellvane = 380
}}
She [[pobblaght hene-reiltagh]] jeh'n [[Yn Ookraan|Ookraan]] ee '''Pobblaght Hene-reiltagh y Chrimeea''' ({{langx|uk|Автономна Республіка Крим}} {{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}, {{langx|ru|Автономная Республика Крым}} {{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}, {{langx|crh|Qırım Muhtar Cumhuriyeti}}). Ta'n phobblaght hene-reiltagh goaill stiagh y chooid smoo jeh lieh-innys y [[Yn Chrimeea|Chrimeea]]. T'ee çhemmit 'sy jiass as 'sy neear liorish [[Yn Vooir Ghoo|y Vooir Ghoo]], 'sy niar liorish [[Mooir Azov]] as [[Keyllys Kerch]], as 'sy twoaie liorish yn Ookraan. Cha nel agh taagher keyl kiangley yn lieh-innys rish y çheer vooar. Ta [[Sevastopol|Caayr Sevastopol]] çhemmal rish y phobblaght hene-reiltagh 'sy neear yiass. She [[Simferopol]] preeu-valley yn phobblaght hene-reiltagh.
'Sy vlein 2007, va 1,973,185 sleih cummal 'sy phobblaght hene-reiltagh. Lesh shen, va 2,352,385 dooinney cummal ayn 'sy vlein shen. She Rooshee 58.32% jeh pobble yn ard, Ookraanee 24.32% as Tataree Chrimeeagh 12.1%.
==Noteyn==
{{notelist}}
==Imraaghyn==
{{reflist}}
{{Aarheynnyn ny h-Ookraan}}
{{Gurneil eaghtyrys}}
{{Coord|45.3|34.4|scale:2000000|display=title}}
{{DEFAULTSORT:Chrimeea, Pobblaght Hene-reiltagh}}
[[Ronney:Pobblaght Hene-reiltagh y Chrimeea|*]]
[[Ronney:Shennaghys politickagh y Chrimeea]]
[[Ronney:Pobblaghtyn hene-reiltagh yn Ookraan]]
[[Ronney:Thallooyn arganeyssit 'syn Oarpey]]
[[Ronney:Rheynnyn reiragh yn Ookraan]]
[[Ronney:Steatyn as thallooyn bunnit 'sy vlein 1991]]
[[Ronney:Reiltyssyn hene-reiltagh 'syn eebyrtys]]
[[Ronney:Shennaghys y Chrimeea rere earish]]
fjd5bhjkv0v0eatauuyvgzic6274te3
395379
395374
2026-10-26T22:57:17Z
MacTire02
219
++
395379
wikitext
text/x-wiki
{{Ymmydynelley|yn phobblaght hene-reiltagh Ookraanagh er Lieh-innys y Chrimeea|Yn Chrimeea (reddaghey)}}
{{Kishtey fys çheer
|ennym = Pobblaght Hene-reiltagh y Chrimeea
|ennym_foddey_cadjincliaghtagh= {{small|{{Name in various languages
| name = {{nobold|''(ayns ny çhengaghyn oikoil)''}}
| uk = {{lang|uk|Автономна Республіка Крим}}<br />{{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}
| ru = {{lang|ru|Автономная Республика Крым}}<br />{{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}
| crh = {{lang|crh|Qırım Muhtar Cumhuriyeti|italics=no}}
}}}}
|ennym_gienneydagh = y Chrimeea
|jalloo_brattagh = Flag of Crimea.svg
|jalloo_cleinney = Emblem of Crimea.svg
|jalloo_caslys = Crimea in Ukraine.svg
|arrane_ashoonagh = {{lang|ru|[[Anthym Steat y Chrimeea|Нивы и горы твои волшебны, Родина]]|italics=no}}
|çhyndaa_arrane_ashoonagh = S'druiaghtagh dty vagheryn as dty sleityn, Heer Ghooie
|tessen-lettyraghey_arrane_ashoonagh= {{tessen-lettyraghey|ru|Nivy i gory tvoi volshebny, Rodina}}
|çhengey_arrane_ashoonagh = Rooshish
|çhengaghyn_oikoil = {{hlist|[[Ookraanish]]|[[Rooshish]]|[[Tatarish Chrimeeagh]]}}
|imraa_çhengaghyn_oikoil = <ref>{{cite web |author1=[[Verkhovna Rada yn Chrimeea]] |title=Constitution of the Autonomous Republic of Crimea |url=https://en.wikisource.org/wiki/Constitution_of_Crimea,_1998#CHAPTER_3._Securing_Rights_and_Freedoms_of_Ukrainian_Nationals_and_Rights_of_Ethnic_Groups_in_the_Autonomous_Republic_of_Crimea |access-date=19 Mee ny Nollick 2022 |pages=Rheynn 1, Olt 10 |quote="In the Autonomous Republic of Crimea, alongside with the [[Ookraanish|official language]], the application and development, use and protection of [[Rooshish|Russian]], [[Tatarish Chrimeeagh|Crimean Tatar]] and other ethnic groups’ languages shall be secured."}}</ref>
|preeu-valley = [[Simferopol]]
|imraa_aarheynn = none
|possanyn_kynneeagh = {{idp|
* 60.12% [[Rooshee 'syn Ookraan|Rooshee]]
* 25.78% [[Ookraanee]]
* 14.1% [[Tataree Chrimeeagh]]
}}
|blein_possanyn_kynneeagh = 2001
|latd=44 |latm=56 |latNS=N |longd=34 |longm=06 |longEW=E
|balley_smoo = preeu-valley
|sorçh_reiltys = [[Pobblaght hene-reiltagh]]
|eaghtyr_km2 = 26,100
|eaghtyr_mi_ker = 10,038
|pobble_coontey = 2,033,700
|blein_coontey_pobble = 2001
|glooaght_pobble_km2 = 75.6
|glooaght_pobble_mi_ker = 196.6
|quaiyl = [[Ard-choonseil y Chrimeea]]
|taghyrt_bunneeaght1 = [[Pobblaght Hene-reiltagh Hoveidjagh Hoshiallagh y Chrimeea (1991–1992)|Hene-reiltys]]
|date_bunneeaght1 = 12 Toshiaght Arree 1991
|taghyrt_bunneeaght2 = [[Bunraght Phobblaght Hene-reiltagh y Chrimeea|Bunraght]]
|date_bunneeaght2 = 21 Jerrey Fouyir 1998
|taghyrt_bunneeaght3 = [[Thallooyn yn Ookraan fo cummaltys y Roosh|Cummaltys Rooshagh]]
|date_bunneeaght3 = 20 Toshiaght Arree 2014{{efn|'Sy vlein 2015 chur [[parlamaid yn Ookraan]] 20 Toshiaght Arree 2014 sheese dy h-oikoil myr date "toshiaght [[Thallooyn yn Ookraan fo cummaltys y Roosh|cummaltys shallidagh y Chrimeea as Sevastopol lesh y Roosh]]."<ref name="10404918crimea">[https://www.unian.info/m/society/10404918-twitter-verifies-account-of-russia-s-mfa-in-crimea-ukraine-files-complaint.html Twitter verifies account of Russia's MFA in Crimea, Ukraine files complaint], [[UNIAN]] (11 Jerrey Geuree 2019)<br />{{in lang|uk}} [https://archive.khpg.org/en/1458478037 Crimean prosecutor threatens reprisals against 50 Euromaidan activists], KhPG (4 Mean Souree 2015)</ref>}}
|taghyrt_bunneeaght4 = [[Goaill-stiagh y Chrimeea lesh y Roosh, 2014|Goit stiagh lesh y Roosh]]
|date_bunneeaght4 = 18 Mayrnt 2014<ref>{{cite news|last1=Toal|first1=Gerald|last2=O’Loughlin|first2=John|last3=M. Bakke|first3=Kristin|title=Six years and $20 billion in Russian investment later, Crimeans are happy with Russian annexation Point|url=https://www.washingtonpost.com/politics/2020/03/18/six-years-20-billion-russian-investment-later-crimeans-are-happy-with-russian-annexation/|date=18 Mayrnt 2020|newspaper=The Washington Post|access-date=28 Jerrey Geuree 2021}}</ref>
|argid = [[Hryvnia Ookraanagh]]
|coad_argid = UAH
|traa_ynnydagh = [[Traa ynnydagh yn Oarpey Hiar|EET]]
|ashchur_utc = +02:00
|traa_ynnydagh_TTLS = [[Traa Houree yn Oarpey Hiar|EEST]]
|ashchur_utc_TTLS = +03:00
|coad_çhellvane = 380
}}
She [[pobblaght hene-reiltagh]] jeh'n [[Yn Ookraan|Ookraan]] ee '''Pobblaght Hene-reiltagh y Chrimeea''' ({{langx|uk|Автономна Республіка Крим}} {{tessen-lettyraghey|uk|Avtonomna Respublika Krym}}, {{langx|ru|Автономная Республика Крым}} {{tessen-lettyraghey|ru|Avtonomnaya Respublika Krym}}, {{langx|crh|Qırım Muhtar Cumhuriyeti}}). Ta'n phobblaght hene-reiltagh goaill stiagh y chooid smoo jeh lieh-innys y [[Yn Chrimeea|Chrimeea]]. T'ee çhemmit 'sy jiass as 'sy neear liorish [[Yn Vooir Ghoo|y Vooir Ghoo]], 'sy niar liorish [[Mooir Azov]] as [[Keyllys Kerch]], as 'sy twoaie liorish yn Ookraan. Cha nel agh taagher keyl kiangley yn lieh-innys rish y çheer vooar. Ta [[Sevastopol|Caayr Sevastopol]] çhemmal rish y phobblaght hene-reiltagh 'sy neear yiass. She [[Simferopol]] preeu-valley yn phobblaght hene-reiltagh.
'Sy vlein 2007, va 1,973,185 sleih cummal 'sy phobblaght hene-reiltagh. Lesh shen, va 2,352,385 dooinney cummal ayn 'sy vlein shen. She Rooshee 58.32% jeh pobble yn ard, Ookraanee 24.32% as Tataree Chrimeeagh 12.1%.
==Noteyn==
{{notelist}}
==Imraaghyn==
{{reflist}}
{{Aarheynnyn ny h-Ookraan}}
{{Gurneil eaghtyrys}}
{{Coord|45.3|34.4|scale:2000000|display=title}}
{{DEFAULTSORT:Chrimeea, Pobblaght Hene-reiltagh}}
[[Ronney:Pobblaght Hene-reiltagh y Chrimeea|*]]
[[Ronney:Shennaghys politickagh y Chrimeea]]
[[Ronney:Pobblaghtyn hene-reiltagh yn Ookraan]]
[[Ronney:Thallooyn arganeyssit 'syn Oarpey]]
[[Ronney:Rheynnyn reiragh yn Ookraan]]
[[Ronney:Steatyn as thallooyn bunnit 'sy vlein 1991]]
[[Ronney:Reiltyssyn hene-reiltagh 'syn eebyrtys]]
[[Ronney:Shennaghys y Chrimeea rere earish]]
s0wknhwn837t8mgfpk8l6mgfbyfjk6o
Module:Citation/CS1
828
26974
395404
385497
2026-10-27T00:54:01Z
MacTire02
219
++
395404
Scribunto
text/plain
require ('strict');
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
each of these counts against the Lua upvalue limit
]]
local validation; -- functions in Module:Citation/CS1/Date_validation
local utilities; -- functions in Module:Citation/CS1/Utilities
local z = {}; -- table of tables in Module:Citation/CS1/Utilities
local identifiers; -- functions and tables in Module:Citation/CS1/Identifiers
local metadata; -- functions in Module:Citation/CS1/COinS
local cfg = {}; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration
local whitelist = {}; -- table of tables listing valid template parameter names; defined in Module:Citation/CS1/Whitelist
--[[------------------< P A G E S C O P E V A R I A B L E S >---------------
declare variables here that have page-wide scope that are not brought in from
other modules; that are created here and used here
]]
local added_deprecated_cat; -- boolean flag so that the category is added only once
local added_vanc_errs; -- boolean flag so we only emit one Vancouver error / category
local added_generic_name_errs; -- boolean flag so we only emit one generic name error / category and stop testing names once an error is encountered
local added_numeric_name_errs; -- boolean flag so we only emit one numeric name error / category and stop testing names once an error is encountered
local added_numeric_name_maint; -- boolean flag so we only emit one numeric name maint category and stop testing names once a category has been emitted
local is_preview_mode; -- true when article is in preview mode; false when using 'Preview page with this template' (previewing the module)
local is_sandbox; -- true when using sandbox modules to render citation
local url_was_archive_today; -- boolean flag set to true when has_archive_today_url() has unset |url= because it held a deprecated archive.today url
--[[--------------------------< F I R S T _ S E T >------------------------------------------------------------
Locates and returns the first set value in a table of values where the order established in the table,
left-to-right (or top-to-bottom), is the order in which the values are evaluated. Returns nil if none are set.
This version replaces the original 'for _, val in pairs do' and a similar version that used ipairs. With the pairs
version the order of evaluation could not be guaranteed. With the ipairs version, a nil value would terminate
the for-loop before it reached the actual end of the list.
]]
local function first_set (list, count)
local i = 1;
while i <= count do -- loop through all items in list
if utilities.is_set( list[i] ) then
return list[i]; -- return the first set list member
end
i = i + 1; -- point to next
end
end
--[[--------------------------< A D D _ V A N C _ E R R O R >----------------------------------------------------
Adds a single Vancouver system error message to the template's output regardless of how many error actually exist.
To prevent duplication, added_vanc_errs is nil until an error message is emitted.
added_vanc_errs is a Boolean declared in page scope variables above
]]
local function add_vanc_error (source, position)
if added_vanc_errs then return end
added_vanc_errs = true; -- note that we've added this category
utilities.set_message ('err_vancouver', {source, position});
end
--[[--------------------------< I S _ S C H E M E >------------------------------------------------------------
does this thing that purports to be a URI scheme seem to be a valid scheme? The scheme is checked to see if it
is in agreement with http://tools.ietf.org/html/std66#section-3.1 which says:
Scheme names consist of a sequence of characters beginning with a
letter and followed by any combination of letters, digits, plus
("+"), period ("."), or hyphen ("-").
returns true if it does, else false
]]
local function is_scheme (scheme)
return scheme and scheme:match ('^%a[%a%d%+%.%-]*:'); -- true if scheme is set and matches the pattern
end
--[=[-------------------------< I S _ D O M A I N _ N A M E >--------------------------------------------------
Does this thing that purports to be a domain name seem to be a valid domain name?
Syntax defined here: http://tools.ietf.org/html/rfc1034#section-3.5
BNF defined here: https://tools.ietf.org/html/rfc4234
Single character names are generally reserved; see https://tools.ietf.org/html/draft-ietf-dnsind-iana-dns-01#page-15;
see also [[Single-letter second-level domain]]
list of TLDs: https://www.iana.org/domains/root/db
RFC 952 (modified by RFC 1123) requires the first and last character of a hostname to be a letter or a digit. Between
the first and last characters the name may use letters, digits, and the hyphen.
Also allowed are IPv4 addresses. IPv6 not supported
domain is expected to be stripped of any path so that the last character in the last character of the TLD. tld
is two or more alpha characters. Any preceding '//' (from splitting a URL with a scheme) will be stripped
here. Perhaps not necessary but retained in case it is necessary for IPv4 dot decimal.
There are several tests:
the first character of the whole domain name including subdomains must be a letter or a digit
internationalized domain name (ASCII characters with .xn-- ASCII Compatible Encoding (ACE) prefix xn-- in the TLD) see https://tools.ietf.org/html/rfc3490
single-letter/digit second-level domains in the .org, .cash, and .today TLDs
q, x, and z SL domains in the .com TLD
i and q SL domains in the .net TLD
single-letter SL domains in the ccTLDs (where the ccTLD is two letters)
two-character SL domains in gTLDs (where the gTLD is two or more letters)
three-plus-character SL domains in gTLDs (where the gTLD is two or more letters)
IPv4 dot-decimal address format; TLD not allowed
returns true if domain appears to be a proper name and TLD or IPv4 address, else false
]=]
local function is_domain_name (domain)
if not domain then
return false; -- if not set, abandon
end
domain = domain:gsub ('^//', ''); -- strip '//' from domain name if present; done here so we only have to do it once
if not domain:match ('^[%w]') then -- first character must be letter or digit
return false;
end
if domain:match ('^%a+:') then -- hack to detect things that look like s:Page:Title where Page: is namespace at Wikisource
return false;
end
local patterns = { -- patterns that look like URLs
'%f[%w][%w][%w%-]+[%w]%.%a%a+$', -- three or more character hostname.hostname or hostname.tld
'%f[%w][%w][%w%-]+[%w]%.xn%-%-[%w]+$', -- internationalized domain name with ACE prefix
'%f[%a][qxz]%.com$', -- assigned one character .com hostname (x.com times out 2015-12-10)
'%f[%a][iq]%.net$', -- assigned one character .net hostname (q.net registered but not active 2015-12-10)
'%f[%w][%w]%.%a%a$', -- one character hostname and ccTLD (2 chars)
'%f[%w][%w][%w]%.%a%a+$', -- two character hostname and TLD
'^%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?', -- IPv4 address
'[%a%d]+%:?' -- IPv6 address
}
for _, pattern in ipairs (patterns) do -- loop through the patterns list
if domain:match (pattern) then
return true; -- if a match then we think that this thing that purports to be a URL is a URL
end
end
for _, d in ipairs (cfg.single_letter_2nd_lvl_domains_t) do -- look for single letter second level domain names for these top level domains
if domain:match ('%f[%w][%w]%.' .. d) then
return true
end
end
return false; -- no matches, we don't know what this thing is
end
--[[--------------------------< I S _ U R L >------------------------------------------------------------------
returns true if the scheme and domain parts of a URL appear to be a valid URL; else false.
This function is the last step in the validation process. This function is separate because there are cases that
are not covered by split_url(), for example is_parameter_ext_wikilink() which is looking for bracketted external
wikilinks.
]]
local function is_url (scheme, domain)
if utilities.is_set (scheme) then -- if scheme is set check it and domain
return is_scheme (scheme) and is_domain_name (domain);
else
return is_domain_name (domain); -- scheme not set when URL is protocol-relative
end
end
--[[--------------------------< S P L I T _ U R L >------------------------------------------------------------
Split a URL into a scheme, authority indicator, and domain.
First remove Fully Qualified Domain Name terminator (a dot following TLD) (if any) and any path(/), query(?) or fragment(#).
If protocol-relative URL, return nil scheme and domain else return nil for both scheme and domain.
When not protocol-relative, get scheme, authority indicator, and domain. If there is an authority indicator (one
or more '/' characters immediately following the scheme's colon), make sure that there are only 2.
Any URL that does not have news: scheme must have authority indicator (//). TODO: are there other common schemes
like news: that don't use authority indicator?
Strip off any port and path;
]]
local function split_url (url_str)
local scheme, authority, domain;
url_str = url_str:gsub ('([%a%d])%.?[/%?#].*$', '%1'); -- strip FQDN terminator and path(/), query(?), fragment (#) (the capture prevents false replacement of '//')
if url_str:match ('^//%S*') then -- if there is what appears to be a protocol-relative URL
domain = url_str:match ('^//(%S*)')
elseif url_str:match ('%S-:/*%S+') then -- if there is what appears to be a scheme, optional authority indicator, and domain name
scheme, authority, domain = url_str:match ('(%S-:)(/*)(%S+)'); -- extract the scheme, authority indicator, and domain portions
if utilities.is_set (authority) then
authority = authority:gsub ('//', '', 1); -- replace place 1 pair of '/' with nothing;
if utilities.is_set(authority) then -- if anything left (1 or 3+ '/' where authority should be) then
return scheme; -- return scheme only making domain nil which will cause an error message
end
else
if not scheme:match ('^news:') then -- except for news:..., MediaWiki won't link URLs that do not have authority indicator; TODO: a better way to do this test?
return scheme; -- return scheme only making domain nil which will cause an error message
end
end
domain = domain:gsub ('(%a):%d+', '%1'); -- strip port number if present
end
return scheme, domain;
end
--[[--------------------------< L I N K _ P A R A M _ O K >---------------------------------------------------
checks the content of |title-link=, |series-link=, |author-link=, etc. for properly formatted content: no wikilinks, no URLs
Link parameters are to hold the title of a Wikipedia article, so none of the WP:TITLESPECIALCHARACTERS are allowed:
# < > [ ] | { } _
except the underscore which is used as a space in wiki URLs and # which is used for section links
returns false when the value contains any of these characters.
When there are no illegal characters, this function returns TRUE if value DOES NOT appear to be a valid URL (the
|<param>-link= parameter is ok); else false when value appears to be a valid URL (the |<param>-link= parameter is NOT ok).
]]
local function link_param_ok (value)
local scheme, domain;
if value:find ('[<>%[%]|{}]') then -- if any prohibited characters
return false;
end
scheme, domain = split_url (value); -- get scheme or nil and domain or nil from URL;
return not is_url (scheme, domain); -- return true if value DOES NOT appear to be a valid URL
end
--[[--------------------------< L I N K _ T I T L E _ O K >---------------------------------------------------
Use link_param_ok() to validate |<param>-link= value and its matching |<title>= value.
|<title>= may be wiki-linked but not when |<param>-link= has a value. This function emits an error message when
that condition exists
check <link> for inter-language interwiki-link prefix. prefix must be a MediaWiki-recognized language
code and must begin with a colon.
]]
local function link_title_ok (link, lorig, title, torig)
local orig;
if utilities.is_set (link) then -- don't bother if <param>-link doesn't have a value
if not link_param_ok (link) then -- check |<param>-link= markup
orig = lorig; -- identify the failing link parameter
elseif title:find ('%[%[') then -- check |title= for wikilink markup
orig = torig; -- identify the failing |title= parameter
elseif link:match ('^%a+:') then -- if the link is what looks like an interwiki
local prefix = link:match ('^(%a+):'):lower(); -- get the interwiki prefix
if cfg.inter_wiki_map[prefix] then -- if prefix is in the map, must have preceding colon
orig = lorig; -- flag as error
end
end
end
if utilities.is_set (orig) then
link = ''; -- unset
utilities.set_message ('err_bad_paramlink', orig); -- URL or wikilink in |title= with |title-link=;
end
return link; -- link if ok, empty string else
end
--[[--------------------------< C H E C K _ U R L >------------------------------------------------------------
Determines whether a URL string appears to be valid.
First we test for space characters. If any are found, return false. Then split the URL into scheme and domain
portions, or for protocol-relative (//example.com) URLs, just the domain. Use is_url() to validate the two
portions of the URL. If both are valid, or for protocol-relative if domain is valid, return true, else false.
Because it is different from a standard URL, and because this module used external_link() to make external links
that work for standard and news: links, we validate newsgroup names here. The specification for a newsgroup name
is at https://tools.ietf.org/html/rfc5536#section-3.1.4
]]
local function check_url( url_str )
if nil == url_str:match ("^%S+$") then -- if there are any spaces in |url=value it can't be a proper URL
return false;
end
local scheme, domain;
scheme, domain = split_url (url_str); -- get scheme or nil and domain or nil from URL;
if 'news:' == scheme then -- special case for newsgroups
return domain:match('^[%a%d%+%-_]+%.[%a%d%+%-_%.]*[%a%d%+%-_]$');
end
return is_url (scheme, domain); -- return true if value appears to be a valid URL
end
--[=[-------------------------< I S _ P A R A M E T E R _ E X T _ W I K I L I N K >----------------------------
Return true if a parameter value has a string that begins and ends with square brackets [ and ] and the first
non-space characters following the opening bracket appear to be a URL. The test will also find external wikilinks
that use protocol-relative URLs. Also finds bare URLs.
The frontier pattern prevents a match on interwiki-links which are similar to scheme:path URLs. The tests that
find bracketed URLs are required because the parameters that call this test (currently |title=, |chapter=, |work=,
and |publisher=) may have wikilinks and there are articles or redirects like '//Hus' so, while uncommon, |title=[[//Hus]]
is possible as might be [[en://Hus]].
]=]
local function is_parameter_ext_wikilink (value)
local scheme, domain;
if value:match ('%f[%[]%[%a%S*:%S+.*%]') then -- if ext. wikilink with scheme and domain: [xxxx://yyyyy.zzz]
scheme, domain = split_url (value:match ('%f[%[]%[(%a%S*:%S+).*%]'));
elseif value:match ('%f[%[]%[//%S+.*%]') then -- if protocol-relative ext. wikilink: [//yyyyy.zzz]
scheme, domain = split_url (value:match ('%f[%[]%[(//%S+).*%]'));
elseif value:match ('%a%S*:%S+') then -- if bare URL with scheme; may have leading or trailing plain text
scheme, domain = split_url (value:match ('(%a%S*:%S+)'));
elseif value:match ('^//%S+') or value:match ('%s//%S+') then -- if protocol-relative bare URL: //yyyyy.zzz; authority indicator (//) must be be preceded nothing or by whitespace
scheme, domain = split_url (value:match ('(//%S+)')); -- what is left should be the domain
else
return false; -- didn't find anything that is obviously a URL
end
return is_url (scheme, domain); -- return true if value appears to be a valid URL
end
--[[--------------------------< I S _ A R C H I V E _ T O D A Y _ U R L >--------------------------------------
archive.today (and .ph, .is, .md, .li, .fo, .vn) are deprecated. See Wikipedia:Requests_for_comment/Archive.is_RFC_5
(Special:Permalink/1339352976)
<val> is a string that may or may not be a url
]]
local function is_archive_today_url (val)
if is_parameter_ext_wikilink (val) then -- is <val> a url?
local tld = val:match ('archive%.(%l+)'); -- get the tld
return tld and cfg.archive_today_tlds_t[tld]; -- return true if <tld> is one of the archive.today tlds; nil else
end
end
--[[--------------------------< H A S _ A R C H I V E _ T O D A Y _ U R L >------------------------------------
blank any parameter that holds one of the archive.today tlds (.today, .ph, .is, .md, .li, .fo, .vn) and also
blank parameters that are dependent on the offending parameter.
input <cite_args_t> is a table of all of this template's parameters This function modifies <cite_args_t>
when |url= or its alias |URL= hold an archive.today url, this function sets the flag <url_was_archive_today>
which is used later to suppress the missing url error message from {{citation}} when it has |website=<summat>
or from the templates {{cite web}}, {{cite podcast}}, {{cite mailing list}} which all require a url.
returns nothing
]]
local function has_archive_today_url (cite_args_t)
local unset_params_t = {}; -- to hold a sequence of parameters to unset from cite_args_t
for p, v in pairs (cite_args_t) do -- look at each parameter in the template
if is_archive_today_url (v:lower()) then -- if it has a parameter with an archive.today url
table.insert (unset_params_t, p); -- add the url-holding parameter name to our list of parameters to unset (may or may not be a legitimate url parameter)
if 'url' == p:lower() then -- if this parameter is |url= or |URL=
url_was_archive_today = true; -- set a flag so that cite web / podcast / mailinglist don't emit a missing url error message
end
if cfg.dependencies_t[p] then -- if this url-holding parameter (<p>) has dependencies
for _, dependent in ipairs (cfg.dependencies_t[p]) do -- loop through the url-holding parameter's dependency sequence
table.insert (unset_params_t, dependent); -- add dependent parameter to the list to be unset
end
end
end
end
if 0 < #unset_params_t then -- when there are parameters to unset
if not is_preview_mode then -- when in preview mode do not suppress any parameters
for _, unset_param in ipairs (unset_params_t) do -- loop through the sequence
cite_args_t[unset_param] = nil; -- and unset the url-holding parameter and its dependent parameters to avoid parameter-requires-other-parameter errors
end
end
utilities.set_message ('maint_deprecated_archive'); -- add a maintenance message
end
end
--[[-------------------------< C H E C K _ F O R _ U R L >-----------------------------------------------------
loop through a list of parameters and their values. Look at the value and if it has an external link, emit an error message.
]]
local function check_for_url (parameter_list, error_list)
for k, v in pairs (parameter_list) do -- for each parameter in the list
if is_parameter_ext_wikilink (v) then -- look at the value; if there is a URL add an error message
table.insert (error_list, utilities.wrap_style ('parameter', k));
end
end
end
--[[--------------------------< S A F E _ F O R _ U R L >------------------------------------------------------
Escape sequences for content that will be used for URL descriptions
]]
local function safe_for_url( str )
if str:match( "%[%[.-%]%]" ) ~= nil then
utilities.set_message ('err_wikilink_in_url', {});
end
return str:gsub( '[%[%]\n]', {
['['] = '[',
[']'] = ']',
['\n'] = ' ' } );
end
--[[--------------------------< E X T E R N A L _ L I N K >----------------------------------------------------
Format an external link with error checking
]]
local function external_link (URL, label, source, access)
local err_msg = '';
local domain;
local path;
local base_url;
if not utilities.is_set (label) then
label = URL;
if utilities.is_set (source) then
utilities.set_message ('err_bare_url_missing_title', {utilities.wrap_style ('parameter', source)});
else
error (cfg.messages["bare_url_no_origin"]); -- programmer error; valid parameter name does not have matching meta-parameter
end
end
if not check_url (URL) then
utilities.set_message ('err_bad_url', {utilities.wrap_style ('parameter', source)});
end
domain, path = URL:match ('^([/%.%-%+:%a%d]+)([/%?#].*)$'); -- split the URL into scheme plus domain and path
if path then -- if there is a path portion
path = path:gsub ('[%[%]]', {['['] = '%5b', [']'] = '%5d'}); -- replace '[' and ']' with their percent-encoded values
URL = table.concat ({domain, path}); -- and reassemble
end
base_url = table.concat ({ "[", URL, " ", safe_for_url (label), "]" }); -- assemble a wiki-markup URL
if utilities.is_set (access) then -- access level (subscription, registration, limited)
base_url = utilities.substitute (cfg.presentation['ext-link-access-signal'], {cfg.presentation[access].class, cfg.presentation[access].title, base_url}); -- add the appropriate icon
end
return base_url;
end
--[[--------------------------< D E P R E C A T E D _ P A R A M E T E R >--------------------------------------
Categorize and emit an error message when the citation contains one or more deprecated parameters. The function includes the
offending parameter name to the error message. Only one error message is emitted regardless of the number of deprecated
parameters in the citation.
added_deprecated_cat is a Boolean declared in page scope variables above
]]
local function deprecated_parameter(name)
if not added_deprecated_cat then
added_deprecated_cat = true; -- note that we've added this category
utilities.set_message ('err_deprecated_params', {name}); -- add error message
end
end
--[=[-------------------------< K E R N _ Q U O T E S >--------------------------------------------------------
Apply kerning to open the space between the quote mark provided by the module and a leading or trailing quote
mark contained in a |title= or |chapter= parameter's value.
This function will positive kern either single or double quotes:
"'Unkerned title with leading and trailing single quote marks'"
" 'Kerned title with leading and trailing single quote marks' " (in real life the kerning isn't as wide as this example)
Double single quotes (italic or bold wiki-markup) are not kerned.
Replaces Unicode quote marks in plain text or in the label portion of a [[L|D]] style wikilink with typewriter
quote marks regardless of the need for kerning. Unicode quote marks are not replaced in simple [[D]] wikilinks.
Call this function for chapter titles, for website titles, etc.; not for book titles.
]=]
local function kern_quotes (str)
local cap = '';
local wl_type, label, link;
wl_type, label, link = utilities.is_wikilink (str); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]
if 1 == wl_type then -- [[D]] simple wikilink with or without quote marks
if mw.ustring.match (str, '%[%[[\"“”\'‘’].+[\"“”\'‘’]%]%]') then -- leading and trailing quote marks
str = utilities.substitute (cfg.presentation['kern-left'], str);
str = utilities.substitute (cfg.presentation['kern-right'], str);
elseif mw.ustring.match (str, '%[%[[\"“”\'‘’].+%]%]') then -- leading quote marks
str = utilities.substitute (cfg.presentation['kern-left'], str);
elseif mw.ustring.match (str, '%[%[.+[\"“”\'‘’]%]%]') then -- trailing quote marks
str = utilities.substitute (cfg.presentation['kern-right'], str);
end
else -- plain text or [[L|D]]; text in label variable
label = mw.ustring.gsub (label, '[“”]', '\"'); -- replace “” (U+201C & U+201D) with " (typewriter double quote mark)
label = mw.ustring.gsub (label, '[‘’]', '\''); -- replace ‘’ (U+2018 & U+2019) with ' (typewriter single quote mark)
cap = mw.ustring.match (label, "^([\"\'][^\'].+)"); -- match leading double or single quote but not doubled single quotes (italic markup)
if utilities.is_set (cap) then
label = utilities.substitute (cfg.presentation['kern-left'], cap);
end
cap = mw.ustring.match (label, "^(.+[^\'][\"\'])$") -- match trailing double or single quote but not doubled single quotes (italic markup)
if utilities.is_set (cap) then
label = utilities.substitute (cfg.presentation['kern-right'], cap);
end
if 2 == wl_type then
str = utilities.make_wikilink (link, label); -- reassemble the wikilink
else
str = label;
end
end
return str;
end
--[[--------------------------< F O R M A T _ S C R I P T _ V A L U E >----------------------------------------
|script-title= holds title parameters that are not written in Latin-based scripts: Chinese, Japanese, Arabic, Hebrew, etc. These scripts should
not be italicized and may be written right-to-left. The value supplied by |script-title= is concatenated onto Title after Title has been wrapped
in italic markup.
Regardless of language, all values provided by |script-title= are wrapped in <bdi>...</bdi> tags to isolate RTL languages from the English left to right.
|script-title= provides a unique feature. The value in |script-title= may be prefixed with a two-character ISO 639-1 language code and a colon:
|script-title=ja:*** *** (where * represents a Japanese character)
Spaces between the two-character code and the colon and the colon and the first script character are allowed:
|script-title=ja : *** ***
|script-title=ja: *** ***
|script-title=ja :*** ***
Spaces preceding the prefix are allowed: |script-title = ja:*** ***
The prefix is checked for validity. If it is a valid ISO 639-1 language code, the lang attribute (lang="ja") is added to the <bdi> tag so that browsers can
know the language the tag contains. This may help the browser render the script more correctly. If the prefix is invalid, the lang attribute
is not added. At this time there is no error message for this condition.
Supports |script-title=, |script-chapter=, |script-<periodical>=
]]
local function format_script_value (script_value, script_param)
local lang=''; -- initialize to empty string
local name;
if script_value:match('^%l%l%l?%s*:') then -- if first 3 or 4 non-space characters are script language prefix
lang = script_value:match('^(%l%l%l?)%s*:%s*%S.*'); -- get the language prefix or nil if there is no script
if not utilities.is_set (lang) then
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['missing title part']}); -- prefix without 'title'; add error message
return ''; -- script_value was just the prefix so return empty string
end
-- if we get this far we have prefix and script
name = cfg.lang_tag_remap[lang] or mw.language.fetchLanguageName( lang, cfg.this_wiki_code ); -- get language name so that we can use it to categorize
if utilities.is_set (name) then -- is prefix a proper ISO 639-1 language code?
script_value = script_value:gsub ('^%l+%s*:%s*', ''); -- strip prefix from script
-- is prefix one of these language codes?
if utilities.in_array (lang, cfg.script_lang_codes) then
utilities.add_prop_cat ('script', {name, lang})
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['unknown language code']}); -- unknown script-language; add error message
end
lang = ' lang="' .. lang .. '" '; -- convert prefix into a lang attribute
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['invalid language code']}); -- invalid language code; add error message
lang = ''; -- invalid so set lang to empty string
end
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['missing prefix']}); -- no language code prefix; add error message
end
script_value = utilities.substitute (cfg.presentation['bdi'], {lang, script_value}); -- isolate in case script is RTL
return script_value;
end
--[[--------------------------< S C R I P T _ C O N C A T E N A T E >------------------------------------------
Initially for |title= and |script-title=, this function concatenates those two parameter values after the script
value has been wrapped in <bdi> tags.
]]
local function script_concatenate (title, script, script_param)
if utilities.is_set (script) then
script = format_script_value (script, script_param); -- <bdi> tags, lang attribute, categorization, etc.; returns empty string on error
if utilities.is_set (script) then
title = title .. ' ' .. script; -- concatenate title and script title
end
end
return title;
end
--[[--------------------------< W R A P _ M S G >--------------------------------------------------------------
Applies additional message text to various parameter values. Supplied string is wrapped using a message_list
configuration taking one argument. Supports lower case text for {{citation}} templates. Additional text taken
from citation_config.messages - the reason this function is similar to but separate from wrap_style().
]]
local function wrap_msg (key, str, lower)
if not utilities.is_set ( str ) then
return "";
end
if true == lower then
local msg;
msg = cfg.messages[key]:lower(); -- set the message to lower case before
return utilities.substitute ( msg, str ); -- including template text
else
return utilities.substitute ( cfg.messages[key], str );
end
end
--[[----------------< W I K I S O U R C E _ U R L _ M A K E >-------------------
Makes a Wikisource URL from Wikisource interwiki-link. Returns the URL and appropriate
label; nil else.
str is the value assigned to |chapter= (or aliases) or |title= or |title-link=
]]
local function wikisource_url_make (str)
local wl_type, D, L;
local ws_url, ws_label;
local wikisource_prefix = table.concat ({'https://', cfg.this_wiki_code, '.wikisource.org/wiki/'});
wl_type, D, L = utilities.is_wikilink (str); -- wl_type is 0 (not a wikilink), 1 (simple wikilink), 2 (complex wikilink)
if 0 == wl_type then -- not a wikilink; might be from |title-link=
str = D:match ('^[Ww]ikisource:(.+)') or D:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title
});
ws_label = str; -- label for the URL
end
elseif 1 == wl_type then -- simple wikilink: [[Wikisource:ws article]]
str = D:match ('^[Ww]ikisource:(.+)') or D:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title
});
ws_label = str; -- label for the URL
end
elseif 2 == wl_type then -- non-so-simple wikilink: [[Wikisource:ws article|displayed text]] ([[L|D]])
str = L:match ('^[Ww]ikisource:(.+)') or L:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_label = D; -- get ws article name from display portion of interwiki link
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title without namespace from link portion of wikilink
});
end
end
if ws_url then
ws_url = mw.uri.encode (ws_url, 'WIKI'); -- make a usable URL
ws_url = ws_url:gsub ('%%23', '#'); -- undo percent-encoding of fragment marker
end
return ws_url, ws_label, L or D; -- return proper URL or nil and a label or nil
end
--[[----------------< F O R M A T _ P E R I O D I C A L >-----------------------
Format the three periodical parameters: |script-<periodical>=, |<periodical>=,
and |trans-<periodical>= into a single Periodical meta-parameter.
]]
local function format_periodical (script_periodical, script_periodical_source, periodical, trans_periodical)
if not utilities.is_set (periodical) then
periodical = ''; -- to be safe for concatenation
else
periodical = utilities.wrap_style ('italic-title', periodical); -- style
end
periodical = script_concatenate (periodical, script_periodical, script_periodical_source); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
if utilities.is_set (trans_periodical) then
trans_periodical = utilities.wrap_style ('trans-italic-title', trans_periodical);
if utilities.is_set (periodical) then
periodical = periodical .. ' ' .. trans_periodical;
else -- here when trans-periodical without periodical or script-periodical
periodical = trans_periodical;
utilities.set_message ('err_trans_missing_title', {'periodical'});
end
end
return periodical;
end
--[[------------------< F O R M A T _ C H A P T E R _ T I T L E >---------------
Format the four chapter parameters: |script-chapter=, |chapter=, |trans-chapter=,
and |chapter-url= into a single chapter meta- parameter (chapter_url_source used
for error messages).
]]
local function format_chapter_title (script_chapter, script_chapter_source, chapter, chapter_source, trans_chapter, trans_chapter_source, chapter_url, chapter_url_source, no_quotes, access)
local ws_url, ws_label, L = wikisource_url_make (chapter); -- make a wikisource URL and label from a wikisource interwiki link
if ws_url then
ws_label = ws_label:gsub ('_', ' '); -- replace underscore separators with space characters
chapter = ws_label;
end
if not utilities.is_set (chapter) then
chapter = ''; -- to be safe for concatenation
else
if false == no_quotes then
chapter = kern_quotes (chapter); -- if necessary, separate chapter title's leading and trailing quote marks from module provided quote marks
chapter = utilities.wrap_style ('quoted-title', chapter);
end
end
chapter = script_concatenate (chapter, script_chapter, script_chapter_source); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
if utilities.is_set (chapter_url) then
chapter = external_link (chapter_url, chapter, chapter_url_source, access); -- adds bare_url_missing_title error if appropriate
elseif ws_url then
chapter = external_link (ws_url, chapter .. ' ', 'ws link in chapter'); -- adds bare_url_missing_title error if appropriate; space char to move icon away from chap text; TODO: better way to do this?
chapter = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, chapter});
end
if utilities.is_set (trans_chapter) then
trans_chapter = utilities.wrap_style ('trans-quoted-title', trans_chapter);
if utilities.is_set (chapter) then
chapter = chapter .. ' ' .. trans_chapter;
else -- here when trans_chapter without chapter or script-chapter
chapter = trans_chapter;
chapter_source = trans_chapter_source:match ('trans%-?(.+)'); -- when no chapter, get matching name from trans-<param>
utilities.set_message ('err_trans_missing_title', {chapter_source});
end
end
return chapter;
end
--[[----------------< H A S _ I N V I S I B L E _ C H A R S >-------------------
This function searches a parameter's value for non-printable or invisible characters.
The search stops at the first match.
This function will detect the visible replacement character when it is part of the Wikisource.
Detects but ignores nowiki and math stripmarkers. Also detects other named stripmarkers
(gallery, math, pre, ref) and identifies them with a slightly different error message.
See also coins_cleanup().
Output of this function is an error message that identifies the character or the
Unicode group, or the stripmarker that was detected along with its position (or,
for multi-byte characters, the position of its first byte) in the parameter value.
]]
local function has_invisible_chars (param, v)
local position = ''; -- position of invisible char or starting position of stripmarker
local capture; -- used by stripmarker detection to hold name of the stripmarker
local stripmarker; -- boolean set true when a stripmarker is found
capture = string.match (v, '[%w%p ]*'); -- test for values that are simple ASCII text and bypass other tests if true
if capture == v then -- if same there are no Unicode characters
return;
end
for _, invisible_char in ipairs (cfg.invisible_chars) do
local char_name = invisible_char[1]; -- the character or group name
local pattern = invisible_char[2]; -- the pattern used to find it
position, _, capture = mw.ustring.find (v, pattern); -- see if the parameter value contains characters that match the pattern
if position and (cfg.invisible_defs.zwj == capture) then -- if we found a zero-width joiner character
if mw.ustring.find (v, cfg.indic_script) then -- it's ok if one of the Indic scripts
position = nil; -- unset position
elseif cfg.emoji_t[mw.ustring.codepoint (v, position+1)] then -- is zwj followed by a character listed in emoji{}?
position = nil; -- unset position
end
end
if position then
if 'nowiki' == capture or 'math' == capture or -- nowiki and math stripmarkers (not an error condition)
('templatestyles' == capture and utilities.in_array (param, {'id', 'quote'})) then -- templatestyles stripmarker allowed in these parameters
stripmarker = true; -- set a flag
elseif true == stripmarker and cfg.invisible_defs.del == capture then -- because stripmakers begin and end with the delete char, assume that we've found one end of a stripmarker
position = nil; -- unset
else
local err_msg;
if capture and not (cfg.invisible_defs.del == capture or cfg.invisible_defs.zwj == capture) then
err_msg = utilities.substitute (cfg.messages.invisible_1, {capture, char_name}); -- <capture> here is stripmarker name
else
err_msg = utilities.substitute (cfg.messages.invisible_2, char_name);
end
utilities.set_message ('err_invisible_char', {err_msg, utilities.wrap_style ('parameter', param), position}); -- add error message
return; -- and done with this parameter
end
end
end
end
--[[-------------------< A R G U M E N T _ W R A P P E R >----------------------
Argument wrapper. This function provides support for argument mapping defined
in the configuration file so that multiple names can be transparently aliased to
single internal variable.
]]
local function argument_wrapper ( args )
local origin = {};
return setmetatable({
ORIGIN = function ( self, k )
local dummy = self[k]; -- force the variable to be loaded.
return origin[k];
end
},
{
__index = function ( tbl, k )
if origin[k] ~= nil then
return nil;
end
local args, list, v = args, cfg.aliases[k];
if type( list ) == 'table' then
v, origin[k] = utilities.select_one ( args, list, 'err_redundant_parameters' );
if origin[k] == nil then
origin[k] = ''; -- Empty string, not nil
end
elseif list ~= nil then
v, origin[k] = args[list], list;
else
-- maybe let through instead of raising an error?
-- v, origin[k] = args[k], k;
error( cfg.messages['unknown_argument_map'] .. ': ' .. k);
end
-- Empty strings, not nil;
if v == nil then
v = '';
origin[k] = '';
end
tbl = rawset( tbl, k, v );
return v;
end,
});
end
--[[--------------------------< N O W R A P _ D A T E >-------------------------
When date is YYYY-MM-DD format wrap in nowrap span: <span ...>YYYY-MM-DD</span>.
When date is DD MMMM YYYY or is MMMM DD, YYYY then wrap in nowrap span:
<span ...>DD MMMM</span> YYYY or <span ...>MMMM DD,</span> YYYY
DOES NOT yet support MMMM YYYY or any of the date ranges.
]]
local function nowrap_date (date)
local cap = '';
local cap2 = '';
if date:match("^%d%d%d%d%-%d%d%-%d%d$") then
date = utilities.substitute (cfg.presentation['nowrap1'], date);
elseif date:match("^%a+%s*%d%d?,%s+%d%d%d%d$") or date:match ("^%d%d?%s*%a+%s+%d%d%d%d$") then
cap, cap2 = string.match (date, "^(.*)%s+(%d%d%d%d)$");
date = utilities.substitute (cfg.presentation['nowrap2'], {cap, cap2});
end
return date;
end
--[[--------------------------< S E T _ T I T L E T Y P E >---------------------
This function sets default title types (equivalent to the citation including
|type=<default value>) for those templates that have defaults. Also handles the
special case where it is desirable to omit the title type from the rendered citation
(|type=none).
]]
local function set_titletype (cite_class, title_type)
if utilities.is_set (title_type) then
if 'none' == cfg.keywords_xlate[title_type] then
title_type = ''; -- if |type=none then type parameter not displayed
end
return title_type; -- if |type= has been set to any other value use that value
end
return cfg.title_types [cite_class] or ''; -- set template's default title type; else empty string for concatenation
end
--[[--------------------------< S A F E _ J O I N >-----------------------------
Joins a sequence of strings together while checking for duplicate separation characters.
]]
local function safe_join( tbl, duplicate_char )
local f = {}; -- create a function table appropriate to type of 'duplicate character'
if 1 == #duplicate_char then -- for single byte ASCII characters use the string library functions
f.gsub = string.gsub
f.match = string.match
f.sub = string.sub
else -- for multi-byte characters use the ustring library functions
f.gsub = mw.ustring.gsub
f.match = mw.ustring.match
f.sub = mw.ustring.sub
end
local str = ''; -- the output string
local comp = ''; -- what does 'comp' mean?
local end_chr = '';
local trim;
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
if str == '' then -- if output string is empty
str = value; -- assign value to it (first time through the loop)
elseif value ~= '' then
if value:sub(1, 1) == '<' then -- special case of values enclosed in spans and other markup.
comp = value:gsub( "%b<>", "" ); -- remove HTML markup (<span>string</span> -> string)
else
comp = value;
end
-- typically duplicate_char is sepc
if f.sub(comp, 1, 1) == duplicate_char then -- is first character same as duplicate_char? why test first character?
-- Because individual string segments often (always?) begin with terminal punct for the
-- preceding segment: 'First element' .. 'sepc next element' .. etc.?
trim = false;
end_chr = f.sub(str, -1, -1); -- get the last character of the output string
-- str = str .. "<HERE(enchr=" .. end_chr .. ")" -- debug stuff?
if end_chr == duplicate_char then -- if same as separator
str = f.sub(str, 1, -2); -- remove it
elseif end_chr == "'" then -- if it might be wiki-markup
if f.sub(str, -3, -1) == duplicate_char .. "''" then -- if last three chars of str are sepc''
str = f.sub(str, 1, -4) .. "''"; -- remove them and add back ''
elseif f.sub(str, -5, -1) == duplicate_char .. "]]''" then -- if last five chars of str are sepc]]''
trim = true; -- why? why do this and next differently from previous?
elseif f.sub(str, -4, -1) == duplicate_char .. "]''" then -- if last four chars of str are sepc]''
trim = true; -- same question
end
elseif end_chr == "]" then -- if it might be wiki-markup
if f.sub(str, -3, -1) == duplicate_char .. "]]" then -- if last three chars of str are sepc]] wikilink
trim = true;
elseif f.sub(str, -3, -1) == duplicate_char .. '"]' then -- if last three chars of str are sepc"] quoted external link
trim = true;
elseif f.sub(str, -2, -1) == duplicate_char .. "]" then -- if last two chars of str are sepc] external link
trim = true;
elseif f.sub(str, -4, -1) == duplicate_char .. "'']" then -- normal case when |url=something & |title=Title.
trim = true;
end
elseif end_chr == " " then -- if last char of output string is a space
if f.sub(str, -2, -1) == duplicate_char .. " " then -- if last two chars of str are <sepc><space>
str = f.sub(str, 1, -3); -- remove them both
end
end
if trim then
if value ~= comp then -- value does not equal comp when value contains HTML markup
local dup2 = duplicate_char;
if f.match(dup2, "%A" ) then dup2 = "%" .. dup2; end -- if duplicate_char not a letter then escape it
value = f.gsub(value, "(%b<>)" .. dup2, "%1", 1 ) -- remove duplicate_char if it follows HTML markup
else
value = f.sub(value, 2, -1 ); -- remove duplicate_char when it is first character
end
end
end
str = str .. value; -- add it to the output string
end
end
return str;
end
--[[--------------------------< I S _ S U F F I X >-----------------------------
returns true if suffix is properly formed Jr, Sr, or ordinal in the range 1–9.
Puncutation not allowed.
]]
local function is_suffix (suffix)
if utilities.in_array (suffix, {'Jr', 'Sr', 'Jnr', 'Snr', '1st', '2nd', '3rd'}) or suffix:match ('^%dth$') then
return true;
end
return false;
end
--[[--------------------< I S _ G O O D _ V A N C _ N A M E >-------------------
For Vancouver style, author/editor names are supposed to be rendered in Latin
(read ASCII) characters. When a name uses characters that contain diacritical
marks, those characters are to be converted to the corresponding Latin
character. When a name is written using a non-Latin alphabet or logogram, that
name is to be transliterated into Latin characters. The module doesn't do this
so editors may/must.
This test allows |first= and |last= names to contain any of the letters defined
in the four Unicode Latin character sets
[http://www.unicode.org/charts/PDF/U0000.pdf C0 Controls and Basic Latin] 0041–005A, 0061–007A
[http://www.unicode.org/charts/PDF/U0080.pdf C1 Controls and Latin-1 Supplement] 00C0–00D6, 00D8–00F6, 00F8–00FF
[http://www.unicode.org/charts/PDF/U0100.pdf Latin Extended-A] 0100–017F
[http://www.unicode.org/charts/PDF/U0180.pdf Latin Extended-B] 0180–01BF, 01C4–024F
|lastn= also allowed to contain hyphens, spaces, and apostrophes.
(http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)
|firstn= also allowed to contain hyphens, spaces, apostrophes, and periods
This original test:
if nil == mw.ustring.find (last, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%']*$")
or nil == mw.ustring.find (first, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%'%.]+[2-6%a]*$") then
was written outside of the code editor and pasted here because the code editor
gets confused between character insertion point and cursor position. The test has
been rewritten to use decimal character escape sequence for the individual bytes
of the Unicode characters so that it is not necessary to use an external editor
to maintain this code.
\195\128-\195\150 – À-Ö (U+00C0–U+00D6 – C0 controls)
\195\152-\195\182 – Ø-ö (U+00D8-U+00F6 – C0 controls)
\195\184-\198\191 – ø-ƿ (U+00F8-U+01BF – C0 controls, Latin extended A & B)
\199\132-\201\143 – DŽ-ɏ (U+01C4-U+024F – Latin extended B)
]]
local function is_good_vanc_name (last, first, suffix, position)
if not suffix then
if first:find ('[,%s]') then -- when there is a space or comma, might be first name/initials + generational suffix
first = first:match ('(.-)[,%s]+'); -- get name/initials
suffix = first:match ('[,%s]+(.+)$'); -- get generational suffix
end
end
if utilities.is_set (suffix) then
if not is_suffix (suffix) then
add_vanc_error (cfg.err_msg_supl.suffix, position);
return false; -- not a name with an appropriate suffix
end
end
if nil == mw.ustring.find (last, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191%-%s%']*$") or
nil == mw.ustring.find (first, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191%-%s%'%.]*$") then
add_vanc_error (cfg.err_msg_supl['non-Latin char'], position);
return false; -- not a string of Latin characters; Vancouver requires Romanization
end;
return true;
end
--[[--------------------------< R E D U C E _ T O _ I N I T I A L S >------------------------------------------
Attempts to convert names to initials in support of |name-list-style=vanc.
Names in |firstn= may be separated by spaces or hyphens, or for initials, a period.
See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35062/.
Vancouver style requires family rank designations (Jr, II, III, etc.) to be rendered
as Jr, 2nd, 3rd, etc. See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35085/.
This code only accepts and understands generational suffix in the Vancouver format
because Roman numerals look like, and can be mistaken for, initials.
This function uses ustring functions because firstname initials may be any of the
Unicode Latin characters accepted by is_good_vanc_name ().
]]
local function reduce_to_initials (first, position)
if first:find (',', 1, true) then
return first; -- commas not allowed; abandon
end
local name, suffix = mw.ustring.match (first, "^(%u+) ([%dJS][%drndth]+)$");
if not name then -- if not initials and a suffix
name = mw.ustring.match (first, "^(%u+)$"); -- is it just initials?
end
if name then -- if first is initials with or without suffix
if 3 > mw.ustring.len (name) then -- if one or two initials
if suffix then -- if there is a suffix
if is_suffix (suffix) then -- is it legitimate?
return first; -- one or two initials and a valid suffix so nothing to do
else
add_vanc_error (cfg.err_msg_supl.suffix, position); -- one or two initials with invalid suffix so error message
return first; -- and return first unmolested
end
else
return first; -- one or two initials without suffix; nothing to do
end
end
end -- if here then name has 3 or more uppercase letters so treat them as a word
local initials_t, names_t = {}, {}; -- tables to hold name parts and initials
local i = 1; -- counter for number of initials
names_t = mw.text.split (first, '[%s%-]+'); -- split into a sequence of names and possible suffix
while names_t[i] do -- loop through the sequence
if 1 < i and names_t[i]:match ('[%dJS][%drndth]+%.?$') then -- if not the first name, and looks like a suffix (may have trailing dot)
names_t[i] = names_t[i]:gsub ('%.', ''); -- remove terminal dot if present
if is_suffix (names_t[i]) then -- if a legitimate suffix
table.insert (initials_t, ' ' .. names_t[i]); -- add a separator space, insert at end of initials sequence
break; -- and done because suffix must fall at the end of a name
end -- no error message if not a suffix; possibly because of Romanization
end
if 3 > i then
table.insert (initials_t, mw.ustring.sub (names_t[i], 1, 1)); -- insert the initial at end of initials sequence
end
i = i + 1; -- bump the counter
end
return table.concat (initials_t); -- Vancouver format does not include spaces.
end
--[[--------------------------< I N T E R W I K I _ P R E F I X E N _ G E T >----------------------------------
extract interwiki prefixen from <value>. Returns two one or two values:
false – no prefixen
nil – prefix exists but not recognized
project prefix, language prefix – when value has either of:
:<project>:<language>:<article>
:<language>:<project>:<article>
project prefix, nil – when <value> has only a known single-letter prefix
nil, language prefix – when <value> has only a known language prefix
accepts single-letter project prefixen: 'd' (wikidata), 's' (wikisource), and 'w' (wikipedia) prefixes; at this
writing, the other single-letter prefixen (b (wikibook), c (commons), m (meta), n (wikinews), q (wikiquote), and
v (wikiversity)) are not supported.
]]
local function interwiki_prefixen_get (value, is_link)
if not value:find (':%l+:') then -- if no prefix
return false; -- abandon; boolean here to distinguish from nil fail returns later
end
local prefix_patterns_linked_t = { -- sequence of valid interwiki and inter project prefixen
'^%[%[:([dsw]):(%l%l+):', -- wikilinked; project and language prefixes
'^%[%[:(%l%l+):([dsw]):', -- wikilinked; language and project prefixes
'^%[%[:([dsw]):', -- wikilinked; project prefix
'^%[%[:(%l%l+):', -- wikilinked; language prefix
}
local prefix_patterns_unlinked_t = { -- sequence of valid interwiki and inter project prefixen
'^:([dsw]):(%l%l+):', -- project and language prefixes
'^:(%l%l+):([dsw]):', -- language and project prefixes
'^:([dsw]):', -- project prefix
'^:(%l%l+):', -- language prefix
}
local cap1, cap2;
for _, pattern in ipairs ((is_link and prefix_patterns_linked_t) or prefix_patterns_unlinked_t) do
cap1, cap2 = value:match (pattern);
if cap1 then
break; -- found a match so stop looking
end
end
if cap1 and cap2 then -- when both then :project:language: or :language:project: (both forms allowed)
if 1 == #cap1 then -- length == 1 then :project:language:
if cfg.inter_wiki_map[cap2] then -- is language prefix in the interwiki map?
return cap1, cap2; -- return interwiki project and interwiki language
end
else -- here when :language:project:
if cfg.inter_wiki_map[cap1] then -- is language prefix in the interwiki map?
return cap2, cap1; -- return interwiki project and interwiki language
end
end
return nil; -- unknown interwiki language
elseif not (cap1 or cap2) then -- both are nil?
return nil; -- we got something that looks like a project prefix but isn't; return fail
elseif 1 == #cap1 then -- here when one capture
return cap1, nil; -- length is 1 so return project, nil language
else -- here when one capture and its length it more than 1
if cfg.inter_wiki_map[cap1] then -- is language prefix in the interwiki map?
return nil, cap1; -- return nil project, language
end
end
end
--[[--------------------------< L I S T _ P E O P L E >--------------------------
Formats a list of people (authors, contributors, editors, interviewers, translators)
names in the list will be linked when
|<name>-link= has a value
|<name>-mask- does NOT have a value; masked names are presumed to have been
rendered previously so should have been linked there
when |<name>-mask=0, the associated name is not rendered
]]
local function list_people (control, people, etal)
local sep;
local namesep;
local format = control.format;
local maximum = control.maximum;
local name_list = {};
if 'vanc' == format then -- Vancouver-like name styling?
sep = cfg.presentation['sep_nl_vanc']; -- name-list separator between names is a comma
namesep = cfg.presentation['sep_name_vanc']; -- last/first separator is a space
else
sep = cfg.presentation['sep_nl']; -- name-list separator between names is a semicolon
namesep = cfg.presentation['sep_name']; -- last/first separator is <comma><space>
end
if sep:sub (-1, -1) ~= " " then sep = sep .. " " end
if utilities.is_set (maximum) and maximum < 1 then return "", 0; end -- returned 0 is for EditorCount; not used for other names
for i, person in ipairs (people) do
if utilities.is_set (person.last) then
local mask = person.mask;
local one;
local sep_one = sep;
if utilities.is_set (maximum) and i > maximum then
etal = true;
break;
end
if mask then
local n = tonumber (mask); -- convert to a number if it can be converted; nil else
if n then
one = 0 ~= n and string.rep("—", n) or nil; -- make a string of (n > 0) mdashes, nil else, to replace name
person.link = nil; -- don't create link to name if name is replaces with mdash string or has been set nil
else
one = mask; -- replace name with mask text (must include name-list separator)
sep_one = " "; -- modify name-list separator
end
else
one = person.last; -- get surname
local first = person.first -- get given name
if utilities.is_set (first) then
if ("vanc" == format) then -- if Vancouver format
one = one:gsub ('%.', ''); -- remove periods from surnames (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)
if not person.corporate and is_good_vanc_name (one, first, nil, i) then -- and name is all Latin characters; corporate authors not tested
first = reduce_to_initials (first, i); -- attempt to convert first name(s) to initials
end
end
one = one .. namesep .. first;
end
end
if utilities.is_set (person.link) then
one = utilities.make_wikilink (person.link, one); -- link author/editor
end
if one then -- if <one> has a value (name, mdash replacement, or mask text replacement)
local proj, tag = interwiki_prefixen_get (one, true); -- get the interwiki prefixen if present
if 'w' == proj and ('Wikipedia' == mw.site.namespaces.Project['name']) then
proj = nil; -- for stuff like :w:de:<article>, :w is unnecessary TODO: maint cat?
end
if proj then
local proj_name = ({['d'] = cfg.messages.wikidata, ['s'] = cfg.messages.wikisource, ['w'] = cfg.messages.wikipedia})[proj]; -- :w (wikipedia) for linking from a non-wikipedia project
if proj_name then
one = one .. utilities.wrap_style ('interproj', proj_name); -- add resized leading space, brackets, static text, language name
utilities.add_prop_cat ('interproj-linked-name', proj); -- categorize it; <proj> is sort key
tag = nil; -- unset; don't do both project and language
end
end
if tag == cfg.this_wiki_code then
tag = nil; -- stuff like :en:<article> at en.wiki is pointless TODO: maint cat?
end
if tag then
local lang = cfg.lang_tag_remap[tag] or cfg.mw_languages_by_tag_t[tag];
if lang then -- error messaging done in extract_names() where we know parameter names
one = one .. utilities.wrap_style ('interwiki', lang); -- add resized leading space, brackets, static text, language name
utilities.add_prop_cat ('interwiki-linked-name', tag); -- categorize it; <tag> is sort key
end
end
table.insert (name_list, one); -- add it to the list of names
table.insert (name_list, sep_one); -- add the proper name-list separator
end
end
end
local count = #name_list / 2; -- (number of names + number of separators) divided by 2
if 0 < count then
if 1 < count and not etal then
if 'amp' == format then
name_list[#name_list-2] = " & "; -- replace last separator with ampersand text
elseif 'and' == format then
if 2 == count then
name_list[#name_list-2] = cfg.presentation.sep_nl_and; -- replace last separator with 'and' text
else
name_list[#name_list-2] = cfg.presentation.sep_nl_end; -- replace last separator with '(sep) and' text
end
end
end
name_list[#name_list] = nil; -- erase the last separator
end
local result = table.concat (name_list); -- construct list
if etal and utilities.is_set (result) then -- etal may be set by |display-authors=etal but we might not have a last-first list
result = result .. sep .. cfg.messages['et al']; -- we've got a last-first list and etal so add et al.
end
return result, count; -- return name-list string and count of number of names (count used for editor names only)
end
--[[--------------------< M A K E _ C I T E R E F _ I D >-----------------------
Generates a CITEREF anchor ID if we have at least one name or a date. Otherwise
returns an empty string.
namelist is one of the contributor-, author-, or editor-name lists chosen in that
order. year is Year or anchor_year.
]]
local function make_citeref_id (namelist, year)
local names={}; -- a table for the one to four names and year
for i,v in ipairs (namelist) do -- loop through the list and take up to the first four last names
names[i] = v.last
if i == 4 then break end -- if four then done
end
table.insert (names, year); -- add the year at the end
local id = table.concat(names); -- concatenate names and year for CITEREF id
if utilities.is_set (id) then -- if concatenation is not an empty string
return "CITEREF" .. id; -- add the CITEREF portion
else
return ''; -- return an empty string; no reason to include CITEREF id in this citation
end
end
--[[--------------------------< C I T E _ C L A S S _A T T R I B U T E _M A K E >------------------------------
construct <cite> tag class attribute for this citation.
<cite_class> – config.CitationClass from calling template
<mode> – value from |mode= parameter
]]
local function cite_class_attribute_make (cite_class, mode)
local class_t = {};
table.insert (class_t, 'citation'); -- required for blue highlight
if 'citation' ~= cite_class then
table.insert (class_t, cite_class); -- identify this template for user css
table.insert (class_t, utilities.is_set (mode) and mode or 'cs1'); -- identify the citation style for user css or javascript
else
table.insert (class_t, utilities.is_set (mode) and mode or 'cs2'); -- identify the citation style for user css or javascript
end
for _, prop_key in ipairs (z.prop_keys_t) do
table.insert (class_t, prop_key); -- identify various properties for user css or javascript
end
return table.concat (class_t, ' '); -- make a big string and done
end
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
Evaluates the content of name parameters (author, editor, etc.) for variations on
the theme of et al. If found, the et al. is removed, a flag is set to true and
the function returns the modified name and the flag.
This function never sets the flag to false but returns its previous state because
it may have been set by previous passes through this function or by the associated
|display-<names>=etal parameter
]]
local function name_has_etal (name, etal, nocat, param)
if utilities.is_set (name) then -- name can be nil in which case just return
local patterns = cfg.et_al_patterns; -- get patterns from configuration
for _, pattern in ipairs (patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
name = name:gsub (pattern, ''); -- remove the offending text
etal = true; -- set flag (may have been set previously here or by |display-<names>=etal)
if not nocat then -- no categorization for |vauthors=
utilities.set_message ('err_etal', {param}); -- and set an error if not added
end
end
end
end
return name, etal;
end
--[[---------------------< N A M E _ I S _ N U M E R I C >----------------------
Add an error message and category when <name> parameter value does not contain letters.
Add a maintenance category when <name> parameter value has numeric characters mixed with characters that are
not numeric characters; could be letters and/or punctuation characters.
This function will only emit one error and one maint message for the current template. Does not emit both error
and maint messages/categories for the same parameter value.
returns nothing
]]
local function name_is_numeric (name, name_alias, list_name)
local patterns = {
'^%D+%d', -- <name> must have digits preceded by other characters
'^%D*%d+%D+', -- <name> must have digits followed by other characters
}
if not added_numeric_name_errs and mw.ustring.match (name, '^[%A]+$') then -- if we have not already set an error message and <name> does not have any alpha characters
utilities.set_message ('err_numeric_names', name_alias); -- add an error message
added_numeric_name_errs = true; -- set the flag so we emit only one error message
return; -- when here no point in further testing; abandon
end
if not added_numeric_name_maint then -- if we have already set a maint message
for _, pattern in ipairs (patterns) do -- spin through list of patterns
if mw.ustring.match (name, pattern) then -- digits preceded or followed by anything but digits; %D+ includes punctuation
utilities.set_message ('maint_numeric_names', cfg.special_case_translation [list_name]); -- add a maint cat for this template
added_numeric_name_maint = true; -- set the flag so we emit only one maint message
return; -- when here no point in further testing; abandon
end
end
end
end
--[[-----------------< N A M E _ H A S _ M U L T _ N A M E S >------------------
Evaluates the content of last/surname (authors etc.) parameters for multiple names.
Multiple names are indicated if there is more than one comma or any "unescaped"
semicolons. Escaped semicolons are ones used as part of selected HTML entities.
If the condition is met, the function adds the multiple name maintenance category.
Same test for first except that commas should not appear in given names (MOS:JR says
that the generational suffix does not take a separator character). Titles, degrees,
postnominals, affiliations, all normally comma separated don't belong in a citation.
<name> – name parameter value
<list_name> – AuthorList, EditorList, etc
<limit> – number of allowed commas; 1 (default) for surnames; 0 for given names
returns nothing
]]
local function name_has_mult_names (name, list_name, limit)
local _, commas, semicolons, nbsps;
limit = limit and limit or 1;
if utilities.is_set (name) then
_, commas = name:gsub (',', ''); -- count the number of commas
_, semicolons = name:gsub (';', ''); -- count the number of semicolons
-- nbsps probably should be its own separate count rather than merged in
-- some way with semicolons because Lua patterns do not support the
-- grouping operator that regex does, which means there is no way to add
-- more entities to escape except by adding more counts with the new
-- entities
_, nbsps = name:gsub (' ',''); -- count nbsps
-- There is exactly 1 semicolon per entity, so subtract nbsps
-- from semicolons to 'escape' them. If additional entities are added,
-- they also can be subtracted.
if limit < commas or 0 < (semicolons - nbsps) then
utilities.set_message ('maint_mult_names', cfg.special_case_translation [list_name]); -- add a maint message
end
end
end
--[=[-------------------------< I S _ G E N E R I C >----------------------------------------------------------
Compares values assigned to various parameters according to the string provided as <item> in the function call.
<item> can have on of two values:
'generic_names' – for name-holding parameters: |last=, |first=, |editor-last=, etc
'generic_titles' – for |title=
There are two types of generic tests. The 'accept' tests look for a pattern that should not be rejected by the
'reject' test. For example,
|author=[[John Smith (author)|Smith, John]]
would be rejected by the 'author' reject test. But piped wikilinks with 'author' disambiguation should not be
rejected so the 'accept' test prevents that from happening. Accept tests are always performed before reject
tests.
Each of the 'accept' and 'reject' sequence tables hold tables for en.wiki (['en']) and local.wiki (['local'])
that each can hold a test sequence table The sequence table holds, at index [1], a test pattern, and, at index
[2], a boolean control value. The control value tells string.find() or mw.ustring.find() to do plain-text search (true)
or a pattern search (false). The intent of all this complexity is to make these searches as fast as possible so
that we don't run out of processing time on very large articles.
Returns
true when a reject test finds the pattern or string
false when an accept test finds the pattern or string
nil else
]=]
local function is_generic (item, value, wiki)
local test_val;
local str_lower = { -- use string.lower() for en.wiki (['en']) and use mw.ustring.lower() or local.wiki (['local'])
['en'] = string.lower,
['local'] = mw.ustring.lower,
}
local str_find = { -- use string.find() for en.wiki (['en']) and use mw.ustring.find() or local.wiki (['local'])
['en'] = string.find,
['local'] = mw.ustring.find,
}
local function test (val, test_t, wiki) -- local function to do the testing; <wiki> selects lower() and find() functions
val = test_t[2] and str_lower[wiki](value) or val; -- when <test_t[2]> set to 'true', plaintext search using lowercase value
return str_find[wiki] (val, test_t[1], 1, test_t[2]); -- return nil when not found or matched
end
local test_types_t = {'accept', 'reject'}; -- test accept patterns first, then reject patterns
local wikis_t = {'en', 'local'}; -- do tests for each of these keys; en.wiki first, local.wiki second
for _, test_type in ipairs (test_types_t) do -- for each test type
for _, generic_value in pairs (cfg.special_case_translation[item][test_type]) do -- spin through the list of generic value fragments to accept or reject
for _, wiki in ipairs (wikis_t) do
if generic_value[wiki] then
if test (value, generic_value[wiki], wiki) then -- go do the test
return ('reject' == test_type); -- param value rejected, return true; false else
end
end
end
end
end
end
--[[--------------------------< N A M E _ I S _ G E N E R I C >------------------------------------------------
calls is_generic() to determine if <name> is a 'generic name' listed in cfg.generic_names; <name_alias> is the
parameter name used in error messaging
]]
local function name_is_generic (name, name_alias)
if not added_generic_name_errs and is_generic ('generic_names', name) then
utilities.set_message ('err_generic_name', name_alias); -- set an error message
added_generic_name_errs = true;
end
end
--[[--------------------------< N A M E _ C H E C K S >--------------------------------------------------------
This function calls various name checking functions used to validate the content of the various name-holding parameters.
]]
local function name_checks (last, first, list_name, last_alias, first_alias)
local accept_name;
if utilities.is_set (last) then
last, accept_name = utilities.has_accept_as_written (last); -- remove accept-this-as-written markup when it wraps all of <last>
if not accept_name then -- <last> not wrapped in accept-as-written markup
name_has_mult_names (last, list_name); -- check for multiple names in the parameter
name_is_numeric (last, last_alias, list_name); -- check for names that have no letters or are a mix of digits and other characters
name_is_generic (last, last_alias); -- check for names found in the generic names list
end
end
if utilities.is_set (first) then
first, accept_name = utilities.has_accept_as_written (first); -- remove accept-this-as-written markup when it wraps all of <first>
if not accept_name then -- <first> not wrapped in accept-as-written markup
name_has_mult_names (first, list_name, 0); -- check for multiple names in the parameter; 0 is number of allowed commas in a given name
name_is_numeric (first, first_alias, list_name); -- check for names that have no letters or are a mix of digits and other characters
name_is_generic (first, first_alias); -- check for names found in the generic names list
end
local wl_type, D = utilities.is_wikilink (first);
if 0 ~= wl_type then
first = D;
utilities.set_message ('err_bad_paramlink', first_alias);
end
end
return last, first; -- done
end
--[[----------------------< E X T R A C T _ N A M E S >-------------------------
Gets name list from the input arguments
Searches through args in sequential order to find |lastn= and |firstn= parameters
(or their aliases), and their matching link and mask parameters. Stops searching
when both |lastn= and |firstn= are not found in args after two sequential attempts:
found |last1=, |last2=, and |last3= but doesn't find |last4= and |last5= then the
search is done.
This function emits an error message when there is a |firstn= without a matching
|lastn=. When there are 'holes' in the list of last names, |last1= and |last3=
are present but |last2= is missing, an error message is emitted. |lastn= is not
required to have a matching |firstn=.
When an author or editor parameter contains some form of 'et al.', the 'et al.'
is stripped from the parameter and a flag (etal) returned that will cause list_people()
to add the static 'et al.' text from Module:Citation/CS1/Configuration. This keeps
'et al.' out of the template's metadata. When this occurs, an error is emitted.
]]
local function extract_names(args, list_name)
local names = {}; -- table of names
local last; -- individual name components
local first;
local link;
local mask;
local i = 1; -- loop counter/indexer
local n = 1; -- output table indexer
local count = 0; -- used to count the number of times we haven't found a |last= (or alias for authors, |editor-last or alias for editors)
local etal = false; -- return value set to true when we find some form of et al. in an author parameter
local last_alias, first_alias, link_alias; -- selected parameter aliases used in error messaging
while true do
last, last_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'err_redundant_parameters', i ); -- search through args for name components beginning at 1
first, first_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'err_redundant_parameters', i );
link, link_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-Link'], 'err_redundant_parameters', i );
mask = utilities.select_one ( args, cfg.aliases[list_name .. '-Mask'], 'err_redundant_parameters', i );
if last then -- error check |lastn= alias for unknown interwiki link prefix; done here because this is where we have the parameter name
local project, language = interwiki_prefixen_get (last, true); -- true because we expect interwiki links in |lastn= to be wikilinked
if nil == project and nil == language then -- when both are nil
utilities.set_message ('err_bad_paramlink', last_alias); -- not known, emit an error message -- TODO: err_bad_interwiki?
last = utilities.remove_wiki_link (last); -- remove wikilink markup; show display value only
end
end
if link then -- error check |linkn= alias for unknown interwiki link prefix
local project, language = interwiki_prefixen_get (link, false); -- false because wiki links in |author-linkn= is an error
if nil == project and nil == language then -- when both are nil
utilities.set_message ('err_bad_paramlink', link_alias); -- not known, emit an error message -- TODO: err_bad_interwiki?
link = nil; -- unset so we don't link
link_alias = nil;
end
end
last, etal = name_has_etal (last, etal, false, last_alias); -- find and remove variations on et al.
first, etal = name_has_etal (first, etal, false, first_alias); -- find and remove variations on et al.
last, first = name_checks (last, first, list_name, last_alias, first_alias); -- multiple names, extraneous annotation, etc. checks
if first and not last then -- if there is a firstn without a matching lastn
local alias = first_alias:find ('given', 1, true) and 'given' or 'first'; -- get first or given form of the alias
utilities.set_message ('err_first_missing_last', {
first_alias, -- param name of alias missing its mate
first_alias:gsub (alias, {['first'] = 'last', ['given'] = 'surname'}), -- make param name appropriate to the alias form
}); -- add this error message
elseif not first and not last then -- if both firstn and lastn aren't found, are we done?
count = count + 1; -- number of times we haven't found last and first
if 2 <= count then -- two missing names and we give up
break; -- normal exit or there is a two-name hole in the list; can't tell which
end
else -- we have last with or without a first
local result;
link = link_title_ok (link, link_alias, last, last_alias); -- check for improper wiki-markup
if first then
link = link_title_ok (link, link_alias, first, first_alias); -- check for improper wiki-markup
end
names[n] = {last = last, first = first, link = link, mask = mask, corporate = false}; -- add this name to our names list (corporate for |vauthors= only)
n = n + 1; -- point to next location in the names table
if 1 == count then -- if the previous name was missing
utilities.set_message ('err_missing_name', {list_name:match ("(%w+)List"):lower(), i - 1}); -- add this error message
end
count = 0; -- reset the counter, we're looking for two consecutive missing names
end
i = i + 1; -- point to next args location
end
return names, etal; -- all done, return our list of names and the etal flag
end
--[[--------------------------< N A M E _ T A G _ G E T >------------------------------------------------------
attempt to decode |language=<lang_param> and return language name and matching tag; nil else.
This function looks for:
<lang_param> as a tag in cfg.lang_tag_remap{}
<lang_param> as a name in cfg.lang_name_remap{}
<lang_param> as a name in cfg.mw_languages_by_name_t
<lang_param> as a tag in cfg.mw_languages_by_tag_t
when those fail, presume that <lang_param> is an IETF-like tag that MediaWiki does not recognize. Strip all
script, region, variant, whatever subtags from <lang_param> to leave just a two or three character language tag
and look for the new <lang_param> in cfg.mw_languages_by_tag_t{}
on success, returns name (in properly capitalized form) and matching tag (in lowercase); on failure returns nil
]]
local function name_tag_get (lang_param)
local lang_param_lc = mw.ustring.lower (lang_param); -- use lowercase as an index into the various tables
local name;
local tag;
if name then -- when <name>, <lang_param> is a tag for a remapped language name
local name_remap = cfg.lang_name_remap[name:lower()]; -- nil for names added to lang_tag_remap only (gv.wiki Manx names)
if name_remap and name_remap[2] ~= lang_param_lc then
utilities.set_message ('maint_unknown_lang'); -- add maint category if not already added
return name, name_remap[2]; -- special case to xlate sr-ec and sr-el to sr-cyrl and sr-latn
end
return name, lang_param_lc; -- so return <name> from remap and <lang_param_lc>
end
tag = lang_param_lc:match ('^(%a%a%a?)%-.*'); -- still assuming that <lang_param_lc> is a tag; strip script, region, variant subtags
name = cfg.lang_tag_remap[tag]; -- attempt to get remapped language name with language subtag only
if name then -- when <name>, <tag> is a tag for a remapped language name
return name, tag; -- so return <name> from remap and <tag>
end
if cfg.lang_name_remap[lang_param_lc] then -- not a remapped tag, assume <lang_param_lc> is a name; attempt to get remapped language tag
return cfg.lang_name_remap[lang_param_lc][1], cfg.lang_name_remap[lang_param_lc][2]; -- for this <lang_param_lc>, return a (possibly) new name and appropriate tag
end
name = cfg.mw_languages_by_tag_t[lang_param_lc]; -- assume that <lang_param_lc> is a tag; attempt to get its matching language name
if name then
return name, lang_param_lc; -- <lang_param_lc> is a tag so return it and <name>
end
tag = cfg.mw_languages_by_name_t[lang_param_lc]; -- assume that <lang_param_lc> is a language name; attempt to get its matching tag
if tag then
return cfg.mw_languages_by_tag_t[tag], tag; -- <lang_param_lc> is a name so return the name from the table and <tag>
end
tag = lang_param_lc:match ('^(%a%a%a?)%-.*'); -- is <lang_param_lc> an IETF-like tag that MediaWiki doesn't recognize? <tag> gets the language subtag; nil else
if tag then
name = cfg.mw_languages_by_tag_t[tag]; -- attempt to get a language name using the shortened <tag>
if name then
return name, tag; -- <lang_param_lc> is an unrecognized IETF-like tag so return <name> and language subtag
end
end
end
--[[-------------------< L A N G U A G E _ P A R A M E T E R >------------------
Gets language name from a provided two- or three-character ISO 639 code. If a code
is recognized by MediaWiki, use the returned name; if not, then use the value that
was provided with the language parameter.
When |language= contains a recognized language (either code or name), the page is
assigned to the category for that code: Category:Norwegian-language sources (no).
For valid three-character code languages, the page is assigned to the single category
for '639-2' codes: Category:CS1 ISO 639-2 language sources.
Languages that are the same as the local wiki are not categorized. MediaWiki does
not recognize three-character equivalents of two-character codes: code 'ar' is
recognized but code 'ara' is not.
This function supports multiple languages in the form |language=nb, French, th
where the language names or codes are separated from each other by commas with
optional space characters.
]]
local function language_parameter (lang)
local tag; -- some form of IETF-like language tag; language subtag with optional region, sript, vatiant, etc subtags
local lang_subtag; -- ve populates |language= with mostly unecessary region subtags the MediaWiki does not recognize; this is the base language subtag
local name; -- the language name
local language_list = {}; -- table of language names to be rendered
local names_t = {}; -- table made from the value assigned to |language=
local this_wiki_name = mw.language.fetchLanguageName (cfg.this_wiki_code, cfg.this_wiki_code); -- get this wiki's language name
names_t = mw.text.split (lang, '%s*,%s*'); -- names should be a comma separated list
for _, lang in ipairs (names_t) do -- reuse lang here because we don't yet know if lang is a language name or a language tag
name, tag = name_tag_get (lang); -- attempt to get name/tag pair for <lang>; <name> has proper capitalization; <tag> is lowercase
if utilities.is_set (tag) then
lang_subtag = tag:gsub ('^(%a%a%a?)%-.*', '%1'); -- for categorization, strip any IETF-like tags from language tag
if cfg.this_wiki_code ~= lang_subtag then -- when the language is not the same as this wiki's language
if 2 == lang_subtag:len() then -- and is a two-character tag
utilities.add_prop_cat ('foreign-lang-source', {name, tag}, lang_subtag); -- categorize it; tag appended to allow for multiple language categorization
else -- or is a recognized language (but has a three-character tag)
utilities.add_prop_cat ('foreign-lang-source-2', {lang_subtag}, lang_subtag); -- categorize it differently TODO: support multiple three-character tag categories per cs1|2 template?
end
elseif cfg.local_lang_cat_enable then -- when the language and this wiki's language are the same and categorization is enabled
utilities.add_prop_cat ('local-lang-source', {name, lang_subtag}); -- categorize it
end
else
name = lang; -- return whatever <lang> has so that we show something
utilities.set_message ('maint_unknown_lang'); -- add maint category if not already added
end
table.insert (language_list, name);
name = ''; -- so we can reuse it
end
name = utilities.make_sep_list (#language_list, language_list);
if (1 == #language_list) and (lang_subtag == cfg.this_wiki_code) then -- when only one language, find lang name in this wiki lang name; for |language=en-us, 'English' in 'American English'
return ''; -- if one language and that language is this wiki's return an empty string (no annotation)
end
return (" " .. wrap_msg ('language', name)); -- otherwise wrap with '(in ...)'
--[[ TODO: should only return blank or name rather than full list
so we can clean up the bunched parenthetical elements Language, Type, Format
]]
end
--[[-----------------------< S E T _ C S _ S T Y L E >--------------------------
Gets the default CS style configuration for the given mode.
Returns default separator and either postscript as passed in or the default.
In CS1, the default postscript and separator are '.'.
In CS2, the default postscript is the empty string and the default separator is ','.
]]
local function set_cs_style (postscript, mode)
if utilities.is_set(postscript) then
-- emit a maintenance message if user postscript is the default cs1 postscript
-- we catch the opposite case for cs2 in set_style
if mode == 'cs1' and postscript == cfg.presentation['ps_' .. mode] then
utilities.set_message ('maint_postscript');
end
else
postscript = cfg.presentation['ps_' .. mode];
end
return cfg.presentation['sep_' .. mode], postscript;
end
--[[--------------------------< S E T _ S T Y L E >-----------------------------
Sets the separator and postscript styles. Checks the |mode= first and the
#invoke CitationClass second. Removes the postscript if postscript == none.
]]
local function set_style (mode, postscript, cite_class)
local sep;
if 'cs2' == mode then
sep, postscript = set_cs_style (postscript, 'cs2');
elseif 'cs1' == mode then
sep, postscript = set_cs_style (postscript, 'cs1');
elseif 'citation' == cite_class then
sep, postscript = set_cs_style (postscript, 'cs2');
else
sep, postscript = set_cs_style (postscript, 'cs1');
end
if cfg.keywords_xlate[postscript:lower()] == 'none' then
-- emit a maintenance message if user postscript is the default cs2 postscript
-- we catch the opposite case for cs1 in set_cs_style
if 'cs2' == mode or ('cs1' ~= mode and 'citation' == cite_class) then -- {{citation |title=Title |mode=cs1 |postscript=none}} should not emit maint message
utilities.set_message ('maint_postscript');
end
postscript = '';
end
return sep, postscript
end
--[=[-------------------------< I S _ P D F >-----------------------------------
Determines if a URL has the file extension that is one of the PDF file extensions
used by [[MediaWiki:Common.css]] when applying the PDF icon to external links.
returns true if file extension is one of the recognized extensions, else false
]=]
local function is_pdf (url)
return url:match ('%.pdf$') or url:match ('%.PDF$') or
url:match ('%.pdf[%?#]') or url:match ('%.PDF[%?#]') or
url:match ('%.PDF#') or url:match ('%.pdf#');
end
--[[--------------------------< S T Y L E _ F O R M A T >-----------------------
Applies CSS style to |format=, |chapter-format=, etc. Also emits an error message
if the format parameter does not have a matching URL parameter. If the format parameter
is not set and the URL contains a file extension that is recognized as a PDF document
by MediaWiki's commons.css, this code will set the format parameter to (PDF) with
the appropriate styling.
]]
local function style_format (format, url, fmt_param, url_param)
if utilities.is_set (format) then
format = utilities.wrap_style ('format', format); -- add leading space, parentheses, resize
if not utilities.is_set (url) then
utilities.set_message ('err_format_missing_url', {fmt_param, url_param}); -- add an error message
end
elseif is_pdf (url) then -- format is not set so if URL is a PDF file then
format = utilities.wrap_style ('format', 'PDF'); -- set format to PDF
else
format = ''; -- empty string for concatenation
end
return format;
end
--[[---------------------< G E T _ D I S P L A Y _ N A M E S >------------------
Returns a number that defines the number of names displayed for author and editor
name lists and a Boolean flag to indicate when et al. should be appended to the name list.
When the value assigned to |display-xxxxors= is a number greater than or equal to zero,
return the number and the previous state of the 'etal' flag (false by default
but may have been set to true if the name list contains some variant of the text 'et al.').
When the value assigned to |display-xxxxors= is the keyword 'etal', return a number
that is one greater than the number of authors in the list and set the 'etal' flag true.
This will cause the list_people() to display all of the names in the name list followed by 'et al.'
In all other cases, returns nil and the previous state of the 'etal' flag.
inputs:
max: A['DisplayAuthors'] or A['DisplayEditors'], etc; a number or some flavor of etal
count: #a or #e
list_name: 'authors' or 'editors'
etal: author_etal or editor_etal
This function sets an error message when |display-xxxxors= value greater than or equal to number of names but
not when <max> comes from {{cs1 config}} global settings. When using global settings, <param> is set to the
keyword 'cs1 config' which is used to supress the normal error. Error is suppressed because it is to be expected
that some citations in an article will have the same or fewer names that the limit specified in {{cs1 config}}.
]]
local function get_display_names (max, count, list_name, etal, param)
if utilities.is_set (max) then
if 'etal' == max:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings
max = count + 1; -- number of authors + 1 so display all author name plus et al.
etal = true; -- overrides value set by extract_names()
elseif max:match ('^%d+$') then -- if is a string of numbers
max = tonumber (max); -- make it a number
if (max >= count) and ('cs1 config' ~= param) then -- error when local |display-xxxxors= value greater than or equal to number of names; not an error when using global setting
utilities.set_message ('err_disp_name', {param, max}); -- add error message
max = nil;
end
else -- not a valid keyword or number
utilities.set_message ('err_disp_name', {param, max}); -- add error message
max = nil; -- unset; as if |display-xxxxors= had not been set
end
end
return max, etal;
end
--[[----------< E X T R A _ T E X T _ I N _ P A G E _ C H E C K >---------------
Adds error if |page=, |pages=, |quote-page=, |quote-pages= has what appears to be
some form of p. or pp. abbreviation in the first characters of the parameter content.
check page for extraneous p, p., pp, pp., pg, pg. at start of parameter value:
good pattern: '^P[^%.P%l]' matches when page begins PX or P# but not Px
where x and X are letters and # is a digit
bad pattern: '^[Pp][PpGg]' matches when page begins pp, pP, Pp, PP, pg, pG, Pg, PG
]]
local function extra_text_in_page_check (val, name)
if not val:match (cfg.vol_iss_pg_patterns.good_ppattern) then
for _, pattern in ipairs (cfg.vol_iss_pg_patterns.bad_ppatterns) do -- spin through the selected sequence table of patterns
if val:match (pattern) then -- when a match, error so
utilities.set_message ('err_extra_text_pages', name); -- add error message
return; -- and done
end
end
end
end
--[[--------------------------< E X T R A _ T E X T _ I N _ V O L _ I S S _ C H E C K >------------------------
Adds error if |volume= or |issue= has what appears to be some form of redundant 'type' indicator. Applies to
both; this function looks for issue text in both |issue= and |volume= and looks for volume-like text in |voluem=
and |issue=.
For |volume=:
'V.', or 'Vol.' (with or without the dot) abbreviations or 'Volume' in the first characters of the parameter
content (all case insensitive). 'V' and 'v' (without the dot) are presumed to be roman numerals so
are allowed.
For |issue=:
'No.', 'I.', 'Iss.' (with or without the dot) abbreviations, or 'Issue' in the first characters of the
parameter content (all case insensitive); numero styling: 'n°' with degree sign U+00B0, and № precomposed
numero sign U+2116.
Single character values ('v', 'i', 'n') allowed when not followed by separator character ('.', ':', '=', or
whitespace character) – param values are trimmed of whitespace by MediaWiki before delivered to the module.
<val> is |volume= or |issue= parameter value
<name> is |volume= or |issue= parameter name for error message
<selector> is 'v' for |volume=, 'i' for |issue=
sets error message on failure; returns nothing
]]
local function extra_text_in_vol_iss_check (val, name, selector)
if not utilities.is_set (val) then
return;
end
local handler = 'v' == selector and 'err_extra_text_volume' or 'err_extra_text_issue';
local accept_val;
val, accept_val = utilities.has_accept_as_written (val);
--if accept_val then -- if uncomment this, |volume=((vol. 1)) suppresses error
-- return;
--end
--val = mw.text.unstripNoWiki (val); -- if uncomment this, |volume=<nowiki>vol. 1</nowiki> shows error
val = val:lower(); -- force parameter value to lower case
for _, pattern in ipairs (cfg.vol_iss_pg_patterns.vi_patterns_t) do -- spin through the sequence table of patterns
if val:match (pattern) then -- when a match, error so
utilities.set_message (handler, name); -- add error message
return; -- and done
end
end
end
--[=[-------------------------< G E T _ V _ N A M E _ T A B L E >----------------------------------------------
split apart a |vauthors= or |veditors= parameter. This function allows for corporate names, wrapped in doubled
parentheses to also have commas; in the old version of the code, the doubled parentheses were included in the
rendered citation and in the metadata. Individual author names may be wikilinked
|vauthors=Jones AB, [[E. B. White|White EB]], ((Black, Brown, and Co.))
]=]
local function get_v_name_table (vparam, output_table, output_link_table)
local _, accept = utilities.has_accept_as_written (vparam);
if accept then
utilities.add_prop_cat ('vanc-accept'); -- add properties category
end
local name_table = mw.text.split(vparam, "%s*,%s*"); -- names are separated by commas
local wl_type, label, link; -- wl_type not used here; just a placeholder
local i = 1;
while name_table[i] do
if name_table[i]:match ('^%(%(.*[^%)][^%)]$') then -- first segment of corporate with one or more commas; this segment has the opening doubled parentheses
local name = name_table[i];
i = i + 1; -- bump indexer to next segment
while name_table[i] do
name = name .. ', ' .. name_table[i]; -- concatenate with previous segments
if name_table[i]:match ('^.*%)%)$') then -- if this table member has the closing doubled parentheses
break; -- and done reassembling so
end
i = i + 1; -- bump indexer
end
table.insert (output_table, name); -- and add corporate name to the output table
table.insert (output_link_table, ''); -- no wikilink
else
wl_type, label, link = utilities.is_wikilink (name_table[i]); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]
table.insert (output_table, label); -- add this name
if 1 == wl_type then
table.insert (output_link_table, label); -- simple wikilink [[D]]
else
table.insert (output_link_table, link); -- no wikilink or [[L|D]]; add this link if there is one, else empty string
end
end
i = i + 1;
end
return output_table;
end
--[[--------------------------< P A R S E _ V A U T H O R S _ V E D I T O R S >--------------------------------
This function extracts author / editor names from |vauthors= or |veditors= and finds matching |xxxxor-maskn= and
|xxxxor-linkn= in args. It then returns a table of assembled names just as extract_names() does.
Author / editor names in |vauthors= or |veditors= must be in Vancouver system style. Corporate or institutional names
may sometimes be required and because such names will often fail the is_good_vanc_name() and other format compliance
tests, are wrapped in doubled parentheses ((corporate name)) to suppress the format tests.
Supports generational suffixes Jr, 2nd, 3rd, 4th–6th.
This function sets the Vancouver error when a required comma is missing and when there is a space between an author's initials.
]]
local function parse_vauthors_veditors (args, vparam, list_name)
local names = {}; -- table of names assembled from |vauthors=, |author-maskn=, |author-linkn=
local v_name_table = {};
local v_link_table = {}; -- when name is wikilinked, targets go in this table
local etal = false; -- return value set to true when we find some form of et al. vauthors parameter
local last, first, link, mask, suffix;
local corporate = false;
vparam, etal = name_has_etal (vparam, etal, true); -- find and remove variations on et al. do not categorize (do it here because et al. might have a period)
v_name_table = get_v_name_table (vparam, v_name_table, v_link_table); -- names are separated by commas
for i, v_name in ipairs(v_name_table) do
first = ''; -- set to empty string for concatenation and because it may have been set for previous author/editor
local accept_name;
v_name, accept_name = utilities.has_accept_as_written (v_name); -- remove accept-this-as-written markup when it wraps all of <v_name>
if accept_name then
last = v_name;
corporate = true; -- flag used in list_people()
elseif string.find(v_name, "%s") then
if v_name:find('[;%.]') then -- look for commonly occurring punctuation characters;
add_vanc_error (cfg.err_msg_supl.punctuation, i);
end
local lastfirstTable = {}
lastfirstTable = mw.text.split(v_name, "%s+")
first = table.remove(lastfirstTable); -- removes and returns value of last element in table which should be initials or generational suffix
if not mw.ustring.match (first, '^%u+$') then -- mw.ustring here so that later we will catch non-Latin characters
suffix = first; -- not initials so assume that whatever we got is a generational suffix
first = table.remove(lastfirstTable); -- get what should be the initials from the table
end
last = table.concat(lastfirstTable, ' ') -- returns a string that is the concatenation of all other names that are not initials and generational suffix
if not utilities.is_set (last) then
first = ''; -- unset
last = v_name; -- last empty because something wrong with first
add_vanc_error (cfg.err_msg_supl.name, i);
end
if mw.ustring.match (last, '%a+%s+%u+%s+%a+') then
add_vanc_error (cfg.err_msg_supl['missing comma'], i); -- matches last II last; the case when a comma is missing
end
if mw.ustring.match (v_name, ' %u %u$') then -- this test is in the wrong place TODO: move or replace with a more appropriate test
add_vanc_error (cfg.err_msg_supl.initials, i); -- matches a space between two initials
end
else
last = v_name; -- last name or single corporate name? Doesn't support multiword corporate names? do we need this?
end
if utilities.is_set (first) then
if not mw.ustring.match (first, "^%u?%u$") then -- first shall contain one or two upper-case letters, nothing else
add_vanc_error (cfg.err_msg_supl.initials, i); -- too many initials; mixed case initials (which may be ok Romanization); hyphenated initials
end
is_good_vanc_name (last, first, suffix, i); -- check first and last before restoring the suffix which may have a non-Latin digit
if utilities.is_set (suffix) then
first = first .. ' ' .. suffix; -- if there was a suffix concatenate with the initials
suffix = ''; -- unset so we don't add this suffix to all subsequent names
end
else
if not corporate then
is_good_vanc_name (last, '', nil, i);
end
end
link = utilities.select_one ( args, cfg.aliases[list_name .. '-Link'], 'err_redundant_parameters', i ) or v_link_table[i];
mask = utilities.select_one ( args, cfg.aliases[list_name .. '-Mask'], 'err_redundant_parameters', i );
names[i] = {last = last, first = first, link = link, mask = mask, corporate = corporate}; -- add this assembled name to our names list
end
return names, etal; -- all done, return our list of names
end
--[[--------------------------< S E L E C T _ A U T H O R _ E D I T O R _ S O U R C E >------------------------
Select one of |authors=, |authorn= / |lastn / firstn=, or |vauthors= as the source of the author name list or
select one of |editorn= / editor-lastn= / |editor-firstn= or |veditors= as the source of the editor name list.
Only one of these appropriate three will be used. The hierarchy is: |authorn= (and aliases) highest and |authors= lowest;
|editorn= (and aliases) highest and |veditors= lowest (support for |editors= withdrawn)
When looking for |authorn= / |editorn= parameters, test |xxxxor1= and |xxxxor2= (and all of their aliases); stops after the second
test which mimicks the test used in extract_names() when looking for a hole in the author name list. There may be a better
way to do this, I just haven't discovered what that way is.
Emits an error message when more than one xxxxor name source is provided.
In this function, vxxxxors = vauthors or veditors; xxxxors = authors as appropriate.
]]
local function select_author_editor_source (vxxxxors, xxxxors, args, list_name)
local lastfirst = false;
if utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'none', 1 ) or -- do this twice in case we have a |first1= without a |last1=; this ...
utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'none', 1 ) or -- ... also catches the case where |first= is used with |vauthors=
utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'none', 2 ) or
utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'none', 2 ) then
lastfirst = true;
end
if (utilities.is_set (vxxxxors) and true == lastfirst) or -- these are the three error conditions
(utilities.is_set (vxxxxors) and utilities.is_set (xxxxors)) or
(true == lastfirst and utilities.is_set (xxxxors)) then
utilities.set_message ('err_redundant_parameters',
utilities.substitute (cfg.special_case_translation.name_list_params,
('AuthorList' == list_name) and cfg.special_case_translation.author or cfg.special_case_translation.editor)); -- add error message
end
if true == lastfirst then return 1 end; -- return a number indicating which author name source to use
if utilities.is_set (vxxxxors) then return 2 end;
if utilities.is_set (xxxxors) then return 3 end;
return 1; -- no authors so return 1; this allows missing author name test to run in case there is a first without last
end
--[[--------------------------< I S _ V A L I D _ P A R A M E T E R _ V A L U E >------------------------------
This function is used to validate a parameter's assigned value for those parameters that have only a limited number
of allowable values (yes, y, true, live, dead, etc.). When the parameter value has not been assigned a value (missing
or empty in the source template) the function returns the value specified by ret_val. If the parameter value is one
of the list of allowed values returns the translated value; else, emits an error message and returns the value
specified by ret_val.
TODO: explain <invert>
]]
local function is_valid_parameter_value (value, name, possible, ret_val, invert)
if not utilities.is_set (value) then
return ret_val; -- an empty parameter is ok
end
if (not invert and utilities.in_array (value, possible)) then -- normal; <value> is in <possible> table
return cfg.keywords_xlate[value]; -- return translation of parameter keyword
elseif invert and not utilities.in_array (value, possible) then -- invert; <value> is not in <possible> table
return value; -- return <value> as it is
else
utilities.set_message ('err_invalid_param_val', {name, value}); -- not an allowed value so add error message
return ret_val;
end
end
--[[--------------------------< T E R M I N A T E _ N A M E _ L I S T >----------------------------------------
This function terminates a name list (author, contributor, editor) with a separator character (sepc) and a space
when the last character is not a sepc character or when the last three characters are not sepc followed by two
closing square brackets (close of a wikilink). When either of these is true, the name_list is terminated with a
single space character.
]]
local function terminate_name_list (name_list, sepc)
if (string.sub (name_list, -3, -1) == sepc .. '. ') then -- if already properly terminated
return name_list; -- just return the name list
elseif (string.sub (name_list, -1, -1) == sepc) or (string.sub (name_list, -3, -1) == sepc .. ']]') then -- if last name in list ends with sepc char
return name_list .. " "; -- don't add another
else
return name_list .. sepc .. ' '; -- otherwise terminate the name list
end
end
--[[-------------------------< F O R M A T _ V O L U M E _ I S S U E >-----------------------------------------
returns the concatenation of the formatted volume and issue (or journal article number) parameters as a single
string; or formatted volume or formatted issue, or an empty string if neither are set.
]]
local function format_volume_issue (volume, issue, article, cite_class, origin, sepc, lower)
if not utilities.is_set (volume) and not utilities.is_set (issue) and not utilities.is_set (article) then
return '';
end
-- same condition as in format_pages_sheets()
local is_journal = 'journal' == cite_class or (utilities.in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);
local is_numeric_vol = volume and (volume:match ('^[MDCLXVI]+$') or volume:match ('^%d+$')); -- is only uppercase roman numerals or only digits?
local is_long_vol = volume and (4 < mw.ustring.len(volume)); -- is |volume= value longer than 4 characters?
if volume and (not is_numeric_vol and is_long_vol) then -- when not all digits or Roman numerals, is |volume= longer than 4 characters?
utilities.add_prop_cat ('long-vol'); -- yes, add properties cat
end
if is_journal then -- journal-style formatting
local vol = '';
if utilities.is_set (volume) then
if is_numeric_vol then -- |volume= value all digits or all uppercase Roman numerals?
vol = utilities.substitute (cfg.presentation['vol-bold'], {sepc, volume}); -- render in bold face
elseif is_long_vol then -- not all digits or Roman numerals; longer than 4 characters?
vol = utilities.substitute (cfg.messages['j-vol'], {sepc, utilities.hyphen_to_dash (volume)}); -- not bold
else -- four or fewer characters
vol = utilities.substitute (cfg.presentation['vol-bold'], {sepc, utilities.hyphen_to_dash (volume)}); -- bold
end
end
vol = vol .. (utilities.is_set (issue) and utilities.substitute (cfg.messages['j-issue'], issue) or '')
vol = vol .. (utilities.is_set (article) and utilities.substitute (cfg.messages['j-article-num'], article) or '')
return vol;
end
if 'podcast' == cite_class and utilities.is_set (issue) then
return wrap_msg ('issue', {sepc, issue}, lower);
end
if 'conference' == cite_class and utilities.is_set (article) then -- |article-number= supported only in journal and conference cites
if utilities.is_set (volume) and utilities.is_set (article) then -- both volume and article number
return wrap_msg ('vol-art', {sepc, utilities.hyphen_to_dash (volume), article}, lower);
elseif utilities.is_set (article) then -- article number alone; when volume alone, handled below
return wrap_msg ('art', {sepc, article}, lower);
end
end
-- all other types of citation
if utilities.is_set (volume) and utilities.is_set (issue) then
return wrap_msg ('vol-no', {sepc, utilities.hyphen_to_dash (volume), issue}, lower);
elseif utilities.is_set (volume) then
return wrap_msg ('vol', {sepc, utilities.hyphen_to_dash (volume)}, lower);
else
return wrap_msg ('issue', {sepc, issue}, lower);
end
end
--[[-------------------------< F O R M A T _ P A G E S _ S H E E T S >-----------------------------------------
adds static text to one of |page(s)= or |sheet(s)= values and returns it with all of the others set to empty strings.
The return order is:
page, pages, sheet, sheets
Singular has priority over plural when both are provided.
]]
local function format_pages_sheets (page, pages, sheet, sheets, cite_class, origin, sepc, nopp, lower)
if 'map' == cite_class then -- only cite map supports sheet(s) as in-source locators
if utilities.is_set (sheet) then
if 'journal' == origin then
return '', '', wrap_msg ('j-sheet', sheet, lower), '';
else
return '', '', wrap_msg ('sheet', {sepc, sheet}, lower), '';
end
elseif utilities.is_set (sheets) then
if 'journal' == origin then
return '', '', '', wrap_msg ('j-sheets', sheets, lower);
else
return '', '', '', wrap_msg ('sheets', {sepc, sheets}, lower);
end
end
end
local is_journal = 'journal' == cite_class or (utilities.in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);
if utilities.is_set (page) then
if is_journal then
return utilities.substitute (cfg.messages['j-page(s)'], page), '', '', '';
elseif not nopp then
return utilities.substitute (cfg.messages['p-prefix'], {sepc, page}), '', '', '';
else
return utilities.substitute (cfg.messages['nopp'], {sepc, page}), '', '', '';
end
elseif utilities.is_set (pages) then
if is_journal then
return utilities.substitute (cfg.messages['j-page(s)'], pages), '', '', '';
elseif tonumber(pages) ~= nil and not nopp then -- if pages is only digits, assume a single page number
return '', utilities.substitute (cfg.messages['p-prefix'], {sepc, pages}), '', '';
elseif not nopp then
return '', utilities.substitute (cfg.messages['pp-prefix'], {sepc, pages}), '', '';
else
return '', utilities.substitute (cfg.messages['nopp'], {sepc, pages}), '', '';
end
end
return '', '', '', ''; -- return empty strings
end
--[[--------------------------< I N S O U R C E _ L O C _ G E T >----------------------------------------------
returns one of the in-source locators: page, pages, or at.
If any of these are interwiki links to Wikisource, returns the label portion of the interwiki-link as plain text
for use in COinS. This COinS thing is done because here we convert an interwiki-link to an external link and
add an icon span around that; get_coins_pages() doesn't know about the span. TODO: should it?
TODO: add support for sheet and sheets?; streamline;
TODO: make it so that this function returns only one of the three as the single in-source (the return value assigned
to a new name)?
]]
local function insource_loc_get (page, page_orig, pages, pages_orig, at)
local ws_url, ws_label, coins_pages, L; -- for Wikisource interwiki-links; TODO: this corrupts page metadata (span remains in place after cleanup; fix there?)
if utilities.is_set (page) then
if utilities.is_set (pages) or utilities.is_set (at) then
pages = ''; -- unset the others
at = '';
end
extra_text_in_page_check (page, page_orig); -- emit error message when |page= value begins with what looks like p., pp., etc.
ws_url, ws_label, L = wikisource_url_make (page); -- make ws URL from |page= interwiki link; link portion L becomes tooltip label
if ws_url then
page = external_link (ws_url, ws_label .. ' ', 'ws link in page'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
page = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, page});
coins_pages = ws_label;
end
elseif utilities.is_set (pages) then
if utilities.is_set (at) then
at = ''; -- unset
end
extra_text_in_page_check (pages, pages_orig); -- emit error message when |page= value begins with what looks like p., pp., etc.
ws_url, ws_label, L = wikisource_url_make (pages); -- make ws URL from |pages= interwiki link; link portion L becomes tooltip label
if ws_url then
pages = external_link (ws_url, ws_label .. ' ', 'ws link in pages'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
pages = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, pages});
coins_pages = ws_label;
end
elseif utilities.is_set (at) then
ws_url, ws_label, L = wikisource_url_make (at); -- make ws URL from |at= interwiki link; link portion L becomes tooltip label
if ws_url then
at = external_link (ws_url, ws_label .. ' ', 'ws link in at'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
at = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, at});
coins_pages = ws_label;
end
end
return page, pages, at, coins_pages;
end
--[[--------------------------< I S _ U N I Q U E _ A R C H I V E _ U R L >------------------------------------
add error message when |archive-url= value is same as |url= or chapter-url= (or alias...) value
]]
local function is_unique_archive_url (archive, url, c_url, source, date)
if utilities.is_set (archive) then
if archive == url or archive == c_url then
utilities.set_message ('err_bad_url', {utilities.wrap_style ('parameter', source)}); -- add error message
return '', ''; -- unset |archive-url= and |archive-date= because same as |url= or |chapter-url=
end
end
return archive, date;
end
--[=[-------------------------< A R C H I V E _ U R L _ C H E C K >--------------------------------------------
Check archive.org URLs to make sure they at least look like they are pointing at valid archives and not to the
save snapshot URL or to calendar pages. When the archive URL is 'https://web.archive.org/save/' (or http://...)
archive.org saves a snapshot of the target page in the URL. That is something that Wikipedia should not allow
unwitting readers to do.
When the archive.org URL does not have a complete timestamp, archive.org chooses a snapshot according to its own
algorithm or provides a calendar 'search' result. [[WP:ELNO]] discourages links to search results.
This function looks at the value assigned to |archive-url= and returns empty strings for |archive-url= and
|archive-date= and an error message when:
|archive-url= holds an archive.org save command URL
|archive-url= is an archive.org URL that does not have a complete timestamp (YYYYMMDDhhmmss 14 digits) in the
correct place
otherwise returns |archive-url= and |archive-date=
There are two mostly compatible archive.org URLs:
//web.archive.org/<timestamp>... -- the old form
//web.archive.org/web/<timestamp>... -- the new form
The old form does not support or map to the new form when it contains a display flag. There are four identified flags
('id_', 'js_', 'cs_', 'im_') but since archive.org ignores others following the same form (two letters and an underscore)
we don't check for these specific flags but we do check the form.
This function supports a preview mode. When the article is rendered in preview mode, this function may return a modified
archive URL:
for save command errors, return undated wildcard (/*/)
for timestamp errors when the timestamp has a wildcard, return the URL unmodified
for timestamp errors when the timestamp does not have a wildcard, return with timestamp limited to six digits plus wildcard (/yyyymm*/)
A secondary function is to return an archive-url timestamp from those archive urls that have them. The timestamp
is used by validation.archive_date_check() to see if the value in |archive-date= matches the timestamp in the
archive url.
]=]
local function archive_url_check (url, date)
local err_msg = ''; -- start with the error message empty
local path, timestamp, flag; -- portions of the archive.org URL
local function is_ts_date_valid (timestamp, origin_date) -- local function to validate archive url taimestamp date; time ignored
local y, m, d = timestamp:match ('(%d%d%d%d)(%d%d)(%d%d)'); -- split into parts
if y and validation.is_valid_date (y, m, d) and (tonumber (y) >= 1996) then
return true, tonumber (y) >= origin_date; -- <origin_date> is 1996 for archive.org
end
end
if (not url:match('//web%.archive%.org/')) and (not url:match('//liveweb%.archive%.org/')) then -- also deprecated liveweb Wayback machine URL
return url, date; -- not an archive.org archive, return ArchiveURL and ArchiveDate
end
if url:match('//web%.archive%.org/save/') then -- if a save command URL, we don't want to allow saving of the target page
err_msg = cfg.err_msg_supl.save;
url = url:gsub ('(//web%.archive%.org)/save/', '%1/*/', 1); -- for preview mode: modify ArchiveURL
elseif url:match('//liveweb%.archive%.org/') then
err_msg = cfg.err_msg_supl.liveweb;
else
path, timestamp, flag = url:match('//web%.archive%.org/([^%d]*)(%d+)([^/]*)/'); -- split out some of the URL parts for evaluation
if not path then -- malformed in some way; pattern did not match
err_msg = cfg.err_msg_supl.timestamp;
elseif 14 ~= timestamp:len() then -- path and flag optional, must have 14-digit timestamp here
err_msg = cfg.err_msg_supl.timestamp;
if '*' ~= flag then
local replacement = timestamp:match ('^%d%d%d%d%d%d') or timestamp:match ('^%d%d%d%d'); -- get the first 6 (YYYYMM) or first 4 digits (YYYY)
if replacement then -- nil if there aren't at least 4 digits (year)
replacement = replacement .. string.rep ('0', 14 - replacement:len()); -- year or yearmo (4 or 6 digits) zero-fill to make 14-digit timestamp
url=url:gsub ('(//web%.archive%.org/[^%d]*)%d[^/]*', '%1' .. replacement .. '*', 1) -- for preview, modify ts to 14 digits plus splat for calendar display
end
end
elseif not is_ts_date_valid (timestamp, 1996) then -- is ymd portion of timestamp a valid date?
err_msg = cfg.err_msg_supl.timestamp;
timestamp = nil; -- unset because invalid
elseif utilities.is_set (path) and 'web/' ~= path then -- older archive URLs do not have the extra 'web/' path element
err_msg = cfg.err_msg_supl.path;
elseif utilities.is_set (flag) and not utilities.is_set (path) then -- flag not allowed with the old form URL (without the 'web/' path element)
err_msg = cfg.err_msg_supl.flag;
elseif utilities.is_set (flag) and not flag:match ('%a%a_') then -- flag if present must be two alpha characters and underscore (requires 'web/' path element)
err_msg = cfg.err_msg_supl.flag;
else
return url, date, timestamp; -- return ArchiveURL, ArchiveDate, and timestamp from |archive-url=
end
end
-- if here, something not right so
utilities.set_message ('err_archive_url', {err_msg}); -- add error message and
if is_preview_mode then
return url, date, timestamp; -- preview mode so return ArchiveURL, ArchiveDate, and timestamp from |archive-url=
else
return '', ''; -- return empty strings for ArchiveURL and ArchiveDate
end
end
--[[--------------------------< P L A C E _ C H E C K >--------------------------------------------------------
check |place=, |publication-place=, |location= to see if these params include digits. This function added because
many editors misuse location to specify the in-source location (|page(s)= and |at= are supposed to do that)
returns the original parameter value without modification; added maint cat when parameter value contains digits
]]
local function place_check (param_val)
if not utilities.is_set (param_val) then -- parameter empty or omitted
return param_val; -- return that empty state
end
if mw.ustring.find (param_val, '%d') then -- not empty, are there digits in the parameter value
utilities.set_message ('maint_location'); -- yep, add maint cat
end
return param_val; -- and done
end
--[[--------------------------< I S _ A R C H I V E D _ C O P Y >----------------------------------------------
compares |title= to 'Archived copy' (placeholder added by bots that can't find proper title); if matches, return true; nil else
]]
local function is_archived_copy (title)
title = mw.ustring.lower(title); -- switch title to lower case
if title:find (cfg.special_case_translation.archived_copy.en) then -- if title is 'Archived copy'
return true;
elseif cfg.special_case_translation.archived_copy['local'] then
if mw.ustring.find (title, cfg.special_case_translation.archived_copy['local']) then -- mw.ustring() because might not be Latin script
return true;
end
end
end
--[[--------------------------< D I S P L A Y _ N A M E S _ S E L E C T >--------------------------------------
for any of the |display-authors=, |display-editors=, etc parameters, select either the local or global setting.
When both are present, look at <local_display_names> value. When the value is some sort of 'et al.'string,
special handling is required.
When {{cs1 config}} has |display-<namelist>= AND this template has |display-<namelist>=etal AND:
the number of names specified by <number_of_names> is:
greater than the number specified in the global |display-<namelist>= parameter (<global_display_names>)
use global |display-<namelist>= parameter value
set overridden maint category
less than or equal to the number specified in the global |display-<namelist>= parameter
use local |display-<namelist>= parameter value
The purpose of this function is to prevent categorizing a template that has fewer names than the global setting
to keep the etal annotation specified by <local_display_names>.
]]
local function display_names_select (global_display_names, local_display_names, param_name, number_of_names, test)
if global_display_names and utilities.is_set (local_display_names) then -- when both
if 'etal' == local_display_names:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings
number_of_names = tonumber (number_of_names); -- convert these to numbers for comparison
local global_display_names_num = tonumber (global_display_names); -- <global_display_names> not set when parameter value is not digits
if number_of_names > global_display_names_num then -- template has more names than global config allows to be displayed?
utilities.set_message ('maint_overridden_setting'); -- set a maint message because global is overriding local |display-<namelist>=etal
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
else
return local_display_names, param_name; -- return local because fewer names so let <local_display_names> control
end
end
-- here when <global_display_names> and <local_display_names> both numbers; <global_display_names> controls
utilities.set_message ('maint_overridden_setting'); -- set a maint message
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
end
-- here when only one of <global_display_names> or <local_display_names> set
if global_display_names then
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
else
return local_display_names, param_name; -- return local
end
end
--[[--------------------------< M O D E _ S E T >--------------------------------------------------------------
fetch global mode setting from {{cs1 config}} (if present) or from |mode= (if present); global setting overrides
local |mode= parameter value. When both are present, emit maintenance message
]]
local function mode_set (Mode, Mode_origin)
local mode;
if cfg.global_cs1_config_t['Mode'] then -- global setting in {{cs1 config}}; nil when empty or assigned value invalid
mode = is_valid_parameter_value (cfg.global_cs1_config_t['Mode'], 'cs1 config: mode', cfg.keywords_lists['mode'], ''); -- error messaging 'param' here is a hoax
else
mode = is_valid_parameter_value (Mode, Mode_origin, cfg.keywords_lists['mode'], '');
end
if cfg.global_cs1_config_t['Mode'] and utilities.is_set (Mode) then -- when template has |mode=<something> which global setting has overridden
utilities.set_message ('maint_overridden_setting'); -- set a maint message
end
return mode;
end
--[[--------------------------< Q U O T E _ M A K E >----------------------------------------------------------
create quotation from |quote=, |trans-quote=, and/or script-quote= with or without |quote-page= or |quote-pages=
when any of those three quote parameters are set, this function unsets <PostScript>. When none of those parameters
are set, |quote-page= and |quote-pages= are unset to nil so that they are not included in the template's metadata
]]
local function quote_make (quote, trans_quote, script_quote, quote_page, quote_pages, nopp, sepc, postscript)
if utilities.is_set (quote) or utilities.is_set (trans_quote) or utilities.is_set (script_quote) then
if utilities.is_set (quote) then
if quote:sub(1, 1) == '"' and quote:sub(-1, -1) == '"' then -- if first and last characters of quote are quote marks
quote = quote:sub(2, -2); -- strip them off
end
end
quote = kern_quotes (quote); -- kern if needed
quote = utilities.wrap_style ('quoted-text', quote ); -- wrap in <q>...</q> tags
if utilities.is_set (script_quote) then
quote = script_concatenate (quote, script_quote, 'script-quote'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after quote is wrapped
end
if utilities.is_set (trans_quote) then
if trans_quote:sub(1, 1) == '"' and trans_quote:sub(-1, -1) == '"' then -- if first and last characters of |trans-quote are quote marks
trans_quote = trans_quote:sub(2, -2); -- strip them off
end
quote = quote .. " " .. utilities.wrap_style ('trans-quoted-title', trans_quote );
end
if utilities.is_set (quote_page) or utilities.is_set (quote_pages) then -- add page prefix
local quote_prefix = '';
if utilities.is_set (quote_page) then
extra_text_in_page_check (quote_page, 'quote-page'); -- add to maint cat if |quote-page= value begins with what looks like p., pp., etc.
if not nopp then
quote_prefix = utilities.substitute (cfg.messages['p-prefix'], {sepc, quote_page}), '', '', '';
else
quote_prefix = utilities.substitute (cfg.messages['nopp'], {sepc, quote_page}), '', '', '';
end
elseif utilities.is_set (quote_pages) then
extra_text_in_page_check (quote_pages, 'quote-pages'); -- add to maint cat if |quote-pages= value begins with what looks like p., pp., etc.
if tonumber(quote_pages) ~= nil and not nopp then -- if only digits, assume single page
quote_prefix = utilities.substitute (cfg.messages['p-prefix'], {sepc, quote_pages}), '', '';
elseif not nopp then
quote_prefix = utilities.substitute (cfg.messages['pp-prefix'], {sepc, quote_pages}), '', '';
else
quote_prefix = utilities.substitute (cfg.messages['nopp'], {sepc, quote_pages}), '', '';
end
end
quote = quote_prefix .. ": " .. quote;
else
quote = sepc .. " " .. quote;
end
postscript = ""; -- cs1|2 does not supply terminal punctuation when |quote= is set
elseif utilities.is_set (quote_page) or utilities.is_set (quote_pages) then
quote_page = nil; -- unset; these require |quote=; TODO: error message?
quote_pages = nil;
end
return quote, quote_page, quote_pages, postscript;
end
--[[--------------------------< C H E C K _ P U B L I S H E R _ N A M E >--------------------------------------
look for variations of '<text>: <text>' that might be '<location>: <publisher>' in |publisher= parameter value.
when found, emit a maintenance message; return nil else
<publisher> is the value assigned to |publisher= or |institution=
]]
local function check_publisher_name (publisher)
local patterns_t = {
'^[%w%s]+%s*:%s*[%w%s]+$', -- plain text <location>: <publisher>
'^%[+[%w%s:|]+%]+%s*:%s*[%w%s]+$', -- partially wikilinked [[<location>]]: <publisher>
'^[%w%s]+%s*:%s*%[+[%w%s:|]+%]+$', -- partially wikilinked <location>: [[<publisher>]]
'^%[+[%w%s:|]+%]+%s*:%s*%[+[%w%s:|]+%]+$', -- wikilinked [[<location>]]: [[<publisher>]]
}
for _, pattern in ipairs (patterns_t) do -- spin through the patterns_t sequence
if mw.ustring.match (publisher, pattern) then -- does this pattern match?
utilities.set_message ('maint_publisher_location'); -- set a maint message
return; -- and done
end
end
end
--[[--------------------------< I S _ P A G E _ A R T _ N U M >------------------------------------------------
compare the trailing (rightmost) characters of the |doi= value against the whole value assigned to |page(s)=.
return boolean true when:
|page(s)= has exactly 8 digits and a dot between the fourth and fifth digits matches the trailing 9 characters
of the |doi= value: |page=12345678 → |page=1234.5678 matches |doi=10.xxxx/yyyy1234.5678
|page(s)= is 5 or more characters and matches |doi= values's trailing characters
|page(s)= begins with a lowercase 'e' and |page(s)= without the 'e' matches |doi= values's trailing
characters: |page=e12345 → |page=12345 matches |doi=10.xxxx/yyyy12345
|page(s)= begins with a uppercase 'CD' followed by (typically) six digits matches |doi= values that ends with
'CDxxxxxx.pubx' (where 'x' is any single digit)
return nil when |page(s)= values:
are ranges separated by underscore, hyphen, emdash, endash, figure dash, or minus character
are comma- or semicolon-separated lists of pages
have external urls (has text 'http')
are digit-only values less than 10000
do not match |doi= values's trailing characters
]]
local function is_page_art_num (page, doi)
if not (utilities.is_set (page) and utilities.is_set (doi)) then -- both required
return; -- abandon; nothing to do
end
if page:match ('[,;_−–—‒%-]') then -- when |page(s)= might be a page range or a separated list of pages
return; -- abandon
end
page = page:lower(); -- because doi names are case insensitive
doi = doi:lower(); -- force these to lowercase for testing
if page:match ('http') then -- when |page(s)= appears to hold a url
return; -- abandon
end
if tonumber (page) then -- is |page(s)= digits only
if 10000 > tonumber (page) then -- when |page(s)= less than 10000
return; -- abandon
end
if doi:match (page .. '$') then -- digits only page number match the last digits in |doi=?
return true;
end
if 8 == page:len() then -- special case when |page(s)= is exactly 8 digits
local dot_page = page:gsub ('(%d%d%d%d)(%d%d%d%d)', '%1.%2'); -- make a |page=xxxx.yyyy version commonly used in |doi=
if doi:match (dot_page .. '$') then -- 8-digit dotted page number match the last characters in |doi=?
return true;
end
end
else -- here when |page(s)= is alpha-numeric
if 4 < page:len() then -- when |page(s)= is five or more characters
if doi:match (page .. '$') then -- alpha-numeric page match the last characters in |doi=?
return true;
end
local epage = page:match ('^e([%w]+)$'); -- if first character of |page= is 'e', remove it
if epage and doi:match (epage .. '$') then -- page number match the last characters in |doi=?
return true;
end
local cdpage = page:match ('^cd%d+$'); -- if first characters of |page= are 'CD' and last characters are digits (typically 6 digits)
if cdpage and doi:match (cdpage .. '%.pub%d$') then -- page number matches doi 'CDxxxxxx.pubx' where 'x' is a digit
return true;
end
end
end
end
--[[--------------------------< C I T A T I O N 0 >------------------------------------------------------------
This is the main function doing the majority of the citation formatting.
]]
local function citation0( config, args )
--[[
Load Input Parameters
The argument_wrapper facilitates the mapping of multiple aliases to single internal variable.
]]
local A = argument_wrapper ( args );
local i
-- Pick out the relevant fields from the arguments. Different citation templates
-- define different field names for the same underlying things.
local author_etal;
local a = {}; -- authors list from |lastn= / |firstn= pairs or |vauthors=
local Authors;
local NameListStyle;
if cfg.global_cs1_config_t['NameListStyle'] then -- global setting in {{cs1 config}} overrides local |name-list-style= parameter value; nil when empty or assigned value invalid
NameListStyle = is_valid_parameter_value (cfg.global_cs1_config_t['NameListStyle'], 'cs1 config: name-list-style', cfg.keywords_lists['name-list-style'], ''); -- error messaging 'param' here is a hoax
else
NameListStyle = is_valid_parameter_value (A['NameListStyle'], A:ORIGIN('NameListStyle'), cfg.keywords_lists['name-list-style'], '');
end
if cfg.global_cs1_config_t['NameListStyle'] and utilities.is_set (A['NameListStyle']) then -- when template has |name-list-style=<something> which global setting has overridden
utilities.set_message ('maint_overridden_setting'); -- set a maint message
end
local Collaboration = A['Collaboration'];
do -- to limit scope of selected
local selected = select_author_editor_source (A['Vauthors'], A['Authors'], args, 'AuthorList');
if 1 == selected then
a, author_etal = extract_names (args, 'AuthorList'); -- fetch author list from |authorn= / |lastn= / |firstn=, |author-linkn=, and |author-maskn=
elseif 2 == selected then
NameListStyle = 'vanc'; -- override whatever |name-list-style= might be
a, author_etal = parse_vauthors_veditors (args, A['Vauthors'], 'AuthorList'); -- fetch author list from |vauthors=, |author-linkn=, and |author-maskn=
elseif 3 == selected then
Authors = A['Authors']; -- use content of |people= or |credits=; |authors= is deprecated; TODO: constrain |people= and |credits= to cite av media, episode, serial?
end
if utilities.is_set (Collaboration) then
author_etal = true; -- so that |display-authors=etal not required
end
end
local editor_etal;
local e = {}; -- editors list from |editor-lastn= / |editor-firstn= pairs or |veditors=
do -- to limit scope of selected
local selected = select_author_editor_source (A['Veditors'], nil, args, 'EditorList'); -- support for |editors= withdrawn
if 1 == selected then
e, editor_etal = extract_names (args, 'EditorList'); -- fetch editor list from |editorn= / |editor-lastn= / |editor-firstn=, |editor-linkn=, and |editor-maskn=
elseif 2 == selected then
NameListStyle = 'vanc'; -- override whatever |name-list-style= might be
e, editor_etal = parse_vauthors_veditors (args, args.veditors, 'EditorList'); -- fetch editor list from |veditors=, |editor-linkn=, and |editor-maskn=
end
end
local Chapter = A['Chapter']; -- done here so that we have access to |contribution= from |chapter= and |script-chapter= aliases
local Chapter_origin = A:ORIGIN ('Chapter');
local ScriptChapter = A['ScriptChapter'];
local ScriptChapter_origin = A:ORIGIN ('ScriptChapter');
local Contribution; -- because contribution is required for contributor(s)
if 'contribution' == Chapter_origin then -- is there a |contribution= parameter?
Contribution = Chapter; -- get the name of the contribution
elseif 'script-contribution' == ScriptChapter_origin then -- no, so is there a |script-contribution= parameter?
Contribution = ScriptChapter; -- get the name of the contribution
end
local c = {}; -- contributors list from |contributor-lastn= / contributor-firstn= pairs
if utilities.in_array (config.CitationClass, {"book", "citation"}) and not utilities.is_set (A['Periodical']) then -- |contributor= and |contribution= only supported in book cites
c = extract_names (args, 'ContributorList'); -- fetch contributor list from |contributorn= / |contributor-lastn=, -firstn=, -linkn=, -maskn=
if 0 < #c then
if not utilities.is_set (Contribution) then -- |contributor= requires |contribution=
utilities.set_message ('err_contributor_missing_required_param', 'contribution'); -- add missing contribution error message
c = {}; -- blank the contributors' table; it is used as a flag later
end
if 0 == #a then -- |contributor= requires |author=
utilities.set_message ('err_contributor_missing_required_param', 'author'); -- add missing author error message
c = {}; -- blank the contributors' table; it is used as a flag later
end
end
else -- if not a book cite
if utilities.select_one (args, cfg.aliases['ContributorList-Last'], 'err_redundant_parameters', 1 ) then -- are there contributor name list parameters?
utilities.set_message ('err_contributor_ignored'); -- add contributor ignored error message
end
Contribution = nil; -- unset
end
local Title = A['Title'];
local TitleLink = A['TitleLink'];
local auto_select = ''; -- default is auto
local accept_link;
TitleLink, accept_link = utilities.has_accept_as_written (TitleLink, true); -- test for accept-this-as-written markup
if (not accept_link) and utilities.in_array (TitleLink, {'none', 'pmc', 'doi'}) then -- check for special keywords
auto_select = TitleLink; -- remember selection for later
TitleLink = ''; -- treat as if |title-link= would have been empty
end
TitleLink = link_title_ok (TitleLink, A:ORIGIN ('TitleLink'), Title, 'title'); -- check for wiki-markup in |title-link= or wiki-markup in |title= when |title-link= is set
local Section = ''; -- {{cite map}} only; preset to empty string for concatenation if not used
if 'map' == config.CitationClass and 'section' == Chapter_origin then
Section = A['Chapter']; -- get |section= from |chapter= alias list; |chapter= and the other aliases not supported in {{cite map}}
Chapter = ''; -- unset for now; will be reset later from |map= if present
end
local Periodical = A['Periodical'];
local Periodical_origin = A:ORIGIN('Periodical');
local ScriptPeriodical = A['ScriptPeriodical'];
local ScriptPeriodical_origin = A:ORIGIN('ScriptPeriodical');
local TransPeriodical = A['TransPeriodical'];
local TransPeriodical_origin = A:ORIGIN ('TransPeriodical');
if (utilities.in_array (config.CitationClass, {'book', 'encyclopaedia'}) and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical) or utilities.is_set (TransPeriodical))) then
local param;
if utilities.is_set (Periodical) then -- get a parameter name from one of these periodical related meta-parameters
Periodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = Periodical_origin -- get parameter name for error messaging
elseif utilities.is_set (TransPeriodical) then
TransPeriodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = TransPeriodical_origin; -- get parameter name for error messaging
elseif utilities.is_set (ScriptPeriodical) then
ScriptPeriodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = ScriptPeriodical_origin; -- get parameter name for error messaging
end
if utilities.is_set (param) then -- if we found one
utilities.set_message ('err_periodical_ignored', {param}); -- emit an error message
end
end
if utilities.is_set (Periodical) then
local i;
Periodical, i = utilities.strip_apostrophe_markup (Periodical); -- strip apostrophe markup so that metadata isn't contaminated
if i then -- non-zero when markup was stripped so emit an error message
utilities.set_message ('err_apostrophe_markup', {Periodical_origin});
end
end
if 'mailinglist' == config.CitationClass then -- special case for {{cite mailing list}}
if utilities.is_set (Periodical) and utilities.is_set (A ['MailingList']) then -- both set emit an error TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', Periodical_origin) .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'mailinglist')});
end
Periodical = A ['MailingList']; -- error or no, set Periodical to |mailinglist= value because this template is {{cite mailing list}}
Periodical_origin = A:ORIGIN('MailingList');
end
-- web and news not tested for now because of
-- Wikipedia:Administrators%27_noticeboard#Is_there_a_semi-automated_tool_that_could_fix_these_annoying_"Cite_Web"_errors?
if not (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) then -- 'periodical' templates require periodical parameter
-- local p = {['journal'] = 'journal', ['magazine'] = 'magazine', ['news'] = 'newspaper', ['web'] = 'website'}; -- for error message
local p = {['journal'] = 'journal', ['magazine'] = 'magazine'}; -- for error message
if p[config.CitationClass] then
utilities.set_message ('err_missing_periodical', {config.CitationClass, p[config.CitationClass]});
end
end
local Volume;
if 'citation' == config.CitationClass then
if utilities.is_set (Periodical) then
if not utilities.in_array (Periodical_origin, cfg.citation_no_volume_t) then -- {{citation}} does not render |volume= when these parameters are used
Volume = A['Volume']; -- but does for all other 'periodicals'
end
elseif utilities.is_set (ScriptPeriodical) then
if 'script-website' ~= ScriptPeriodical_origin then -- {{citation}} does not render volume for |script-website=
Volume = A['Volume']; -- but does for all other 'periodicals'
end
else
Volume = A['Volume']; -- and does for non-'periodical' cites
end
elseif utilities.in_array (config.CitationClass, cfg.templates_using_volume) then -- render |volume= for cs1 according to the configuration settings
Volume = A['Volume'];
end
extra_text_in_vol_iss_check (Volume, A:ORIGIN ('Volume'), 'v');
local Issue;
if 'citation' == config.CitationClass then
if utilities.is_set (Periodical) and utilities.in_array (Periodical_origin, cfg.citation_issue_t) then -- {{citation}} may render |issue= when these parameters are used
Issue = A['Issue'];
end
elseif utilities.in_array (config.CitationClass, cfg.templates_using_issue) then -- conference & map books do not support issue; {{citation}} listed here because included in settings table
if not (utilities.in_array (config.CitationClass, {'conference', 'map', 'citation'}) and not (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical))) then
Issue = A['Issue'];
end
end
local ArticleNumber;
if utilities.in_array (config.CitationClass, {'journal', 'conference'}) or ('citation' == config.CitationClass and utilities.is_set (Periodical) and 'journal' == Periodical_origin) then
ArticleNumber = A['ArticleNumber'];
end
extra_text_in_vol_iss_check (Issue, A:ORIGIN ('Issue'), 'i');
Issue = utilities.hyphen_to_dash (Issue);
local Page;
local Pages;
local At;
local QuotePage;
local QuotePages;
if not utilities.in_array (config.CitationClass, cfg.templates_not_using_page) then -- TODO: rewrite to emit ignored parameter error message?
Page = A['Page'];
Pages = utilities.hyphen_to_dash (A['Pages']);
At = A['At'];
QuotePage = A['QuotePage'];
QuotePages = utilities.hyphen_to_dash (A['QuotePages']);
end
local NoPP = is_valid_parameter_value (A['NoPP'], A:ORIGIN('NoPP'), cfg.keywords_lists['yes_true_y'], nil);
local Mode = mode_set (A['Mode'], A:ORIGIN('Mode'));
-- separator character and postscript
local sepc, PostScript = set_style (Mode:lower(), A['PostScript'], config.CitationClass);
local Quote;
Quote, QuotePage, QuotePages, PostScript = quote_make (A['Quote'], A['TransQuote'], A['ScriptQuote'], QuotePage, QuotePages, NoPP, sepc, PostScript);
local Edition = A['Edition'];
local PublicationPlace = place_check (A['PublicationPlace'], A:ORIGIN('PublicationPlace'));
local Place = place_check (A['Place'], A:ORIGIN('Place'));
local PublisherName = A['PublisherName'];
local PublisherName_origin = A:ORIGIN('PublisherName');
if utilities.is_set (PublisherName) and (cfg.keywords_xlate['none'] ~= PublisherName) then
local i = 0;
PublisherName, i = utilities.strip_apostrophe_markup (PublisherName); -- strip apostrophe markup so that metadata isn't contaminated; publisher is never italicized
if i and (0 < i) then -- non-zero when markup was stripped so emit an error message
utilities.set_message ('err_apostrophe_markup', {PublisherName_origin});
end
end
if ('document' == config.CitationClass) and not utilities.is_set (PublisherName) then
utilities.set_message ('err_missing_publisher', {config.CitationClass, 'publisher'});
end
local Newsgroup = A['Newsgroup']; -- TODO: strip apostrophe markup?
local Newsgroup_origin = A:ORIGIN('Newsgroup');
if 'newsgroup' == config.CitationClass then
if utilities.is_set (PublisherName) and (cfg.keywords_xlate['none'] ~= PublisherName) then -- general use parameter |publisher= not allowed in cite newsgroup
utilities.set_message ('err_parameter_ignored', {PublisherName_origin});
end
PublisherName = nil; -- ensure that this parameter is unset for the time being; will be used again after COinS
end
if 'book' == config.CitationClass or 'encyclopaedia' == config.CitationClass or ('citation' == config.CitationClass and not utilities.is_set (Periodical)) then
local accept;
PublisherName, accept = utilities.has_accept_as_written (PublisherName); -- check for and remove accept-as-written markup from |publisher= wrapped
if not accept then -- when no accept-as-written markup
check_publisher_name (PublisherName); -- emit maint message when |publisher= might be prefixed with publisher's location
end
end
local URL = A['URL']; -- TODO: better way to do this for URL, ChapterURL, and MapURL?
local UrlAccess = is_valid_parameter_value (A['UrlAccess'], A:ORIGIN('UrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (URL) and utilities.is_set (UrlAccess) then
UrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', 'url');
end
local ChapterURL = A['ChapterURL'];
local ChapterUrlAccess = is_valid_parameter_value (A['ChapterUrlAccess'], A:ORIGIN('ChapterUrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (ChapterURL) and utilities.is_set (ChapterUrlAccess) then
ChapterUrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', {A:ORIGIN('ChapterUrlAccess'):gsub ('%-access', '')});
end
local MapUrlAccess = is_valid_parameter_value (A['MapUrlAccess'], A:ORIGIN('MapUrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (A['MapURL']) and utilities.is_set (MapUrlAccess) then
MapUrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', {'map-url'});
end
local this_page = mw.title.getCurrentTitle(); -- also used for COinS and for language
local no_tracking_cats = is_valid_parameter_value (A['NoTracking'], A:ORIGIN('NoTracking'), cfg.keywords_lists['yes_true_y'], nil);
-- check this page to see if it is in one of the namespaces that cs1 is not supposed to add to the error categories
if not utilities.is_set (no_tracking_cats) then -- ignore if we are already not going to categorize this page
if cfg.uncategorized_namespaces[this_page.namespace] then -- is this page's namespace id one of the uncategorized namespace ids?
no_tracking_cats = "true"; -- set no_tracking_cats
end
for _, v in ipairs (cfg.uncategorized_subpages) do -- cycle through page name patterns
if this_page.text:match (v) then -- test page name against each pattern
no_tracking_cats = "true"; -- set no_tracking_cats
break; -- bail out if one is found
end
end
end
-- check for extra |page=, |pages= or |at= parameters. (also sheet and sheets while we're at it)
utilities.select_one (args, {'page', 'p', 'pp', 'pages', 'at', 'sheet', 'sheets'}, 'err_redundant_parameters'); -- this is a dummy call simply to get the error message and category
local coins_pages;
Page, Pages, At, coins_pages = insource_loc_get (Page, A:ORIGIN('Page'), Pages, A:ORIGIN('Pages'), At);
if utilities.is_set (PublicationPlace) and utilities.is_set (Place) then -- both |publication-place= and |place= (|location=) allowed if different
utilities.add_prop_cat ('location-test'); -- add property cat to evaluate how often PublicationPlace and Place are used together
if PublicationPlace == Place then
Place = ''; -- unset; don't need both if they are the same
end
elseif not utilities.is_set (PublicationPlace) and utilities.is_set (Place) then -- when only |place= (|location=) is set ...
PublicationPlace = Place; -- promote |place= (|location=) to |publication-place
end
if PublicationPlace == Place then Place = ''; end -- don't need both if they are the same
local URL_origin = A:ORIGIN('URL'); -- get name of parameter that holds URL
local ChapterURL_origin = A:ORIGIN('ChapterURL'); -- get name of parameter that holds ChapterURL
-- local ScriptChapter = A['ScriptChapter'];
-- local ScriptChapter_origin = A:ORIGIN ('ScriptChapter');
local Format = A['Format'];
local ChapterFormat = A['ChapterFormat'];
local TransChapter = A['TransChapter'];
local TransChapter_origin = A:ORIGIN ('TransChapter');
local TransTitle = A['TransTitle'];
local ScriptTitle = A['ScriptTitle'];
--[[
Parameter remapping for cite encyclopedia:
When the citation has these parameters:
|encyclopedia= and |title= then map |title= to |article= and |encyclopedia= to |title= for rendering
|encyclopedia= and |article= then map |encyclopedia= to |title= for rendering
|trans-title= maps to |trans-chapter= when |title= is re-mapped
|url= maps to |chapter-url= when |title= is remapped
All other combinations of |encyclopedia=, |title=, and |article= are not modified
]]
local Encyclopedia = A['Encyclopedia']; -- used as a flag by this module and by ~/COinS
local ScriptEncyclopedia = A['ScriptEncyclopedia'];
local TransEncyclopedia = A['TransEncyclopedia'];
if utilities.is_set (Encyclopedia) or utilities.is_set (ScriptEncyclopedia) then -- emit error message when Encyclopedia set but template is other than {{cite encyclopedia}} or {{citation}}
if 'encyclopaedia' ~= config.CitationClass and 'citation' ~= config.CitationClass then
if utilities.is_set (Encyclopedia) then
utilities.set_message ('err_parameter_ignored', {A:ORIGIN ('Encyclopedia')});
else
utilities.set_message ('err_parameter_ignored', {A:ORIGIN ('ScriptEncyclopedia')});
end
Encyclopedia = nil; -- unset these because not supported by this template
ScriptEncyclopedia = nil;
TransEncyclopedia = nil;
end
elseif utilities.is_set (TransEncyclopedia) then
utilities.set_message ('err_trans_missing_title', {'encyclopedia'});
end
if ('encyclopaedia' == config.CitationClass) or ('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) then
if utilities.is_set (Periodical) and utilities.is_set (Encyclopedia) then -- when both parameters set emit an error message; {{citation}} only; Periodical not allowed in {{cite encyclopedia}}
utilities.set_message ('err_periodical_ignored', {Periodical_origin});
end
if utilities.is_set (Encyclopedia) or utilities.is_set (ScriptEncyclopedia) then
Periodical = Encyclopedia; -- error or no, set Periodical to Encyclopedia for rendering; {{citation}} could (not legitimately) have both; use Encyclopedia
Periodical_origin = A:ORIGIN ('Encyclopedia');
ScriptPeriodical = ScriptEncyclopedia;
ScriptPeriodical_origin = A:ORIGIN ('ScriptEncyclopedia');
if utilities.is_set (Title) or utilities.is_set (ScriptTitle) then
if not utilities.is_set (Chapter) then
Chapter = Title; -- |encyclopedia= and |title= are set so map |title= params to |article= params for rendering
ScriptChapter = ScriptTitle;
ScriptChapter_origin = A:ORIGIN('ScriptTitle')
TransChapter = TransTitle;
ChapterURL = URL;
ChapterURL_origin = URL_origin;
ChapterUrlAccess = UrlAccess;
ChapterFormat = Format;
if not utilities.is_set (ChapterURL) and utilities.is_set (TitleLink) then
Chapter = utilities.make_wikilink (TitleLink, Chapter);
end
Title = Periodical; -- now map |encyclopedia= params to |title= params for rendering
ScriptTitle = ScriptPeriodical or '';
TransTitle = TransEncyclopedia or '';
Periodical = ''; -- redundant so unset
ScriptPeriodical = '';
URL = '';
Format = '';
TitleLink = '';
end
elseif utilities.is_set (Chapter) or utilities.is_set (ScriptChapter) then -- |title= not set
Title = Periodical; -- |encyclopedia= set and |article= set so map |encyclopedia= to |title= for rendering
ScriptTitle = ScriptPeriodical or '';
TransTitle = TransEncyclopedia or '';
Periodical = ''; -- redundant so unset
ScriptPeriodical = '';
end
end
end
-- special case for cite techreport.
local ID = A['ID'];
if (config.CitationClass == "techreport") then -- special case for cite techreport
if utilities.is_set (A['Number']) then -- cite techreport uses 'number', which other citations alias to 'issue'
if not utilities.is_set (ID) then -- can we use ID for the "number"?
ID = A['Number']; -- yes, use it
else -- ID has a value so emit error message
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'id') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'number')});
end
end
end
-- Account for the oddity that is {{cite conference}}, before generation of COinS data.
local ChapterLink -- = A['ChapterLink']; -- deprecated as a parameter but still used internally by cite episode
local Conference = A['Conference'];
local BookTitle = A['BookTitle'];
local TransTitle_origin = A:ORIGIN ('TransTitle');
if 'conference' == config.CitationClass then
if utilities.is_set (BookTitle) then
Chapter = Title;
Chapter_origin = 'title';
-- ChapterLink = TitleLink; -- |chapter-link= is deprecated
ChapterURL = URL;
ChapterUrlAccess = UrlAccess;
ChapterURL_origin = URL_origin;
URL_origin = '';
ChapterFormat = Format;
TransChapter = TransTitle;
TransChapter_origin = TransTitle_origin;
Title = BookTitle;
Format = '';
-- TitleLink = '';
TransTitle = '';
URL = '';
end
elseif 'speech' ~= config.CitationClass then
Conference = ''; -- not cite conference or cite speech so make sure this is empty string
end
local cs2_lower = function (text) -- if mode is cs2, use lower case
if (sepc ~= '.') then
return text:lower();
end
return text;
end
local use_lowercase = ( sepc == ',' ); -- controls capitalization of certain static text
-- cite map oddities
local Cartography = "";
local Scale = "";
local Sheet = A['Sheet'] or '';
local Sheets = A['Sheets'] or '';
if config.CitationClass == "map" then
if utilities.is_set (Chapter) then --TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'map') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', Chapter_origin)}); -- add error message
end
Chapter = A['Map'];
Chapter_origin = A:ORIGIN('Map');
ChapterURL = A['MapURL'];
ChapterURL_origin = A:ORIGIN('MapURL');
TransChapter = A['TransMap'];
ScriptChapter = A['ScriptMap']
ScriptChapter_origin = A:ORIGIN('ScriptMap')
ChapterUrlAccess = MapUrlAccess;
ChapterFormat = A['MapFormat'];
Cartography = A['Cartography'];
if utilities.is_set ( Cartography ) then
Cartography = sepc .. " " .. wrap_msg ('cartography', Cartography, use_lowercase);
end
Scale = A['Scale'];
if utilities.is_set ( Scale ) then
Scale = sepc .. " " .. Scale;
end
end
-- Account for the oddities that are {{cite episode}} and {{cite serial}}, before generation of COinS data.
local Series = A['Series'];
if 'episode' == config.CitationClass or 'serial' == config.CitationClass then
local SeriesLink = A['SeriesLink'];
SeriesLink = link_title_ok (SeriesLink, A:ORIGIN ('SeriesLink'), Series, 'series'); -- check for wiki-markup in |series-link= or wiki-markup in |series= when |series-link= is set
local Network = A['Network'];
local Station = A['Station'];
local s, n = {}, {};
-- do common parameters first
if utilities.is_set (Network) then table.insert(n, Network); end
if utilities.is_set (Station) then table.insert(n, Station); end
ID = table.concat(n, sepc .. ' ');
if 'episode' == config.CitationClass then -- handle the oddities that are strictly {{cite episode}}
local Season = A['Season'];
local SeriesNumber = A['SeriesNumber'];
if utilities.is_set (Season) and utilities.is_set (SeriesNumber) then -- these are mutually exclusive so if both are set TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'season') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'seriesno')}); -- add error message
SeriesNumber = ''; -- unset; prefer |season= over |seriesno=
end
-- assemble a table of parts concatenated later into Series
if utilities.is_set (Season) then table.insert(s, wrap_msg ('season', Season, use_lowercase)); end
if utilities.is_set (SeriesNumber) then table.insert(s, wrap_msg ('seriesnum', SeriesNumber, use_lowercase)); end
if utilities.is_set (Issue) then table.insert(s, wrap_msg ('episode', Issue, use_lowercase)); end
Issue = ''; -- unset because this is not a unique parameter
Chapter = Title; -- promote title parameters to chapter
ScriptChapter = ScriptTitle;
ScriptChapter_origin = A:ORIGIN('ScriptTitle');
ChapterLink = TitleLink; -- alias |episode-link=
TransChapter = TransTitle;
ChapterURL = URL;
ChapterUrlAccess = UrlAccess;
ChapterURL_origin = URL_origin;
ChapterFormat = Format;
Title = Series; -- promote series to title
TitleLink = SeriesLink;
Series = table.concat(s, sepc .. ' '); -- this is concatenation of season, seriesno, episode number
if utilities.is_set (ChapterLink) and not utilities.is_set (ChapterURL) then -- link but not URL
Chapter = utilities.make_wikilink (ChapterLink, Chapter);
elseif utilities.is_set (ChapterLink) and utilities.is_set (ChapterURL) then -- if both are set, URL links episode;
Series = utilities.make_wikilink (ChapterLink, Series);
end
URL = ''; -- unset
TransTitle = '';
ScriptTitle = '';
Format = '';
else -- now oddities that are cite serial
Issue = ''; -- unset because this parameter no longer supported by the citation/core version of cite serial
Chapter = A['Episode']; -- TODO: make |episode= available to cite episode someday?
if utilities.is_set (Series) and utilities.is_set (SeriesLink) then
Series = utilities.make_wikilink (SeriesLink, Series);
end
Series = utilities.wrap_style ('italic-title', Series); -- series is italicized
end
end
-- end of {{cite episode}} stuff
-- handle type parameter for those CS1 citations that have default values
local TitleType = A['TitleType'];
local Degree = A['Degree'];
if utilities.in_array (config.CitationClass, {'AV-media-notes', 'document', 'interview', 'mailinglist', 'map', 'podcast', 'pressrelease', 'report', 'speech', 'techreport', 'thesis'}) then
TitleType = set_titletype (config.CitationClass, TitleType);
if utilities.is_set (Degree) and "Thesis" == TitleType then -- special case for cite thesis
TitleType = Degree .. ' ' .. cfg.title_types ['thesis']:lower();
end
end
if utilities.is_set (TitleType) then -- if type parameter is specified
TitleType = utilities.substitute ( cfg.messages['type'], TitleType); -- display it in parentheses
-- TODO: Hack on TitleType to fix bunched parentheses problem
end
-- legacy: promote PublicationDate to Date if neither Date nor Year are set.
local Date = A['Date'];
local Date_origin; -- to hold the name of parameter promoted to Date; required for date error messaging
local PublicationDate = A['PublicationDate'];
local Year = A['Year'];
if utilities.is_set (Year) then
validation.year_check (Year); -- returns nothing; emits maint message when |year= doesn't hold a 'year' value
end
if not utilities.is_set (Date) then
Date = Year; -- promote Year to Date
Year = nil; -- make nil so Year as empty string isn't used for CITEREF
if not utilities.is_set (Date) and utilities.is_set (PublicationDate) then -- use PublicationDate when |date= and |year= are not set
Date = PublicationDate; -- promote PublicationDate to Date
PublicationDate = ''; -- unset, no longer needed
Date_origin = A:ORIGIN('PublicationDate'); -- save the name of the promoted parameter
else
Date_origin = A:ORIGIN('Year'); -- save the name of the promoted parameter
end
else
Date_origin = A:ORIGIN('Date'); -- not a promotion; name required for error messaging
end
if PublicationDate == Date then PublicationDate = ''; end -- if PublicationDate is same as Date, don't display in rendered citation
--[[
Go test all of the date-holding parameters for valid MOS:DATE format and make sure that dates are real dates. This must be done before we do COinS because here is where
we get the date used in the metadata.
Date validation supporting code is in Module:Citation/CS1/Date_validation
]]
local DF = is_valid_parameter_value (A['DF'], A:ORIGIN('DF'), cfg.keywords_lists['df'], '');
if not utilities.is_set (DF) then
DF = cfg.global_df; -- local |df= if present overrides global df set by {{use xxx date}} template
end
local ArchiveURL;
local ArchiveDate;
local ArchiveFormat = A['ArchiveFormat'];
local archive_url_timestamp; -- timestamp from wayback machine url
ArchiveURL, ArchiveDate, archive_url_timestamp = archive_url_check (A['ArchiveURL'], A['ArchiveDate'])
ArchiveFormat = style_format (ArchiveFormat, ArchiveURL, 'archive-format', 'archive-url');
ArchiveURL, ArchiveDate = is_unique_archive_url (ArchiveURL, URL, ChapterURL, A:ORIGIN('ArchiveURL'), ArchiveDate); -- add error message when URL or ChapterURL == ArchiveURL
local AccessDate = A['AccessDate'];
local COinS_date = {}; -- holds date info extracted from |date= for the COinS metadata by Module:Date verification
local DoiBroken = A['DoiBroken'];
local Embargo = A['Embargo'];
local anchor_year; -- used in the CITEREF identifier
do -- create defined block to contain local variables error_message, date_parameters_list, mismatch
local error_message = '';
-- AirDate has been promoted to Date so not necessary to check it
local date_parameters_list = {
['access-date'] = {val = AccessDate, name = A:ORIGIN ('AccessDate')},
['archive-date'] = {val = ArchiveDate, name = A:ORIGIN ('ArchiveDate')},
['date'] = {val = Date, name = Date_origin},
['doi-broken-date'] = {val = DoiBroken, name = A:ORIGIN ('DoiBroken')},
['pmc-embargo-date'] = {val = Embargo, name = A:ORIGIN ('Embargo')},
['publication-date'] = {val = PublicationDate, name = A:ORIGIN ('PublicationDate')},
['year'] = {val = Year, name = A:ORIGIN ('Year')},
};
local error_list = {};
anchor_year, Embargo = validation.dates(date_parameters_list, COinS_date, error_list);
if utilities.is_set (Year) and utilities.is_set (Date) then -- both |date= and |year= not normally needed;
validation.year_date_check (Year, A:ORIGIN ('Year'), Date, A:ORIGIN ('Date'), error_list);
end
if 0 == #error_list then -- error free dates only; 0 when error_list is empty
local modified = false; -- flag
if utilities.is_set (DF) then -- if we need to reformat dates
modified = validation.reformat_dates (date_parameters_list, DF); -- reformat to DF format, use long month names if appropriate
end
if true == validation.date_hyphen_to_dash (date_parameters_list) then -- convert hyphens to dashes where appropriate
modified = true;
utilities.set_message ('maint_date_format'); -- hyphens were converted so add maint category
end
-- for those wikis that can and want to have English date names translated to the local language; not supported at en.wiki
if cfg.date_name_auto_xlate_enable and validation.date_name_xlate (date_parameters_list, cfg.date_digit_auto_xlate_enable ) then
utilities.set_message ('maint_date_auto_xlated'); -- add maint cat
modified = true;
end
if modified then -- if the date_parameters_list values were modified
AccessDate = date_parameters_list['access-date'].val; -- overwrite date holding parameters with modified values
ArchiveDate = date_parameters_list['archive-date'].val;
Date = date_parameters_list['date'].val;
DoiBroken = date_parameters_list['doi-broken-date'].val;
PublicationDate = date_parameters_list['publication-date'].val;
end
if archive_url_timestamp and utilities.is_set (ArchiveDate) then
validation.archive_date_check (ArchiveDate, archive_url_timestamp, DF); -- does YYYYMMDD in archive_url_timestamp match date in ArchiveDate
end
else
utilities.set_message ('err_bad_date', {utilities.make_sep_list (#error_list, error_list)}); -- add this error message
end
end -- end of do
if utilities.in_array (config.CitationClass, {'book', 'encyclopaedia'}) or -- {{cite book}}, {{cite encyclopedia}}; TODO: {{cite conference}} and others?
('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) or -- {{citation}} as an encylopedia citation
('citation' == config.CitationClass and not utilities.is_set (Periodical)) then -- {{citation}} as a book citation
if utilities.is_set (PublicationPlace) then
if not utilities.is_set (PublisherName) then
local date = COinS_date.rftdate and tonumber (COinS_date.rftdate:match ('%d%d%d%d')); -- get year portion of COinS date (because in Arabic numerals); convert string to number
if date and (1850 <= date) then -- location has no publisher; if date is 1850 or later
utilities.set_message ('maint_location_no_publisher'); -- add maint cat
end
else -- PublisherName has a value
if cfg.keywords_xlate['none'] == PublisherName then -- if that value is 'none' (only for book and encyclopedia citations)
PublisherName = ''; -- unset
end
end
end
end
local ID_list = {}; -- sequence table of rendered identifiers
local ID_list_coins = {}; -- table of identifiers and their values from args; key is same as cfg.id_handlers's key
local Class = A['Class']; -- arxiv class identifier
local ID_support = {
{A['ASINTLD'], 'ASIN', 'err_asintld_missing_asin', A:ORIGIN ('ASINTLD')},
{DoiBroken, 'DOI', 'err_doibroken_missing_doi', A:ORIGIN ('DoiBroken')},
{Embargo, 'PMC', 'err_embargo_missing_pmc', A:ORIGIN ('Embargo')},
}
ID_list, ID_list_coins = identifiers.identifier_lists_get (args, {
DoiBroken = DoiBroken, -- for |doi=
ASINTLD = A['ASINTLD'], -- for |asin=
Embargo = Embargo, -- for |pmc=
Class = Class, -- for |arxiv=
CitationClass = config.CitationClass, -- for |arxiv=
Year=anchor_year, -- for |isbn=
}, ID_support);
if 'citation' == config.CitationClass then -- catch ve/citoid malformed book cites in {{citation}} templates
for _, id in ipairs (ID_list) do -- search through the ID_list sequence looking for an ISBN identifier string
if id:find ('ISBN', 3, true) then -- plain find, start at index 3 ([[ISBN)
if utilities.is_set (Periodical) then -- when a |work= alias is set
utilities.set_message ('maint_work_isbn'); -- add maint cat
end
end
end
end
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, {{cite medrxiv}}, {{cite ssrn}}, before generation of COinS data.
if utilities.in_array (config.CitationClass, whitelist.preprint_template_list_t) then -- |arxiv= or |eprint= required for cite arxiv; |biorxiv=, |citeseerx=, |medrxiv=, |ssrn= required for their templates
if not (args[cfg.id_handlers[config.CitationClass:upper()].parameters[1]] or -- can't use ID_list_coins k/v table here because invalid parameters omitted
args[cfg.id_handlers[config.CitationClass:upper()].parameters[2]]) then -- which causes unexpected parameter missing error message
utilities.set_message ('err_' .. config.CitationClass .. '_missing'); -- add error message
end
Periodical = ({['arxiv'] = 'arXiv', ['biorxiv'] = 'bioRxiv', ['citeseerx'] = 'CiteSeerX', ['medrxiv'] = 'medRxiv', ['ssrn'] = 'Social Science Research Network'})[config.CitationClass];
end
-- Link the title of the work if no |url= was provided, but we have a |pmc= or a |doi= with |doi-access=free
if config.CitationClass == "journal" and not utilities.is_set (URL) and not utilities.is_set (TitleLink) and not utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) then -- TODO: remove 'none' once existing citations have been switched to 'off', so 'none' can be used as token for "no title" instead
if 'none' ~= cfg.keywords_xlate[auto_select] then -- if auto-linking not disabled
if identifiers.auto_link_urls[auto_select] then -- manual selection
URL = identifiers.auto_link_urls[auto_select]; -- set URL to be the same as identifier's external link
URL_origin = cfg.id_handlers[auto_select:upper()].parameters[1]; -- set URL_origin to parameter name for use in error message if citation is missing a |title=
elseif identifiers.auto_link_urls['pmc'] then -- auto-select PMC
URL = identifiers.auto_link_urls['pmc']; -- set URL to be the same as the PMC external link if not embargoed
URL_origin = cfg.id_handlers['PMC'].parameters[1]; -- set URL_origin to parameter name for use in error message if citation is missing a |title=
elseif identifiers.auto_link_urls['doi'] then -- auto-select DOI
URL = identifiers.auto_link_urls['doi'];
URL_origin = cfg.id_handlers['DOI'].parameters[1];
end
end
if utilities.is_set (URL) then -- set when using an identifier-created URL
if utilities.is_set (AccessDate) then -- |access-date= requires |url=; identifier-created URL is not |url=
utilities.set_message ('err_accessdate_missing_url'); -- add an error message
AccessDate = ''; -- unset
end
if utilities.is_set (ArchiveURL) then -- |archive-url= requires |url=; identifier-created URL is not |url=
utilities.set_message ('err_archive_missing_url'); -- add an error message
ArchiveURL = ''; -- unset
end
end
end
-- At this point fields may be nil if they weren't specified in the template use. We can use that fact.
-- Test if citation has no title
if not utilities.is_set (Title) and not utilities.is_set (TransTitle) and not utilities.is_set (ScriptTitle) then -- has special case for cite episode
utilities.set_message ('err_citation_missing_title', {'episode' == config.CitationClass and 'series' or 'title'});
end
if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and
utilities.in_array (config.CitationClass, {'journal', 'citation'}) and
(utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and
('journal' == Periodical_origin or 'script-journal' == ScriptPeriodical_origin) then -- special case for journal cites
Title = ''; -- set title to empty string
utilities.set_message ('maint_untitled'); -- add maint cat
end
if 'journal' == config.CitationClass or ('citation' == config.CitationClass and utilities.is_set (Periodical) and 'journal' == Periodical_origin) then
if is_page_art_num (((utilities.is_set (Page) and Page) or (utilities.is_set (Pages) and Pages)) or nil, ID_list_coins['DOI']) then -- does |page(s)= look like it holds an article number
utilities.set_message ('maint_page_art_num'); -- add maint cat
end
end
-- COinS metadata (see <http://ocoins.info/>) for automated parsing of citation information.
-- handle the oddity that is cite encyclopedia and {{citation |encyclopedia=something}}. Here we presume that
-- when Periodical, Title, and Chapter are all set, then Periodical is the book (encyclopedia) title, Title
-- is the article title, and Chapter is a section within the article. So, we remap
local coins_chapter = Chapter; -- default assuming that remapping not required
local coins_title = Title; -- et tu
if 'encyclopaedia' == config.CitationClass or ('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) then
if utilities.is_set (Chapter) and utilities.is_set (Title) and utilities.is_set (Periodical) then -- if all are used then
coins_chapter = Title; -- remap
coins_title = Periodical;
end
end
local coins_author = a; -- default for coins rft.au
if 0 < #c then -- but if contributor list
coins_author = c; -- use that instead
end
-- this is the function call to COinS()
local OCinSoutput = metadata.COinS({
['Periodical'] = utilities.strip_apostrophe_markup (Periodical), -- no markup in the metadata
['Encyclopedia'] = Encyclopedia, -- just a flag; content ignored by ~/COinS
['Chapter'] = metadata.make_coins_title (coins_chapter, ScriptChapter), -- Chapter and ScriptChapter stripped of bold / italic / accept-as-written markup
['Degree'] = Degree; -- cite thesis only
['Title'] = metadata.make_coins_title (coins_title, ScriptTitle), -- Title and ScriptTitle stripped of bold / italic / accept-as-written markup
['PublicationPlace'] = PublicationPlace,
['Date'] = COinS_date.rftdate, -- COinS_date.* has correctly formatted date values if Date is valid;
['Season'] = COinS_date.rftssn,
['Quarter'] = COinS_date.rftquarter,
['Chron'] = COinS_date.rftchron,
['Series'] = Series,
['Volume'] = Volume,
['Issue'] = Issue,
['ArticleNumber'] = ArticleNumber,
['Pages'] = coins_pages or metadata.get_coins_pages (first_set ({Sheet, Sheets, Page, Pages, At, QuotePage, QuotePages}, 7)), -- pages stripped of external links
['Edition'] = Edition,
['PublisherName'] = PublisherName or Newsgroup, -- any apostrophe markup already removed from PublisherName
['URL'] = first_set ({ChapterURL, URL}, 2),
['Authors'] = coins_author,
['ID_list'] = ID_list_coins,
['RawPage'] = this_page.prefixedText,
}, config.CitationClass);
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, {{cite medrxiv}}, and {{cite ssrn}} AFTER generation of COinS data.
if utilities.in_array (config.CitationClass, whitelist.preprint_template_list_t) then -- we have set rft.jtitle in COinS to arXiv, bioRxiv, CiteSeerX, medRxiv, or ssrn now unset so it isn't displayed
Periodical = ''; -- periodical not allowed in these templates; if article has been published, use cite journal
end
-- special case for cite newsgroup. Do this after COinS because we are modifying Publishername to include some static text
if 'newsgroup' == config.CitationClass and utilities.is_set (Newsgroup) then
PublisherName = utilities.substitute (cfg.messages['newsgroup'], external_link( 'news:' .. Newsgroup, Newsgroup, Newsgroup_origin, nil ));
end
local Editors;
local EditorCount; -- used only for choosing {ed.) or (eds.) annotation at end of editor name-list
local Contributors; -- assembled contributors name list
local contributor_etal;
local Translators; -- assembled translators name list
local translator_etal;
local t = {}; -- translators list from |translator-lastn= / translator-firstn= pairs
t = extract_names (args, 'TranslatorList'); -- fetch translator list from |translatorn= / |translator-lastn=, -firstn=, -linkn=, -maskn=
local Interviewers;
local interviewers_list = {};
interviewers_list = extract_names (args, 'InterviewerList'); -- process preferred interviewers parameters
local interviewer_etal;
-- Now perform various field substitutions.
-- We also add leading spaces and surrounding markup and punctuation to the
-- various parts of the citation, but only when they are non-nil.
do
local last_first_list;
local control = {
format = NameListStyle, -- empty string, '&', 'amp', 'and', or 'vanc'
maximum = nil, -- as if display-authors or display-editors not set
mode = Mode
};
do -- do editor name list first because the now unsupported coauthors used to modify control table
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayEditors'], A['DisplayEditors'], A:ORIGIN ('DisplayEditors'), #e);
control.maximum, editor_etal = get_display_names (display_names, #e, 'editors', editor_etal, param);
Editors, EditorCount = list_people (control, e, editor_etal);
if 1 == EditorCount and (true == editor_etal or 1 < #e) then -- only one editor displayed but includes etal then
EditorCount = 2; -- spoof to display (eds.) annotation
end
end
do -- now do interviewers
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayInterviewers'], A['DisplayInterviewers'], A:ORIGIN ('DisplayInterviewers'), #interviewers_list);
control.maximum, interviewer_etal = get_display_names (display_names, #interviewers_list, 'interviewers', interviewer_etal, param);
Interviewers = list_people (control, interviewers_list, interviewer_etal);
end
do -- now do translators
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayTranslators'], A['DisplayTranslators'], A:ORIGIN ('DisplayTranslators'), #t);
control.maximum, translator_etal = get_display_names (display_names, #t, 'translators', translator_etal, param);
Translators = list_people (control, t, translator_etal);
end
do -- now do contributors
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayContributors'], A['DisplayContributors'], A:ORIGIN ('DisplayContributors'), #c);
control.maximum, contributor_etal = get_display_names (display_names, #c, 'contributors', contributor_etal, param);
Contributors = list_people (control, c, contributor_etal);
end
do -- now do authors
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayAuthors'], A['DisplayAuthors'], A:ORIGIN ('DisplayAuthors'), #a, author_etal);
control.maximum, author_etal = get_display_names (display_names, #a, 'authors', author_etal, param);
last_first_list = list_people (control, a, author_etal);
if utilities.is_set (Authors) then
Authors, author_etal = name_has_etal (Authors, author_etal, false, 'authors'); -- find and remove variations on et al.
if author_etal then
Authors = Authors .. ' ' .. cfg.messages['et al']; -- add et al. to authors parameter
end
else
Authors = last_first_list; -- either an author name list or an empty string
end
end -- end of do
if utilities.is_set (Authors) and utilities.is_set (Collaboration) then
Authors = Authors .. ' (' .. Collaboration .. ')'; -- add collaboration after et al.
end
end
local ConferenceFormat = A['ConferenceFormat'];
local ConferenceURL = A['ConferenceURL'];
ConferenceFormat = style_format (ConferenceFormat, ConferenceURL, 'conference-format', 'conference-url');
Format = style_format (Format, URL, 'format', 'url');
-- special case for chapter format so no error message or cat when chapter not supported
if not (utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia))) then
ChapterFormat = style_format (ChapterFormat, ChapterURL, 'chapter-format', 'chapter-url');
end
if not utilities.is_set (URL) then
if utilities.in_array (config.CitationClass, {"web", "podcast", "mailinglist"}) or -- |url= required for {{cite web}}, {{cite podcast}}, and {{cite mailing list}}
('citation' == config.CitationClass and ('website' == Periodical_origin or 'script-website' == ScriptPeriodical_origin)) then -- and required for {{citation}} with |website= or |script-website=
if not url_was_archive_today then -- is <URL> empty/missing because it was a deprecated archive.today url
utilities.set_message ('err_cite_web_url'); -- no; emit an error message for an empty/ missing |url=
end
end
-- do we have |accessdate= without either |url= or |chapter-url=?
if utilities.is_set (AccessDate) and not utilities.is_set (ChapterURL) then -- ChapterURL may be set when URL is not set;
utilities.set_message ('err_accessdate_missing_url');
AccessDate = '';
end
end
local UrlStatus = is_valid_parameter_value (A['UrlStatus'], A:ORIGIN('UrlStatus'), cfg.keywords_lists['url-status'], '');
local OriginalURL
local OriginalURL_origin
local OriginalFormat
local OriginalAccess;
UrlStatus = UrlStatus:lower(); -- used later when assembling archived text
if utilities.is_set ( ArchiveURL ) then
if utilities.is_set (ChapterURL) then -- if chapter-url= is set apply archive url to it
OriginalURL = ChapterURL; -- save copy of source chapter's url for archive text
OriginalURL_origin = ChapterURL_origin; -- name of |chapter-url= parameter for error messages
OriginalFormat = ChapterFormat; -- and original |chapter-format=
if 'live' ~= UrlStatus then
ChapterURL = ArchiveURL -- swap-in the archive's URL
ChapterURL_origin = A:ORIGIN('ArchiveURL') -- name of |archive-url= parameter for error messages
ChapterFormat = ArchiveFormat or ''; -- swap in archive's format
ChapterUrlAccess = nil; -- restricted access levels do not make sense for archived URLs
end
elseif utilities.is_set (URL) then
OriginalURL = URL; -- save copy of original source URL
OriginalURL_origin = URL_origin; -- name of URL parameter for error messages
OriginalFormat = Format; -- and original |format=
OriginalAccess = UrlAccess;
if 'live' ~= UrlStatus then -- if URL set then |archive-url= applies to it
URL = ArchiveURL -- swap-in the archive's URL
URL_origin = A:ORIGIN('ArchiveURL') -- name of archive URL parameter for error messages
Format = ArchiveFormat or ''; -- swap in archive's format
UrlAccess = nil; -- restricted access levels do not make sense for archived URLs
end
end
elseif utilities.is_set (UrlStatus) then -- if |url-status= is set when |archive-url= is not set
utilities.set_message ('maint_url_status'); -- add maint cat
end
if utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or -- if any of the 'periodical' cites except encyclopedia
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia)) then
local chap_param;
if utilities.is_set (Chapter) then -- get a parameter name from one of these chapter related meta-parameters
chap_param = A:ORIGIN ('Chapter')
elseif utilities.is_set (TransChapter) then
chap_param = A:ORIGIN ('TransChapter')
elseif utilities.is_set (ChapterURL) then
chap_param = A:ORIGIN ('ChapterURL')
elseif utilities.is_set (ScriptChapter) then
chap_param = ScriptChapter_origin;
else utilities.is_set (ChapterFormat)
chap_param = A:ORIGIN ('ChapterFormat')
end
if utilities.is_set (chap_param) then -- if we found one
utilities.set_message ('err_chapter_ignored', {chap_param}); -- add error message
Chapter = ''; -- and set them to empty string to be safe with concatenation
TransChapter = '';
ChapterURL = '';
ScriptChapter = '';
ChapterFormat = '';
end
else -- otherwise, format chapter / article title
local no_quotes = false; -- default assume that we will be quoting the chapter parameter value
if utilities.is_set (Contribution) and 0 < #c then -- if this is a contribution with contributor(s)
if utilities.in_array (Contribution:lower(), cfg.keywords_lists.contribution) then -- and a generic contribution title
no_quotes = true; -- then render it unquoted
end
end
Chapter = format_chapter_title (ScriptChapter, ScriptChapter_origin, Chapter, Chapter_origin, TransChapter, TransChapter_origin, ChapterURL, ChapterURL_origin, no_quotes, ChapterUrlAccess); -- Contribution is also in Chapter
if utilities.is_set (Chapter) then
Chapter = Chapter .. ChapterFormat ;
if 'map' == config.CitationClass and utilities.is_set (TitleType) then
Chapter = Chapter .. ' ' .. TitleType; -- map annotation here; not after title
end
Chapter = Chapter .. sepc .. ' ';
elseif utilities.is_set (ChapterFormat) then -- |chapter= not set but |chapter-format= is so ...
Chapter = ChapterFormat .. sepc .. ' '; -- ... ChapterFormat has error message, we want to see it
end
end
-- Format main title
local plain_title = false;
local accept_title;
Title, accept_title = utilities.has_accept_as_written (Title, true); -- remove accept-this-as-written markup when it wraps all of <Title>
if accept_title and ('' == Title) then -- only support forced empty for now "(())"
Title = cfg.messages['notitle']; -- replace by predefined "No title" message
-- TODO: utilities.set_message ( 'err_redundant_parameters', ...); -- issue proper error message instead of muting
ScriptTitle = ''; -- just mute for now
TransTitle = ''; -- just mute for now
plain_title = true; -- suppress text decoration for descriptive title
utilities.set_message ('maint_untitled'); -- add maint cat
end
if not accept_title then -- <Title> not wrapped in accept-as-written markup
if '...' == Title:sub (-3) then -- if ellipsis is the last three characters of |title=
Title = Title:gsub ('(%.%.%.)%.+$', '%1'); -- limit the number of dots to three
elseif not mw.ustring.find (Title, '%.%s*%a%.$') and -- end of title is not a 'dot-(optional space-)letter-dot' initialism ...
not mw.ustring.find (Title, '%s+%a%.$') then -- ...and not a 'space-letter-dot' initial (''Allium canadense'' L.)
Title = mw.ustring.gsub(Title, '%' .. sepc .. '$', ''); -- remove any trailing separator character; sepc and ms.ustring() here for languages that use multibyte separator characters
end
if utilities.is_set (ArchiveURL) and is_archived_copy (Title) then
utilities.set_message ('maint_archived_copy'); -- add maintenance category before we modify the content of Title
end
if is_generic ('generic_titles', Title) then
utilities.set_message ('err_generic_title'); -- set an error message
end
end
if (not plain_title) and (utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'document', 'pressrelease', 'podcast', 'newsgroup', 'mailinglist', 'interview', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia)) or
('map' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)))) then -- special case for cite map when the map is in a periodical treat as an article
Title = kern_quotes (Title); -- if necessary, separate title's leading and trailing quote marks from module provided quote marks
Title = utilities.wrap_style ('quoted-title', Title);
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle );
elseif plain_title or ('report' == config.CitationClass) then -- no styling for cite report and descriptive titles (otherwise same as above)
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle ); -- for cite report, use this form for trans-title
else
Title = utilities.wrap_style ('italic-title', Title);
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-italic-title', TransTitle);
end
if utilities.is_set (TransTitle) then
if utilities.is_set (Title) then
TransTitle = " " .. TransTitle;
else
utilities.set_message ('err_trans_missing_title', {'title'});
end
end
if utilities.is_set (Title) then -- TODO: is this the right place to be making Wikisource URLs?
if utilities.is_set (TitleLink) and utilities.is_set (URL) then
utilities.set_message ('err_wikilink_in_url'); -- set an error message because we can't have both
TitleLink = ''; -- unset
end
if not utilities.is_set (TitleLink) and utilities.is_set (URL) then
Title = external_link (URL, Title, URL_origin, UrlAccess) .. TransTitle .. Format;
URL = ''; -- unset these because no longer needed
Format = "";
elseif utilities.is_set (TitleLink) and not utilities.is_set (URL) then
local ws_url;
ws_url = wikisource_url_make (TitleLink); -- ignore ws_label return; not used here
if ws_url then
Title = external_link (ws_url, Title .. ' ', 'ws link in title-link'); -- space char after Title to move icon away from italic text; TODO: a better way to do this?
Title = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], TitleLink, Title});
Title = Title .. TransTitle;
else
Title = utilities.make_wikilink (TitleLink, Title) .. TransTitle;
end
else
local ws_url, ws_label, L; -- Title has italic or quote markup by the time we get here which causes is_wikilink() to return 0 (not a wikilink)
ws_url, ws_label, L = wikisource_url_make (Title:gsub('^[\'"]*(.-)[\'"]*$', '%1')); -- make ws URL from |title= interwiki link (strip italic or quote markup); link portion L becomes tooltip label
if ws_url then
Title = Title:gsub ('%b[]', ws_label); -- replace interwiki link with ws_label to retain markup
Title = external_link (ws_url, Title .. ' ', 'ws link in title'); -- space char after Title to move icon away from italic text; TODO: a better way to do this?
Title = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, Title});
Title = Title .. TransTitle;
else
Title = Title .. TransTitle;
end
end
else
Title = TransTitle;
end
if utilities.is_set (Place) then
Place = " " .. wrap_msg ('written', Place, use_lowercase) .. sepc .. " ";
end
local ConferenceURL_origin = A:ORIGIN('ConferenceURL'); -- get name of parameter that holds ConferenceURL
if utilities.is_set (Conference) then
if utilities.is_set (ConferenceURL) then
Conference = external_link( ConferenceURL, Conference, ConferenceURL_origin, nil );
end
Conference = sepc .. " " .. Conference .. ConferenceFormat;
elseif utilities.is_set (ConferenceURL) then
Conference = sepc .. " " .. external_link( ConferenceURL, nil, ConferenceURL_origin, nil );
end
local Position = '';
if not utilities.is_set (Position) then
local Minutes = A['Minutes'];
local Time = A['Time'];
if utilities.is_set (Minutes) then
if utilities.is_set (Time) then --TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'minutes') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'time')});
end
Position = utilities.substitute (cfg.messages.minutes, Minutes);
else
if utilities.is_set (Time) then
local TimeCaption = A['TimeCaption']
if not utilities.is_set (TimeCaption) then
TimeCaption = cs2_lower(cfg.messages['event']);
end
Position = " " .. TimeCaption .. " " .. Time;
end
end
else
Position = " " .. Position;
At = '';
end
Page, Pages, Sheet, Sheets = format_pages_sheets (Page, Pages, Sheet, Sheets, config.CitationClass, Periodical_origin, sepc, NoPP, use_lowercase);
At = utilities.is_set (At) and (sepc .. " " .. At) or "";
Position = utilities.is_set (Position) and (sepc .. " " .. Position) or "";
if config.CitationClass == 'map' then
local Sections = A['Sections']; -- Section (singular) is an alias of Chapter so set earlier
local Inset = A['Inset'];
if utilities.is_set ( Inset ) then
Inset = sepc .. " " .. wrap_msg ('inset', Inset, use_lowercase);
end
if utilities.is_set ( Sections ) then
Section = sepc .. " " .. wrap_msg ('sections', Sections, use_lowercase);
elseif utilities.is_set ( Section ) then
Section = sepc .. " " .. wrap_msg ('section', Section, use_lowercase);
end
At = At .. Inset .. Section;
end
local Others = A['Others'];
if utilities.is_set (Others) and 0 == #a and 0 == #e then -- add maint cat when |others= has value and used without |author=, |editor=
if config.CitationClass == "AV-media-notes"
or config.CitationClass == "audio-visual" then -- special maint for AV/M which has a lot of 'false' positives right now
utilities.set_message ('maint_others_avm')
else
utilities.set_message ('maint_others');
end
end
Others = utilities.is_set (Others) and (sepc .. " " .. Others) or "";
if utilities.is_set (Translators) then
Others = safe_join ({sepc .. ' ', wrap_msg ('translated', Translators, use_lowercase), Others}, sepc);
end
if utilities.is_set (Interviewers) then
Others = safe_join ({sepc .. ' ', wrap_msg ('interview', Interviewers, use_lowercase), Others}, sepc);
end
local TitleNote = A['TitleNote'];
TitleNote = utilities.is_set (TitleNote) and (sepc .. " " .. TitleNote) or "";
if utilities.is_set (Edition) then
if Edition:match ('%f[%a][Ee]d%n?%.?$') or Edition:match ('%f[%a][Ee]dition$') then -- Ed, ed, Ed., ed., Edn, edn, Edn., edn.
utilities.set_message ('err_extra_text_edition'); -- add error message
end
Edition = " " .. wrap_msg ('edition', Edition);
else
Edition = '';
end
Series = utilities.is_set (Series) and wrap_msg ('series', {sepc, Series}) or ""; -- not the same as SeriesNum
local Agency = A['Agency'] or ''; -- |agency= is supported by {{cite magazine}}, {{cite news}}, {{cite press release}}, {{cite web}}, and certain {{citation}} templates
if utilities.is_set (Agency) then -- this testing done here because {{citation}} supports 'news' citations
if utilities.in_array (config.CitationClass, {'magazine', 'news', 'pressrelease', 'web'}) or ('citation' == config.CitationClass and utilities.in_array (Periodical_origin, {"magazine", "newspaper", "work"})) then
Agency = wrap_msg ('agency', {sepc, Agency}); -- format for rendering
else
Agency = ''; -- unset; not supported
utilities.set_message ('err_parameter_ignored', {'agency'}); -- add error message
end
end
Volume = format_volume_issue (Volume, Issue, ArticleNumber, config.CitationClass, Periodical_origin, sepc, use_lowercase);
if utilities.is_set (AccessDate) then
local retrv_text = " " .. cfg.messages['retrieved'];
AccessDate = nowrap_date (AccessDate); -- wrap in nowrap span if date in appropriate format
retrv_text = cs2_lower(retrv_text); -- if mode is cs2, lower case
AccessDate = utilities.substitute (retrv_text, AccessDate); -- add retrieved text
AccessDate = utilities.substitute (cfg.presentation['accessdate'], {sepc, AccessDate}); -- allow editors to hide accessdates
end
if utilities.is_set (ID) then ID = sepc .. " " .. ID; end
local Docket = A['Docket'];
if "thesis" == config.CitationClass and utilities.is_set (Docket) then
ID = sepc .. " Docket " .. Docket .. ID;
end
if "report" == config.CitationClass and utilities.is_set (Docket) then -- for cite report when |docket= is set
ID = sepc .. ' ' .. Docket; -- overwrite ID even if |id= is set
end
if utilities.is_set (URL) then
URL = " " .. external_link( URL, nil, URL_origin, UrlAccess );
end
-- We check length of PostScript here because it will have been nuked by
-- the quote parameters. We'd otherwise emit a message even if there wasn't
-- a displayed postscript.
-- TODO: Should the max size (1) be configurable?
-- TODO: Should we check a specific pattern?
if utilities.is_set(PostScript) and mw.ustring.len(PostScript) > 1 then
utilities.set_message ('maint_postscript')
end
local Archived;
if utilities.is_set (ArchiveURL) then
if not utilities.is_set (ArchiveDate) then -- ArchiveURL set but ArchiveDate not set
utilities.set_message ('err_archive_missing_date'); -- emit an error message
ArchiveURL = ''; -- empty string for concatenation
ArchiveDate = ''; -- empty string for concatenation
end
else
if utilities.is_set (ArchiveDate) then -- ArchiveURL not set but ArchiveDate is set
utilities.set_message ('err_archive_date_missing_url'); -- emit an error message
ArchiveURL = ''; -- empty string for concatenation
ArchiveDate = ''; -- empty string for concatenation
end
end
if utilities.is_set (ArchiveURL) then
local arch_text;
if "live" == UrlStatus then
if utilities.is_set (ArchiveDate) then
Archived = sepc .. ' ' .. utilities.substitute ( cfg.messages['archived-live'],
{ external_link( ArchiveURL, cs2_lower(cfg.messages['archived']), A:ORIGIN('ArchiveURL'), nil) .. ArchiveFormat, ArchiveDate } );
else
Archived = '';
end
if not utilities.is_set (OriginalURL) then
utilities.set_message ('err_archive_missing_url');
Archived = ''; -- empty string for concatenation
end
elseif utilities.is_set (OriginalURL) then -- UrlStatus is empty, 'dead', 'unfit', 'usurped', 'bot: unknown'
if utilities.in_array (UrlStatus, {'unfit', 'usurped', 'bot: unknown'}) then
Archived = sepc .. ' ' .. utilities.substitute ( cs2_lower(cfg.messages['archived-unfit']), ArchiveDate);
if 'bot: unknown' == UrlStatus then
utilities.set_message ('maint_bot_unknown'); -- and add a category if not already added
else
utilities.add_prop_cat ('unfit'); -- and add a category if not already added
end
else -- UrlStatus is empty, 'dead'
if utilities.is_set (ArchiveDate) then
Archived = sepc .. ' ' .. utilities.substitute ( cs2_lower(cfg.messages['archived-dead']),
{ external_link( OriginalURL, cfg.messages['original'], OriginalURL_origin, OriginalAccess ) .. OriginalFormat, ArchiveDate } );
else
Archived = ''; -- unset for concatenation
end
end
else -- OriginalUrl not set
utilities.set_message ('err_archive_missing_url');
Archived = ''; -- empty string for concatenation
end
elseif utilities.is_set (ArchiveFormat) then
Archived = ArchiveFormat; -- if set and ArchiveURL not set ArchiveFormat has error message
else
Archived = '';
end
local TranscriptURL = A['TranscriptURL']
local TranscriptFormat = A['TranscriptFormat'];
TranscriptFormat = style_format (TranscriptFormat, TranscriptURL, 'transcript-format', 'transcripturl');
local Transcript = A['Transcript'];
local TranscriptURL_origin = A:ORIGIN('TranscriptURL'); -- get name of parameter that holds TranscriptURL
if utilities.is_set (Transcript) then
if utilities.is_set (TranscriptURL) then
Transcript = external_link( TranscriptURL, Transcript, TranscriptURL_origin, nil );
end
Transcript = sepc .. ' ' .. Transcript .. TranscriptFormat;
elseif utilities.is_set (TranscriptURL) then
Transcript = external_link( TranscriptURL, nil, TranscriptURL_origin, nil );
end
local Publisher;
if utilities.is_set (PublicationDate) then
PublicationDate = wrap_msg ('published', PublicationDate);
end
if utilities.is_set (PublisherName) then
if utilities.is_set (PublicationPlace) then
Publisher = sepc .. " " .. PublicationPlace .. ": " .. PublisherName .. PublicationDate;
else
Publisher = sepc .. " " .. PublisherName .. PublicationDate;
end
elseif utilities.is_set (PublicationPlace) then
Publisher= sepc .. " " .. PublicationPlace .. PublicationDate;
else
Publisher = PublicationDate;
end
-- Several of the above rely upon detecting this as nil, so do it last.
if (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical) or utilities.is_set (TransPeriodical)) then
if utilities.is_set (Title) or utilities.is_set (TitleNote) then
Periodical = sepc .. " " .. format_periodical (ScriptPeriodical, ScriptPeriodical_origin, Periodical, TransPeriodical, TransPeriodical_origin);
else
Periodical = format_periodical (ScriptPeriodical, ScriptPeriodical_origin, Periodical, TransPeriodical, TransPeriodical_origin);
end
end
local Language = A['Language'];
if utilities.is_set (Language) then
Language = language_parameter (Language); -- format, categories, name from ISO639-1, etc.
else
Language=''; -- language not specified so make sure this is an empty string;
--[[ TODO: need to extract the wrap_msg from language_parameter
so that we can solve parentheses bunching problem with Format/Language/TitleType
]]
end
--[[
Handle the oddity that is cite speech. This code overrides whatever may be the value assigned to TitleNote (through |department=) and forces it to be " (Speech)" so that
the annotation directly follows the |title= parameter value in the citation rather than the |event= parameter value (if provided).
]]
if "speech" == config.CitationClass then -- cite speech only
TitleNote = TitleType; -- move TitleType to TitleNote so that it renders ahead of |event=
TitleType = ''; -- and unset
if utilities.is_set (Periodical) then -- if Periodical, perhaps because of an included |website= or |journal= parameter
if utilities.is_set (Conference) then -- and if |event= is set
Conference = Conference .. sepc .. " "; -- then add appropriate punctuation to the end of the Conference variable before rendering
end
end
end
-- Piece all bits together at last. Here, all should be non-nil.
-- We build things this way because it is more efficient in LUA
-- not to keep reassigning to the same string variable over and over.
local tcommon;
local tcommon2; -- used for book cite when |contributor= is set
local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;
-- Volume = safe_join ({Volume, pgtext}, sepc);
if utilities.in_array (config.CitationClass, {"book", "citation"}) and not utilities.is_set (Periodical) then -- special cases for book cites
if utilities.is_set (Contributors) then -- when we are citing foreword, preface, introduction, etc.
tcommon = safe_join ({Title, TitleNote}, sepc); -- author and other stuff will come after this and before tcommon2
tcommon2 = safe_join ({TitleType, Series, Language, Volume, Others, Edition, Publisher}, sepc);
else
tcommon = safe_join ({Title, TitleNote, TitleType, Series, Language, Volume, Others, Edition, Publisher}, sepc);
end
elseif 'map' == config.CitationClass then -- special cases for cite map
if utilities.is_set (Chapter) then -- map in a book; TitleType is part of Chapter
tcommon = safe_join ({Title, Edition, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc);
elseif utilities.is_set (Periodical) then -- map in a periodical
tcommon = safe_join ({Title, TitleType, Periodical, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc);
else -- a sheet or stand-alone map
tcommon = safe_join ({Title, TitleType, Edition, Scale, Series, Language, Cartography, Others, Publisher}, sepc);
end
elseif 'episode' == config.CitationClass then -- special case for cite episode
tcommon = safe_join ({Title, TitleNote, TitleType, Series, Language, Edition, Publisher}, sepc);
else -- all other CS1 templates
tcommon = safe_join ({Title, TitleNote, Conference, Periodical, TitleType, Series, Language, Volume, Others, Edition, Publisher, Agency}, sepc);
end
if #ID_list > 0 then
ID_list = safe_join( { sepc .. " ", table.concat( ID_list, sepc .. " " ), ID }, sepc );
else
ID_list = ID;
end
local Via = A['Via'];
Via = utilities.is_set (Via) and wrap_msg ('via', Via) or '';
local idcommon;
if 'audio-visual' == config.CitationClass or 'episode' == config.CitationClass then -- special case for cite AV media & cite episode position transcript
idcommon = safe_join( { ID_list, URL, Archived, Transcript, AccessDate, Via, Quote }, sepc );
else
idcommon = safe_join( { ID_list, URL, Archived, AccessDate, Via, Quote }, sepc );
end
local text;
-- local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;
local OrigDate = A['OrigDate'];
OrigDate = utilities.is_set (OrigDate) and wrap_msg ('origdate', OrigDate) or '';
if utilities.is_set (Date) then
if utilities.is_set (Authors) or utilities.is_set (Editors) then -- date follows authors or editors when authors not set
Date = " (" .. Date .. ")" .. OrigDate .. sepc .. " "; -- in parentheses
else -- neither of authors and editors set
if (string.sub(tcommon, -1, -1) == sepc) then -- if the last character of tcommon is sepc
Date = " " .. Date .. OrigDate; -- Date does not begin with sepc
else
Date = sepc .. " " .. Date .. OrigDate; -- Date begins with sepc
end
end
end
if utilities.is_set (Authors) then
if (not utilities.is_set (Date)) then -- when date is set it's in parentheses; no Authors termination
Authors = terminate_name_list (Authors, sepc); -- when no date, terminate with 0 or 1 sepc and a space
end
if utilities.is_set (Editors) then
local in_text = '';
local post_text = '';
if utilities.is_set (Chapter) and 0 == #c then
in_text = cfg.messages['in'] .. ' ';
in_text = cs2_lower(in_text); -- lowercase for cs2
end
if EditorCount <= 1 then
post_text = ' (' .. cfg.messages['editor'] .. ')'; -- be consistent with no-author, no-date case
else
post_text = ' (' .. cfg.messages['editors'] .. ')';
end
Editors = terminate_name_list (in_text .. Editors .. post_text, sepc); -- terminate with 0 or 1 sepc and a space
end
if utilities.is_set (Contributors) then -- book cite and we're citing the intro, preface, etc.
local by_text = sepc .. ' ' .. cfg.messages['by'] .. ' ';
by_text = cs2_lower(by_text); -- lowercase for cs2
Authors = by_text .. Authors; -- author follows title so tweak it here
if utilities.is_set (Editors) and utilities.is_set (Date) then -- when Editors make sure that Authors gets terminated
Authors = terminate_name_list (Authors, sepc); -- terminate with 0 or 1 sepc and a space
end
if (not utilities.is_set (Date)) then -- when date is set it's in parentheses; no Contributors termination
Contributors = terminate_name_list (Contributors, sepc); -- terminate with 0 or 1 sepc and a space
end
text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, pgtext, idcommon }, sepc );
-- text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, idcommon }, sepc );
else
text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, pgtext, idcommon }, sepc );
-- text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, idcommon }, sepc );
end
elseif utilities.is_set (Editors) then
if utilities.is_set (Date) then
if EditorCount <= 1 then
Editors = Editors .. cfg.presentation['sep_name'] .. cfg.messages['editor'];
else
Editors = Editors .. cfg.presentation['sep_name'] .. cfg.messages['editors'];
end
else
if EditorCount <= 1 then
Editors = Editors .. " (" .. cfg.messages['editor'] .. ")" .. sepc .. " "
else
Editors = Editors .. " (" .. cfg.messages['editors'] .. ")" .. sepc .. " "
end
end
text = safe_join( {Editors, Date, Chapter, Place, tcommon, pgtext, idcommon}, sepc );
-- text = safe_join( {Editors, Date, Chapter, Place, tcommon, idcommon}, sepc );
else
if utilities.in_array (config.CitationClass, {"journal", "citation"}) and utilities.is_set (Periodical) then
text = safe_join( {Chapter, Place, tcommon, pgtext, Date, idcommon}, sepc );
-- text = safe_join( {Chapter, Place, tcommon, Date, idcommon}, sepc );
else
text = safe_join( {Chapter, Place, tcommon, Date, pgtext, idcommon}, sepc );
-- text = safe_join( {Chapter, Place, tcommon, Date, idcommon}, sepc );
end
end
if utilities.is_set (PostScript) and PostScript ~= sepc then
text = safe_join( {text, sepc}, sepc ); -- Deals with italics, spaces, etc.
if '.' == sepc then -- remove final seperator if present
text = text:gsub ('%' .. sepc .. '$', ''); -- dot must be escaped here
else
text = mw.ustring.gsub (text, sepc .. '$', ''); -- using ustring for non-dot sepc (likely a non-Latin character)
end
end
text = safe_join( {text, PostScript}, sepc );
-- Now enclose the whole thing in a <cite> element
local options_t = {};
options_t.class = cite_class_attribute_make (config.CitationClass, Mode);
local Ref = is_valid_parameter_value (A['Ref'], A:ORIGIN('Ref'), cfg.keywords_lists['ref'], nil, true); -- nil when |ref=harv; A['Ref'] else
if 'none' ~= cfg.keywords_xlate[(Ref and Ref:lower()) or ''] then
local namelist_t = {}; -- holds selected contributor, author, editor name list
local year = first_set ({Year, anchor_year}, 2); -- Year first for legacy citations and for YMD dates that require disambiguation
if #c > 0 then -- if there is a contributor list
namelist_t = c; -- select it
elseif #a > 0 then -- or an author list
namelist_t = a;
elseif #e > 0 then -- or an editor list
namelist_t = e;
end
local citeref_id;
if #namelist_t > 0 then -- if there are names in namelist_t
citeref_id = make_citeref_id (namelist_t, year); -- go make the CITEREF anchor
if mw.uri.anchorEncode (citeref_id) == ((Ref and mw.uri.anchorEncode (Ref)) or '') then -- Ref may already be encoded (by {{sfnref}}) so citeref_id must be encoded before comparison
utilities.set_message ('maint_ref_duplicates_default');
end
else
citeref_id = ''; -- unset
end
options_t.id = Ref or citeref_id;
end
if string.len (text:gsub('%b<>', '')) <= 2 then -- remove html and html-like tags; then get length of what remains;
z.error_cats_t = {}; -- blank the categories list
z.error_msgs_t = {}; -- blank the error messages list
OCinSoutput = nil; -- blank the metadata string
text = ''; -- blank the the citation
utilities.set_message ('err_empty_citation'); -- set empty citation message and category
end
local render_t = {}; -- here we collect the final bits for concatenation into the rendered citation
if is_preview_mode and (0 ~= #z.error_msgs_t or 0 ~= #z.maint_cats_t) then -- when in preview mode
if not utilities.is_set (options_t.id) then -- and when this template has not created an anchor ID
math.randomseed (tonumber (mw.getLanguage ('en'):formatDate ('U')) * 10000 + os.clock() * 10000);
options_t.id = 'CITEREF_temp_preview_id_' .. math.random (100000, 999999); -- create temporary anchor ID for preview mode
end
end
if utilities.is_set (options_t.id) then -- here we wrap the rendered citation in <cite ...>...</cite> tags
options_t.id = mw.uri.anchorEncode(options_t.id); -- do this here; also used when adding preview warning messages
table.insert (render_t, utilities.substitute (cfg.presentation['cite-id'], {options_t.id, mw.text.nowiki(options_t.class), text})); -- when |ref= is set or when there is a namelist
else
table.insert (render_t, utilities.substitute (cfg.presentation['cite'], {mw.text.nowiki(options_t.class), text})); -- when |ref=none or when namelist_t empty and |ref= is missing or is empty
end
if OCinSoutput then -- blanked when citation is 'empty' so don't bother to add boilerplate metadata span
table.insert (render_t, utilities.substitute (cfg.presentation['ocins'], OCinSoutput)); -- format and append metadata to the citation
end
local template_name = cfg.citation_class_map_t[config.CitationClass];
local template_link = '[[Template:' .. template_name .. '|' .. template_name .. ']]';
local msg_prefix = '<code class="cs1-code">{{' .. template_link .. '}}</code>: ';
if 0 ~= #z.error_msgs_t then
mw.addWarning (utilities.substitute (cfg.messages.warning_msg_e, {template_link, options_t.id}));
table.insert (render_t, ' '); -- insert a space between citation and its error messages
table.sort (z.error_msgs_t); -- sort the error messages list; sorting includes wrapping <span> and <code> tags; hidden-error sorts ahead of visible-error
local hidden = true; -- presume that the only error messages emited by this template are hidden
for _, v in ipairs (z.error_msgs_t) do -- spin through the list of error messages
if v:find ('cs1-visible-error', 1, true) then -- look for the visible error class name
hidden = false; -- found one; so don't hide the error message prefix
break; -- and done because no need to look further
end
end
z.error_msgs_t[1] = table.concat ({utilities.error_comment (msg_prefix, hidden), z.error_msgs_t[1]}); -- add error message prefix to first error message to prevent extraneous punctuation
table.insert (render_t, table.concat (z.error_msgs_t, '; ')); -- make a big string of error messages and add it to the rendering
end
if 0 ~= #z.maint_cats_t then
mw.addWarning (utilities.substitute (cfg.messages.warning_msg_m, {template_link, options_t.id}));
table.sort (z.maint_cats_t); -- sort the maintenance messages list
local maint_msgs_t = {}; -- here we collect all of the maint messages
if 0 == #z.error_msgs_t then -- if no error messages
table.insert (maint_msgs_t, msg_prefix); -- insert message prefix in maint message livery
end
for _, v in ipairs( z.maint_cats_t ) do -- append maintenance categories
table.insert (maint_msgs_t, -- assemble new maint message and add it to the maint_msgs_t table
table.concat ({v, ' (', utilities.substitute (cfg.messages[':cat wikilink'], v), ')'})
);
end
table.insert (render_t, utilities.substitute (cfg.presentation['hidden-maint'], table.concat (maint_msgs_t, ' '))); -- wrap the group of maint messages with proper presentation and save
end
if not no_tracking_cats then
local sort_key;
local cat_wikilink = 'cat wikilink';
if cfg.enable_sort_keys then -- when namespace sort keys enabled
local namespace_number = mw.title.getCurrentTitle().namespace; -- get namespace number for this wikitext
sort_key = (0 ~= namespace_number and (cfg.name_space_sort_keys[namespace_number] or cfg.name_space_sort_keys.other)) or nil; -- get sort key character; nil for mainspace
cat_wikilink = (not sort_key and 'cat wikilink') or 'cat wikilink sk'; -- make <cfg.messages> key
end
for _, v in ipairs (z.error_cats_t) do -- append error categories
table.insert (render_t, utilities.substitute (cfg.messages[cat_wikilink], {v, sort_key}));
end
if cfg.id_limits_data_load_fail then -- boolean true when load failed
utilities.set_message ('maint_id_limit_load_fail'); -- done here because this maint cat emits no message
end
for _, v in ipairs (z.maint_cats_t) do -- append maintenance categories
table.insert (render_t, utilities.substitute (cfg.messages[cat_wikilink], {v, sort_key}));
end
for _, v in ipairs (z.prop_cats_t) do -- append properties categories
table.insert (render_t, utilities.substitute (cfg.messages['cat wikilink'], v)); -- no sort keys
end
end
return table.concat (render_t); -- make a big string and done
end
--[[--------------------------< V A L I D A T E >--------------------------------------------------------------
Looks for a parameter's name in one of several whitelists.
Parameters in the whitelist can have three values:
true - active, supported parameters
false - deprecated, supported parameters
nil - unsupported parameters
]]
local function validate (name, cite_class, empty)
local name = tostring (name);
local enum_name; -- parameter name with enumerator (if any) replaced with '#'
local state;
local function state_test (state, name) -- local function to do testing of state values
if true == state then return true; end -- valid actively supported parameter
if false == state then
if empty then return nil; end -- empty deprecated parameters are treated as unknowns
deprecated_parameter (name); -- parameter is deprecated but still supported
return true;
end
if 'tracked' == state then
local base_name = name:gsub ('%d', ''); -- strip enumerators from parameter names that have them to get the base name
utilities.add_prop_cat ('tracked-param', {base_name}, base_name); -- add a properties category; <base_name> modifies <key>
return true;
end
return nil;
end
if name:find ('#') then -- # is a cs1|2 reserved character so parameters with # not permitted
return nil;
end
-- replace enumerator digit(s) with # (|last25= becomes |last#=) (mw.ustring because non-Western 'local' digits)
enum_name = mw.ustring.gsub (name, '%d+$', '#'); -- where enumerator is last charaters in parameter name (these to protect |s2cid=)
enum_name = mw.ustring.gsub (enum_name, '%d+([%-l])', '#%1'); -- where enumerator is in the middle of the parameter name; |author#link= is the oddity
if 'document' == cite_class then -- special case for {{cite document}}
state = whitelist.document_parameters_t[enum_name]; -- this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
return false;
end
if utilities.in_array (cite_class, whitelist.preprint_template_list_t) then -- limited parameter sets allowed for these templates
state = whitelist.limited_parameters_t[enum_name]; -- this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
state = whitelist.preprint_arguments_t[cite_class][name]; -- look in the parameter-list for the template identified by cite_class
if true == state_test (state, name) then return true; end
return false; -- not supported because not found or name is set to nil
end -- end limited parameter-set templates
if utilities.in_array (cite_class, whitelist.unique_param_template_list_t) then -- template-specific parameters for templates that accept parameters from the basic argument list
state = whitelist.unique_arguments_t[cite_class][name]; -- look in the template-specific parameter-lists for the template identified by cite_class
if true == state_test (state, name) then return true; end
end -- if here, fall into general validation
state = whitelist.common_parameters_t[enum_name]; -- all other templates; all normal parameters allowed; this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
return false; -- not supported because not found or name is set to nil
end
--[=[-------------------------< I N T E R _ W I K I _ C H E C K >----------------------------------------------
check <value> for inter-language interwiki-link markup. <prefix> must be a MediaWiki-recognized language
code. when these values have the form (without leading colon):
[[<prefix>:link|label]] return label as plain-text
[[<prefix>:link]] return <prefix>:link as plain-text
return value as is else
]=]
local function inter_wiki_check (parameter, value)
local prefix = value:match ('%[%[(%a+):'); -- get an interwiki prefix if one exists
local _;
if prefix and cfg.inter_wiki_map[prefix:lower()] then -- if prefix is in the map, needs preceding colon so
utilities.set_message ('err_bad_paramlink', parameter); -- emit an error message
_, value, _ = utilities.is_wikilink (value); -- extract label portion from wikilink
end
return value;
end
--[[--------------------------< M I S S I N G _ P I P E _ C H E C K >------------------------------------------
Look at the contents of a parameter. If the content has a string of characters and digits followed by an equal
sign, compare the alphanumeric string to the list of cs1|2 parameters. If found, then the string is possibly a
parameter that is missing its pipe. There are two tests made:
{{cite ... |title=Title access-date=2016-03-17}} -- the first parameter has a value and whitespace separates that value from the missing pipe parameter name
{{cite ... |title=access-date=2016-03-17}} -- the first parameter has no value (whitespace after the first = is trimmed by MediaWiki)
cs1|2 shares some parameter names with XML/HTML attributes: class=, title=, etc. To prevent false positives XML/HTML
tags are removed before the search.
If a missing pipe is detected, this function adds the missing pipe maintenance category.
]]
local function missing_pipe_check (parameter, value)
local capture;
value = value:gsub ('%b<>', ''); -- remove XML/HTML tags because attributes: class=, title=, etc.
capture = value:match ('%s+(%a[%w%-]+)%s*=') or value:match ('^(%a[%w%-]+)%s*='); -- find and categorize parameters with possible missing pipes
if capture and validate (capture) then -- if the capture is a valid parameter name
utilities.set_message ('err_missing_pipe', parameter);
end
end
--[[--------------------------< H A S _ E X T R A N E O U S _ P U N C T >--------------------------------------
look for extraneous terminal punctuation in most parameter values; parameters listed in skip table are not checked
]]
local function has_extraneous_punc (param, value)
if 'number' == type (param) then
return;
end
param = param:gsub ('%d+', '#'); -- enumerated name-list mask params allow terminal punct; normalize
if cfg.punct_skip[param] then
return; -- parameter name found in the skip table so done
end
if value:match ('[,;:]$') then
utilities.set_message ('maint_extra_punct'); -- has extraneous punctuation; add maint cat
end
if value:match ('^=') then -- sometimes an extraneous '=' character appears ...
utilities.set_message ('maint_extra_punct'); -- has extraneous punctuation; add maint cat
end
end
--[[--------------------------< H A S _ T W L _ U R L >--------------------------------------------------------
look for The Wikipedia Library urls in url-holding parameters. TWL urls are accessible only for readers who are
active extended confirmed Wikipedia editors. This function sets an error message when such urls are discovered
and when appropriate, sets the |<param>-url-access=subscription. returns nothing.
looks for: '.wikipedialibrary.idm.oclc.org'
]]
local function has_twl_url (url_params_t, cite_args_t)
local url_error_t = {}; -- sequence of url-holding parameters that have a TWL url
for param, value in pairs (url_params_t) do
if value:find ('%.wikipedialibrary%.idm%.oclc%.org') then -- has the TWL base url?
table.insert (url_error_t, param); -- add parameter name to the error list
end
end
if 0 ~= #url_error_t then -- non-zero when there are errors
table.sort (url_error_t); -- sor for error messaging
for i, param in ipairs (url_error_t) do
if cfg.url_access_map_t[param] then -- if <param> has a matching -access parameter
cite_args_t[cfg.url_access_map_t[param]] = cfg.keywords_xlate.subscription; -- set |<param>-url-access=subscription
end
url_error_t[i] = utilities.wrap_style ('parameter', param); -- make the parameter pretty for error message
end
utilities.set_message ('err_param_has_twl_url', {utilities.make_sep_list (#url_error_t, url_error_t)}); -- add this error message
end
end
--[[--------------------------< H A S _ E X T R A N E O U S _ U R L >------------------------------------------
look for extraneous url parameter values; parameters listed in skip table are not checked
]]
local function has_extraneous_url (non_url_param_t)
local url_error_t = {};
check_for_url (non_url_param_t, url_error_t); -- extraneous url check
if 0 ~= #url_error_t then -- non-zero when there are errors
table.sort (url_error_t);
utilities.set_message ('err_param_has_ext_link', {utilities.make_sep_list (#url_error_t, url_error_t)}); -- add this error message
end
end
--[[--------------------------< _ C I T A T I O N >------------------------------------------------------------
Module entry point
frame – from template call (citation()); may be nil when called from another module
args_t – table of all cs1|2 parameters in the template (the parent frame)
config_t – table of template-supplied parameter (the #invoke frame)
]]
local function _citation (frame, args_t, config_t) -- save a copy in case we need to display an error message in preview mode
if not frame then
frame = mw.getCurrentFrame(); -- if called from another module, get a frame for frame-provided functions
end
-- i18n: set the name that your wiki uses to identify sandbox subpages from sandbox template invoke (or can be set here)
local sandbox = ((config_t.SandboxPath and '' ~= config_t.SandboxPath) and config_t.SandboxPath) or '/sandbox'; -- sandbox path from {{#invoke:Citation/CS1/sandbox|citation|SandboxPath=/...}}
is_sandbox = nil ~= string.find (frame:getTitle(), sandbox, 1, true); -- is this invoke the sandbox module?
sandbox = is_sandbox and sandbox or ''; -- use i18n sandbox to load sandbox modules when this module is the sandox; live modules else
cfg = mw.loadData ('Module:Citation/CS1/Configuration' .. sandbox); -- load sandbox versions of support modules when {{#invoke:Citation/CS1/sandbox|...}}; live modules else
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist' .. sandbox);
utilities = require ('Module:Citation/CS1/Utilities' .. sandbox);
validation = require ('Module:Citation/CS1/Date_validation' .. sandbox);
identifiers = require ('Module:Citation/CS1/Identifiers' .. sandbox);
metadata = require ('Module:Citation/CS1/COinS' .. sandbox);
utilities.set_selected_modules (cfg); -- so that functions in Utilities can see the selected cfg tables
identifiers.set_selected_modules (cfg, utilities); -- so that functions in Identifiers can see the selected cfg tables and selected Utilities module
validation.set_selected_modules (cfg, utilities); -- so that functions in Date validataion can see selected cfg tables and the selected Utilities module
metadata.set_selected_modules (cfg, utilities); -- so that functions in COinS can see the selected cfg tables and selected Utilities module
z = utilities.z; -- table of error and category tables in Module:Citation/CS1/Utilities
local cite_args_t = {}; -- because args_t is the parent (template) frame args (which cannot be modified); params and their values will be placed here
is_preview_mode = not utilities.is_set (frame:preprocess ('{{REVISIONID}}'));
local suggestions = {}; -- table where we store suggestions if we need to loadData them
local error_text; -- used as a flag
local capture; -- the single supported capture when matching unknown parameters using patterns
local empty_unknowns = {}; -- sequence table to hold empty unknown params for error message listing
for k, v in pairs (args_t) do -- get parameters from the parent (template) frame
v = mw.ustring.gsub (v, '^%s*(.-)%s*$', '%1'); -- trim leading/trailing whitespace; when v is only whitespace, becomes empty string
if v ~= '' then
if cfg.enum_needs_xlation and 'string' == type (k) then -- for wikis that set date_names['local_digits'] to non-western digits
k = mw.ustring.gsub (k, '%d', cfg.date_names.local_digits); -- translate 'local' digits enumerators to Western 0-9
end
if not validate( k, config_t.CitationClass ) then
if type (k) ~= 'string' then -- exclude empty numbered parameters
if v:match("%S+") ~= nil then
error_text = utilities.set_message ('err_text_ignored', {v});
end
elseif validate (k:lower(), config_t.CitationClass) then
error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, k:lower()}); -- suggest the lowercase version of the parameter
else
if nil == suggestions.suggestions then -- if this table is nil then we need to load it
suggestions = mw.loadData ('Module:Citation/CS1/Suggestions' .. sandbox); --load sandbox version of suggestion module when {{#invoke:Citation/CS1/sandbox|...}}; live module else
end
for pattern, param in pairs (suggestions.patterns) do -- loop through the patterns to see if we can suggest a proper parameter
capture = k:match (pattern); -- the whole match if no capture in pattern else the capture if a match
if capture then -- if the pattern matches
param = utilities.substitute (param, capture); -- add the capture to the suggested parameter (typically the enumerator)
if validate (param, config_t.CitationClass) then -- validate the suggestion to make sure that the suggestion is supported by this template (necessary for limited parameter lists)
error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, param}); -- set the suggestion error message
else
error_text = utilities.set_message ('err_parameter_ignored', {k}); -- suggested param not supported by this template
v = ''; -- unset
end
end
end
if not utilities.is_set (error_text) then -- couldn't match with a pattern, is there an explicit suggestion?
if (suggestions.suggestions[ k:lower() ] ~= nil) and validate (suggestions.suggestions[ k:lower() ], config_t.CitationClass) then
utilities.set_message ('err_parameter_ignored_suggest', {k, suggestions.suggestions[ k:lower() ]});
else
utilities.set_message ('err_parameter_ignored', {k});
v = ''; -- unset value assigned to unrecognized parameters (this for the limited parameter lists)
end
end
end
end
cite_args_t[k] = v; -- save this parameter and its value
elseif not utilities.is_set (v) then -- for empty parameters
if not validate (k, config_t.CitationClass, true) then -- is this empty parameter a valid parameter
k = ('' == k) and cfg.err_msg_supl.empty_str or k; -- when k is empty string (or was space(s) trimmed to empty string), replace with descriptive text
table.insert (empty_unknowns, utilities.wrap_style ('parameter', k)); -- format for error message and add to the list
end
end
end
if 0 ~= #empty_unknowns then -- create empty unknown error message
utilities.set_message ('err_param_unknown_empty', {
1 == #empty_unknowns and '' or 's',
utilities.make_sep_list (#empty_unknowns, empty_unknowns)
});
end
local non_url_param_t = {}; -- table of parameters and values that are not url-holding parameters
local url_param_t = {}; -- table of url-holding paramters and their values
for k, v in pairs (cite_args_t) do
if 'string' == type (k) then -- don't evaluate positional parameters
has_invisible_chars (k, v); -- look for invisible characters
end
has_extraneous_punc (k, v); -- look for extraneous terminal punctuation in parameter values
missing_pipe_check (k, v); -- do we think that there is a parameter that is missing a pipe?
cite_args_t[k] = inter_wiki_check (k, v); -- when language interwiki-linked parameter missing leading colon replace with wiki-link label
if 'string' == type (k) then -- when parameter k is not positional
if not cfg.url_skip[k] then -- and not in url skip table
non_url_param_t[k] = v; -- make a parameter/value list for extraneous url check
else -- and is in url skip table (a url-holding parameter)
url_param_t[k] = v; -- make a parameter/value list to check for values that are The Wikipedia Library url
end
end
end
if cfg.suppress_archive_today_urls then
has_archive_today_url (cite_args_t); -- look for and suppress archive.today urls and dependent parameters for all templates
end
has_extraneous_url (non_url_param_t); -- look for url in parameter values where a url does not belong
has_twl_url (url_param_t, cite_args_t); -- look for url-holding parameters that hold a The Wikipedia Library url
return table.concat ({
frame:extensionTag ('templatestyles', '', {src='Module:Citation/CS1' .. sandbox .. '/styles.css'}),
citation0 (config_t, cite_args_t)
});
end
--[[--------------------------< C I T A T I O N >--------------------------------------------------------------
Template entry point
]]
local function citation (frame)
local config_t = {}; -- table to store parameters from the module {{#invoke:}}
local args_t = frame:getParent().args; -- get template's preset parameters
for k, v in pairs (frame.args) do -- get parameters from the {{#invoke}} frame
config_t[k] = v;
-- args_t[k] = v; -- crude debug support that allows us to render a citation from module {{#invoke:}}; skips parameter validation; TODO: keep?
end
return _citation (frame, args_t, config_t)
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
citation = citation, -- template entry point
_citation = _citation, -- module entry point
}
67qy313kh5m9vpqkv5yvm09xoww96f0
395405
395404
2026-10-27T00:56:22Z
MacTire02
219
++
395405
Scribunto
text/plain
require ('strict');
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
each of these counts against the Lua upvalue limit
]]
local validation; -- functions in Module:Citation/CS1/Date_validation
local utilities; -- functions in Module:Citation/CS1/Utilities
local z = {}; -- table of tables in Module:Citation/CS1/Utilities
local identifiers; -- functions and tables in Module:Citation/CS1/Identifiers
local metadata; -- functions in Module:Citation/CS1/COinS
local cfg = {}; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration
local whitelist = {}; -- table of tables listing valid template parameter names; defined in Module:Citation/CS1/Whitelist
--[[------------------< P A G E S C O P E V A R I A B L E S >---------------
declare variables here that have page-wide scope that are not brought in from
other modules; that are created here and used here
]]
local added_deprecated_cat; -- boolean flag so that the category is added only once
local added_vanc_errs; -- boolean flag so we only emit one Vancouver error / category
local added_generic_name_errs; -- boolean flag so we only emit one generic name error / category and stop testing names once an error is encountered
local added_numeric_name_errs; -- boolean flag so we only emit one numeric name error / category and stop testing names once an error is encountered
local added_numeric_name_maint; -- boolean flag so we only emit one numeric name maint category and stop testing names once a category has been emitted
local is_preview_mode; -- true when article is in preview mode; false when using 'Preview page with this template' (previewing the module)
local is_sandbox; -- true when using sandbox modules to render citation
local url_was_archive_today; -- boolean flag set to true when has_archive_today_url() has unset |url= because it held a deprecated archive.today url
--[[--------------------------< F I R S T _ S E T >------------------------------------------------------------
Locates and returns the first set value in a table of values where the order established in the table,
left-to-right (or top-to-bottom), is the order in which the values are evaluated. Returns nil if none are set.
This version replaces the original 'for _, val in pairs do' and a similar version that used ipairs. With the pairs
version the order of evaluation could not be guaranteed. With the ipairs version, a nil value would terminate
the for-loop before it reached the actual end of the list.
]]
local function first_set (list, count)
local i = 1;
while i <= count do -- loop through all items in list
if utilities.is_set( list[i] ) then
return list[i]; -- return the first set list member
end
i = i + 1; -- point to next
end
end
--[[--------------------------< A D D _ V A N C _ E R R O R >----------------------------------------------------
Adds a single Vancouver system error message to the template's output regardless of how many error actually exist.
To prevent duplication, added_vanc_errs is nil until an error message is emitted.
added_vanc_errs is a Boolean declared in page scope variables above
]]
local function add_vanc_error (source, position)
if added_vanc_errs then return end
added_vanc_errs = true; -- note that we've added this category
utilities.set_message ('err_vancouver', {source, position});
end
--[[--------------------------< I S _ S C H E M E >------------------------------------------------------------
does this thing that purports to be a URI scheme seem to be a valid scheme? The scheme is checked to see if it
is in agreement with http://tools.ietf.org/html/std66#section-3.1 which says:
Scheme names consist of a sequence of characters beginning with a
letter and followed by any combination of letters, digits, plus
("+"), period ("."), or hyphen ("-").
returns true if it does, else false
]]
local function is_scheme (scheme)
return scheme and scheme:match ('^%a[%a%d%+%.%-]*:'); -- true if scheme is set and matches the pattern
end
--[=[-------------------------< I S _ D O M A I N _ N A M E >--------------------------------------------------
Does this thing that purports to be a domain name seem to be a valid domain name?
Syntax defined here: http://tools.ietf.org/html/rfc1034#section-3.5
BNF defined here: https://tools.ietf.org/html/rfc4234
Single character names are generally reserved; see https://tools.ietf.org/html/draft-ietf-dnsind-iana-dns-01#page-15;
see also [[Single-letter second-level domain]]
list of TLDs: https://www.iana.org/domains/root/db
RFC 952 (modified by RFC 1123) requires the first and last character of a hostname to be a letter or a digit. Between
the first and last characters the name may use letters, digits, and the hyphen.
Also allowed are IPv4 addresses. IPv6 not supported
domain is expected to be stripped of any path so that the last character in the last character of the TLD. tld
is two or more alpha characters. Any preceding '//' (from splitting a URL with a scheme) will be stripped
here. Perhaps not necessary but retained in case it is necessary for IPv4 dot decimal.
There are several tests:
the first character of the whole domain name including subdomains must be a letter or a digit
internationalized domain name (ASCII characters with .xn-- ASCII Compatible Encoding (ACE) prefix xn-- in the TLD) see https://tools.ietf.org/html/rfc3490
single-letter/digit second-level domains in the .org, .cash, and .today TLDs
q, x, and z SL domains in the .com TLD
i and q SL domains in the .net TLD
single-letter SL domains in the ccTLDs (where the ccTLD is two letters)
two-character SL domains in gTLDs (where the gTLD is two or more letters)
three-plus-character SL domains in gTLDs (where the gTLD is two or more letters)
IPv4 dot-decimal address format; TLD not allowed
returns true if domain appears to be a proper name and TLD or IPv4 address, else false
]=]
local function is_domain_name (domain)
if not domain then
return false; -- if not set, abandon
end
domain = domain:gsub ('^//', ''); -- strip '//' from domain name if present; done here so we only have to do it once
if not domain:match ('^[%w]') then -- first character must be letter or digit
return false;
end
if domain:match ('^%a+:') then -- hack to detect things that look like s:Page:Title where Page: is namespace at Wikisource
return false;
end
local patterns = { -- patterns that look like URLs
'%f[%w][%w][%w%-]+[%w]%.%a%a+$', -- three or more character hostname.hostname or hostname.tld
'%f[%w][%w][%w%-]+[%w]%.xn%-%-[%w]+$', -- internationalized domain name with ACE prefix
'%f[%a][qxz]%.com$', -- assigned one character .com hostname (x.com times out 2015-12-10)
'%f[%a][iq]%.net$', -- assigned one character .net hostname (q.net registered but not active 2015-12-10)
'%f[%w][%w]%.%a%a$', -- one character hostname and ccTLD (2 chars)
'%f[%w][%w][%w]%.%a%a+$', -- two character hostname and TLD
'^%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?', -- IPv4 address
'[%a%d]+%:?' -- IPv6 address
}
for _, pattern in ipairs (patterns) do -- loop through the patterns list
if domain:match (pattern) then
return true; -- if a match then we think that this thing that purports to be a URL is a URL
end
end
for _, d in ipairs (cfg.single_letter_2nd_lvl_domains_t) do -- look for single letter second level domain names for these top level domains
if domain:match ('%f[%w][%w]%.' .. d) then
return true
end
end
return false; -- no matches, we don't know what this thing is
end
--[[--------------------------< I S _ U R L >------------------------------------------------------------------
returns true if the scheme and domain parts of a URL appear to be a valid URL; else false.
This function is the last step in the validation process. This function is separate because there are cases that
are not covered by split_url(), for example is_parameter_ext_wikilink() which is looking for bracketted external
wikilinks.
]]
local function is_url (scheme, domain)
if utilities.is_set (scheme) then -- if scheme is set check it and domain
return is_scheme (scheme) and is_domain_name (domain);
else
return is_domain_name (domain); -- scheme not set when URL is protocol-relative
end
end
--[[--------------------------< S P L I T _ U R L >------------------------------------------------------------
Split a URL into a scheme, authority indicator, and domain.
First remove Fully Qualified Domain Name terminator (a dot following TLD) (if any) and any path(/), query(?) or fragment(#).
If protocol-relative URL, return nil scheme and domain else return nil for both scheme and domain.
When not protocol-relative, get scheme, authority indicator, and domain. If there is an authority indicator (one
or more '/' characters immediately following the scheme's colon), make sure that there are only 2.
Any URL that does not have news: scheme must have authority indicator (//). TODO: are there other common schemes
like news: that don't use authority indicator?
Strip off any port and path;
]]
local function split_url (url_str)
local scheme, authority, domain;
url_str = url_str:gsub ('([%a%d])%.?[/%?#].*$', '%1'); -- strip FQDN terminator and path(/), query(?), fragment (#) (the capture prevents false replacement of '//')
if url_str:match ('^//%S*') then -- if there is what appears to be a protocol-relative URL
domain = url_str:match ('^//(%S*)')
elseif url_str:match ('%S-:/*%S+') then -- if there is what appears to be a scheme, optional authority indicator, and domain name
scheme, authority, domain = url_str:match ('(%S-:)(/*)(%S+)'); -- extract the scheme, authority indicator, and domain portions
if utilities.is_set (authority) then
authority = authority:gsub ('//', '', 1); -- replace place 1 pair of '/' with nothing;
if utilities.is_set(authority) then -- if anything left (1 or 3+ '/' where authority should be) then
return scheme; -- return scheme only making domain nil which will cause an error message
end
else
if not scheme:match ('^news:') then -- except for news:..., MediaWiki won't link URLs that do not have authority indicator; TODO: a better way to do this test?
return scheme; -- return scheme only making domain nil which will cause an error message
end
end
domain = domain:gsub ('(%a):%d+', '%1'); -- strip port number if present
end
return scheme, domain;
end
--[[--------------------------< L I N K _ P A R A M _ O K >---------------------------------------------------
checks the content of |title-link=, |series-link=, |author-link=, etc. for properly formatted content: no wikilinks, no URLs
Link parameters are to hold the title of a Wikipedia article, so none of the WP:TITLESPECIALCHARACTERS are allowed:
# < > [ ] | { } _
except the underscore which is used as a space in wiki URLs and # which is used for section links
returns false when the value contains any of these characters.
When there are no illegal characters, this function returns TRUE if value DOES NOT appear to be a valid URL (the
|<param>-link= parameter is ok); else false when value appears to be a valid URL (the |<param>-link= parameter is NOT ok).
]]
local function link_param_ok (value)
local scheme, domain;
if value:find ('[<>%[%]|{}]') then -- if any prohibited characters
return false;
end
scheme, domain = split_url (value); -- get scheme or nil and domain or nil from URL;
return not is_url (scheme, domain); -- return true if value DOES NOT appear to be a valid URL
end
--[[--------------------------< L I N K _ T I T L E _ O K >---------------------------------------------------
Use link_param_ok() to validate |<param>-link= value and its matching |<title>= value.
|<title>= may be wiki-linked but not when |<param>-link= has a value. This function emits an error message when
that condition exists
check <link> for inter-language interwiki-link prefix. prefix must be a MediaWiki-recognized language
code and must begin with a colon.
]]
local function link_title_ok (link, lorig, title, torig)
local orig;
if utilities.is_set (link) then -- don't bother if <param>-link doesn't have a value
if not link_param_ok (link) then -- check |<param>-link= markup
orig = lorig; -- identify the failing link parameter
elseif title:find ('%[%[') then -- check |title= for wikilink markup
orig = torig; -- identify the failing |title= parameter
elseif link:match ('^%a+:') then -- if the link is what looks like an interwiki
local prefix = link:match ('^(%a+):'):lower(); -- get the interwiki prefix
if cfg.inter_wiki_map[prefix] then -- if prefix is in the map, must have preceding colon
orig = lorig; -- flag as error
end
end
end
if utilities.is_set (orig) then
link = ''; -- unset
utilities.set_message ('err_bad_paramlink', orig); -- URL or wikilink in |title= with |title-link=;
end
return link; -- link if ok, empty string else
end
--[[--------------------------< C H E C K _ U R L >------------------------------------------------------------
Determines whether a URL string appears to be valid.
First we test for space characters. If any are found, return false. Then split the URL into scheme and domain
portions, or for protocol-relative (//example.com) URLs, just the domain. Use is_url() to validate the two
portions of the URL. If both are valid, or for protocol-relative if domain is valid, return true, else false.
Because it is different from a standard URL, and because this module used external_link() to make external links
that work for standard and news: links, we validate newsgroup names here. The specification for a newsgroup name
is at https://tools.ietf.org/html/rfc5536#section-3.1.4
]]
local function check_url( url_str )
if nil == url_str:match ("^%S+$") then -- if there are any spaces in |url=value it can't be a proper URL
return false;
end
local scheme, domain;
scheme, domain = split_url (url_str); -- get scheme or nil and domain or nil from URL;
if 'news:' == scheme then -- special case for newsgroups
return domain:match('^[%a%d%+%-_]+%.[%a%d%+%-_%.]*[%a%d%+%-_]$');
end
return is_url (scheme, domain); -- return true if value appears to be a valid URL
end
--[=[-------------------------< I S _ P A R A M E T E R _ E X T _ W I K I L I N K >----------------------------
Return true if a parameter value has a string that begins and ends with square brackets [ and ] and the first
non-space characters following the opening bracket appear to be a URL. The test will also find external wikilinks
that use protocol-relative URLs. Also finds bare URLs.
The frontier pattern prevents a match on interwiki-links which are similar to scheme:path URLs. The tests that
find bracketed URLs are required because the parameters that call this test (currently |title=, |chapter=, |work=,
and |publisher=) may have wikilinks and there are articles or redirects like '//Hus' so, while uncommon, |title=[[//Hus]]
is possible as might be [[en://Hus]].
]=]
local function is_parameter_ext_wikilink (value)
local scheme, domain;
if value:match ('%f[%[]%[%a%S*:%S+.*%]') then -- if ext. wikilink with scheme and domain: [xxxx://yyyyy.zzz]
scheme, domain = split_url (value:match ('%f[%[]%[(%a%S*:%S+).*%]'));
elseif value:match ('%f[%[]%[//%S+.*%]') then -- if protocol-relative ext. wikilink: [//yyyyy.zzz]
scheme, domain = split_url (value:match ('%f[%[]%[(//%S+).*%]'));
elseif value:match ('%a%S*:%S+') then -- if bare URL with scheme; may have leading or trailing plain text
scheme, domain = split_url (value:match ('(%a%S*:%S+)'));
elseif value:match ('^//%S+') or value:match ('%s//%S+') then -- if protocol-relative bare URL: //yyyyy.zzz; authority indicator (//) must be be preceded nothing or by whitespace
scheme, domain = split_url (value:match ('(//%S+)')); -- what is left should be the domain
else
return false; -- didn't find anything that is obviously a URL
end
return is_url (scheme, domain); -- return true if value appears to be a valid URL
end
--[[--------------------------< I S _ A R C H I V E _ T O D A Y _ U R L >--------------------------------------
archive.today (and .ph, .is, .md, .li, .fo, .vn) are deprecated. See Wikipedia:Requests_for_comment/Archive.is_RFC_5
(Special:Permalink/1339352976)
<val> is a string that may or may not be a url
]]
local function is_archive_today_url (val)
if is_parameter_ext_wikilink (val) then -- is <val> a url?
local tld = val:match ('archive%.(%l+)'); -- get the tld
return tld and cfg.archive_today_tlds_t[tld]; -- return true if <tld> is one of the archive.today tlds; nil else
end
end
--[[--------------------------< H A S _ A R C H I V E _ T O D A Y _ U R L >------------------------------------
blank any parameter that holds one of the archive.today tlds (.today, .ph, .is, .md, .li, .fo, .vn) and also
blank parameters that are dependent on the offending parameter.
input <cite_args_t> is a table of all of this template's parameters This function modifies <cite_args_t>
when |url= or its alias |URL= hold an archive.today url, this function sets the flag <url_was_archive_today>
which is used later to suppress the missing url error message from {{citation}} when it has |website=<summat>
or from the templates {{cite web}}, {{cite podcast}}, {{cite mailing list}} which all require a url.
returns nothing
]]
local function has_archive_today_url (cite_args_t)
local unset_params_t = {}; -- to hold a sequence of parameters to unset from cite_args_t
for p, v in pairs (cite_args_t) do -- look at each parameter in the template
if is_archive_today_url (v:lower()) then -- if it has a parameter with an archive.today url
table.insert (unset_params_t, p); -- add the url-holding parameter name to our list of parameters to unset (may or may not be a legitimate url parameter)
if 'url' == p:lower() then -- if this parameter is |url= or |URL=
url_was_archive_today = true; -- set a flag so that cite web / podcast / mailinglist don't emit a missing url error message
end
if cfg.dependencies_t[p] then -- if this url-holding parameter (<p>) has dependencies
for _, dependent in ipairs (cfg.dependencies_t[p]) do -- loop through the url-holding parameter's dependency sequence
table.insert (unset_params_t, dependent); -- add dependent parameter to the list to be unset
end
end
end
end
if 0 < #unset_params_t then -- when there are parameters to unset
if not is_preview_mode then -- when in preview mode do not suppress any parameters
for _, unset_param in ipairs (unset_params_t) do -- loop through the sequence
cite_args_t[unset_param] = nil; -- and unset the url-holding parameter and its dependent parameters to avoid parameter-requires-other-parameter errors
end
end
utilities.set_message ('maint_deprecated_archive'); -- add a maintenance message
end
end
--[[-------------------------< C H E C K _ F O R _ U R L >-----------------------------------------------------
loop through a list of parameters and their values. Look at the value and if it has an external link, emit an error message.
]]
local function check_for_url (parameter_list, error_list)
for k, v in pairs (parameter_list) do -- for each parameter in the list
if is_parameter_ext_wikilink (v) then -- look at the value; if there is a URL add an error message
table.insert (error_list, utilities.wrap_style ('parameter', k));
end
end
end
--[[--------------------------< S A F E _ F O R _ U R L >------------------------------------------------------
Escape sequences for content that will be used for URL descriptions
]]
local function safe_for_url( str )
if str:match( "%[%[.-%]%]" ) ~= nil then
utilities.set_message ('err_wikilink_in_url', {});
end
return str:gsub( '[%[%]\n]', {
['['] = '[',
[']'] = ']',
['\n'] = ' ' } );
end
--[[--------------------------< E X T E R N A L _ L I N K >----------------------------------------------------
Format an external link with error checking
]]
local function external_link (URL, label, source, access)
local err_msg = '';
local domain;
local path;
local base_url;
if not utilities.is_set (label) then
label = URL;
if utilities.is_set (source) then
utilities.set_message ('err_bare_url_missing_title', {utilities.wrap_style ('parameter', source)});
else
error (cfg.messages["bare_url_no_origin"]); -- programmer error; valid parameter name does not have matching meta-parameter
end
end
if not check_url (URL) then
utilities.set_message ('err_bad_url', {utilities.wrap_style ('parameter', source)});
end
domain, path = URL:match ('^([/%.%-%+:%a%d]+)([/%?#].*)$'); -- split the URL into scheme plus domain and path
if path then -- if there is a path portion
path = path:gsub ('[%[%]]', {['['] = '%5b', [']'] = '%5d'}); -- replace '[' and ']' with their percent-encoded values
URL = table.concat ({domain, path}); -- and reassemble
end
base_url = table.concat ({ "[", URL, " ", safe_for_url (label), "]" }); -- assemble a wiki-markup URL
if utilities.is_set (access) then -- access level (subscription, registration, limited)
base_url = utilities.substitute (cfg.presentation['ext-link-access-signal'], {cfg.presentation[access].class, cfg.presentation[access].title, base_url}); -- add the appropriate icon
end
return base_url;
end
--[[--------------------------< D E P R E C A T E D _ P A R A M E T E R >--------------------------------------
Categorize and emit an error message when the citation contains one or more deprecated parameters. The function includes the
offending parameter name to the error message. Only one error message is emitted regardless of the number of deprecated
parameters in the citation.
added_deprecated_cat is a Boolean declared in page scope variables above
]]
local function deprecated_parameter(name)
if not added_deprecated_cat then
added_deprecated_cat = true; -- note that we've added this category
utilities.set_message ('err_deprecated_params', {name}); -- add error message
end
end
--[=[-------------------------< K E R N _ Q U O T E S >--------------------------------------------------------
Apply kerning to open the space between the quote mark provided by the module and a leading or trailing quote
mark contained in a |title= or |chapter= parameter's value.
This function will positive kern either single or double quotes:
"'Unkerned title with leading and trailing single quote marks'"
" 'Kerned title with leading and trailing single quote marks' " (in real life the kerning isn't as wide as this example)
Double single quotes (italic or bold wiki-markup) are not kerned.
Replaces Unicode quote marks in plain text or in the label portion of a [[L|D]] style wikilink with typewriter
quote marks regardless of the need for kerning. Unicode quote marks are not replaced in simple [[D]] wikilinks.
Call this function for chapter titles, for website titles, etc.; not for book titles.
]=]
local function kern_quotes (str)
local cap = '';
local wl_type, label, link;
wl_type, label, link = utilities.is_wikilink (str); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]
if 1 == wl_type then -- [[D]] simple wikilink with or without quote marks
if mw.ustring.match (str, '%[%[[\"“”\'‘’].+[\"“”\'‘’]%]%]') then -- leading and trailing quote marks
str = utilities.substitute (cfg.presentation['kern-left'], str);
str = utilities.substitute (cfg.presentation['kern-right'], str);
elseif mw.ustring.match (str, '%[%[[\"“”\'‘’].+%]%]') then -- leading quote marks
str = utilities.substitute (cfg.presentation['kern-left'], str);
elseif mw.ustring.match (str, '%[%[.+[\"“”\'‘’]%]%]') then -- trailing quote marks
str = utilities.substitute (cfg.presentation['kern-right'], str);
end
else -- plain text or [[L|D]]; text in label variable
label = mw.ustring.gsub (label, '[“”]', '\"'); -- replace “” (U+201C & U+201D) with " (typewriter double quote mark)
label = mw.ustring.gsub (label, '[‘’]', '\''); -- replace ‘’ (U+2018 & U+2019) with ' (typewriter single quote mark)
cap = mw.ustring.match (label, "^([\"\'][^\'].+)"); -- match leading double or single quote but not doubled single quotes (italic markup)
if utilities.is_set (cap) then
label = utilities.substitute (cfg.presentation['kern-left'], cap);
end
cap = mw.ustring.match (label, "^(.+[^\'][\"\'])$") -- match trailing double or single quote but not doubled single quotes (italic markup)
if utilities.is_set (cap) then
label = utilities.substitute (cfg.presentation['kern-right'], cap);
end
if 2 == wl_type then
str = utilities.make_wikilink (link, label); -- reassemble the wikilink
else
str = label;
end
end
return str;
end
--[[--------------------------< F O R M A T _ S C R I P T _ V A L U E >----------------------------------------
|script-title= holds title parameters that are not written in Latin-based scripts: Chinese, Japanese, Arabic, Hebrew, etc. These scripts should
not be italicized and may be written right-to-left. The value supplied by |script-title= is concatenated onto Title after Title has been wrapped
in italic markup.
Regardless of language, all values provided by |script-title= are wrapped in <bdi>...</bdi> tags to isolate RTL languages from the English left to right.
|script-title= provides a unique feature. The value in |script-title= may be prefixed with a two-character ISO 639-1 language code and a colon:
|script-title=ja:*** *** (where * represents a Japanese character)
Spaces between the two-character code and the colon and the colon and the first script character are allowed:
|script-title=ja : *** ***
|script-title=ja: *** ***
|script-title=ja :*** ***
Spaces preceding the prefix are allowed: |script-title = ja:*** ***
The prefix is checked for validity. If it is a valid ISO 639-1 language code, the lang attribute (lang="ja") is added to the <bdi> tag so that browsers can
know the language the tag contains. This may help the browser render the script more correctly. If the prefix is invalid, the lang attribute
is not added. At this time there is no error message for this condition.
Supports |script-title=, |script-chapter=, |script-<periodical>=
]]
local function format_script_value (script_value, script_param)
local lang=''; -- initialize to empty string
local name;
if script_value:match('^%l%l%l?%s*:') then -- if first 3 or 4 non-space characters are script language prefix
lang = script_value:match('^(%l%l%l?)%s*:%s*%S.*'); -- get the language prefix or nil if there is no script
if not utilities.is_set (lang) then
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['missing title part']}); -- prefix without 'title'; add error message
return ''; -- script_value was just the prefix so return empty string
end
-- if we get this far we have prefix and script
name = cfg.lang_tag_remap[lang] or mw.language.fetchLanguageName( lang, cfg.this_wiki_code ); -- get language name so that we can use it to categorize
if utilities.is_set (name) then -- is prefix a proper ISO 639-1 language code?
script_value = script_value:gsub ('^%l+%s*:%s*', ''); -- strip prefix from script
-- is prefix one of these language codes?
if utilities.in_array (lang, cfg.script_lang_codes) then
utilities.add_prop_cat ('script', {name, lang})
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['unknown language code']}); -- unknown script-language; add error message
end
lang = ' lang="' .. lang .. '" '; -- convert prefix into a lang attribute
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['invalid language code']}); -- invalid language code; add error message
lang = ''; -- invalid so set lang to empty string
end
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['missing prefix']}); -- no language code prefix; add error message
end
script_value = utilities.substitute (cfg.presentation['bdi'], {lang, script_value}); -- isolate in case script is RTL
return script_value;
end
--[[--------------------------< S C R I P T _ C O N C A T E N A T E >------------------------------------------
Initially for |title= and |script-title=, this function concatenates those two parameter values after the script
value has been wrapped in <bdi> tags.
]]
local function script_concatenate (title, script, script_param)
if utilities.is_set (script) then
script = format_script_value (script, script_param); -- <bdi> tags, lang attribute, categorization, etc.; returns empty string on error
if utilities.is_set (script) then
title = title .. ' ' .. script; -- concatenate title and script title
end
end
return title;
end
--[[--------------------------< W R A P _ M S G >--------------------------------------------------------------
Applies additional message text to various parameter values. Supplied string is wrapped using a message_list
configuration taking one argument. Supports lower case text for {{citation}} templates. Additional text taken
from citation_config.messages - the reason this function is similar to but separate from wrap_style().
]]
local function wrap_msg (key, str, lower)
if not utilities.is_set ( str ) then
return "";
end
if true == lower then
local msg;
msg = cfg.messages[key]:lower(); -- set the message to lower case before
return utilities.substitute ( msg, str ); -- including template text
else
return utilities.substitute ( cfg.messages[key], str );
end
end
--[[----------------< W I K I S O U R C E _ U R L _ M A K E >-------------------
Makes a Wikisource URL from Wikisource interwiki-link. Returns the URL and appropriate
label; nil else.
str is the value assigned to |chapter= (or aliases) or |title= or |title-link=
]]
local function wikisource_url_make (str)
local wl_type, D, L;
local ws_url, ws_label;
local wikisource_prefix = table.concat ({'https://', cfg.this_wiki_code, '.wikisource.org/wiki/'});
wl_type, D, L = utilities.is_wikilink (str); -- wl_type is 0 (not a wikilink), 1 (simple wikilink), 2 (complex wikilink)
if 0 == wl_type then -- not a wikilink; might be from |title-link=
str = D:match ('^[Ww]ikisource:(.+)') or D:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title
});
ws_label = str; -- label for the URL
end
elseif 1 == wl_type then -- simple wikilink: [[Wikisource:ws article]]
str = D:match ('^[Ww]ikisource:(.+)') or D:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title
});
ws_label = str; -- label for the URL
end
elseif 2 == wl_type then -- non-so-simple wikilink: [[Wikisource:ws article|displayed text]] ([[L|D]])
str = L:match ('^[Ww]ikisource:(.+)') or L:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_label = D; -- get ws article name from display portion of interwiki link
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title without namespace from link portion of wikilink
});
end
end
if ws_url then
ws_url = mw.uri.encode (ws_url, 'WIKI'); -- make a usable URL
ws_url = ws_url:gsub ('%%23', '#'); -- undo percent-encoding of fragment marker
end
return ws_url, ws_label, L or D; -- return proper URL or nil and a label or nil
end
--[[----------------< F O R M A T _ P E R I O D I C A L >-----------------------
Format the three periodical parameters: |script-<periodical>=, |<periodical>=,
and |trans-<periodical>= into a single Periodical meta-parameter.
]]
local function format_periodical (script_periodical, script_periodical_source, periodical, trans_periodical)
if not utilities.is_set (periodical) then
periodical = ''; -- to be safe for concatenation
else
periodical = utilities.wrap_style ('italic-title', periodical); -- style
end
periodical = script_concatenate (periodical, script_periodical, script_periodical_source); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
if utilities.is_set (trans_periodical) then
trans_periodical = utilities.wrap_style ('trans-italic-title', trans_periodical);
if utilities.is_set (periodical) then
periodical = periodical .. ' ' .. trans_periodical;
else -- here when trans-periodical without periodical or script-periodical
periodical = trans_periodical;
utilities.set_message ('err_trans_missing_title', {'periodical'});
end
end
return periodical;
end
--[[------------------< F O R M A T _ C H A P T E R _ T I T L E >---------------
Format the four chapter parameters: |script-chapter=, |chapter=, |trans-chapter=,
and |chapter-url= into a single chapter meta- parameter (chapter_url_source used
for error messages).
]]
local function format_chapter_title (script_chapter, script_chapter_source, chapter, chapter_source, trans_chapter, trans_chapter_source, chapter_url, chapter_url_source, no_quotes, access)
local ws_url, ws_label, L = wikisource_url_make (chapter); -- make a wikisource URL and label from a wikisource interwiki link
if ws_url then
ws_label = ws_label:gsub ('_', ' '); -- replace underscore separators with space characters
chapter = ws_label;
end
if not utilities.is_set (chapter) then
chapter = ''; -- to be safe for concatenation
else
if false == no_quotes then
chapter = kern_quotes (chapter); -- if necessary, separate chapter title's leading and trailing quote marks from module provided quote marks
chapter = utilities.wrap_style ('quoted-title', chapter);
end
end
chapter = script_concatenate (chapter, script_chapter, script_chapter_source); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
if utilities.is_set (chapter_url) then
chapter = external_link (chapter_url, chapter, chapter_url_source, access); -- adds bare_url_missing_title error if appropriate
elseif ws_url then
chapter = external_link (ws_url, chapter .. ' ', 'ws link in chapter'); -- adds bare_url_missing_title error if appropriate; space char to move icon away from chap text; TODO: better way to do this?
chapter = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, chapter});
end
if utilities.is_set (trans_chapter) then
trans_chapter = utilities.wrap_style ('trans-quoted-title', trans_chapter);
if utilities.is_set (chapter) then
chapter = chapter .. ' ' .. trans_chapter;
else -- here when trans_chapter without chapter or script-chapter
chapter = trans_chapter;
chapter_source = trans_chapter_source:match ('trans%-?(.+)'); -- when no chapter, get matching name from trans-<param>
utilities.set_message ('err_trans_missing_title', {chapter_source});
end
end
return chapter;
end
--[[----------------< H A S _ I N V I S I B L E _ C H A R S >-------------------
This function searches a parameter's value for non-printable or invisible characters.
The search stops at the first match.
This function will detect the visible replacement character when it is part of the Wikisource.
Detects but ignores nowiki and math stripmarkers. Also detects other named stripmarkers
(gallery, math, pre, ref) and identifies them with a slightly different error message.
See also coins_cleanup().
Output of this function is an error message that identifies the character or the
Unicode group, or the stripmarker that was detected along with its position (or,
for multi-byte characters, the position of its first byte) in the parameter value.
]]
local function has_invisible_chars (param, v)
local position = ''; -- position of invisible char or starting position of stripmarker
local capture; -- used by stripmarker detection to hold name of the stripmarker
local stripmarker; -- boolean set true when a stripmarker is found
capture = string.match (v, '[%w%p ]*'); -- test for values that are simple ASCII text and bypass other tests if true
if capture == v then -- if same there are no Unicode characters
return;
end
for _, invisible_char in ipairs (cfg.invisible_chars) do
local char_name = invisible_char[1]; -- the character or group name
local pattern = invisible_char[2]; -- the pattern used to find it
position, _, capture = mw.ustring.find (v, pattern); -- see if the parameter value contains characters that match the pattern
if position and (cfg.invisible_defs.zwj == capture) then -- if we found a zero-width joiner character
if mw.ustring.find (v, cfg.indic_script) then -- it's ok if one of the Indic scripts
position = nil; -- unset position
elseif cfg.emoji_t[mw.ustring.codepoint (v, position+1)] then -- is zwj followed by a character listed in emoji{}?
position = nil; -- unset position
end
end
if position then
if 'nowiki' == capture or 'math' == capture or -- nowiki and math stripmarkers (not an error condition)
('templatestyles' == capture and utilities.in_array (param, {'id', 'quote'})) then -- templatestyles stripmarker allowed in these parameters
stripmarker = true; -- set a flag
elseif true == stripmarker and cfg.invisible_defs.del == capture then -- because stripmakers begin and end with the delete char, assume that we've found one end of a stripmarker
position = nil; -- unset
else
local err_msg;
if capture and not (cfg.invisible_defs.del == capture or cfg.invisible_defs.zwj == capture) then
err_msg = utilities.substitute (cfg.messages.invisible_1, {capture, char_name}); -- <capture> here is stripmarker name
else
err_msg = utilities.substitute (cfg.messages.invisible_2, char_name);
end
utilities.set_message ('err_invisible_char', {err_msg, utilities.wrap_style ('parameter', param), position}); -- add error message
return; -- and done with this parameter
end
end
end
end
--[[-------------------< A R G U M E N T _ W R A P P E R >----------------------
Argument wrapper. This function provides support for argument mapping defined
in the configuration file so that multiple names can be transparently aliased to
single internal variable.
]]
local function argument_wrapper ( args )
local origin = {};
return setmetatable({
ORIGIN = function ( self, k )
local dummy = self[k]; -- force the variable to be loaded.
return origin[k];
end
},
{
__index = function ( tbl, k )
if origin[k] ~= nil then
return nil;
end
local args, list, v = args, cfg.aliases[k];
if type( list ) == 'table' then
v, origin[k] = utilities.select_one ( args, list, 'err_redundant_parameters' );
if origin[k] == nil then
origin[k] = ''; -- Empty string, not nil
end
elseif list ~= nil then
v, origin[k] = args[list], list;
else
-- maybe let through instead of raising an error?
-- v, origin[k] = args[k], k;
error( cfg.messages['unknown_argument_map'] .. ': ' .. k);
end
-- Empty strings, not nil;
if v == nil then
v = '';
origin[k] = '';
end
tbl = rawset( tbl, k, v );
return v;
end,
});
end
--[[--------------------------< N O W R A P _ D A T E >-------------------------
When date is YYYY-MM-DD format wrap in nowrap span: <span ...>YYYY-MM-DD</span>.
When date is DD MMMM YYYY or is MMMM DD, YYYY then wrap in nowrap span:
<span ...>DD MMMM</span> YYYY or <span ...>MMMM DD,</span> YYYY
DOES NOT yet support MMMM YYYY or any of the date ranges.
]]
local function nowrap_date (date)
local cap = '';
local cap2 = '';
if date:match("^%d%d%d%d%-%d%d%-%d%d$") then
date = utilities.substitute (cfg.presentation['nowrap1'], date);
elseif date:match("^%a+%s*%d%d?,%s+%d%d%d%d$") or date:match ("^%d%d?%s*%a+%s+%d%d%d%d$") then
cap, cap2 = string.match (date, "^(.*)%s+(%d%d%d%d)$");
date = utilities.substitute (cfg.presentation['nowrap2'], {cap, cap2});
end
return date;
end
--[[--------------------------< S E T _ T I T L E T Y P E >---------------------
This function sets default title types (equivalent to the citation including
|type=<default value>) for those templates that have defaults. Also handles the
special case where it is desirable to omit the title type from the rendered citation
(|type=none).
]]
local function set_titletype (cite_class, title_type)
if utilities.is_set (title_type) then
if 'none' == cfg.keywords_xlate[title_type] then
title_type = ''; -- if |type=none then type parameter not displayed
end
return title_type; -- if |type= has been set to any other value use that value
end
return cfg.title_types [cite_class] or ''; -- set template's default title type; else empty string for concatenation
end
--[[--------------------------< S A F E _ J O I N >-----------------------------
Joins a sequence of strings together while checking for duplicate separation characters.
]]
local function safe_join( tbl, duplicate_char )
local f = {}; -- create a function table appropriate to type of 'duplicate character'
if 1 == #duplicate_char then -- for single byte ASCII characters use the string library functions
f.gsub = string.gsub
f.match = string.match
f.sub = string.sub
else -- for multi-byte characters use the ustring library functions
f.gsub = mw.ustring.gsub
f.match = mw.ustring.match
f.sub = mw.ustring.sub
end
local str = ''; -- the output string
local comp = ''; -- what does 'comp' mean?
local end_chr = '';
local trim;
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
if str == '' then -- if output string is empty
str = value; -- assign value to it (first time through the loop)
elseif value ~= '' then
if value:sub(1, 1) == '<' then -- special case of values enclosed in spans and other markup.
comp = value:gsub( "%b<>", "" ); -- remove HTML markup (<span>string</span> -> string)
else
comp = value;
end
-- typically duplicate_char is sepc
if f.sub(comp, 1, 1) == duplicate_char then -- is first character same as duplicate_char? why test first character?
-- Because individual string segments often (always?) begin with terminal punct for the
-- preceding segment: 'First element' .. 'sepc next element' .. etc.?
trim = false;
end_chr = f.sub(str, -1, -1); -- get the last character of the output string
-- str = str .. "<HERE(enchr=" .. end_chr .. ")" -- debug stuff?
if end_chr == duplicate_char then -- if same as separator
str = f.sub(str, 1, -2); -- remove it
elseif end_chr == "'" then -- if it might be wiki-markup
if f.sub(str, -3, -1) == duplicate_char .. "''" then -- if last three chars of str are sepc''
str = f.sub(str, 1, -4) .. "''"; -- remove them and add back ''
elseif f.sub(str, -5, -1) == duplicate_char .. "]]''" then -- if last five chars of str are sepc]]''
trim = true; -- why? why do this and next differently from previous?
elseif f.sub(str, -4, -1) == duplicate_char .. "]''" then -- if last four chars of str are sepc]''
trim = true; -- same question
end
elseif end_chr == "]" then -- if it might be wiki-markup
if f.sub(str, -3, -1) == duplicate_char .. "]]" then -- if last three chars of str are sepc]] wikilink
trim = true;
elseif f.sub(str, -3, -1) == duplicate_char .. '"]' then -- if last three chars of str are sepc"] quoted external link
trim = true;
elseif f.sub(str, -2, -1) == duplicate_char .. "]" then -- if last two chars of str are sepc] external link
trim = true;
elseif f.sub(str, -4, -1) == duplicate_char .. "'']" then -- normal case when |url=something & |title=Title.
trim = true;
end
elseif end_chr == " " then -- if last char of output string is a space
if f.sub(str, -2, -1) == duplicate_char .. " " then -- if last two chars of str are <sepc><space>
str = f.sub(str, 1, -3); -- remove them both
end
end
if trim then
if value ~= comp then -- value does not equal comp when value contains HTML markup
local dup2 = duplicate_char;
if f.match(dup2, "%A" ) then dup2 = "%" .. dup2; end -- if duplicate_char not a letter then escape it
value = f.gsub(value, "(%b<>)" .. dup2, "%1", 1 ) -- remove duplicate_char if it follows HTML markup
else
value = f.sub(value, 2, -1 ); -- remove duplicate_char when it is first character
end
end
end
str = str .. value; -- add it to the output string
end
end
return str;
end
--[[--------------------------< I S _ S U F F I X >-----------------------------
returns true if suffix is properly formed Jr, Sr, or ordinal in the range 1–9.
Puncutation not allowed.
]]
local function is_suffix (suffix)
if utilities.in_array (suffix, {'Jr', 'Sr', 'Jnr', 'Snr', '1st', '2nd', '3rd'}) or suffix:match ('^%dth$') then
return true;
end
return false;
end
--[[--------------------< I S _ G O O D _ V A N C _ N A M E >-------------------
For Vancouver style, author/editor names are supposed to be rendered in Latin
(read ASCII) characters. When a name uses characters that contain diacritical
marks, those characters are to be converted to the corresponding Latin
character. When a name is written using a non-Latin alphabet or logogram, that
name is to be transliterated into Latin characters. The module doesn't do this
so editors may/must.
This test allows |first= and |last= names to contain any of the letters defined
in the four Unicode Latin character sets
[http://www.unicode.org/charts/PDF/U0000.pdf C0 Controls and Basic Latin] 0041–005A, 0061–007A
[http://www.unicode.org/charts/PDF/U0080.pdf C1 Controls and Latin-1 Supplement] 00C0–00D6, 00D8–00F6, 00F8–00FF
[http://www.unicode.org/charts/PDF/U0100.pdf Latin Extended-A] 0100–017F
[http://www.unicode.org/charts/PDF/U0180.pdf Latin Extended-B] 0180–01BF, 01C4–024F
|lastn= also allowed to contain hyphens, spaces, and apostrophes.
(http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)
|firstn= also allowed to contain hyphens, spaces, apostrophes, and periods
This original test:
if nil == mw.ustring.find (last, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%']*$")
or nil == mw.ustring.find (first, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%'%.]+[2-6%a]*$") then
was written outside of the code editor and pasted here because the code editor
gets confused between character insertion point and cursor position. The test has
been rewritten to use decimal character escape sequence for the individual bytes
of the Unicode characters so that it is not necessary to use an external editor
to maintain this code.
\195\128-\195\150 – À-Ö (U+00C0–U+00D6 – C0 controls)
\195\152-\195\182 – Ø-ö (U+00D8-U+00F6 – C0 controls)
\195\184-\198\191 – ø-ƿ (U+00F8-U+01BF – C0 controls, Latin extended A & B)
\199\132-\201\143 – DŽ-ɏ (U+01C4-U+024F – Latin extended B)
]]
local function is_good_vanc_name (last, first, suffix, position)
if not suffix then
if first:find ('[,%s]') then -- when there is a space or comma, might be first name/initials + generational suffix
first = first:match ('(.-)[,%s]+'); -- get name/initials
suffix = first:match ('[,%s]+(.+)$'); -- get generational suffix
end
end
if utilities.is_set (suffix) then
if not is_suffix (suffix) then
add_vanc_error (cfg.err_msg_supl.suffix, position);
return false; -- not a name with an appropriate suffix
end
end
if nil == mw.ustring.find (last, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191%-%s%']*$") or
nil == mw.ustring.find (first, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191%-%s%'%.]*$") then
add_vanc_error (cfg.err_msg_supl['non-Latin char'], position);
return false; -- not a string of Latin characters; Vancouver requires Romanization
end;
return true;
end
--[[--------------------------< R E D U C E _ T O _ I N I T I A L S >------------------------------------------
Attempts to convert names to initials in support of |name-list-style=vanc.
Names in |firstn= may be separated by spaces or hyphens, or for initials, a period.
See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35062/.
Vancouver style requires family rank designations (Jr, II, III, etc.) to be rendered
as Jr, 2nd, 3rd, etc. See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35085/.
This code only accepts and understands generational suffix in the Vancouver format
because Roman numerals look like, and can be mistaken for, initials.
This function uses ustring functions because firstname initials may be any of the
Unicode Latin characters accepted by is_good_vanc_name ().
]]
local function reduce_to_initials (first, position)
if first:find (',', 1, true) then
return first; -- commas not allowed; abandon
end
local name, suffix = mw.ustring.match (first, "^(%u+) ([%dJS][%drndth]+)$");
if not name then -- if not initials and a suffix
name = mw.ustring.match (first, "^(%u+)$"); -- is it just initials?
end
if name then -- if first is initials with or without suffix
if 3 > mw.ustring.len (name) then -- if one or two initials
if suffix then -- if there is a suffix
if is_suffix (suffix) then -- is it legitimate?
return first; -- one or two initials and a valid suffix so nothing to do
else
add_vanc_error (cfg.err_msg_supl.suffix, position); -- one or two initials with invalid suffix so error message
return first; -- and return first unmolested
end
else
return first; -- one or two initials without suffix; nothing to do
end
end
end -- if here then name has 3 or more uppercase letters so treat them as a word
local initials_t, names_t = {}, {}; -- tables to hold name parts and initials
local i = 1; -- counter for number of initials
names_t = mw.text.split (first, '[%s%-]+'); -- split into a sequence of names and possible suffix
while names_t[i] do -- loop through the sequence
if 1 < i and names_t[i]:match ('[%dJS][%drndth]+%.?$') then -- if not the first name, and looks like a suffix (may have trailing dot)
names_t[i] = names_t[i]:gsub ('%.', ''); -- remove terminal dot if present
if is_suffix (names_t[i]) then -- if a legitimate suffix
table.insert (initials_t, ' ' .. names_t[i]); -- add a separator space, insert at end of initials sequence
break; -- and done because suffix must fall at the end of a name
end -- no error message if not a suffix; possibly because of Romanization
end
if 3 > i then
table.insert (initials_t, mw.ustring.sub (names_t[i], 1, 1)); -- insert the initial at end of initials sequence
end
i = i + 1; -- bump the counter
end
return table.concat (initials_t); -- Vancouver format does not include spaces.
end
--[[--------------------------< I N T E R W I K I _ P R E F I X E N _ G E T >----------------------------------
extract interwiki prefixen from <value>. Returns two one or two values:
false – no prefixen
nil – prefix exists but not recognized
project prefix, language prefix – when value has either of:
:<project>:<language>:<article>
:<language>:<project>:<article>
project prefix, nil – when <value> has only a known single-letter prefix
nil, language prefix – when <value> has only a known language prefix
accepts single-letter project prefixen: 'd' (wikidata), 's' (wikisource), and 'w' (wikipedia) prefixes; at this
writing, the other single-letter prefixen (b (wikibook), c (commons), m (meta), n (wikinews), q (wikiquote), and
v (wikiversity)) are not supported.
]]
local function interwiki_prefixen_get (value, is_link)
if not value:find (':%l+:') then -- if no prefix
return false; -- abandon; boolean here to distinguish from nil fail returns later
end
local prefix_patterns_linked_t = { -- sequence of valid interwiki and inter project prefixen
'^%[%[:([dsw]):(%l%l+):', -- wikilinked; project and language prefixes
'^%[%[:(%l%l+):([dsw]):', -- wikilinked; language and project prefixes
'^%[%[:([dsw]):', -- wikilinked; project prefix
'^%[%[:(%l%l+):', -- wikilinked; language prefix
}
local prefix_patterns_unlinked_t = { -- sequence of valid interwiki and inter project prefixen
'^:([dsw]):(%l%l+):', -- project and language prefixes
'^:(%l%l+):([dsw]):', -- language and project prefixes
'^:([dsw]):', -- project prefix
'^:(%l%l+):', -- language prefix
}
local cap1, cap2;
for _, pattern in ipairs ((is_link and prefix_patterns_linked_t) or prefix_patterns_unlinked_t) do
cap1, cap2 = value:match (pattern);
if cap1 then
break; -- found a match so stop looking
end
end
if cap1 and cap2 then -- when both then :project:language: or :language:project: (both forms allowed)
if 1 == #cap1 then -- length == 1 then :project:language:
if cfg.inter_wiki_map[cap2] then -- is language prefix in the interwiki map?
return cap1, cap2; -- return interwiki project and interwiki language
end
else -- here when :language:project:
if cfg.inter_wiki_map[cap1] then -- is language prefix in the interwiki map?
return cap2, cap1; -- return interwiki project and interwiki language
end
end
return nil; -- unknown interwiki language
elseif not (cap1 or cap2) then -- both are nil?
return nil; -- we got something that looks like a project prefix but isn't; return fail
elseif 1 == #cap1 then -- here when one capture
return cap1, nil; -- length is 1 so return project, nil language
else -- here when one capture and its length it more than 1
if cfg.inter_wiki_map[cap1] then -- is language prefix in the interwiki map?
return nil, cap1; -- return nil project, language
end
end
end
--[[--------------------------< L I S T _ P E O P L E >--------------------------
Formats a list of people (authors, contributors, editors, interviewers, translators)
names in the list will be linked when
|<name>-link= has a value
|<name>-mask- does NOT have a value; masked names are presumed to have been
rendered previously so should have been linked there
when |<name>-mask=0, the associated name is not rendered
]]
local function list_people (control, people, etal)
local sep;
local namesep;
local format = control.format;
local maximum = control.maximum;
local name_list = {};
if 'vanc' == format then -- Vancouver-like name styling?
sep = cfg.presentation['sep_nl_vanc']; -- name-list separator between names is a comma
namesep = cfg.presentation['sep_name_vanc']; -- last/first separator is a space
else
sep = cfg.presentation['sep_nl']; -- name-list separator between names is a semicolon
namesep = cfg.presentation['sep_name']; -- last/first separator is <comma><space>
end
if sep:sub (-1, -1) ~= " " then sep = sep .. " " end
if utilities.is_set (maximum) and maximum < 1 then return "", 0; end -- returned 0 is for EditorCount; not used for other names
for i, person in ipairs (people) do
if utilities.is_set (person.last) then
local mask = person.mask;
local one;
local sep_one = sep;
if utilities.is_set (maximum) and i > maximum then
etal = true;
break;
end
if mask then
local n = tonumber (mask); -- convert to a number if it can be converted; nil else
if n then
one = 0 ~= n and string.rep("—", n) or nil; -- make a string of (n > 0) mdashes, nil else, to replace name
person.link = nil; -- don't create link to name if name is replaces with mdash string or has been set nil
else
one = mask; -- replace name with mask text (must include name-list separator)
sep_one = " "; -- modify name-list separator
end
else
one = person.last; -- get surname
local first = person.first -- get given name
if utilities.is_set (first) then
if ("vanc" == format) then -- if Vancouver format
one = one:gsub ('%.', ''); -- remove periods from surnames (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)
if not person.corporate and is_good_vanc_name (one, first, nil, i) then -- and name is all Latin characters; corporate authors not tested
first = reduce_to_initials (first, i); -- attempt to convert first name(s) to initials
end
end
one = one .. namesep .. first;
end
end
if utilities.is_set (person.link) then
one = utilities.make_wikilink (person.link, one); -- link author/editor
end
if one then -- if <one> has a value (name, mdash replacement, or mask text replacement)
local proj, tag = interwiki_prefixen_get (one, true); -- get the interwiki prefixen if present
if 'w' == proj and ('Wikipedia' == mw.site.namespaces.Project['name']) then
proj = nil; -- for stuff like :w:de:<article>, :w is unnecessary TODO: maint cat?
end
if proj then
local proj_name = ({['d'] = cfg.messages.wikidata, ['s'] = cfg.messages.wikisource, ['w'] = cfg.messages.wikipedia})[proj]; -- :w (wikipedia) for linking from a non-wikipedia project
if proj_name then
one = one .. utilities.wrap_style ('interproj', proj_name); -- add resized leading space, brackets, static text, language name
utilities.add_prop_cat ('interproj-linked-name', proj); -- categorize it; <proj> is sort key
tag = nil; -- unset; don't do both project and language
end
end
if tag == cfg.this_wiki_code then
tag = nil; -- stuff like :en:<article> at en.wiki is pointless TODO: maint cat?
end
if tag then
local lang = cfg.lang_tag_remap[tag] or cfg.mw_languages_by_tag_t[tag];
if lang then -- error messaging done in extract_names() where we know parameter names
one = one .. utilities.wrap_style ('interwiki', lang); -- add resized leading space, brackets, static text, language name
utilities.add_prop_cat ('interwiki-linked-name', tag); -- categorize it; <tag> is sort key
end
end
table.insert (name_list, one); -- add it to the list of names
table.insert (name_list, sep_one); -- add the proper name-list separator
end
end
end
local count = #name_list / 2; -- (number of names + number of separators) divided by 2
if 0 < count then
if 1 < count and not etal then
if 'amp' == format then
name_list[#name_list-2] = " & "; -- replace last separator with ampersand text
elseif 'and' == format then
if 2 == count then
name_list[#name_list-2] = cfg.presentation.sep_nl_and; -- replace last separator with 'and' text
else
name_list[#name_list-2] = cfg.presentation.sep_nl_end; -- replace last separator with '(sep) and' text
end
end
end
name_list[#name_list] = nil; -- erase the last separator
end
local result = table.concat (name_list); -- construct list
if etal and utilities.is_set (result) then -- etal may be set by |display-authors=etal but we might not have a last-first list
result = result .. sep .. cfg.messages['et al']; -- we've got a last-first list and etal so add et al.
end
return result, count; -- return name-list string and count of number of names (count used for editor names only)
end
--[[--------------------< M A K E _ C I T E R E F _ I D >-----------------------
Generates a CITEREF anchor ID if we have at least one name or a date. Otherwise
returns an empty string.
namelist is one of the contributor-, author-, or editor-name lists chosen in that
order. year is Year or anchor_year.
]]
local function make_citeref_id (namelist, year)
local names={}; -- a table for the one to four names and year
for i,v in ipairs (namelist) do -- loop through the list and take up to the first four last names
names[i] = v.last
if i == 4 then break end -- if four then done
end
table.insert (names, year); -- add the year at the end
local id = table.concat(names); -- concatenate names and year for CITEREF id
if utilities.is_set (id) then -- if concatenation is not an empty string
return "CITEREF" .. id; -- add the CITEREF portion
else
return ''; -- return an empty string; no reason to include CITEREF id in this citation
end
end
--[[--------------------------< C I T E _ C L A S S _A T T R I B U T E _M A K E >------------------------------
construct <cite> tag class attribute for this citation.
<cite_class> – config.CitationClass from calling template
<mode> – value from |mode= parameter
]]
local function cite_class_attribute_make (cite_class, mode)
local class_t = {};
table.insert (class_t, 'citation'); -- required for blue highlight
if 'citation' ~= cite_class then
table.insert (class_t, cite_class); -- identify this template for user css
table.insert (class_t, utilities.is_set (mode) and mode or 'cs1'); -- identify the citation style for user css or javascript
else
table.insert (class_t, utilities.is_set (mode) and mode or 'cs2'); -- identify the citation style for user css or javascript
end
for _, prop_key in ipairs (z.prop_keys_t) do
table.insert (class_t, prop_key); -- identify various properties for user css or javascript
end
return table.concat (class_t, ' '); -- make a big string and done
end
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
Evaluates the content of name parameters (author, editor, etc.) for variations on
the theme of et al. If found, the et al. is removed, a flag is set to true and
the function returns the modified name and the flag.
This function never sets the flag to false but returns its previous state because
it may have been set by previous passes through this function or by the associated
|display-<names>=etal parameter
]]
local function name_has_etal (name, etal, nocat, param)
if utilities.is_set (name) then -- name can be nil in which case just return
local patterns = cfg.et_al_patterns; -- get patterns from configuration
for _, pattern in ipairs (patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
name = name:gsub (pattern, ''); -- remove the offending text
etal = true; -- set flag (may have been set previously here or by |display-<names>=etal)
if not nocat then -- no categorization for |vauthors=
utilities.set_message ('err_etal', {param}); -- and set an error if not added
end
end
end
end
return name, etal;
end
--[[---------------------< N A M E _ I S _ N U M E R I C >----------------------
Add an error message and category when <name> parameter value does not contain letters.
Add a maintenance category when <name> parameter value has numeric characters mixed with characters that are
not numeric characters; could be letters and/or punctuation characters.
This function will only emit one error and one maint message for the current template. Does not emit both error
and maint messages/categories for the same parameter value.
returns nothing
]]
local function name_is_numeric (name, name_alias, list_name)
local patterns = {
'^%D+%d', -- <name> must have digits preceded by other characters
'^%D*%d+%D+', -- <name> must have digits followed by other characters
}
if not added_numeric_name_errs and mw.ustring.match (name, '^[%A]+$') then -- if we have not already set an error message and <name> does not have any alpha characters
utilities.set_message ('err_numeric_names', name_alias); -- add an error message
added_numeric_name_errs = true; -- set the flag so we emit only one error message
return; -- when here no point in further testing; abandon
end
if not added_numeric_name_maint then -- if we have already set a maint message
for _, pattern in ipairs (patterns) do -- spin through list of patterns
if mw.ustring.match (name, pattern) then -- digits preceded or followed by anything but digits; %D+ includes punctuation
utilities.set_message ('maint_numeric_names', cfg.special_case_translation [list_name]); -- add a maint cat for this template
added_numeric_name_maint = true; -- set the flag so we emit only one maint message
return; -- when here no point in further testing; abandon
end
end
end
end
--[[-----------------< N A M E _ H A S _ M U L T _ N A M E S >------------------
Evaluates the content of last/surname (authors etc.) parameters for multiple names.
Multiple names are indicated if there is more than one comma or any "unescaped"
semicolons. Escaped semicolons are ones used as part of selected HTML entities.
If the condition is met, the function adds the multiple name maintenance category.
Same test for first except that commas should not appear in given names (MOS:JR says
that the generational suffix does not take a separator character). Titles, degrees,
postnominals, affiliations, all normally comma separated don't belong in a citation.
<name> – name parameter value
<list_name> – AuthorList, EditorList, etc
<limit> – number of allowed commas; 1 (default) for surnames; 0 for given names
returns nothing
]]
local function name_has_mult_names (name, list_name, limit)
local _, commas, semicolons, nbsps;
limit = limit and limit or 1;
if utilities.is_set (name) then
_, commas = name:gsub (',', ''); -- count the number of commas
_, semicolons = name:gsub (';', ''); -- count the number of semicolons
-- nbsps probably should be its own separate count rather than merged in
-- some way with semicolons because Lua patterns do not support the
-- grouping operator that regex does, which means there is no way to add
-- more entities to escape except by adding more counts with the new
-- entities
_, nbsps = name:gsub (' ',''); -- count nbsps
-- There is exactly 1 semicolon per entity, so subtract nbsps
-- from semicolons to 'escape' them. If additional entities are added,
-- they also can be subtracted.
if limit < commas or 0 < (semicolons - nbsps) then
utilities.set_message ('maint_mult_names', cfg.special_case_translation [list_name]); -- add a maint message
end
end
end
--[=[-------------------------< I S _ G E N E R I C >----------------------------------------------------------
Compares values assigned to various parameters according to the string provided as <item> in the function call.
<item> can have on of two values:
'generic_names' – for name-holding parameters: |last=, |first=, |editor-last=, etc
'generic_titles' – for |title=
There are two types of generic tests. The 'accept' tests look for a pattern that should not be rejected by the
'reject' test. For example,
|author=[[John Smith (author)|Smith, John]]
would be rejected by the 'author' reject test. But piped wikilinks with 'author' disambiguation should not be
rejected so the 'accept' test prevents that from happening. Accept tests are always performed before reject
tests.
Each of the 'accept' and 'reject' sequence tables hold tables for en.wiki (['en']) and local.wiki (['local'])
that each can hold a test sequence table The sequence table holds, at index [1], a test pattern, and, at index
[2], a boolean control value. The control value tells string.find() or mw.ustring.find() to do plain-text search (true)
or a pattern search (false). The intent of all this complexity is to make these searches as fast as possible so
that we don't run out of processing time on very large articles.
Returns
true when a reject test finds the pattern or string
false when an accept test finds the pattern or string
nil else
]=]
local function is_generic (item, value, wiki)
local test_val;
local str_lower = { -- use string.lower() for en.wiki (['en']) and use mw.ustring.lower() or local.wiki (['local'])
['en'] = string.lower,
['local'] = mw.ustring.lower,
}
local str_find = { -- use string.find() for en.wiki (['en']) and use mw.ustring.find() or local.wiki (['local'])
['en'] = string.find,
['local'] = mw.ustring.find,
}
local function test (val, test_t, wiki) -- local function to do the testing; <wiki> selects lower() and find() functions
val = test_t[2] and str_lower[wiki](value) or val; -- when <test_t[2]> set to 'true', plaintext search using lowercase value
return str_find[wiki] (val, test_t[1], 1, test_t[2]); -- return nil when not found or matched
end
local test_types_t = {'accept', 'reject'}; -- test accept patterns first, then reject patterns
local wikis_t = {'en', 'local'}; -- do tests for each of these keys; en.wiki first, local.wiki second
for _, test_type in ipairs (test_types_t) do -- for each test type
for _, generic_value in pairs (cfg.special_case_translation[item][test_type]) do -- spin through the list of generic value fragments to accept or reject
for _, wiki in ipairs (wikis_t) do
if generic_value[wiki] then
if test (value, generic_value[wiki], wiki) then -- go do the test
return ('reject' == test_type); -- param value rejected, return true; false else
end
end
end
end
end
end
--[[--------------------------< N A M E _ I S _ G E N E R I C >------------------------------------------------
calls is_generic() to determine if <name> is a 'generic name' listed in cfg.generic_names; <name_alias> is the
parameter name used in error messaging
]]
local function name_is_generic (name, name_alias)
if not added_generic_name_errs and is_generic ('generic_names', name) then
utilities.set_message ('err_generic_name', name_alias); -- set an error message
added_generic_name_errs = true;
end
end
--[[--------------------------< N A M E _ C H E C K S >--------------------------------------------------------
This function calls various name checking functions used to validate the content of the various name-holding parameters.
]]
local function name_checks (last, first, list_name, last_alias, first_alias)
local accept_name;
if utilities.is_set (last) then
last, accept_name = utilities.has_accept_as_written (last); -- remove accept-this-as-written markup when it wraps all of <last>
if not accept_name then -- <last> not wrapped in accept-as-written markup
name_has_mult_names (last, list_name); -- check for multiple names in the parameter
name_is_numeric (last, last_alias, list_name); -- check for names that have no letters or are a mix of digits and other characters
name_is_generic (last, last_alias); -- check for names found in the generic names list
end
end
if utilities.is_set (first) then
first, accept_name = utilities.has_accept_as_written (first); -- remove accept-this-as-written markup when it wraps all of <first>
if not accept_name then -- <first> not wrapped in accept-as-written markup
name_has_mult_names (first, list_name, 0); -- check for multiple names in the parameter; 0 is number of allowed commas in a given name
name_is_numeric (first, first_alias, list_name); -- check for names that have no letters or are a mix of digits and other characters
name_is_generic (first, first_alias); -- check for names found in the generic names list
end
local wl_type, D = utilities.is_wikilink (first);
if 0 ~= wl_type then
first = D;
utilities.set_message ('err_bad_paramlink', first_alias);
end
end
return last, first; -- done
end
--[[----------------------< E X T R A C T _ N A M E S >-------------------------
Gets name list from the input arguments
Searches through args in sequential order to find |lastn= and |firstn= parameters
(or their aliases), and their matching link and mask parameters. Stops searching
when both |lastn= and |firstn= are not found in args after two sequential attempts:
found |last1=, |last2=, and |last3= but doesn't find |last4= and |last5= then the
search is done.
This function emits an error message when there is a |firstn= without a matching
|lastn=. When there are 'holes' in the list of last names, |last1= and |last3=
are present but |last2= is missing, an error message is emitted. |lastn= is not
required to have a matching |firstn=.
When an author or editor parameter contains some form of 'et al.', the 'et al.'
is stripped from the parameter and a flag (etal) returned that will cause list_people()
to add the static 'et al.' text from Module:Citation/CS1/Configuration. This keeps
'et al.' out of the template's metadata. When this occurs, an error is emitted.
]]
local function extract_names(args, list_name)
local names = {}; -- table of names
local last; -- individual name components
local first;
local link;
local mask;
local i = 1; -- loop counter/indexer
local n = 1; -- output table indexer
local count = 0; -- used to count the number of times we haven't found a |last= (or alias for authors, |editor-last or alias for editors)
local etal = false; -- return value set to true when we find some form of et al. in an author parameter
local last_alias, first_alias, link_alias; -- selected parameter aliases used in error messaging
while true do
last, last_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'err_redundant_parameters', i ); -- search through args for name components beginning at 1
first, first_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'err_redundant_parameters', i );
link, link_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-Link'], 'err_redundant_parameters', i );
mask = utilities.select_one ( args, cfg.aliases[list_name .. '-Mask'], 'err_redundant_parameters', i );
if last then -- error check |lastn= alias for unknown interwiki link prefix; done here because this is where we have the parameter name
local project, language = interwiki_prefixen_get (last, true); -- true because we expect interwiki links in |lastn= to be wikilinked
if nil == project and nil == language then -- when both are nil
utilities.set_message ('err_bad_paramlink', last_alias); -- not known, emit an error message -- TODO: err_bad_interwiki?
last = utilities.remove_wiki_link (last); -- remove wikilink markup; show display value only
end
end
if link then -- error check |linkn= alias for unknown interwiki link prefix
local project, language = interwiki_prefixen_get (link, false); -- false because wiki links in |author-linkn= is an error
if nil == project and nil == language then -- when both are nil
utilities.set_message ('err_bad_paramlink', link_alias); -- not known, emit an error message -- TODO: err_bad_interwiki?
link = nil; -- unset so we don't link
link_alias = nil;
end
end
last, etal = name_has_etal (last, etal, false, last_alias); -- find and remove variations on et al.
first, etal = name_has_etal (first, etal, false, first_alias); -- find and remove variations on et al.
last, first = name_checks (last, first, list_name, last_alias, first_alias); -- multiple names, extraneous annotation, etc. checks
if first and not last then -- if there is a firstn without a matching lastn
local alias = first_alias:find ('given', 1, true) and 'given' or 'first'; -- get first or given form of the alias
utilities.set_message ('err_first_missing_last', {
first_alias, -- param name of alias missing its mate
first_alias:gsub (alias, {['first'] = 'last', ['given'] = 'surname'}), -- make param name appropriate to the alias form
}); -- add this error message
elseif not first and not last then -- if both firstn and lastn aren't found, are we done?
count = count + 1; -- number of times we haven't found last and first
if 2 <= count then -- two missing names and we give up
break; -- normal exit or there is a two-name hole in the list; can't tell which
end
else -- we have last with or without a first
local result;
link = link_title_ok (link, link_alias, last, last_alias); -- check for improper wiki-markup
if first then
link = link_title_ok (link, link_alias, first, first_alias); -- check for improper wiki-markup
end
names[n] = {last = last, first = first, link = link, mask = mask, corporate = false}; -- add this name to our names list (corporate for |vauthors= only)
n = n + 1; -- point to next location in the names table
if 1 == count then -- if the previous name was missing
utilities.set_message ('err_missing_name', {list_name:match ("(%w+)List"):lower(), i - 1}); -- add this error message
end
count = 0; -- reset the counter, we're looking for two consecutive missing names
end
i = i + 1; -- point to next args location
end
return names, etal; -- all done, return our list of names and the etal flag
end
--[[--------------------------< N A M E _ T A G _ G E T >------------------------------------------------------
attempt to decode |language=<lang_param> and return language name and matching tag; nil else.
This function looks for:
<lang_param> as a tag in cfg.lang_tag_remap{}
<lang_param> as a name in cfg.lang_name_remap{}
<lang_param> as a name in cfg.mw_languages_by_name_t
<lang_param> as a tag in cfg.mw_languages_by_tag_t
when those fail, presume that <lang_param> is an IETF-like tag that MediaWiki does not recognize. Strip all
script, region, variant, whatever subtags from <lang_param> to leave just a two or three character language tag
and look for the new <lang_param> in cfg.mw_languages_by_tag_t{}
on success, returns name (in properly capitalized form) and matching tag (in lowercase); on failure returns nil
]]
local function name_tag_get (lang_param)
local lang_param_lc = mw.ustring.lower (lang_param); -- use lowercase as an index into the various tables
local name;
local tag;
name = cfg.lang_tag_remap[lang_param_lc]; -- assume <lang_param_lc> is a tag; attempt to get remapped language name
if name then -- when <name>, <lang_param> is a tag for a remapped language name
local name_remap = cfg.lang_name_remap[name:lower()]; -- nil for names added to lang_tag_remap only (gv.wiki Manx names)
if name_remap and name_remap[2] ~= lang_param_lc then
utilities.set_message ('maint_unknown_lang');
return name, name_remap[2];
end
return name, lang_param_lc;
end
tag = lang_param_lc:match ('^(%a%a%a?)%-.*'); -- still assuming that <lang_param_lc> is a tag; strip script, region, variant subtags
name = cfg.lang_tag_remap[tag]; -- attempt to get remapped language name with language subtag only
if name then -- when <name>, <tag> is a tag for a remapped language name
return name, tag; -- so return <name> from remap and <tag>
end
if cfg.lang_name_remap[lang_param_lc] then -- not a remapped tag, assume <lang_param_lc> is a name; attempt to get remapped language tag
return cfg.lang_name_remap[lang_param_lc][1], cfg.lang_name_remap[lang_param_lc][2]; -- for this <lang_param_lc>, return a (possibly) new name and appropriate tag
end
name = cfg.mw_languages_by_tag_t[lang_param_lc]; -- assume that <lang_param_lc> is a tag; attempt to get its matching language name
if name then
return name, lang_param_lc; -- <lang_param_lc> is a tag so return it and <name>
end
tag = cfg.mw_languages_by_name_t[lang_param_lc]; -- assume that <lang_param_lc> is a language name; attempt to get its matching tag
if tag then
return cfg.mw_languages_by_tag_t[tag], tag; -- <lang_param_lc> is a name so return the name from the table and <tag>
end
tag = lang_param_lc:match ('^(%a%a%a?)%-.*'); -- is <lang_param_lc> an IETF-like tag that MediaWiki doesn't recognize? <tag> gets the language subtag; nil else
if tag then
name = cfg.mw_languages_by_tag_t[tag]; -- attempt to get a language name using the shortened <tag>
if name then
return name, tag; -- <lang_param_lc> is an unrecognized IETF-like tag so return <name> and language subtag
end
end
end
--[[-------------------< L A N G U A G E _ P A R A M E T E R >------------------
Gets language name from a provided two- or three-character ISO 639 code. If a code
is recognized by MediaWiki, use the returned name; if not, then use the value that
was provided with the language parameter.
When |language= contains a recognized language (either code or name), the page is
assigned to the category for that code: Category:Norwegian-language sources (no).
For valid three-character code languages, the page is assigned to the single category
for '639-2' codes: Category:CS1 ISO 639-2 language sources.
Languages that are the same as the local wiki are not categorized. MediaWiki does
not recognize three-character equivalents of two-character codes: code 'ar' is
recognized but code 'ara' is not.
This function supports multiple languages in the form |language=nb, French, th
where the language names or codes are separated from each other by commas with
optional space characters.
]]
local function language_parameter (lang)
local tag; -- some form of IETF-like language tag; language subtag with optional region, sript, vatiant, etc subtags
local lang_subtag; -- ve populates |language= with mostly unecessary region subtags the MediaWiki does not recognize; this is the base language subtag
local name; -- the language name
local language_list = {}; -- table of language names to be rendered
local names_t = {}; -- table made from the value assigned to |language=
local this_wiki_name = mw.language.fetchLanguageName (cfg.this_wiki_code, cfg.this_wiki_code); -- get this wiki's language name
names_t = mw.text.split (lang, '%s*,%s*'); -- names should be a comma separated list
for _, lang in ipairs (names_t) do -- reuse lang here because we don't yet know if lang is a language name or a language tag
name, tag = name_tag_get (lang); -- attempt to get name/tag pair for <lang>; <name> has proper capitalization; <tag> is lowercase
if utilities.is_set (tag) then
lang_subtag = tag:gsub ('^(%a%a%a?)%-.*', '%1'); -- for categorization, strip any IETF-like tags from language tag
if cfg.this_wiki_code ~= lang_subtag then -- when the language is not the same as this wiki's language
if 2 == lang_subtag:len() then -- and is a two-character tag
utilities.add_prop_cat ('foreign-lang-source', {name, tag}, lang_subtag); -- categorize it; tag appended to allow for multiple language categorization
else -- or is a recognized language (but has a three-character tag)
utilities.add_prop_cat ('foreign-lang-source-2', {lang_subtag}, lang_subtag); -- categorize it differently TODO: support multiple three-character tag categories per cs1|2 template?
end
elseif cfg.local_lang_cat_enable then -- when the language and this wiki's language are the same and categorization is enabled
utilities.add_prop_cat ('local-lang-source', {name, lang_subtag}); -- categorize it
end
else
name = lang; -- return whatever <lang> has so that we show something
utilities.set_message ('maint_unknown_lang'); -- add maint category if not already added
end
table.insert (language_list, name);
name = ''; -- so we can reuse it
end
name = utilities.make_sep_list (#language_list, language_list);
if (1 == #language_list) and (lang_subtag == cfg.this_wiki_code) then -- when only one language, find lang name in this wiki lang name; for |language=en-us, 'English' in 'American English'
return ''; -- if one language and that language is this wiki's return an empty string (no annotation)
end
return (" " .. wrap_msg ('language', name)); -- otherwise wrap with '(in ...)'
--[[ TODO: should only return blank or name rather than full list
so we can clean up the bunched parenthetical elements Language, Type, Format
]]
end
--[[-----------------------< S E T _ C S _ S T Y L E >--------------------------
Gets the default CS style configuration for the given mode.
Returns default separator and either postscript as passed in or the default.
In CS1, the default postscript and separator are '.'.
In CS2, the default postscript is the empty string and the default separator is ','.
]]
local function set_cs_style (postscript, mode)
if utilities.is_set(postscript) then
-- emit a maintenance message if user postscript is the default cs1 postscript
-- we catch the opposite case for cs2 in set_style
if mode == 'cs1' and postscript == cfg.presentation['ps_' .. mode] then
utilities.set_message ('maint_postscript');
end
else
postscript = cfg.presentation['ps_' .. mode];
end
return cfg.presentation['sep_' .. mode], postscript;
end
--[[--------------------------< S E T _ S T Y L E >-----------------------------
Sets the separator and postscript styles. Checks the |mode= first and the
#invoke CitationClass second. Removes the postscript if postscript == none.
]]
local function set_style (mode, postscript, cite_class)
local sep;
if 'cs2' == mode then
sep, postscript = set_cs_style (postscript, 'cs2');
elseif 'cs1' == mode then
sep, postscript = set_cs_style (postscript, 'cs1');
elseif 'citation' == cite_class then
sep, postscript = set_cs_style (postscript, 'cs2');
else
sep, postscript = set_cs_style (postscript, 'cs1');
end
if cfg.keywords_xlate[postscript:lower()] == 'none' then
-- emit a maintenance message if user postscript is the default cs2 postscript
-- we catch the opposite case for cs1 in set_cs_style
if 'cs2' == mode or ('cs1' ~= mode and 'citation' == cite_class) then -- {{citation |title=Title |mode=cs1 |postscript=none}} should not emit maint message
utilities.set_message ('maint_postscript');
end
postscript = '';
end
return sep, postscript
end
--[=[-------------------------< I S _ P D F >-----------------------------------
Determines if a URL has the file extension that is one of the PDF file extensions
used by [[MediaWiki:Common.css]] when applying the PDF icon to external links.
returns true if file extension is one of the recognized extensions, else false
]=]
local function is_pdf (url)
return url:match ('%.pdf$') or url:match ('%.PDF$') or
url:match ('%.pdf[%?#]') or url:match ('%.PDF[%?#]') or
url:match ('%.PDF#') or url:match ('%.pdf#');
end
--[[--------------------------< S T Y L E _ F O R M A T >-----------------------
Applies CSS style to |format=, |chapter-format=, etc. Also emits an error message
if the format parameter does not have a matching URL parameter. If the format parameter
is not set and the URL contains a file extension that is recognized as a PDF document
by MediaWiki's commons.css, this code will set the format parameter to (PDF) with
the appropriate styling.
]]
local function style_format (format, url, fmt_param, url_param)
if utilities.is_set (format) then
format = utilities.wrap_style ('format', format); -- add leading space, parentheses, resize
if not utilities.is_set (url) then
utilities.set_message ('err_format_missing_url', {fmt_param, url_param}); -- add an error message
end
elseif is_pdf (url) then -- format is not set so if URL is a PDF file then
format = utilities.wrap_style ('format', 'PDF'); -- set format to PDF
else
format = ''; -- empty string for concatenation
end
return format;
end
--[[---------------------< G E T _ D I S P L A Y _ N A M E S >------------------
Returns a number that defines the number of names displayed for author and editor
name lists and a Boolean flag to indicate when et al. should be appended to the name list.
When the value assigned to |display-xxxxors= is a number greater than or equal to zero,
return the number and the previous state of the 'etal' flag (false by default
but may have been set to true if the name list contains some variant of the text 'et al.').
When the value assigned to |display-xxxxors= is the keyword 'etal', return a number
that is one greater than the number of authors in the list and set the 'etal' flag true.
This will cause the list_people() to display all of the names in the name list followed by 'et al.'
In all other cases, returns nil and the previous state of the 'etal' flag.
inputs:
max: A['DisplayAuthors'] or A['DisplayEditors'], etc; a number or some flavor of etal
count: #a or #e
list_name: 'authors' or 'editors'
etal: author_etal or editor_etal
This function sets an error message when |display-xxxxors= value greater than or equal to number of names but
not when <max> comes from {{cs1 config}} global settings. When using global settings, <param> is set to the
keyword 'cs1 config' which is used to supress the normal error. Error is suppressed because it is to be expected
that some citations in an article will have the same or fewer names that the limit specified in {{cs1 config}}.
]]
local function get_display_names (max, count, list_name, etal, param)
if utilities.is_set (max) then
if 'etal' == max:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings
max = count + 1; -- number of authors + 1 so display all author name plus et al.
etal = true; -- overrides value set by extract_names()
elseif max:match ('^%d+$') then -- if is a string of numbers
max = tonumber (max); -- make it a number
if (max >= count) and ('cs1 config' ~= param) then -- error when local |display-xxxxors= value greater than or equal to number of names; not an error when using global setting
utilities.set_message ('err_disp_name', {param, max}); -- add error message
max = nil;
end
else -- not a valid keyword or number
utilities.set_message ('err_disp_name', {param, max}); -- add error message
max = nil; -- unset; as if |display-xxxxors= had not been set
end
end
return max, etal;
end
--[[----------< E X T R A _ T E X T _ I N _ P A G E _ C H E C K >---------------
Adds error if |page=, |pages=, |quote-page=, |quote-pages= has what appears to be
some form of p. or pp. abbreviation in the first characters of the parameter content.
check page for extraneous p, p., pp, pp., pg, pg. at start of parameter value:
good pattern: '^P[^%.P%l]' matches when page begins PX or P# but not Px
where x and X are letters and # is a digit
bad pattern: '^[Pp][PpGg]' matches when page begins pp, pP, Pp, PP, pg, pG, Pg, PG
]]
local function extra_text_in_page_check (val, name)
if not val:match (cfg.vol_iss_pg_patterns.good_ppattern) then
for _, pattern in ipairs (cfg.vol_iss_pg_patterns.bad_ppatterns) do -- spin through the selected sequence table of patterns
if val:match (pattern) then -- when a match, error so
utilities.set_message ('err_extra_text_pages', name); -- add error message
return; -- and done
end
end
end
end
--[[--------------------------< E X T R A _ T E X T _ I N _ V O L _ I S S _ C H E C K >------------------------
Adds error if |volume= or |issue= has what appears to be some form of redundant 'type' indicator. Applies to
both; this function looks for issue text in both |issue= and |volume= and looks for volume-like text in |voluem=
and |issue=.
For |volume=:
'V.', or 'Vol.' (with or without the dot) abbreviations or 'Volume' in the first characters of the parameter
content (all case insensitive). 'V' and 'v' (without the dot) are presumed to be roman numerals so
are allowed.
For |issue=:
'No.', 'I.', 'Iss.' (with or without the dot) abbreviations, or 'Issue' in the first characters of the
parameter content (all case insensitive); numero styling: 'n°' with degree sign U+00B0, and № precomposed
numero sign U+2116.
Single character values ('v', 'i', 'n') allowed when not followed by separator character ('.', ':', '=', or
whitespace character) – param values are trimmed of whitespace by MediaWiki before delivered to the module.
<val> is |volume= or |issue= parameter value
<name> is |volume= or |issue= parameter name for error message
<selector> is 'v' for |volume=, 'i' for |issue=
sets error message on failure; returns nothing
]]
local function extra_text_in_vol_iss_check (val, name, selector)
if not utilities.is_set (val) then
return;
end
local handler = 'v' == selector and 'err_extra_text_volume' or 'err_extra_text_issue';
local accept_val;
val, accept_val = utilities.has_accept_as_written (val);
--if accept_val then -- if uncomment this, |volume=((vol. 1)) suppresses error
-- return;
--end
--val = mw.text.unstripNoWiki (val); -- if uncomment this, |volume=<nowiki>vol. 1</nowiki> shows error
val = val:lower(); -- force parameter value to lower case
for _, pattern in ipairs (cfg.vol_iss_pg_patterns.vi_patterns_t) do -- spin through the sequence table of patterns
if val:match (pattern) then -- when a match, error so
utilities.set_message (handler, name); -- add error message
return; -- and done
end
end
end
--[=[-------------------------< G E T _ V _ N A M E _ T A B L E >----------------------------------------------
split apart a |vauthors= or |veditors= parameter. This function allows for corporate names, wrapped in doubled
parentheses to also have commas; in the old version of the code, the doubled parentheses were included in the
rendered citation and in the metadata. Individual author names may be wikilinked
|vauthors=Jones AB, [[E. B. White|White EB]], ((Black, Brown, and Co.))
]=]
local function get_v_name_table (vparam, output_table, output_link_table)
local _, accept = utilities.has_accept_as_written (vparam);
if accept then
utilities.add_prop_cat ('vanc-accept'); -- add properties category
end
local name_table = mw.text.split(vparam, "%s*,%s*"); -- names are separated by commas
local wl_type, label, link; -- wl_type not used here; just a placeholder
local i = 1;
while name_table[i] do
if name_table[i]:match ('^%(%(.*[^%)][^%)]$') then -- first segment of corporate with one or more commas; this segment has the opening doubled parentheses
local name = name_table[i];
i = i + 1; -- bump indexer to next segment
while name_table[i] do
name = name .. ', ' .. name_table[i]; -- concatenate with previous segments
if name_table[i]:match ('^.*%)%)$') then -- if this table member has the closing doubled parentheses
break; -- and done reassembling so
end
i = i + 1; -- bump indexer
end
table.insert (output_table, name); -- and add corporate name to the output table
table.insert (output_link_table, ''); -- no wikilink
else
wl_type, label, link = utilities.is_wikilink (name_table[i]); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]
table.insert (output_table, label); -- add this name
if 1 == wl_type then
table.insert (output_link_table, label); -- simple wikilink [[D]]
else
table.insert (output_link_table, link); -- no wikilink or [[L|D]]; add this link if there is one, else empty string
end
end
i = i + 1;
end
return output_table;
end
--[[--------------------------< P A R S E _ V A U T H O R S _ V E D I T O R S >--------------------------------
This function extracts author / editor names from |vauthors= or |veditors= and finds matching |xxxxor-maskn= and
|xxxxor-linkn= in args. It then returns a table of assembled names just as extract_names() does.
Author / editor names in |vauthors= or |veditors= must be in Vancouver system style. Corporate or institutional names
may sometimes be required and because such names will often fail the is_good_vanc_name() and other format compliance
tests, are wrapped in doubled parentheses ((corporate name)) to suppress the format tests.
Supports generational suffixes Jr, 2nd, 3rd, 4th–6th.
This function sets the Vancouver error when a required comma is missing and when there is a space between an author's initials.
]]
local function parse_vauthors_veditors (args, vparam, list_name)
local names = {}; -- table of names assembled from |vauthors=, |author-maskn=, |author-linkn=
local v_name_table = {};
local v_link_table = {}; -- when name is wikilinked, targets go in this table
local etal = false; -- return value set to true when we find some form of et al. vauthors parameter
local last, first, link, mask, suffix;
local corporate = false;
vparam, etal = name_has_etal (vparam, etal, true); -- find and remove variations on et al. do not categorize (do it here because et al. might have a period)
v_name_table = get_v_name_table (vparam, v_name_table, v_link_table); -- names are separated by commas
for i, v_name in ipairs(v_name_table) do
first = ''; -- set to empty string for concatenation and because it may have been set for previous author/editor
local accept_name;
v_name, accept_name = utilities.has_accept_as_written (v_name); -- remove accept-this-as-written markup when it wraps all of <v_name>
if accept_name then
last = v_name;
corporate = true; -- flag used in list_people()
elseif string.find(v_name, "%s") then
if v_name:find('[;%.]') then -- look for commonly occurring punctuation characters;
add_vanc_error (cfg.err_msg_supl.punctuation, i);
end
local lastfirstTable = {}
lastfirstTable = mw.text.split(v_name, "%s+")
first = table.remove(lastfirstTable); -- removes and returns value of last element in table which should be initials or generational suffix
if not mw.ustring.match (first, '^%u+$') then -- mw.ustring here so that later we will catch non-Latin characters
suffix = first; -- not initials so assume that whatever we got is a generational suffix
first = table.remove(lastfirstTable); -- get what should be the initials from the table
end
last = table.concat(lastfirstTable, ' ') -- returns a string that is the concatenation of all other names that are not initials and generational suffix
if not utilities.is_set (last) then
first = ''; -- unset
last = v_name; -- last empty because something wrong with first
add_vanc_error (cfg.err_msg_supl.name, i);
end
if mw.ustring.match (last, '%a+%s+%u+%s+%a+') then
add_vanc_error (cfg.err_msg_supl['missing comma'], i); -- matches last II last; the case when a comma is missing
end
if mw.ustring.match (v_name, ' %u %u$') then -- this test is in the wrong place TODO: move or replace with a more appropriate test
add_vanc_error (cfg.err_msg_supl.initials, i); -- matches a space between two initials
end
else
last = v_name; -- last name or single corporate name? Doesn't support multiword corporate names? do we need this?
end
if utilities.is_set (first) then
if not mw.ustring.match (first, "^%u?%u$") then -- first shall contain one or two upper-case letters, nothing else
add_vanc_error (cfg.err_msg_supl.initials, i); -- too many initials; mixed case initials (which may be ok Romanization); hyphenated initials
end
is_good_vanc_name (last, first, suffix, i); -- check first and last before restoring the suffix which may have a non-Latin digit
if utilities.is_set (suffix) then
first = first .. ' ' .. suffix; -- if there was a suffix concatenate with the initials
suffix = ''; -- unset so we don't add this suffix to all subsequent names
end
else
if not corporate then
is_good_vanc_name (last, '', nil, i);
end
end
link = utilities.select_one ( args, cfg.aliases[list_name .. '-Link'], 'err_redundant_parameters', i ) or v_link_table[i];
mask = utilities.select_one ( args, cfg.aliases[list_name .. '-Mask'], 'err_redundant_parameters', i );
names[i] = {last = last, first = first, link = link, mask = mask, corporate = corporate}; -- add this assembled name to our names list
end
return names, etal; -- all done, return our list of names
end
--[[--------------------------< S E L E C T _ A U T H O R _ E D I T O R _ S O U R C E >------------------------
Select one of |authors=, |authorn= / |lastn / firstn=, or |vauthors= as the source of the author name list or
select one of |editorn= / editor-lastn= / |editor-firstn= or |veditors= as the source of the editor name list.
Only one of these appropriate three will be used. The hierarchy is: |authorn= (and aliases) highest and |authors= lowest;
|editorn= (and aliases) highest and |veditors= lowest (support for |editors= withdrawn)
When looking for |authorn= / |editorn= parameters, test |xxxxor1= and |xxxxor2= (and all of their aliases); stops after the second
test which mimicks the test used in extract_names() when looking for a hole in the author name list. There may be a better
way to do this, I just haven't discovered what that way is.
Emits an error message when more than one xxxxor name source is provided.
In this function, vxxxxors = vauthors or veditors; xxxxors = authors as appropriate.
]]
local function select_author_editor_source (vxxxxors, xxxxors, args, list_name)
local lastfirst = false;
if utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'none', 1 ) or -- do this twice in case we have a |first1= without a |last1=; this ...
utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'none', 1 ) or -- ... also catches the case where |first= is used with |vauthors=
utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'none', 2 ) or
utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'none', 2 ) then
lastfirst = true;
end
if (utilities.is_set (vxxxxors) and true == lastfirst) or -- these are the three error conditions
(utilities.is_set (vxxxxors) and utilities.is_set (xxxxors)) or
(true == lastfirst and utilities.is_set (xxxxors)) then
utilities.set_message ('err_redundant_parameters',
utilities.substitute (cfg.special_case_translation.name_list_params,
('AuthorList' == list_name) and cfg.special_case_translation.author or cfg.special_case_translation.editor)); -- add error message
end
if true == lastfirst then return 1 end; -- return a number indicating which author name source to use
if utilities.is_set (vxxxxors) then return 2 end;
if utilities.is_set (xxxxors) then return 3 end;
return 1; -- no authors so return 1; this allows missing author name test to run in case there is a first without last
end
--[[--------------------------< I S _ V A L I D _ P A R A M E T E R _ V A L U E >------------------------------
This function is used to validate a parameter's assigned value for those parameters that have only a limited number
of allowable values (yes, y, true, live, dead, etc.). When the parameter value has not been assigned a value (missing
or empty in the source template) the function returns the value specified by ret_val. If the parameter value is one
of the list of allowed values returns the translated value; else, emits an error message and returns the value
specified by ret_val.
TODO: explain <invert>
]]
local function is_valid_parameter_value (value, name, possible, ret_val, invert)
if not utilities.is_set (value) then
return ret_val; -- an empty parameter is ok
end
if (not invert and utilities.in_array (value, possible)) then -- normal; <value> is in <possible> table
return cfg.keywords_xlate[value]; -- return translation of parameter keyword
elseif invert and not utilities.in_array (value, possible) then -- invert; <value> is not in <possible> table
return value; -- return <value> as it is
else
utilities.set_message ('err_invalid_param_val', {name, value}); -- not an allowed value so add error message
return ret_val;
end
end
--[[--------------------------< T E R M I N A T E _ N A M E _ L I S T >----------------------------------------
This function terminates a name list (author, contributor, editor) with a separator character (sepc) and a space
when the last character is not a sepc character or when the last three characters are not sepc followed by two
closing square brackets (close of a wikilink). When either of these is true, the name_list is terminated with a
single space character.
]]
local function terminate_name_list (name_list, sepc)
if (string.sub (name_list, -3, -1) == sepc .. '. ') then -- if already properly terminated
return name_list; -- just return the name list
elseif (string.sub (name_list, -1, -1) == sepc) or (string.sub (name_list, -3, -1) == sepc .. ']]') then -- if last name in list ends with sepc char
return name_list .. " "; -- don't add another
else
return name_list .. sepc .. ' '; -- otherwise terminate the name list
end
end
--[[-------------------------< F O R M A T _ V O L U M E _ I S S U E >-----------------------------------------
returns the concatenation of the formatted volume and issue (or journal article number) parameters as a single
string; or formatted volume or formatted issue, or an empty string if neither are set.
]]
local function format_volume_issue (volume, issue, article, cite_class, origin, sepc, lower)
if not utilities.is_set (volume) and not utilities.is_set (issue) and not utilities.is_set (article) then
return '';
end
-- same condition as in format_pages_sheets()
local is_journal = 'journal' == cite_class or (utilities.in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);
local is_numeric_vol = volume and (volume:match ('^[MDCLXVI]+$') or volume:match ('^%d+$')); -- is only uppercase roman numerals or only digits?
local is_long_vol = volume and (4 < mw.ustring.len(volume)); -- is |volume= value longer than 4 characters?
if volume and (not is_numeric_vol and is_long_vol) then -- when not all digits or Roman numerals, is |volume= longer than 4 characters?
utilities.add_prop_cat ('long-vol'); -- yes, add properties cat
end
if is_journal then -- journal-style formatting
local vol = '';
if utilities.is_set (volume) then
if is_numeric_vol then -- |volume= value all digits or all uppercase Roman numerals?
vol = utilities.substitute (cfg.presentation['vol-bold'], {sepc, volume}); -- render in bold face
elseif is_long_vol then -- not all digits or Roman numerals; longer than 4 characters?
vol = utilities.substitute (cfg.messages['j-vol'], {sepc, utilities.hyphen_to_dash (volume)}); -- not bold
else -- four or fewer characters
vol = utilities.substitute (cfg.presentation['vol-bold'], {sepc, utilities.hyphen_to_dash (volume)}); -- bold
end
end
vol = vol .. (utilities.is_set (issue) and utilities.substitute (cfg.messages['j-issue'], issue) or '')
vol = vol .. (utilities.is_set (article) and utilities.substitute (cfg.messages['j-article-num'], article) or '')
return vol;
end
if 'podcast' == cite_class and utilities.is_set (issue) then
return wrap_msg ('issue', {sepc, issue}, lower);
end
if 'conference' == cite_class and utilities.is_set (article) then -- |article-number= supported only in journal and conference cites
if utilities.is_set (volume) and utilities.is_set (article) then -- both volume and article number
return wrap_msg ('vol-art', {sepc, utilities.hyphen_to_dash (volume), article}, lower);
elseif utilities.is_set (article) then -- article number alone; when volume alone, handled below
return wrap_msg ('art', {sepc, article}, lower);
end
end
-- all other types of citation
if utilities.is_set (volume) and utilities.is_set (issue) then
return wrap_msg ('vol-no', {sepc, utilities.hyphen_to_dash (volume), issue}, lower);
elseif utilities.is_set (volume) then
return wrap_msg ('vol', {sepc, utilities.hyphen_to_dash (volume)}, lower);
else
return wrap_msg ('issue', {sepc, issue}, lower);
end
end
--[[-------------------------< F O R M A T _ P A G E S _ S H E E T S >-----------------------------------------
adds static text to one of |page(s)= or |sheet(s)= values and returns it with all of the others set to empty strings.
The return order is:
page, pages, sheet, sheets
Singular has priority over plural when both are provided.
]]
local function format_pages_sheets (page, pages, sheet, sheets, cite_class, origin, sepc, nopp, lower)
if 'map' == cite_class then -- only cite map supports sheet(s) as in-source locators
if utilities.is_set (sheet) then
if 'journal' == origin then
return '', '', wrap_msg ('j-sheet', sheet, lower), '';
else
return '', '', wrap_msg ('sheet', {sepc, sheet}, lower), '';
end
elseif utilities.is_set (sheets) then
if 'journal' == origin then
return '', '', '', wrap_msg ('j-sheets', sheets, lower);
else
return '', '', '', wrap_msg ('sheets', {sepc, sheets}, lower);
end
end
end
local is_journal = 'journal' == cite_class or (utilities.in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);
if utilities.is_set (page) then
if is_journal then
return utilities.substitute (cfg.messages['j-page(s)'], page), '', '', '';
elseif not nopp then
return utilities.substitute (cfg.messages['p-prefix'], {sepc, page}), '', '', '';
else
return utilities.substitute (cfg.messages['nopp'], {sepc, page}), '', '', '';
end
elseif utilities.is_set (pages) then
if is_journal then
return utilities.substitute (cfg.messages['j-page(s)'], pages), '', '', '';
elseif tonumber(pages) ~= nil and not nopp then -- if pages is only digits, assume a single page number
return '', utilities.substitute (cfg.messages['p-prefix'], {sepc, pages}), '', '';
elseif not nopp then
return '', utilities.substitute (cfg.messages['pp-prefix'], {sepc, pages}), '', '';
else
return '', utilities.substitute (cfg.messages['nopp'], {sepc, pages}), '', '';
end
end
return '', '', '', ''; -- return empty strings
end
--[[--------------------------< I N S O U R C E _ L O C _ G E T >----------------------------------------------
returns one of the in-source locators: page, pages, or at.
If any of these are interwiki links to Wikisource, returns the label portion of the interwiki-link as plain text
for use in COinS. This COinS thing is done because here we convert an interwiki-link to an external link and
add an icon span around that; get_coins_pages() doesn't know about the span. TODO: should it?
TODO: add support for sheet and sheets?; streamline;
TODO: make it so that this function returns only one of the three as the single in-source (the return value assigned
to a new name)?
]]
local function insource_loc_get (page, page_orig, pages, pages_orig, at)
local ws_url, ws_label, coins_pages, L; -- for Wikisource interwiki-links; TODO: this corrupts page metadata (span remains in place after cleanup; fix there?)
if utilities.is_set (page) then
if utilities.is_set (pages) or utilities.is_set (at) then
pages = ''; -- unset the others
at = '';
end
extra_text_in_page_check (page, page_orig); -- emit error message when |page= value begins with what looks like p., pp., etc.
ws_url, ws_label, L = wikisource_url_make (page); -- make ws URL from |page= interwiki link; link portion L becomes tooltip label
if ws_url then
page = external_link (ws_url, ws_label .. ' ', 'ws link in page'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
page = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, page});
coins_pages = ws_label;
end
elseif utilities.is_set (pages) then
if utilities.is_set (at) then
at = ''; -- unset
end
extra_text_in_page_check (pages, pages_orig); -- emit error message when |page= value begins with what looks like p., pp., etc.
ws_url, ws_label, L = wikisource_url_make (pages); -- make ws URL from |pages= interwiki link; link portion L becomes tooltip label
if ws_url then
pages = external_link (ws_url, ws_label .. ' ', 'ws link in pages'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
pages = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, pages});
coins_pages = ws_label;
end
elseif utilities.is_set (at) then
ws_url, ws_label, L = wikisource_url_make (at); -- make ws URL from |at= interwiki link; link portion L becomes tooltip label
if ws_url then
at = external_link (ws_url, ws_label .. ' ', 'ws link in at'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
at = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, at});
coins_pages = ws_label;
end
end
return page, pages, at, coins_pages;
end
--[[--------------------------< I S _ U N I Q U E _ A R C H I V E _ U R L >------------------------------------
add error message when |archive-url= value is same as |url= or chapter-url= (or alias...) value
]]
local function is_unique_archive_url (archive, url, c_url, source, date)
if utilities.is_set (archive) then
if archive == url or archive == c_url then
utilities.set_message ('err_bad_url', {utilities.wrap_style ('parameter', source)}); -- add error message
return '', ''; -- unset |archive-url= and |archive-date= because same as |url= or |chapter-url=
end
end
return archive, date;
end
--[=[-------------------------< A R C H I V E _ U R L _ C H E C K >--------------------------------------------
Check archive.org URLs to make sure they at least look like they are pointing at valid archives and not to the
save snapshot URL or to calendar pages. When the archive URL is 'https://web.archive.org/save/' (or http://...)
archive.org saves a snapshot of the target page in the URL. That is something that Wikipedia should not allow
unwitting readers to do.
When the archive.org URL does not have a complete timestamp, archive.org chooses a snapshot according to its own
algorithm or provides a calendar 'search' result. [[WP:ELNO]] discourages links to search results.
This function looks at the value assigned to |archive-url= and returns empty strings for |archive-url= and
|archive-date= and an error message when:
|archive-url= holds an archive.org save command URL
|archive-url= is an archive.org URL that does not have a complete timestamp (YYYYMMDDhhmmss 14 digits) in the
correct place
otherwise returns |archive-url= and |archive-date=
There are two mostly compatible archive.org URLs:
//web.archive.org/<timestamp>... -- the old form
//web.archive.org/web/<timestamp>... -- the new form
The old form does not support or map to the new form when it contains a display flag. There are four identified flags
('id_', 'js_', 'cs_', 'im_') but since archive.org ignores others following the same form (two letters and an underscore)
we don't check for these specific flags but we do check the form.
This function supports a preview mode. When the article is rendered in preview mode, this function may return a modified
archive URL:
for save command errors, return undated wildcard (/*/)
for timestamp errors when the timestamp has a wildcard, return the URL unmodified
for timestamp errors when the timestamp does not have a wildcard, return with timestamp limited to six digits plus wildcard (/yyyymm*/)
A secondary function is to return an archive-url timestamp from those archive urls that have them. The timestamp
is used by validation.archive_date_check() to see if the value in |archive-date= matches the timestamp in the
archive url.
]=]
local function archive_url_check (url, date)
local err_msg = ''; -- start with the error message empty
local path, timestamp, flag; -- portions of the archive.org URL
local function is_ts_date_valid (timestamp, origin_date) -- local function to validate archive url taimestamp date; time ignored
local y, m, d = timestamp:match ('(%d%d%d%d)(%d%d)(%d%d)'); -- split into parts
if y and validation.is_valid_date (y, m, d) and (tonumber (y) >= 1996) then
return true, tonumber (y) >= origin_date; -- <origin_date> is 1996 for archive.org
end
end
if (not url:match('//web%.archive%.org/')) and (not url:match('//liveweb%.archive%.org/')) then -- also deprecated liveweb Wayback machine URL
return url, date; -- not an archive.org archive, return ArchiveURL and ArchiveDate
end
if url:match('//web%.archive%.org/save/') then -- if a save command URL, we don't want to allow saving of the target page
err_msg = cfg.err_msg_supl.save;
url = url:gsub ('(//web%.archive%.org)/save/', '%1/*/', 1); -- for preview mode: modify ArchiveURL
elseif url:match('//liveweb%.archive%.org/') then
err_msg = cfg.err_msg_supl.liveweb;
else
path, timestamp, flag = url:match('//web%.archive%.org/([^%d]*)(%d+)([^/]*)/'); -- split out some of the URL parts for evaluation
if not path then -- malformed in some way; pattern did not match
err_msg = cfg.err_msg_supl.timestamp;
elseif 14 ~= timestamp:len() then -- path and flag optional, must have 14-digit timestamp here
err_msg = cfg.err_msg_supl.timestamp;
if '*' ~= flag then
local replacement = timestamp:match ('^%d%d%d%d%d%d') or timestamp:match ('^%d%d%d%d'); -- get the first 6 (YYYYMM) or first 4 digits (YYYY)
if replacement then -- nil if there aren't at least 4 digits (year)
replacement = replacement .. string.rep ('0', 14 - replacement:len()); -- year or yearmo (4 or 6 digits) zero-fill to make 14-digit timestamp
url=url:gsub ('(//web%.archive%.org/[^%d]*)%d[^/]*', '%1' .. replacement .. '*', 1) -- for preview, modify ts to 14 digits plus splat for calendar display
end
end
elseif not is_ts_date_valid (timestamp, 1996) then -- is ymd portion of timestamp a valid date?
err_msg = cfg.err_msg_supl.timestamp;
timestamp = nil; -- unset because invalid
elseif utilities.is_set (path) and 'web/' ~= path then -- older archive URLs do not have the extra 'web/' path element
err_msg = cfg.err_msg_supl.path;
elseif utilities.is_set (flag) and not utilities.is_set (path) then -- flag not allowed with the old form URL (without the 'web/' path element)
err_msg = cfg.err_msg_supl.flag;
elseif utilities.is_set (flag) and not flag:match ('%a%a_') then -- flag if present must be two alpha characters and underscore (requires 'web/' path element)
err_msg = cfg.err_msg_supl.flag;
else
return url, date, timestamp; -- return ArchiveURL, ArchiveDate, and timestamp from |archive-url=
end
end
-- if here, something not right so
utilities.set_message ('err_archive_url', {err_msg}); -- add error message and
if is_preview_mode then
return url, date, timestamp; -- preview mode so return ArchiveURL, ArchiveDate, and timestamp from |archive-url=
else
return '', ''; -- return empty strings for ArchiveURL and ArchiveDate
end
end
--[[--------------------------< P L A C E _ C H E C K >--------------------------------------------------------
check |place=, |publication-place=, |location= to see if these params include digits. This function added because
many editors misuse location to specify the in-source location (|page(s)= and |at= are supposed to do that)
returns the original parameter value without modification; added maint cat when parameter value contains digits
]]
local function place_check (param_val)
if not utilities.is_set (param_val) then -- parameter empty or omitted
return param_val; -- return that empty state
end
if mw.ustring.find (param_val, '%d') then -- not empty, are there digits in the parameter value
utilities.set_message ('maint_location'); -- yep, add maint cat
end
return param_val; -- and done
end
--[[--------------------------< I S _ A R C H I V E D _ C O P Y >----------------------------------------------
compares |title= to 'Archived copy' (placeholder added by bots that can't find proper title); if matches, return true; nil else
]]
local function is_archived_copy (title)
title = mw.ustring.lower(title); -- switch title to lower case
if title:find (cfg.special_case_translation.archived_copy.en) then -- if title is 'Archived copy'
return true;
elseif cfg.special_case_translation.archived_copy['local'] then
if mw.ustring.find (title, cfg.special_case_translation.archived_copy['local']) then -- mw.ustring() because might not be Latin script
return true;
end
end
end
--[[--------------------------< D I S P L A Y _ N A M E S _ S E L E C T >--------------------------------------
for any of the |display-authors=, |display-editors=, etc parameters, select either the local or global setting.
When both are present, look at <local_display_names> value. When the value is some sort of 'et al.'string,
special handling is required.
When {{cs1 config}} has |display-<namelist>= AND this template has |display-<namelist>=etal AND:
the number of names specified by <number_of_names> is:
greater than the number specified in the global |display-<namelist>= parameter (<global_display_names>)
use global |display-<namelist>= parameter value
set overridden maint category
less than or equal to the number specified in the global |display-<namelist>= parameter
use local |display-<namelist>= parameter value
The purpose of this function is to prevent categorizing a template that has fewer names than the global setting
to keep the etal annotation specified by <local_display_names>.
]]
local function display_names_select (global_display_names, local_display_names, param_name, number_of_names, test)
if global_display_names and utilities.is_set (local_display_names) then -- when both
if 'etal' == local_display_names:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings
number_of_names = tonumber (number_of_names); -- convert these to numbers for comparison
local global_display_names_num = tonumber (global_display_names); -- <global_display_names> not set when parameter value is not digits
if number_of_names > global_display_names_num then -- template has more names than global config allows to be displayed?
utilities.set_message ('maint_overridden_setting'); -- set a maint message because global is overriding local |display-<namelist>=etal
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
else
return local_display_names, param_name; -- return local because fewer names so let <local_display_names> control
end
end
-- here when <global_display_names> and <local_display_names> both numbers; <global_display_names> controls
utilities.set_message ('maint_overridden_setting'); -- set a maint message
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
end
-- here when only one of <global_display_names> or <local_display_names> set
if global_display_names then
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
else
return local_display_names, param_name; -- return local
end
end
--[[--------------------------< M O D E _ S E T >--------------------------------------------------------------
fetch global mode setting from {{cs1 config}} (if present) or from |mode= (if present); global setting overrides
local |mode= parameter value. When both are present, emit maintenance message
]]
local function mode_set (Mode, Mode_origin)
local mode;
if cfg.global_cs1_config_t['Mode'] then -- global setting in {{cs1 config}}; nil when empty or assigned value invalid
mode = is_valid_parameter_value (cfg.global_cs1_config_t['Mode'], 'cs1 config: mode', cfg.keywords_lists['mode'], ''); -- error messaging 'param' here is a hoax
else
mode = is_valid_parameter_value (Mode, Mode_origin, cfg.keywords_lists['mode'], '');
end
if cfg.global_cs1_config_t['Mode'] and utilities.is_set (Mode) then -- when template has |mode=<something> which global setting has overridden
utilities.set_message ('maint_overridden_setting'); -- set a maint message
end
return mode;
end
--[[--------------------------< Q U O T E _ M A K E >----------------------------------------------------------
create quotation from |quote=, |trans-quote=, and/or script-quote= with or without |quote-page= or |quote-pages=
when any of those three quote parameters are set, this function unsets <PostScript>. When none of those parameters
are set, |quote-page= and |quote-pages= are unset to nil so that they are not included in the template's metadata
]]
local function quote_make (quote, trans_quote, script_quote, quote_page, quote_pages, nopp, sepc, postscript)
if utilities.is_set (quote) or utilities.is_set (trans_quote) or utilities.is_set (script_quote) then
if utilities.is_set (quote) then
if quote:sub(1, 1) == '"' and quote:sub(-1, -1) == '"' then -- if first and last characters of quote are quote marks
quote = quote:sub(2, -2); -- strip them off
end
end
quote = kern_quotes (quote); -- kern if needed
quote = utilities.wrap_style ('quoted-text', quote ); -- wrap in <q>...</q> tags
if utilities.is_set (script_quote) then
quote = script_concatenate (quote, script_quote, 'script-quote'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after quote is wrapped
end
if utilities.is_set (trans_quote) then
if trans_quote:sub(1, 1) == '"' and trans_quote:sub(-1, -1) == '"' then -- if first and last characters of |trans-quote are quote marks
trans_quote = trans_quote:sub(2, -2); -- strip them off
end
quote = quote .. " " .. utilities.wrap_style ('trans-quoted-title', trans_quote );
end
if utilities.is_set (quote_page) or utilities.is_set (quote_pages) then -- add page prefix
local quote_prefix = '';
if utilities.is_set (quote_page) then
extra_text_in_page_check (quote_page, 'quote-page'); -- add to maint cat if |quote-page= value begins with what looks like p., pp., etc.
if not nopp then
quote_prefix = utilities.substitute (cfg.messages['p-prefix'], {sepc, quote_page}), '', '', '';
else
quote_prefix = utilities.substitute (cfg.messages['nopp'], {sepc, quote_page}), '', '', '';
end
elseif utilities.is_set (quote_pages) then
extra_text_in_page_check (quote_pages, 'quote-pages'); -- add to maint cat if |quote-pages= value begins with what looks like p., pp., etc.
if tonumber(quote_pages) ~= nil and not nopp then -- if only digits, assume single page
quote_prefix = utilities.substitute (cfg.messages['p-prefix'], {sepc, quote_pages}), '', '';
elseif not nopp then
quote_prefix = utilities.substitute (cfg.messages['pp-prefix'], {sepc, quote_pages}), '', '';
else
quote_prefix = utilities.substitute (cfg.messages['nopp'], {sepc, quote_pages}), '', '';
end
end
quote = quote_prefix .. ": " .. quote;
else
quote = sepc .. " " .. quote;
end
postscript = ""; -- cs1|2 does not supply terminal punctuation when |quote= is set
elseif utilities.is_set (quote_page) or utilities.is_set (quote_pages) then
quote_page = nil; -- unset; these require |quote=; TODO: error message?
quote_pages = nil;
end
return quote, quote_page, quote_pages, postscript;
end
--[[--------------------------< C H E C K _ P U B L I S H E R _ N A M E >--------------------------------------
look for variations of '<text>: <text>' that might be '<location>: <publisher>' in |publisher= parameter value.
when found, emit a maintenance message; return nil else
<publisher> is the value assigned to |publisher= or |institution=
]]
local function check_publisher_name (publisher)
local patterns_t = {
'^[%w%s]+%s*:%s*[%w%s]+$', -- plain text <location>: <publisher>
'^%[+[%w%s:|]+%]+%s*:%s*[%w%s]+$', -- partially wikilinked [[<location>]]: <publisher>
'^[%w%s]+%s*:%s*%[+[%w%s:|]+%]+$', -- partially wikilinked <location>: [[<publisher>]]
'^%[+[%w%s:|]+%]+%s*:%s*%[+[%w%s:|]+%]+$', -- wikilinked [[<location>]]: [[<publisher>]]
}
for _, pattern in ipairs (patterns_t) do -- spin through the patterns_t sequence
if mw.ustring.match (publisher, pattern) then -- does this pattern match?
utilities.set_message ('maint_publisher_location'); -- set a maint message
return; -- and done
end
end
end
--[[--------------------------< I S _ P A G E _ A R T _ N U M >------------------------------------------------
compare the trailing (rightmost) characters of the |doi= value against the whole value assigned to |page(s)=.
return boolean true when:
|page(s)= has exactly 8 digits and a dot between the fourth and fifth digits matches the trailing 9 characters
of the |doi= value: |page=12345678 → |page=1234.5678 matches |doi=10.xxxx/yyyy1234.5678
|page(s)= is 5 or more characters and matches |doi= values's trailing characters
|page(s)= begins with a lowercase 'e' and |page(s)= without the 'e' matches |doi= values's trailing
characters: |page=e12345 → |page=12345 matches |doi=10.xxxx/yyyy12345
|page(s)= begins with a uppercase 'CD' followed by (typically) six digits matches |doi= values that ends with
'CDxxxxxx.pubx' (where 'x' is any single digit)
return nil when |page(s)= values:
are ranges separated by underscore, hyphen, emdash, endash, figure dash, or minus character
are comma- or semicolon-separated lists of pages
have external urls (has text 'http')
are digit-only values less than 10000
do not match |doi= values's trailing characters
]]
local function is_page_art_num (page, doi)
if not (utilities.is_set (page) and utilities.is_set (doi)) then -- both required
return; -- abandon; nothing to do
end
if page:match ('[,;_−–—‒%-]') then -- when |page(s)= might be a page range or a separated list of pages
return; -- abandon
end
page = page:lower(); -- because doi names are case insensitive
doi = doi:lower(); -- force these to lowercase for testing
if page:match ('http') then -- when |page(s)= appears to hold a url
return; -- abandon
end
if tonumber (page) then -- is |page(s)= digits only
if 10000 > tonumber (page) then -- when |page(s)= less than 10000
return; -- abandon
end
if doi:match (page .. '$') then -- digits only page number match the last digits in |doi=?
return true;
end
if 8 == page:len() then -- special case when |page(s)= is exactly 8 digits
local dot_page = page:gsub ('(%d%d%d%d)(%d%d%d%d)', '%1.%2'); -- make a |page=xxxx.yyyy version commonly used in |doi=
if doi:match (dot_page .. '$') then -- 8-digit dotted page number match the last characters in |doi=?
return true;
end
end
else -- here when |page(s)= is alpha-numeric
if 4 < page:len() then -- when |page(s)= is five or more characters
if doi:match (page .. '$') then -- alpha-numeric page match the last characters in |doi=?
return true;
end
local epage = page:match ('^e([%w]+)$'); -- if first character of |page= is 'e', remove it
if epage and doi:match (epage .. '$') then -- page number match the last characters in |doi=?
return true;
end
local cdpage = page:match ('^cd%d+$'); -- if first characters of |page= are 'CD' and last characters are digits (typically 6 digits)
if cdpage and doi:match (cdpage .. '%.pub%d$') then -- page number matches doi 'CDxxxxxx.pubx' where 'x' is a digit
return true;
end
end
end
end
--[[--------------------------< C I T A T I O N 0 >------------------------------------------------------------
This is the main function doing the majority of the citation formatting.
]]
local function citation0( config, args )
--[[
Load Input Parameters
The argument_wrapper facilitates the mapping of multiple aliases to single internal variable.
]]
local A = argument_wrapper ( args );
local i
-- Pick out the relevant fields from the arguments. Different citation templates
-- define different field names for the same underlying things.
local author_etal;
local a = {}; -- authors list from |lastn= / |firstn= pairs or |vauthors=
local Authors;
local NameListStyle;
if cfg.global_cs1_config_t['NameListStyle'] then -- global setting in {{cs1 config}} overrides local |name-list-style= parameter value; nil when empty or assigned value invalid
NameListStyle = is_valid_parameter_value (cfg.global_cs1_config_t['NameListStyle'], 'cs1 config: name-list-style', cfg.keywords_lists['name-list-style'], ''); -- error messaging 'param' here is a hoax
else
NameListStyle = is_valid_parameter_value (A['NameListStyle'], A:ORIGIN('NameListStyle'), cfg.keywords_lists['name-list-style'], '');
end
if cfg.global_cs1_config_t['NameListStyle'] and utilities.is_set (A['NameListStyle']) then -- when template has |name-list-style=<something> which global setting has overridden
utilities.set_message ('maint_overridden_setting'); -- set a maint message
end
local Collaboration = A['Collaboration'];
do -- to limit scope of selected
local selected = select_author_editor_source (A['Vauthors'], A['Authors'], args, 'AuthorList');
if 1 == selected then
a, author_etal = extract_names (args, 'AuthorList'); -- fetch author list from |authorn= / |lastn= / |firstn=, |author-linkn=, and |author-maskn=
elseif 2 == selected then
NameListStyle = 'vanc'; -- override whatever |name-list-style= might be
a, author_etal = parse_vauthors_veditors (args, A['Vauthors'], 'AuthorList'); -- fetch author list from |vauthors=, |author-linkn=, and |author-maskn=
elseif 3 == selected then
Authors = A['Authors']; -- use content of |people= or |credits=; |authors= is deprecated; TODO: constrain |people= and |credits= to cite av media, episode, serial?
end
if utilities.is_set (Collaboration) then
author_etal = true; -- so that |display-authors=etal not required
end
end
local editor_etal;
local e = {}; -- editors list from |editor-lastn= / |editor-firstn= pairs or |veditors=
do -- to limit scope of selected
local selected = select_author_editor_source (A['Veditors'], nil, args, 'EditorList'); -- support for |editors= withdrawn
if 1 == selected then
e, editor_etal = extract_names (args, 'EditorList'); -- fetch editor list from |editorn= / |editor-lastn= / |editor-firstn=, |editor-linkn=, and |editor-maskn=
elseif 2 == selected then
NameListStyle = 'vanc'; -- override whatever |name-list-style= might be
e, editor_etal = parse_vauthors_veditors (args, args.veditors, 'EditorList'); -- fetch editor list from |veditors=, |editor-linkn=, and |editor-maskn=
end
end
local Chapter = A['Chapter']; -- done here so that we have access to |contribution= from |chapter= and |script-chapter= aliases
local Chapter_origin = A:ORIGIN ('Chapter');
local ScriptChapter = A['ScriptChapter'];
local ScriptChapter_origin = A:ORIGIN ('ScriptChapter');
local Contribution; -- because contribution is required for contributor(s)
if 'contribution' == Chapter_origin then -- is there a |contribution= parameter?
Contribution = Chapter; -- get the name of the contribution
elseif 'script-contribution' == ScriptChapter_origin then -- no, so is there a |script-contribution= parameter?
Contribution = ScriptChapter; -- get the name of the contribution
end
local c = {}; -- contributors list from |contributor-lastn= / contributor-firstn= pairs
if utilities.in_array (config.CitationClass, {"book", "citation"}) and not utilities.is_set (A['Periodical']) then -- |contributor= and |contribution= only supported in book cites
c = extract_names (args, 'ContributorList'); -- fetch contributor list from |contributorn= / |contributor-lastn=, -firstn=, -linkn=, -maskn=
if 0 < #c then
if not utilities.is_set (Contribution) then -- |contributor= requires |contribution=
utilities.set_message ('err_contributor_missing_required_param', 'contribution'); -- add missing contribution error message
c = {}; -- blank the contributors' table; it is used as a flag later
end
if 0 == #a then -- |contributor= requires |author=
utilities.set_message ('err_contributor_missing_required_param', 'author'); -- add missing author error message
c = {}; -- blank the contributors' table; it is used as a flag later
end
end
else -- if not a book cite
if utilities.select_one (args, cfg.aliases['ContributorList-Last'], 'err_redundant_parameters', 1 ) then -- are there contributor name list parameters?
utilities.set_message ('err_contributor_ignored'); -- add contributor ignored error message
end
Contribution = nil; -- unset
end
local Title = A['Title'];
local TitleLink = A['TitleLink'];
local auto_select = ''; -- default is auto
local accept_link;
TitleLink, accept_link = utilities.has_accept_as_written (TitleLink, true); -- test for accept-this-as-written markup
if (not accept_link) and utilities.in_array (TitleLink, {'none', 'pmc', 'doi'}) then -- check for special keywords
auto_select = TitleLink; -- remember selection for later
TitleLink = ''; -- treat as if |title-link= would have been empty
end
TitleLink = link_title_ok (TitleLink, A:ORIGIN ('TitleLink'), Title, 'title'); -- check for wiki-markup in |title-link= or wiki-markup in |title= when |title-link= is set
local Section = ''; -- {{cite map}} only; preset to empty string for concatenation if not used
if 'map' == config.CitationClass and 'section' == Chapter_origin then
Section = A['Chapter']; -- get |section= from |chapter= alias list; |chapter= and the other aliases not supported in {{cite map}}
Chapter = ''; -- unset for now; will be reset later from |map= if present
end
local Periodical = A['Periodical'];
local Periodical_origin = A:ORIGIN('Periodical');
local ScriptPeriodical = A['ScriptPeriodical'];
local ScriptPeriodical_origin = A:ORIGIN('ScriptPeriodical');
local TransPeriodical = A['TransPeriodical'];
local TransPeriodical_origin = A:ORIGIN ('TransPeriodical');
if (utilities.in_array (config.CitationClass, {'book', 'encyclopaedia'}) and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical) or utilities.is_set (TransPeriodical))) then
local param;
if utilities.is_set (Periodical) then -- get a parameter name from one of these periodical related meta-parameters
Periodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = Periodical_origin -- get parameter name for error messaging
elseif utilities.is_set (TransPeriodical) then
TransPeriodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = TransPeriodical_origin; -- get parameter name for error messaging
elseif utilities.is_set (ScriptPeriodical) then
ScriptPeriodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = ScriptPeriodical_origin; -- get parameter name for error messaging
end
if utilities.is_set (param) then -- if we found one
utilities.set_message ('err_periodical_ignored', {param}); -- emit an error message
end
end
if utilities.is_set (Periodical) then
local i;
Periodical, i = utilities.strip_apostrophe_markup (Periodical); -- strip apostrophe markup so that metadata isn't contaminated
if i then -- non-zero when markup was stripped so emit an error message
utilities.set_message ('err_apostrophe_markup', {Periodical_origin});
end
end
if 'mailinglist' == config.CitationClass then -- special case for {{cite mailing list}}
if utilities.is_set (Periodical) and utilities.is_set (A ['MailingList']) then -- both set emit an error TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', Periodical_origin) .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'mailinglist')});
end
Periodical = A ['MailingList']; -- error or no, set Periodical to |mailinglist= value because this template is {{cite mailing list}}
Periodical_origin = A:ORIGIN('MailingList');
end
-- web and news not tested for now because of
-- Wikipedia:Administrators%27_noticeboard#Is_there_a_semi-automated_tool_that_could_fix_these_annoying_"Cite_Web"_errors?
if not (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) then -- 'periodical' templates require periodical parameter
-- local p = {['journal'] = 'journal', ['magazine'] = 'magazine', ['news'] = 'newspaper', ['web'] = 'website'}; -- for error message
local p = {['journal'] = 'journal', ['magazine'] = 'magazine'}; -- for error message
if p[config.CitationClass] then
utilities.set_message ('err_missing_periodical', {config.CitationClass, p[config.CitationClass]});
end
end
local Volume;
if 'citation' == config.CitationClass then
if utilities.is_set (Periodical) then
if not utilities.in_array (Periodical_origin, cfg.citation_no_volume_t) then -- {{citation}} does not render |volume= when these parameters are used
Volume = A['Volume']; -- but does for all other 'periodicals'
end
elseif utilities.is_set (ScriptPeriodical) then
if 'script-website' ~= ScriptPeriodical_origin then -- {{citation}} does not render volume for |script-website=
Volume = A['Volume']; -- but does for all other 'periodicals'
end
else
Volume = A['Volume']; -- and does for non-'periodical' cites
end
elseif utilities.in_array (config.CitationClass, cfg.templates_using_volume) then -- render |volume= for cs1 according to the configuration settings
Volume = A['Volume'];
end
extra_text_in_vol_iss_check (Volume, A:ORIGIN ('Volume'), 'v');
local Issue;
if 'citation' == config.CitationClass then
if utilities.is_set (Periodical) and utilities.in_array (Periodical_origin, cfg.citation_issue_t) then -- {{citation}} may render |issue= when these parameters are used
Issue = A['Issue'];
end
elseif utilities.in_array (config.CitationClass, cfg.templates_using_issue) then -- conference & map books do not support issue; {{citation}} listed here because included in settings table
if not (utilities.in_array (config.CitationClass, {'conference', 'map', 'citation'}) and not (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical))) then
Issue = A['Issue'];
end
end
local ArticleNumber;
if utilities.in_array (config.CitationClass, {'journal', 'conference'}) or ('citation' == config.CitationClass and utilities.is_set (Periodical) and 'journal' == Periodical_origin) then
ArticleNumber = A['ArticleNumber'];
end
extra_text_in_vol_iss_check (Issue, A:ORIGIN ('Issue'), 'i');
Issue = utilities.hyphen_to_dash (Issue);
local Page;
local Pages;
local At;
local QuotePage;
local QuotePages;
if not utilities.in_array (config.CitationClass, cfg.templates_not_using_page) then -- TODO: rewrite to emit ignored parameter error message?
Page = A['Page'];
Pages = utilities.hyphen_to_dash (A['Pages']);
At = A['At'];
QuotePage = A['QuotePage'];
QuotePages = utilities.hyphen_to_dash (A['QuotePages']);
end
local NoPP = is_valid_parameter_value (A['NoPP'], A:ORIGIN('NoPP'), cfg.keywords_lists['yes_true_y'], nil);
local Mode = mode_set (A['Mode'], A:ORIGIN('Mode'));
-- separator character and postscript
local sepc, PostScript = set_style (Mode:lower(), A['PostScript'], config.CitationClass);
local Quote;
Quote, QuotePage, QuotePages, PostScript = quote_make (A['Quote'], A['TransQuote'], A['ScriptQuote'], QuotePage, QuotePages, NoPP, sepc, PostScript);
local Edition = A['Edition'];
local PublicationPlace = place_check (A['PublicationPlace'], A:ORIGIN('PublicationPlace'));
local Place = place_check (A['Place'], A:ORIGIN('Place'));
local PublisherName = A['PublisherName'];
local PublisherName_origin = A:ORIGIN('PublisherName');
if utilities.is_set (PublisherName) and (cfg.keywords_xlate['none'] ~= PublisherName) then
local i = 0;
PublisherName, i = utilities.strip_apostrophe_markup (PublisherName); -- strip apostrophe markup so that metadata isn't contaminated; publisher is never italicized
if i and (0 < i) then -- non-zero when markup was stripped so emit an error message
utilities.set_message ('err_apostrophe_markup', {PublisherName_origin});
end
end
if ('document' == config.CitationClass) and not utilities.is_set (PublisherName) then
utilities.set_message ('err_missing_publisher', {config.CitationClass, 'publisher'});
end
local Newsgroup = A['Newsgroup']; -- TODO: strip apostrophe markup?
local Newsgroup_origin = A:ORIGIN('Newsgroup');
if 'newsgroup' == config.CitationClass then
if utilities.is_set (PublisherName) and (cfg.keywords_xlate['none'] ~= PublisherName) then -- general use parameter |publisher= not allowed in cite newsgroup
utilities.set_message ('err_parameter_ignored', {PublisherName_origin});
end
PublisherName = nil; -- ensure that this parameter is unset for the time being; will be used again after COinS
end
if 'book' == config.CitationClass or 'encyclopaedia' == config.CitationClass or ('citation' == config.CitationClass and not utilities.is_set (Periodical)) then
local accept;
PublisherName, accept = utilities.has_accept_as_written (PublisherName); -- check for and remove accept-as-written markup from |publisher= wrapped
if not accept then -- when no accept-as-written markup
check_publisher_name (PublisherName); -- emit maint message when |publisher= might be prefixed with publisher's location
end
end
local URL = A['URL']; -- TODO: better way to do this for URL, ChapterURL, and MapURL?
local UrlAccess = is_valid_parameter_value (A['UrlAccess'], A:ORIGIN('UrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (URL) and utilities.is_set (UrlAccess) then
UrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', 'url');
end
local ChapterURL = A['ChapterURL'];
local ChapterUrlAccess = is_valid_parameter_value (A['ChapterUrlAccess'], A:ORIGIN('ChapterUrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (ChapterURL) and utilities.is_set (ChapterUrlAccess) then
ChapterUrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', {A:ORIGIN('ChapterUrlAccess'):gsub ('%-access', '')});
end
local MapUrlAccess = is_valid_parameter_value (A['MapUrlAccess'], A:ORIGIN('MapUrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (A['MapURL']) and utilities.is_set (MapUrlAccess) then
MapUrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', {'map-url'});
end
local this_page = mw.title.getCurrentTitle(); -- also used for COinS and for language
local no_tracking_cats = is_valid_parameter_value (A['NoTracking'], A:ORIGIN('NoTracking'), cfg.keywords_lists['yes_true_y'], nil);
-- check this page to see if it is in one of the namespaces that cs1 is not supposed to add to the error categories
if not utilities.is_set (no_tracking_cats) then -- ignore if we are already not going to categorize this page
if cfg.uncategorized_namespaces[this_page.namespace] then -- is this page's namespace id one of the uncategorized namespace ids?
no_tracking_cats = "true"; -- set no_tracking_cats
end
for _, v in ipairs (cfg.uncategorized_subpages) do -- cycle through page name patterns
if this_page.text:match (v) then -- test page name against each pattern
no_tracking_cats = "true"; -- set no_tracking_cats
break; -- bail out if one is found
end
end
end
-- check for extra |page=, |pages= or |at= parameters. (also sheet and sheets while we're at it)
utilities.select_one (args, {'page', 'p', 'pp', 'pages', 'at', 'sheet', 'sheets'}, 'err_redundant_parameters'); -- this is a dummy call simply to get the error message and category
local coins_pages;
Page, Pages, At, coins_pages = insource_loc_get (Page, A:ORIGIN('Page'), Pages, A:ORIGIN('Pages'), At);
if utilities.is_set (PublicationPlace) and utilities.is_set (Place) then -- both |publication-place= and |place= (|location=) allowed if different
utilities.add_prop_cat ('location-test'); -- add property cat to evaluate how often PublicationPlace and Place are used together
if PublicationPlace == Place then
Place = ''; -- unset; don't need both if they are the same
end
elseif not utilities.is_set (PublicationPlace) and utilities.is_set (Place) then -- when only |place= (|location=) is set ...
PublicationPlace = Place; -- promote |place= (|location=) to |publication-place
end
if PublicationPlace == Place then Place = ''; end -- don't need both if they are the same
local URL_origin = A:ORIGIN('URL'); -- get name of parameter that holds URL
local ChapterURL_origin = A:ORIGIN('ChapterURL'); -- get name of parameter that holds ChapterURL
-- local ScriptChapter = A['ScriptChapter'];
-- local ScriptChapter_origin = A:ORIGIN ('ScriptChapter');
local Format = A['Format'];
local ChapterFormat = A['ChapterFormat'];
local TransChapter = A['TransChapter'];
local TransChapter_origin = A:ORIGIN ('TransChapter');
local TransTitle = A['TransTitle'];
local ScriptTitle = A['ScriptTitle'];
--[[
Parameter remapping for cite encyclopedia:
When the citation has these parameters:
|encyclopedia= and |title= then map |title= to |article= and |encyclopedia= to |title= for rendering
|encyclopedia= and |article= then map |encyclopedia= to |title= for rendering
|trans-title= maps to |trans-chapter= when |title= is re-mapped
|url= maps to |chapter-url= when |title= is remapped
All other combinations of |encyclopedia=, |title=, and |article= are not modified
]]
local Encyclopedia = A['Encyclopedia']; -- used as a flag by this module and by ~/COinS
local ScriptEncyclopedia = A['ScriptEncyclopedia'];
local TransEncyclopedia = A['TransEncyclopedia'];
if utilities.is_set (Encyclopedia) or utilities.is_set (ScriptEncyclopedia) then -- emit error message when Encyclopedia set but template is other than {{cite encyclopedia}} or {{citation}}
if 'encyclopaedia' ~= config.CitationClass and 'citation' ~= config.CitationClass then
if utilities.is_set (Encyclopedia) then
utilities.set_message ('err_parameter_ignored', {A:ORIGIN ('Encyclopedia')});
else
utilities.set_message ('err_parameter_ignored', {A:ORIGIN ('ScriptEncyclopedia')});
end
Encyclopedia = nil; -- unset these because not supported by this template
ScriptEncyclopedia = nil;
TransEncyclopedia = nil;
end
elseif utilities.is_set (TransEncyclopedia) then
utilities.set_message ('err_trans_missing_title', {'encyclopedia'});
end
if ('encyclopaedia' == config.CitationClass) or ('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) then
if utilities.is_set (Periodical) and utilities.is_set (Encyclopedia) then -- when both parameters set emit an error message; {{citation}} only; Periodical not allowed in {{cite encyclopedia}}
utilities.set_message ('err_periodical_ignored', {Periodical_origin});
end
if utilities.is_set (Encyclopedia) or utilities.is_set (ScriptEncyclopedia) then
Periodical = Encyclopedia; -- error or no, set Periodical to Encyclopedia for rendering; {{citation}} could (not legitimately) have both; use Encyclopedia
Periodical_origin = A:ORIGIN ('Encyclopedia');
ScriptPeriodical = ScriptEncyclopedia;
ScriptPeriodical_origin = A:ORIGIN ('ScriptEncyclopedia');
if utilities.is_set (Title) or utilities.is_set (ScriptTitle) then
if not utilities.is_set (Chapter) then
Chapter = Title; -- |encyclopedia= and |title= are set so map |title= params to |article= params for rendering
ScriptChapter = ScriptTitle;
ScriptChapter_origin = A:ORIGIN('ScriptTitle')
TransChapter = TransTitle;
ChapterURL = URL;
ChapterURL_origin = URL_origin;
ChapterUrlAccess = UrlAccess;
ChapterFormat = Format;
if not utilities.is_set (ChapterURL) and utilities.is_set (TitleLink) then
Chapter = utilities.make_wikilink (TitleLink, Chapter);
end
Title = Periodical; -- now map |encyclopedia= params to |title= params for rendering
ScriptTitle = ScriptPeriodical or '';
TransTitle = TransEncyclopedia or '';
Periodical = ''; -- redundant so unset
ScriptPeriodical = '';
URL = '';
Format = '';
TitleLink = '';
end
elseif utilities.is_set (Chapter) or utilities.is_set (ScriptChapter) then -- |title= not set
Title = Periodical; -- |encyclopedia= set and |article= set so map |encyclopedia= to |title= for rendering
ScriptTitle = ScriptPeriodical or '';
TransTitle = TransEncyclopedia or '';
Periodical = ''; -- redundant so unset
ScriptPeriodical = '';
end
end
end
-- special case for cite techreport.
local ID = A['ID'];
if (config.CitationClass == "techreport") then -- special case for cite techreport
if utilities.is_set (A['Number']) then -- cite techreport uses 'number', which other citations alias to 'issue'
if not utilities.is_set (ID) then -- can we use ID for the "number"?
ID = A['Number']; -- yes, use it
else -- ID has a value so emit error message
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'id') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'number')});
end
end
end
-- Account for the oddity that is {{cite conference}}, before generation of COinS data.
local ChapterLink -- = A['ChapterLink']; -- deprecated as a parameter but still used internally by cite episode
local Conference = A['Conference'];
local BookTitle = A['BookTitle'];
local TransTitle_origin = A:ORIGIN ('TransTitle');
if 'conference' == config.CitationClass then
if utilities.is_set (BookTitle) then
Chapter = Title;
Chapter_origin = 'title';
-- ChapterLink = TitleLink; -- |chapter-link= is deprecated
ChapterURL = URL;
ChapterUrlAccess = UrlAccess;
ChapterURL_origin = URL_origin;
URL_origin = '';
ChapterFormat = Format;
TransChapter = TransTitle;
TransChapter_origin = TransTitle_origin;
Title = BookTitle;
Format = '';
-- TitleLink = '';
TransTitle = '';
URL = '';
end
elseif 'speech' ~= config.CitationClass then
Conference = ''; -- not cite conference or cite speech so make sure this is empty string
end
local cs2_lower = function (text) -- if mode is cs2, use lower case
if (sepc ~= '.') then
return text:lower();
end
return text;
end
local use_lowercase = ( sepc == ',' ); -- controls capitalization of certain static text
-- cite map oddities
local Cartography = "";
local Scale = "";
local Sheet = A['Sheet'] or '';
local Sheets = A['Sheets'] or '';
if config.CitationClass == "map" then
if utilities.is_set (Chapter) then --TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'map') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', Chapter_origin)}); -- add error message
end
Chapter = A['Map'];
Chapter_origin = A:ORIGIN('Map');
ChapterURL = A['MapURL'];
ChapterURL_origin = A:ORIGIN('MapURL');
TransChapter = A['TransMap'];
ScriptChapter = A['ScriptMap']
ScriptChapter_origin = A:ORIGIN('ScriptMap')
ChapterUrlAccess = MapUrlAccess;
ChapterFormat = A['MapFormat'];
Cartography = A['Cartography'];
if utilities.is_set ( Cartography ) then
Cartography = sepc .. " " .. wrap_msg ('cartography', Cartography, use_lowercase);
end
Scale = A['Scale'];
if utilities.is_set ( Scale ) then
Scale = sepc .. " " .. Scale;
end
end
-- Account for the oddities that are {{cite episode}} and {{cite serial}}, before generation of COinS data.
local Series = A['Series'];
if 'episode' == config.CitationClass or 'serial' == config.CitationClass then
local SeriesLink = A['SeriesLink'];
SeriesLink = link_title_ok (SeriesLink, A:ORIGIN ('SeriesLink'), Series, 'series'); -- check for wiki-markup in |series-link= or wiki-markup in |series= when |series-link= is set
local Network = A['Network'];
local Station = A['Station'];
local s, n = {}, {};
-- do common parameters first
if utilities.is_set (Network) then table.insert(n, Network); end
if utilities.is_set (Station) then table.insert(n, Station); end
ID = table.concat(n, sepc .. ' ');
if 'episode' == config.CitationClass then -- handle the oddities that are strictly {{cite episode}}
local Season = A['Season'];
local SeriesNumber = A['SeriesNumber'];
if utilities.is_set (Season) and utilities.is_set (SeriesNumber) then -- these are mutually exclusive so if both are set TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'season') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'seriesno')}); -- add error message
SeriesNumber = ''; -- unset; prefer |season= over |seriesno=
end
-- assemble a table of parts concatenated later into Series
if utilities.is_set (Season) then table.insert(s, wrap_msg ('season', Season, use_lowercase)); end
if utilities.is_set (SeriesNumber) then table.insert(s, wrap_msg ('seriesnum', SeriesNumber, use_lowercase)); end
if utilities.is_set (Issue) then table.insert(s, wrap_msg ('episode', Issue, use_lowercase)); end
Issue = ''; -- unset because this is not a unique parameter
Chapter = Title; -- promote title parameters to chapter
ScriptChapter = ScriptTitle;
ScriptChapter_origin = A:ORIGIN('ScriptTitle');
ChapterLink = TitleLink; -- alias |episode-link=
TransChapter = TransTitle;
ChapterURL = URL;
ChapterUrlAccess = UrlAccess;
ChapterURL_origin = URL_origin;
ChapterFormat = Format;
Title = Series; -- promote series to title
TitleLink = SeriesLink;
Series = table.concat(s, sepc .. ' '); -- this is concatenation of season, seriesno, episode number
if utilities.is_set (ChapterLink) and not utilities.is_set (ChapterURL) then -- link but not URL
Chapter = utilities.make_wikilink (ChapterLink, Chapter);
elseif utilities.is_set (ChapterLink) and utilities.is_set (ChapterURL) then -- if both are set, URL links episode;
Series = utilities.make_wikilink (ChapterLink, Series);
end
URL = ''; -- unset
TransTitle = '';
ScriptTitle = '';
Format = '';
else -- now oddities that are cite serial
Issue = ''; -- unset because this parameter no longer supported by the citation/core version of cite serial
Chapter = A['Episode']; -- TODO: make |episode= available to cite episode someday?
if utilities.is_set (Series) and utilities.is_set (SeriesLink) then
Series = utilities.make_wikilink (SeriesLink, Series);
end
Series = utilities.wrap_style ('italic-title', Series); -- series is italicized
end
end
-- end of {{cite episode}} stuff
-- handle type parameter for those CS1 citations that have default values
local TitleType = A['TitleType'];
local Degree = A['Degree'];
if utilities.in_array (config.CitationClass, {'AV-media-notes', 'document', 'interview', 'mailinglist', 'map', 'podcast', 'pressrelease', 'report', 'speech', 'techreport', 'thesis'}) then
TitleType = set_titletype (config.CitationClass, TitleType);
if utilities.is_set (Degree) and "Thesis" == TitleType then -- special case for cite thesis
TitleType = Degree .. ' ' .. cfg.title_types ['thesis']:lower();
end
end
if utilities.is_set (TitleType) then -- if type parameter is specified
TitleType = utilities.substitute ( cfg.messages['type'], TitleType); -- display it in parentheses
-- TODO: Hack on TitleType to fix bunched parentheses problem
end
-- legacy: promote PublicationDate to Date if neither Date nor Year are set.
local Date = A['Date'];
local Date_origin; -- to hold the name of parameter promoted to Date; required for date error messaging
local PublicationDate = A['PublicationDate'];
local Year = A['Year'];
if utilities.is_set (Year) then
validation.year_check (Year); -- returns nothing; emits maint message when |year= doesn't hold a 'year' value
end
if not utilities.is_set (Date) then
Date = Year; -- promote Year to Date
Year = nil; -- make nil so Year as empty string isn't used for CITEREF
if not utilities.is_set (Date) and utilities.is_set (PublicationDate) then -- use PublicationDate when |date= and |year= are not set
Date = PublicationDate; -- promote PublicationDate to Date
PublicationDate = ''; -- unset, no longer needed
Date_origin = A:ORIGIN('PublicationDate'); -- save the name of the promoted parameter
else
Date_origin = A:ORIGIN('Year'); -- save the name of the promoted parameter
end
else
Date_origin = A:ORIGIN('Date'); -- not a promotion; name required for error messaging
end
if PublicationDate == Date then PublicationDate = ''; end -- if PublicationDate is same as Date, don't display in rendered citation
--[[
Go test all of the date-holding parameters for valid MOS:DATE format and make sure that dates are real dates. This must be done before we do COinS because here is where
we get the date used in the metadata.
Date validation supporting code is in Module:Citation/CS1/Date_validation
]]
local DF = is_valid_parameter_value (A['DF'], A:ORIGIN('DF'), cfg.keywords_lists['df'], '');
if not utilities.is_set (DF) then
DF = cfg.global_df; -- local |df= if present overrides global df set by {{use xxx date}} template
end
local ArchiveURL;
local ArchiveDate;
local ArchiveFormat = A['ArchiveFormat'];
local archive_url_timestamp; -- timestamp from wayback machine url
ArchiveURL, ArchiveDate, archive_url_timestamp = archive_url_check (A['ArchiveURL'], A['ArchiveDate'])
ArchiveFormat = style_format (ArchiveFormat, ArchiveURL, 'archive-format', 'archive-url');
ArchiveURL, ArchiveDate = is_unique_archive_url (ArchiveURL, URL, ChapterURL, A:ORIGIN('ArchiveURL'), ArchiveDate); -- add error message when URL or ChapterURL == ArchiveURL
local AccessDate = A['AccessDate'];
local COinS_date = {}; -- holds date info extracted from |date= for the COinS metadata by Module:Date verification
local DoiBroken = A['DoiBroken'];
local Embargo = A['Embargo'];
local anchor_year; -- used in the CITEREF identifier
do -- create defined block to contain local variables error_message, date_parameters_list, mismatch
local error_message = '';
-- AirDate has been promoted to Date so not necessary to check it
local date_parameters_list = {
['access-date'] = {val = AccessDate, name = A:ORIGIN ('AccessDate')},
['archive-date'] = {val = ArchiveDate, name = A:ORIGIN ('ArchiveDate')},
['date'] = {val = Date, name = Date_origin},
['doi-broken-date'] = {val = DoiBroken, name = A:ORIGIN ('DoiBroken')},
['pmc-embargo-date'] = {val = Embargo, name = A:ORIGIN ('Embargo')},
['publication-date'] = {val = PublicationDate, name = A:ORIGIN ('PublicationDate')},
['year'] = {val = Year, name = A:ORIGIN ('Year')},
};
local error_list = {};
anchor_year, Embargo = validation.dates(date_parameters_list, COinS_date, error_list);
if utilities.is_set (Year) and utilities.is_set (Date) then -- both |date= and |year= not normally needed;
validation.year_date_check (Year, A:ORIGIN ('Year'), Date, A:ORIGIN ('Date'), error_list);
end
if 0 == #error_list then -- error free dates only; 0 when error_list is empty
local modified = false; -- flag
if utilities.is_set (DF) then -- if we need to reformat dates
modified = validation.reformat_dates (date_parameters_list, DF); -- reformat to DF format, use long month names if appropriate
end
if true == validation.date_hyphen_to_dash (date_parameters_list) then -- convert hyphens to dashes where appropriate
modified = true;
utilities.set_message ('maint_date_format'); -- hyphens were converted so add maint category
end
-- for those wikis that can and want to have English date names translated to the local language; not supported at en.wiki
if cfg.date_name_auto_xlate_enable and validation.date_name_xlate (date_parameters_list, cfg.date_digit_auto_xlate_enable ) then
utilities.set_message ('maint_date_auto_xlated'); -- add maint cat
modified = true;
end
if modified then -- if the date_parameters_list values were modified
AccessDate = date_parameters_list['access-date'].val; -- overwrite date holding parameters with modified values
ArchiveDate = date_parameters_list['archive-date'].val;
Date = date_parameters_list['date'].val;
DoiBroken = date_parameters_list['doi-broken-date'].val;
PublicationDate = date_parameters_list['publication-date'].val;
end
if archive_url_timestamp and utilities.is_set (ArchiveDate) then
validation.archive_date_check (ArchiveDate, archive_url_timestamp, DF); -- does YYYYMMDD in archive_url_timestamp match date in ArchiveDate
end
else
utilities.set_message ('err_bad_date', {utilities.make_sep_list (#error_list, error_list)}); -- add this error message
end
end -- end of do
if utilities.in_array (config.CitationClass, {'book', 'encyclopaedia'}) or -- {{cite book}}, {{cite encyclopedia}}; TODO: {{cite conference}} and others?
('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) or -- {{citation}} as an encylopedia citation
('citation' == config.CitationClass and not utilities.is_set (Periodical)) then -- {{citation}} as a book citation
if utilities.is_set (PublicationPlace) then
if not utilities.is_set (PublisherName) then
local date = COinS_date.rftdate and tonumber (COinS_date.rftdate:match ('%d%d%d%d')); -- get year portion of COinS date (because in Arabic numerals); convert string to number
if date and (1850 <= date) then -- location has no publisher; if date is 1850 or later
utilities.set_message ('maint_location_no_publisher'); -- add maint cat
end
else -- PublisherName has a value
if cfg.keywords_xlate['none'] == PublisherName then -- if that value is 'none' (only for book and encyclopedia citations)
PublisherName = ''; -- unset
end
end
end
end
local ID_list = {}; -- sequence table of rendered identifiers
local ID_list_coins = {}; -- table of identifiers and their values from args; key is same as cfg.id_handlers's key
local Class = A['Class']; -- arxiv class identifier
local ID_support = {
{A['ASINTLD'], 'ASIN', 'err_asintld_missing_asin', A:ORIGIN ('ASINTLD')},
{DoiBroken, 'DOI', 'err_doibroken_missing_doi', A:ORIGIN ('DoiBroken')},
{Embargo, 'PMC', 'err_embargo_missing_pmc', A:ORIGIN ('Embargo')},
}
ID_list, ID_list_coins = identifiers.identifier_lists_get (args, {
DoiBroken = DoiBroken, -- for |doi=
ASINTLD = A['ASINTLD'], -- for |asin=
Embargo = Embargo, -- for |pmc=
Class = Class, -- for |arxiv=
CitationClass = config.CitationClass, -- for |arxiv=
Year=anchor_year, -- for |isbn=
}, ID_support);
if 'citation' == config.CitationClass then -- catch ve/citoid malformed book cites in {{citation}} templates
for _, id in ipairs (ID_list) do -- search through the ID_list sequence looking for an ISBN identifier string
if id:find ('ISBN', 3, true) then -- plain find, start at index 3 ([[ISBN)
if utilities.is_set (Periodical) then -- when a |work= alias is set
utilities.set_message ('maint_work_isbn'); -- add maint cat
end
end
end
end
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, {{cite medrxiv}}, {{cite ssrn}}, before generation of COinS data.
if utilities.in_array (config.CitationClass, whitelist.preprint_template_list_t) then -- |arxiv= or |eprint= required for cite arxiv; |biorxiv=, |citeseerx=, |medrxiv=, |ssrn= required for their templates
if not (args[cfg.id_handlers[config.CitationClass:upper()].parameters[1]] or -- can't use ID_list_coins k/v table here because invalid parameters omitted
args[cfg.id_handlers[config.CitationClass:upper()].parameters[2]]) then -- which causes unexpected parameter missing error message
utilities.set_message ('err_' .. config.CitationClass .. '_missing'); -- add error message
end
Periodical = ({['arxiv'] = 'arXiv', ['biorxiv'] = 'bioRxiv', ['citeseerx'] = 'CiteSeerX', ['medrxiv'] = 'medRxiv', ['ssrn'] = 'Social Science Research Network'})[config.CitationClass];
end
-- Link the title of the work if no |url= was provided, but we have a |pmc= or a |doi= with |doi-access=free
if config.CitationClass == "journal" and not utilities.is_set (URL) and not utilities.is_set (TitleLink) and not utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) then -- TODO: remove 'none' once existing citations have been switched to 'off', so 'none' can be used as token for "no title" instead
if 'none' ~= cfg.keywords_xlate[auto_select] then -- if auto-linking not disabled
if identifiers.auto_link_urls[auto_select] then -- manual selection
URL = identifiers.auto_link_urls[auto_select]; -- set URL to be the same as identifier's external link
URL_origin = cfg.id_handlers[auto_select:upper()].parameters[1]; -- set URL_origin to parameter name for use in error message if citation is missing a |title=
elseif identifiers.auto_link_urls['pmc'] then -- auto-select PMC
URL = identifiers.auto_link_urls['pmc']; -- set URL to be the same as the PMC external link if not embargoed
URL_origin = cfg.id_handlers['PMC'].parameters[1]; -- set URL_origin to parameter name for use in error message if citation is missing a |title=
elseif identifiers.auto_link_urls['doi'] then -- auto-select DOI
URL = identifiers.auto_link_urls['doi'];
URL_origin = cfg.id_handlers['DOI'].parameters[1];
end
end
if utilities.is_set (URL) then -- set when using an identifier-created URL
if utilities.is_set (AccessDate) then -- |access-date= requires |url=; identifier-created URL is not |url=
utilities.set_message ('err_accessdate_missing_url'); -- add an error message
AccessDate = ''; -- unset
end
if utilities.is_set (ArchiveURL) then -- |archive-url= requires |url=; identifier-created URL is not |url=
utilities.set_message ('err_archive_missing_url'); -- add an error message
ArchiveURL = ''; -- unset
end
end
end
-- At this point fields may be nil if they weren't specified in the template use. We can use that fact.
-- Test if citation has no title
if not utilities.is_set (Title) and not utilities.is_set (TransTitle) and not utilities.is_set (ScriptTitle) then -- has special case for cite episode
utilities.set_message ('err_citation_missing_title', {'episode' == config.CitationClass and 'series' or 'title'});
end
if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and
utilities.in_array (config.CitationClass, {'journal', 'citation'}) and
(utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and
('journal' == Periodical_origin or 'script-journal' == ScriptPeriodical_origin) then -- special case for journal cites
Title = ''; -- set title to empty string
utilities.set_message ('maint_untitled'); -- add maint cat
end
if 'journal' == config.CitationClass or ('citation' == config.CitationClass and utilities.is_set (Periodical) and 'journal' == Periodical_origin) then
if is_page_art_num (((utilities.is_set (Page) and Page) or (utilities.is_set (Pages) and Pages)) or nil, ID_list_coins['DOI']) then -- does |page(s)= look like it holds an article number
utilities.set_message ('maint_page_art_num'); -- add maint cat
end
end
-- COinS metadata (see <http://ocoins.info/>) for automated parsing of citation information.
-- handle the oddity that is cite encyclopedia and {{citation |encyclopedia=something}}. Here we presume that
-- when Periodical, Title, and Chapter are all set, then Periodical is the book (encyclopedia) title, Title
-- is the article title, and Chapter is a section within the article. So, we remap
local coins_chapter = Chapter; -- default assuming that remapping not required
local coins_title = Title; -- et tu
if 'encyclopaedia' == config.CitationClass or ('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) then
if utilities.is_set (Chapter) and utilities.is_set (Title) and utilities.is_set (Periodical) then -- if all are used then
coins_chapter = Title; -- remap
coins_title = Periodical;
end
end
local coins_author = a; -- default for coins rft.au
if 0 < #c then -- but if contributor list
coins_author = c; -- use that instead
end
-- this is the function call to COinS()
local OCinSoutput = metadata.COinS({
['Periodical'] = utilities.strip_apostrophe_markup (Periodical), -- no markup in the metadata
['Encyclopedia'] = Encyclopedia, -- just a flag; content ignored by ~/COinS
['Chapter'] = metadata.make_coins_title (coins_chapter, ScriptChapter), -- Chapter and ScriptChapter stripped of bold / italic / accept-as-written markup
['Degree'] = Degree; -- cite thesis only
['Title'] = metadata.make_coins_title (coins_title, ScriptTitle), -- Title and ScriptTitle stripped of bold / italic / accept-as-written markup
['PublicationPlace'] = PublicationPlace,
['Date'] = COinS_date.rftdate, -- COinS_date.* has correctly formatted date values if Date is valid;
['Season'] = COinS_date.rftssn,
['Quarter'] = COinS_date.rftquarter,
['Chron'] = COinS_date.rftchron,
['Series'] = Series,
['Volume'] = Volume,
['Issue'] = Issue,
['ArticleNumber'] = ArticleNumber,
['Pages'] = coins_pages or metadata.get_coins_pages (first_set ({Sheet, Sheets, Page, Pages, At, QuotePage, QuotePages}, 7)), -- pages stripped of external links
['Edition'] = Edition,
['PublisherName'] = PublisherName or Newsgroup, -- any apostrophe markup already removed from PublisherName
['URL'] = first_set ({ChapterURL, URL}, 2),
['Authors'] = coins_author,
['ID_list'] = ID_list_coins,
['RawPage'] = this_page.prefixedText,
}, config.CitationClass);
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, {{cite medrxiv}}, and {{cite ssrn}} AFTER generation of COinS data.
if utilities.in_array (config.CitationClass, whitelist.preprint_template_list_t) then -- we have set rft.jtitle in COinS to arXiv, bioRxiv, CiteSeerX, medRxiv, or ssrn now unset so it isn't displayed
Periodical = ''; -- periodical not allowed in these templates; if article has been published, use cite journal
end
-- special case for cite newsgroup. Do this after COinS because we are modifying Publishername to include some static text
if 'newsgroup' == config.CitationClass and utilities.is_set (Newsgroup) then
PublisherName = utilities.substitute (cfg.messages['newsgroup'], external_link( 'news:' .. Newsgroup, Newsgroup, Newsgroup_origin, nil ));
end
local Editors;
local EditorCount; -- used only for choosing {ed.) or (eds.) annotation at end of editor name-list
local Contributors; -- assembled contributors name list
local contributor_etal;
local Translators; -- assembled translators name list
local translator_etal;
local t = {}; -- translators list from |translator-lastn= / translator-firstn= pairs
t = extract_names (args, 'TranslatorList'); -- fetch translator list from |translatorn= / |translator-lastn=, -firstn=, -linkn=, -maskn=
local Interviewers;
local interviewers_list = {};
interviewers_list = extract_names (args, 'InterviewerList'); -- process preferred interviewers parameters
local interviewer_etal;
-- Now perform various field substitutions.
-- We also add leading spaces and surrounding markup and punctuation to the
-- various parts of the citation, but only when they are non-nil.
do
local last_first_list;
local control = {
format = NameListStyle, -- empty string, '&', 'amp', 'and', or 'vanc'
maximum = nil, -- as if display-authors or display-editors not set
mode = Mode
};
do -- do editor name list first because the now unsupported coauthors used to modify control table
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayEditors'], A['DisplayEditors'], A:ORIGIN ('DisplayEditors'), #e);
control.maximum, editor_etal = get_display_names (display_names, #e, 'editors', editor_etal, param);
Editors, EditorCount = list_people (control, e, editor_etal);
if 1 == EditorCount and (true == editor_etal or 1 < #e) then -- only one editor displayed but includes etal then
EditorCount = 2; -- spoof to display (eds.) annotation
end
end
do -- now do interviewers
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayInterviewers'], A['DisplayInterviewers'], A:ORIGIN ('DisplayInterviewers'), #interviewers_list);
control.maximum, interviewer_etal = get_display_names (display_names, #interviewers_list, 'interviewers', interviewer_etal, param);
Interviewers = list_people (control, interviewers_list, interviewer_etal);
end
do -- now do translators
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayTranslators'], A['DisplayTranslators'], A:ORIGIN ('DisplayTranslators'), #t);
control.maximum, translator_etal = get_display_names (display_names, #t, 'translators', translator_etal, param);
Translators = list_people (control, t, translator_etal);
end
do -- now do contributors
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayContributors'], A['DisplayContributors'], A:ORIGIN ('DisplayContributors'), #c);
control.maximum, contributor_etal = get_display_names (display_names, #c, 'contributors', contributor_etal, param);
Contributors = list_people (control, c, contributor_etal);
end
do -- now do authors
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayAuthors'], A['DisplayAuthors'], A:ORIGIN ('DisplayAuthors'), #a, author_etal);
control.maximum, author_etal = get_display_names (display_names, #a, 'authors', author_etal, param);
last_first_list = list_people (control, a, author_etal);
if utilities.is_set (Authors) then
Authors, author_etal = name_has_etal (Authors, author_etal, false, 'authors'); -- find and remove variations on et al.
if author_etal then
Authors = Authors .. ' ' .. cfg.messages['et al']; -- add et al. to authors parameter
end
else
Authors = last_first_list; -- either an author name list or an empty string
end
end -- end of do
if utilities.is_set (Authors) and utilities.is_set (Collaboration) then
Authors = Authors .. ' (' .. Collaboration .. ')'; -- add collaboration after et al.
end
end
local ConferenceFormat = A['ConferenceFormat'];
local ConferenceURL = A['ConferenceURL'];
ConferenceFormat = style_format (ConferenceFormat, ConferenceURL, 'conference-format', 'conference-url');
Format = style_format (Format, URL, 'format', 'url');
-- special case for chapter format so no error message or cat when chapter not supported
if not (utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia))) then
ChapterFormat = style_format (ChapterFormat, ChapterURL, 'chapter-format', 'chapter-url');
end
if not utilities.is_set (URL) then
if utilities.in_array (config.CitationClass, {"web", "podcast", "mailinglist"}) or -- |url= required for {{cite web}}, {{cite podcast}}, and {{cite mailing list}}
('citation' == config.CitationClass and ('website' == Periodical_origin or 'script-website' == ScriptPeriodical_origin)) then -- and required for {{citation}} with |website= or |script-website=
if not url_was_archive_today then -- is <URL> empty/missing because it was a deprecated archive.today url
utilities.set_message ('err_cite_web_url'); -- no; emit an error message for an empty/ missing |url=
end
end
-- do we have |accessdate= without either |url= or |chapter-url=?
if utilities.is_set (AccessDate) and not utilities.is_set (ChapterURL) then -- ChapterURL may be set when URL is not set;
utilities.set_message ('err_accessdate_missing_url');
AccessDate = '';
end
end
local UrlStatus = is_valid_parameter_value (A['UrlStatus'], A:ORIGIN('UrlStatus'), cfg.keywords_lists['url-status'], '');
local OriginalURL
local OriginalURL_origin
local OriginalFormat
local OriginalAccess;
UrlStatus = UrlStatus:lower(); -- used later when assembling archived text
if utilities.is_set ( ArchiveURL ) then
if utilities.is_set (ChapterURL) then -- if chapter-url= is set apply archive url to it
OriginalURL = ChapterURL; -- save copy of source chapter's url for archive text
OriginalURL_origin = ChapterURL_origin; -- name of |chapter-url= parameter for error messages
OriginalFormat = ChapterFormat; -- and original |chapter-format=
if 'live' ~= UrlStatus then
ChapterURL = ArchiveURL -- swap-in the archive's URL
ChapterURL_origin = A:ORIGIN('ArchiveURL') -- name of |archive-url= parameter for error messages
ChapterFormat = ArchiveFormat or ''; -- swap in archive's format
ChapterUrlAccess = nil; -- restricted access levels do not make sense for archived URLs
end
elseif utilities.is_set (URL) then
OriginalURL = URL; -- save copy of original source URL
OriginalURL_origin = URL_origin; -- name of URL parameter for error messages
OriginalFormat = Format; -- and original |format=
OriginalAccess = UrlAccess;
if 'live' ~= UrlStatus then -- if URL set then |archive-url= applies to it
URL = ArchiveURL -- swap-in the archive's URL
URL_origin = A:ORIGIN('ArchiveURL') -- name of archive URL parameter for error messages
Format = ArchiveFormat or ''; -- swap in archive's format
UrlAccess = nil; -- restricted access levels do not make sense for archived URLs
end
end
elseif utilities.is_set (UrlStatus) then -- if |url-status= is set when |archive-url= is not set
utilities.set_message ('maint_url_status'); -- add maint cat
end
if utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or -- if any of the 'periodical' cites except encyclopedia
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia)) then
local chap_param;
if utilities.is_set (Chapter) then -- get a parameter name from one of these chapter related meta-parameters
chap_param = A:ORIGIN ('Chapter')
elseif utilities.is_set (TransChapter) then
chap_param = A:ORIGIN ('TransChapter')
elseif utilities.is_set (ChapterURL) then
chap_param = A:ORIGIN ('ChapterURL')
elseif utilities.is_set (ScriptChapter) then
chap_param = ScriptChapter_origin;
else utilities.is_set (ChapterFormat)
chap_param = A:ORIGIN ('ChapterFormat')
end
if utilities.is_set (chap_param) then -- if we found one
utilities.set_message ('err_chapter_ignored', {chap_param}); -- add error message
Chapter = ''; -- and set them to empty string to be safe with concatenation
TransChapter = '';
ChapterURL = '';
ScriptChapter = '';
ChapterFormat = '';
end
else -- otherwise, format chapter / article title
local no_quotes = false; -- default assume that we will be quoting the chapter parameter value
if utilities.is_set (Contribution) and 0 < #c then -- if this is a contribution with contributor(s)
if utilities.in_array (Contribution:lower(), cfg.keywords_lists.contribution) then -- and a generic contribution title
no_quotes = true; -- then render it unquoted
end
end
Chapter = format_chapter_title (ScriptChapter, ScriptChapter_origin, Chapter, Chapter_origin, TransChapter, TransChapter_origin, ChapterURL, ChapterURL_origin, no_quotes, ChapterUrlAccess); -- Contribution is also in Chapter
if utilities.is_set (Chapter) then
Chapter = Chapter .. ChapterFormat ;
if 'map' == config.CitationClass and utilities.is_set (TitleType) then
Chapter = Chapter .. ' ' .. TitleType; -- map annotation here; not after title
end
Chapter = Chapter .. sepc .. ' ';
elseif utilities.is_set (ChapterFormat) then -- |chapter= not set but |chapter-format= is so ...
Chapter = ChapterFormat .. sepc .. ' '; -- ... ChapterFormat has error message, we want to see it
end
end
-- Format main title
local plain_title = false;
local accept_title;
Title, accept_title = utilities.has_accept_as_written (Title, true); -- remove accept-this-as-written markup when it wraps all of <Title>
if accept_title and ('' == Title) then -- only support forced empty for now "(())"
Title = cfg.messages['notitle']; -- replace by predefined "No title" message
-- TODO: utilities.set_message ( 'err_redundant_parameters', ...); -- issue proper error message instead of muting
ScriptTitle = ''; -- just mute for now
TransTitle = ''; -- just mute for now
plain_title = true; -- suppress text decoration for descriptive title
utilities.set_message ('maint_untitled'); -- add maint cat
end
if not accept_title then -- <Title> not wrapped in accept-as-written markup
if '...' == Title:sub (-3) then -- if ellipsis is the last three characters of |title=
Title = Title:gsub ('(%.%.%.)%.+$', '%1'); -- limit the number of dots to three
elseif not mw.ustring.find (Title, '%.%s*%a%.$') and -- end of title is not a 'dot-(optional space-)letter-dot' initialism ...
not mw.ustring.find (Title, '%s+%a%.$') then -- ...and not a 'space-letter-dot' initial (''Allium canadense'' L.)
Title = mw.ustring.gsub(Title, '%' .. sepc .. '$', ''); -- remove any trailing separator character; sepc and ms.ustring() here for languages that use multibyte separator characters
end
if utilities.is_set (ArchiveURL) and is_archived_copy (Title) then
utilities.set_message ('maint_archived_copy'); -- add maintenance category before we modify the content of Title
end
if is_generic ('generic_titles', Title) then
utilities.set_message ('err_generic_title'); -- set an error message
end
end
if (not plain_title) and (utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'document', 'pressrelease', 'podcast', 'newsgroup', 'mailinglist', 'interview', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia)) or
('map' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)))) then -- special case for cite map when the map is in a periodical treat as an article
Title = kern_quotes (Title); -- if necessary, separate title's leading and trailing quote marks from module provided quote marks
Title = utilities.wrap_style ('quoted-title', Title);
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle );
elseif plain_title or ('report' == config.CitationClass) then -- no styling for cite report and descriptive titles (otherwise same as above)
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle ); -- for cite report, use this form for trans-title
else
Title = utilities.wrap_style ('italic-title', Title);
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-italic-title', TransTitle);
end
if utilities.is_set (TransTitle) then
if utilities.is_set (Title) then
TransTitle = " " .. TransTitle;
else
utilities.set_message ('err_trans_missing_title', {'title'});
end
end
if utilities.is_set (Title) then -- TODO: is this the right place to be making Wikisource URLs?
if utilities.is_set (TitleLink) and utilities.is_set (URL) then
utilities.set_message ('err_wikilink_in_url'); -- set an error message because we can't have both
TitleLink = ''; -- unset
end
if not utilities.is_set (TitleLink) and utilities.is_set (URL) then
Title = external_link (URL, Title, URL_origin, UrlAccess) .. TransTitle .. Format;
URL = ''; -- unset these because no longer needed
Format = "";
elseif utilities.is_set (TitleLink) and not utilities.is_set (URL) then
local ws_url;
ws_url = wikisource_url_make (TitleLink); -- ignore ws_label return; not used here
if ws_url then
Title = external_link (ws_url, Title .. ' ', 'ws link in title-link'); -- space char after Title to move icon away from italic text; TODO: a better way to do this?
Title = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], TitleLink, Title});
Title = Title .. TransTitle;
else
Title = utilities.make_wikilink (TitleLink, Title) .. TransTitle;
end
else
local ws_url, ws_label, L; -- Title has italic or quote markup by the time we get here which causes is_wikilink() to return 0 (not a wikilink)
ws_url, ws_label, L = wikisource_url_make (Title:gsub('^[\'"]*(.-)[\'"]*$', '%1')); -- make ws URL from |title= interwiki link (strip italic or quote markup); link portion L becomes tooltip label
if ws_url then
Title = Title:gsub ('%b[]', ws_label); -- replace interwiki link with ws_label to retain markup
Title = external_link (ws_url, Title .. ' ', 'ws link in title'); -- space char after Title to move icon away from italic text; TODO: a better way to do this?
Title = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, Title});
Title = Title .. TransTitle;
else
Title = Title .. TransTitle;
end
end
else
Title = TransTitle;
end
if utilities.is_set (Place) then
Place = " " .. wrap_msg ('written', Place, use_lowercase) .. sepc .. " ";
end
local ConferenceURL_origin = A:ORIGIN('ConferenceURL'); -- get name of parameter that holds ConferenceURL
if utilities.is_set (Conference) then
if utilities.is_set (ConferenceURL) then
Conference = external_link( ConferenceURL, Conference, ConferenceURL_origin, nil );
end
Conference = sepc .. " " .. Conference .. ConferenceFormat;
elseif utilities.is_set (ConferenceURL) then
Conference = sepc .. " " .. external_link( ConferenceURL, nil, ConferenceURL_origin, nil );
end
local Position = '';
if not utilities.is_set (Position) then
local Minutes = A['Minutes'];
local Time = A['Time'];
if utilities.is_set (Minutes) then
if utilities.is_set (Time) then --TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'minutes') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'time')});
end
Position = utilities.substitute (cfg.messages.minutes, Minutes);
else
if utilities.is_set (Time) then
local TimeCaption = A['TimeCaption']
if not utilities.is_set (TimeCaption) then
TimeCaption = cs2_lower(cfg.messages['event']);
end
Position = " " .. TimeCaption .. " " .. Time;
end
end
else
Position = " " .. Position;
At = '';
end
Page, Pages, Sheet, Sheets = format_pages_sheets (Page, Pages, Sheet, Sheets, config.CitationClass, Periodical_origin, sepc, NoPP, use_lowercase);
At = utilities.is_set (At) and (sepc .. " " .. At) or "";
Position = utilities.is_set (Position) and (sepc .. " " .. Position) or "";
if config.CitationClass == 'map' then
local Sections = A['Sections']; -- Section (singular) is an alias of Chapter so set earlier
local Inset = A['Inset'];
if utilities.is_set ( Inset ) then
Inset = sepc .. " " .. wrap_msg ('inset', Inset, use_lowercase);
end
if utilities.is_set ( Sections ) then
Section = sepc .. " " .. wrap_msg ('sections', Sections, use_lowercase);
elseif utilities.is_set ( Section ) then
Section = sepc .. " " .. wrap_msg ('section', Section, use_lowercase);
end
At = At .. Inset .. Section;
end
local Others = A['Others'];
if utilities.is_set (Others) and 0 == #a and 0 == #e then -- add maint cat when |others= has value and used without |author=, |editor=
if config.CitationClass == "AV-media-notes"
or config.CitationClass == "audio-visual" then -- special maint for AV/M which has a lot of 'false' positives right now
utilities.set_message ('maint_others_avm')
else
utilities.set_message ('maint_others');
end
end
Others = utilities.is_set (Others) and (sepc .. " " .. Others) or "";
if utilities.is_set (Translators) then
Others = safe_join ({sepc .. ' ', wrap_msg ('translated', Translators, use_lowercase), Others}, sepc);
end
if utilities.is_set (Interviewers) then
Others = safe_join ({sepc .. ' ', wrap_msg ('interview', Interviewers, use_lowercase), Others}, sepc);
end
local TitleNote = A['TitleNote'];
TitleNote = utilities.is_set (TitleNote) and (sepc .. " " .. TitleNote) or "";
if utilities.is_set (Edition) then
if Edition:match ('%f[%a][Ee]d%n?%.?$') or Edition:match ('%f[%a][Ee]dition$') then -- Ed, ed, Ed., ed., Edn, edn, Edn., edn.
utilities.set_message ('err_extra_text_edition'); -- add error message
end
Edition = " " .. wrap_msg ('edition', Edition);
else
Edition = '';
end
Series = utilities.is_set (Series) and wrap_msg ('series', {sepc, Series}) or ""; -- not the same as SeriesNum
local Agency = A['Agency'] or ''; -- |agency= is supported by {{cite magazine}}, {{cite news}}, {{cite press release}}, {{cite web}}, and certain {{citation}} templates
if utilities.is_set (Agency) then -- this testing done here because {{citation}} supports 'news' citations
if utilities.in_array (config.CitationClass, {'magazine', 'news', 'pressrelease', 'web'}) or ('citation' == config.CitationClass and utilities.in_array (Periodical_origin, {"magazine", "newspaper", "work"})) then
Agency = wrap_msg ('agency', {sepc, Agency}); -- format for rendering
else
Agency = ''; -- unset; not supported
utilities.set_message ('err_parameter_ignored', {'agency'}); -- add error message
end
end
Volume = format_volume_issue (Volume, Issue, ArticleNumber, config.CitationClass, Periodical_origin, sepc, use_lowercase);
if utilities.is_set (AccessDate) then
local retrv_text = " " .. cfg.messages['retrieved'];
AccessDate = nowrap_date (AccessDate); -- wrap in nowrap span if date in appropriate format
retrv_text = cs2_lower(retrv_text); -- if mode is cs2, lower case
AccessDate = utilities.substitute (retrv_text, AccessDate); -- add retrieved text
AccessDate = utilities.substitute (cfg.presentation['accessdate'], {sepc, AccessDate}); -- allow editors to hide accessdates
end
if utilities.is_set (ID) then ID = sepc .. " " .. ID; end
local Docket = A['Docket'];
if "thesis" == config.CitationClass and utilities.is_set (Docket) then
ID = sepc .. " Docket " .. Docket .. ID;
end
if "report" == config.CitationClass and utilities.is_set (Docket) then -- for cite report when |docket= is set
ID = sepc .. ' ' .. Docket; -- overwrite ID even if |id= is set
end
if utilities.is_set (URL) then
URL = " " .. external_link( URL, nil, URL_origin, UrlAccess );
end
-- We check length of PostScript here because it will have been nuked by
-- the quote parameters. We'd otherwise emit a message even if there wasn't
-- a displayed postscript.
-- TODO: Should the max size (1) be configurable?
-- TODO: Should we check a specific pattern?
if utilities.is_set(PostScript) and mw.ustring.len(PostScript) > 1 then
utilities.set_message ('maint_postscript')
end
local Archived;
if utilities.is_set (ArchiveURL) then
if not utilities.is_set (ArchiveDate) then -- ArchiveURL set but ArchiveDate not set
utilities.set_message ('err_archive_missing_date'); -- emit an error message
ArchiveURL = ''; -- empty string for concatenation
ArchiveDate = ''; -- empty string for concatenation
end
else
if utilities.is_set (ArchiveDate) then -- ArchiveURL not set but ArchiveDate is set
utilities.set_message ('err_archive_date_missing_url'); -- emit an error message
ArchiveURL = ''; -- empty string for concatenation
ArchiveDate = ''; -- empty string for concatenation
end
end
if utilities.is_set (ArchiveURL) then
local arch_text;
if "live" == UrlStatus then
if utilities.is_set (ArchiveDate) then
Archived = sepc .. ' ' .. utilities.substitute ( cfg.messages['archived-live'],
{ external_link( ArchiveURL, cs2_lower(cfg.messages['archived']), A:ORIGIN('ArchiveURL'), nil) .. ArchiveFormat, ArchiveDate } );
else
Archived = '';
end
if not utilities.is_set (OriginalURL) then
utilities.set_message ('err_archive_missing_url');
Archived = ''; -- empty string for concatenation
end
elseif utilities.is_set (OriginalURL) then -- UrlStatus is empty, 'dead', 'unfit', 'usurped', 'bot: unknown'
if utilities.in_array (UrlStatus, {'unfit', 'usurped', 'bot: unknown'}) then
Archived = sepc .. ' ' .. utilities.substitute ( cs2_lower(cfg.messages['archived-unfit']), ArchiveDate);
if 'bot: unknown' == UrlStatus then
utilities.set_message ('maint_bot_unknown'); -- and add a category if not already added
else
utilities.add_prop_cat ('unfit'); -- and add a category if not already added
end
else -- UrlStatus is empty, 'dead'
if utilities.is_set (ArchiveDate) then
Archived = sepc .. ' ' .. utilities.substitute ( cs2_lower(cfg.messages['archived-dead']),
{ external_link( OriginalURL, cfg.messages['original'], OriginalURL_origin, OriginalAccess ) .. OriginalFormat, ArchiveDate } );
else
Archived = ''; -- unset for concatenation
end
end
else -- OriginalUrl not set
utilities.set_message ('err_archive_missing_url');
Archived = ''; -- empty string for concatenation
end
elseif utilities.is_set (ArchiveFormat) then
Archived = ArchiveFormat; -- if set and ArchiveURL not set ArchiveFormat has error message
else
Archived = '';
end
local TranscriptURL = A['TranscriptURL']
local TranscriptFormat = A['TranscriptFormat'];
TranscriptFormat = style_format (TranscriptFormat, TranscriptURL, 'transcript-format', 'transcripturl');
local Transcript = A['Transcript'];
local TranscriptURL_origin = A:ORIGIN('TranscriptURL'); -- get name of parameter that holds TranscriptURL
if utilities.is_set (Transcript) then
if utilities.is_set (TranscriptURL) then
Transcript = external_link( TranscriptURL, Transcript, TranscriptURL_origin, nil );
end
Transcript = sepc .. ' ' .. Transcript .. TranscriptFormat;
elseif utilities.is_set (TranscriptURL) then
Transcript = external_link( TranscriptURL, nil, TranscriptURL_origin, nil );
end
local Publisher;
if utilities.is_set (PublicationDate) then
PublicationDate = wrap_msg ('published', PublicationDate);
end
if utilities.is_set (PublisherName) then
if utilities.is_set (PublicationPlace) then
Publisher = sepc .. " " .. PublicationPlace .. ": " .. PublisherName .. PublicationDate;
else
Publisher = sepc .. " " .. PublisherName .. PublicationDate;
end
elseif utilities.is_set (PublicationPlace) then
Publisher= sepc .. " " .. PublicationPlace .. PublicationDate;
else
Publisher = PublicationDate;
end
-- Several of the above rely upon detecting this as nil, so do it last.
if (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical) or utilities.is_set (TransPeriodical)) then
if utilities.is_set (Title) or utilities.is_set (TitleNote) then
Periodical = sepc .. " " .. format_periodical (ScriptPeriodical, ScriptPeriodical_origin, Periodical, TransPeriodical, TransPeriodical_origin);
else
Periodical = format_periodical (ScriptPeriodical, ScriptPeriodical_origin, Periodical, TransPeriodical, TransPeriodical_origin);
end
end
local Language = A['Language'];
if utilities.is_set (Language) then
Language = language_parameter (Language); -- format, categories, name from ISO639-1, etc.
else
Language=''; -- language not specified so make sure this is an empty string;
--[[ TODO: need to extract the wrap_msg from language_parameter
so that we can solve parentheses bunching problem with Format/Language/TitleType
]]
end
--[[
Handle the oddity that is cite speech. This code overrides whatever may be the value assigned to TitleNote (through |department=) and forces it to be " (Speech)" so that
the annotation directly follows the |title= parameter value in the citation rather than the |event= parameter value (if provided).
]]
if "speech" == config.CitationClass then -- cite speech only
TitleNote = TitleType; -- move TitleType to TitleNote so that it renders ahead of |event=
TitleType = ''; -- and unset
if utilities.is_set (Periodical) then -- if Periodical, perhaps because of an included |website= or |journal= parameter
if utilities.is_set (Conference) then -- and if |event= is set
Conference = Conference .. sepc .. " "; -- then add appropriate punctuation to the end of the Conference variable before rendering
end
end
end
-- Piece all bits together at last. Here, all should be non-nil.
-- We build things this way because it is more efficient in LUA
-- not to keep reassigning to the same string variable over and over.
local tcommon;
local tcommon2; -- used for book cite when |contributor= is set
local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;
-- Volume = safe_join ({Volume, pgtext}, sepc);
if utilities.in_array (config.CitationClass, {"book", "citation"}) and not utilities.is_set (Periodical) then -- special cases for book cites
if utilities.is_set (Contributors) then -- when we are citing foreword, preface, introduction, etc.
tcommon = safe_join ({Title, TitleNote}, sepc); -- author and other stuff will come after this and before tcommon2
tcommon2 = safe_join ({TitleType, Series, Language, Volume, Others, Edition, Publisher}, sepc);
else
tcommon = safe_join ({Title, TitleNote, TitleType, Series, Language, Volume, Others, Edition, Publisher}, sepc);
end
elseif 'map' == config.CitationClass then -- special cases for cite map
if utilities.is_set (Chapter) then -- map in a book; TitleType is part of Chapter
tcommon = safe_join ({Title, Edition, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc);
elseif utilities.is_set (Periodical) then -- map in a periodical
tcommon = safe_join ({Title, TitleType, Periodical, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc);
else -- a sheet or stand-alone map
tcommon = safe_join ({Title, TitleType, Edition, Scale, Series, Language, Cartography, Others, Publisher}, sepc);
end
elseif 'episode' == config.CitationClass then -- special case for cite episode
tcommon = safe_join ({Title, TitleNote, TitleType, Series, Language, Edition, Publisher}, sepc);
else -- all other CS1 templates
tcommon = safe_join ({Title, TitleNote, Conference, Periodical, TitleType, Series, Language, Volume, Others, Edition, Publisher, Agency}, sepc);
end
if #ID_list > 0 then
ID_list = safe_join( { sepc .. " ", table.concat( ID_list, sepc .. " " ), ID }, sepc );
else
ID_list = ID;
end
local Via = A['Via'];
Via = utilities.is_set (Via) and wrap_msg ('via', Via) or '';
local idcommon;
if 'audio-visual' == config.CitationClass or 'episode' == config.CitationClass then -- special case for cite AV media & cite episode position transcript
idcommon = safe_join( { ID_list, URL, Archived, Transcript, AccessDate, Via, Quote }, sepc );
else
idcommon = safe_join( { ID_list, URL, Archived, AccessDate, Via, Quote }, sepc );
end
local text;
-- local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;
local OrigDate = A['OrigDate'];
OrigDate = utilities.is_set (OrigDate) and wrap_msg ('origdate', OrigDate) or '';
if utilities.is_set (Date) then
if utilities.is_set (Authors) or utilities.is_set (Editors) then -- date follows authors or editors when authors not set
Date = " (" .. Date .. ")" .. OrigDate .. sepc .. " "; -- in parentheses
else -- neither of authors and editors set
if (string.sub(tcommon, -1, -1) == sepc) then -- if the last character of tcommon is sepc
Date = " " .. Date .. OrigDate; -- Date does not begin with sepc
else
Date = sepc .. " " .. Date .. OrigDate; -- Date begins with sepc
end
end
end
if utilities.is_set (Authors) then
if (not utilities.is_set (Date)) then -- when date is set it's in parentheses; no Authors termination
Authors = terminate_name_list (Authors, sepc); -- when no date, terminate with 0 or 1 sepc and a space
end
if utilities.is_set (Editors) then
local in_text = '';
local post_text = '';
if utilities.is_set (Chapter) and 0 == #c then
in_text = cfg.messages['in'] .. ' ';
in_text = cs2_lower(in_text); -- lowercase for cs2
end
if EditorCount <= 1 then
post_text = ' (' .. cfg.messages['editor'] .. ')'; -- be consistent with no-author, no-date case
else
post_text = ' (' .. cfg.messages['editors'] .. ')';
end
Editors = terminate_name_list (in_text .. Editors .. post_text, sepc); -- terminate with 0 or 1 sepc and a space
end
if utilities.is_set (Contributors) then -- book cite and we're citing the intro, preface, etc.
local by_text = sepc .. ' ' .. cfg.messages['by'] .. ' ';
by_text = cs2_lower(by_text); -- lowercase for cs2
Authors = by_text .. Authors; -- author follows title so tweak it here
if utilities.is_set (Editors) and utilities.is_set (Date) then -- when Editors make sure that Authors gets terminated
Authors = terminate_name_list (Authors, sepc); -- terminate with 0 or 1 sepc and a space
end
if (not utilities.is_set (Date)) then -- when date is set it's in parentheses; no Contributors termination
Contributors = terminate_name_list (Contributors, sepc); -- terminate with 0 or 1 sepc and a space
end
text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, pgtext, idcommon }, sepc );
-- text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, idcommon }, sepc );
else
text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, pgtext, idcommon }, sepc );
-- text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, idcommon }, sepc );
end
elseif utilities.is_set (Editors) then
if utilities.is_set (Date) then
if EditorCount <= 1 then
Editors = Editors .. cfg.presentation['sep_name'] .. cfg.messages['editor'];
else
Editors = Editors .. cfg.presentation['sep_name'] .. cfg.messages['editors'];
end
else
if EditorCount <= 1 then
Editors = Editors .. " (" .. cfg.messages['editor'] .. ")" .. sepc .. " "
else
Editors = Editors .. " (" .. cfg.messages['editors'] .. ")" .. sepc .. " "
end
end
text = safe_join( {Editors, Date, Chapter, Place, tcommon, pgtext, idcommon}, sepc );
-- text = safe_join( {Editors, Date, Chapter, Place, tcommon, idcommon}, sepc );
else
if utilities.in_array (config.CitationClass, {"journal", "citation"}) and utilities.is_set (Periodical) then
text = safe_join( {Chapter, Place, tcommon, pgtext, Date, idcommon}, sepc );
-- text = safe_join( {Chapter, Place, tcommon, Date, idcommon}, sepc );
else
text = safe_join( {Chapter, Place, tcommon, Date, pgtext, idcommon}, sepc );
-- text = safe_join( {Chapter, Place, tcommon, Date, idcommon}, sepc );
end
end
if utilities.is_set (PostScript) and PostScript ~= sepc then
text = safe_join( {text, sepc}, sepc ); -- Deals with italics, spaces, etc.
if '.' == sepc then -- remove final seperator if present
text = text:gsub ('%' .. sepc .. '$', ''); -- dot must be escaped here
else
text = mw.ustring.gsub (text, sepc .. '$', ''); -- using ustring for non-dot sepc (likely a non-Latin character)
end
end
text = safe_join( {text, PostScript}, sepc );
-- Now enclose the whole thing in a <cite> element
local options_t = {};
options_t.class = cite_class_attribute_make (config.CitationClass, Mode);
local Ref = is_valid_parameter_value (A['Ref'], A:ORIGIN('Ref'), cfg.keywords_lists['ref'], nil, true); -- nil when |ref=harv; A['Ref'] else
if 'none' ~= cfg.keywords_xlate[(Ref and Ref:lower()) or ''] then
local namelist_t = {}; -- holds selected contributor, author, editor name list
local year = first_set ({Year, anchor_year}, 2); -- Year first for legacy citations and for YMD dates that require disambiguation
if #c > 0 then -- if there is a contributor list
namelist_t = c; -- select it
elseif #a > 0 then -- or an author list
namelist_t = a;
elseif #e > 0 then -- or an editor list
namelist_t = e;
end
local citeref_id;
if #namelist_t > 0 then -- if there are names in namelist_t
citeref_id = make_citeref_id (namelist_t, year); -- go make the CITEREF anchor
if mw.uri.anchorEncode (citeref_id) == ((Ref and mw.uri.anchorEncode (Ref)) or '') then -- Ref may already be encoded (by {{sfnref}}) so citeref_id must be encoded before comparison
utilities.set_message ('maint_ref_duplicates_default');
end
else
citeref_id = ''; -- unset
end
options_t.id = Ref or citeref_id;
end
if string.len (text:gsub('%b<>', '')) <= 2 then -- remove html and html-like tags; then get length of what remains;
z.error_cats_t = {}; -- blank the categories list
z.error_msgs_t = {}; -- blank the error messages list
OCinSoutput = nil; -- blank the metadata string
text = ''; -- blank the the citation
utilities.set_message ('err_empty_citation'); -- set empty citation message and category
end
local render_t = {}; -- here we collect the final bits for concatenation into the rendered citation
if is_preview_mode and (0 ~= #z.error_msgs_t or 0 ~= #z.maint_cats_t) then -- when in preview mode
if not utilities.is_set (options_t.id) then -- and when this template has not created an anchor ID
math.randomseed (tonumber (mw.getLanguage ('en'):formatDate ('U')) * 10000 + os.clock() * 10000);
options_t.id = 'CITEREF_temp_preview_id_' .. math.random (100000, 999999); -- create temporary anchor ID for preview mode
end
end
if utilities.is_set (options_t.id) then -- here we wrap the rendered citation in <cite ...>...</cite> tags
options_t.id = mw.uri.anchorEncode(options_t.id); -- do this here; also used when adding preview warning messages
table.insert (render_t, utilities.substitute (cfg.presentation['cite-id'], {options_t.id, mw.text.nowiki(options_t.class), text})); -- when |ref= is set or when there is a namelist
else
table.insert (render_t, utilities.substitute (cfg.presentation['cite'], {mw.text.nowiki(options_t.class), text})); -- when |ref=none or when namelist_t empty and |ref= is missing or is empty
end
if OCinSoutput then -- blanked when citation is 'empty' so don't bother to add boilerplate metadata span
table.insert (render_t, utilities.substitute (cfg.presentation['ocins'], OCinSoutput)); -- format and append metadata to the citation
end
local template_name = cfg.citation_class_map_t[config.CitationClass];
local template_link = '[[Template:' .. template_name .. '|' .. template_name .. ']]';
local msg_prefix = '<code class="cs1-code">{{' .. template_link .. '}}</code>: ';
if 0 ~= #z.error_msgs_t then
mw.addWarning (utilities.substitute (cfg.messages.warning_msg_e, {template_link, options_t.id}));
table.insert (render_t, ' '); -- insert a space between citation and its error messages
table.sort (z.error_msgs_t); -- sort the error messages list; sorting includes wrapping <span> and <code> tags; hidden-error sorts ahead of visible-error
local hidden = true; -- presume that the only error messages emited by this template are hidden
for _, v in ipairs (z.error_msgs_t) do -- spin through the list of error messages
if v:find ('cs1-visible-error', 1, true) then -- look for the visible error class name
hidden = false; -- found one; so don't hide the error message prefix
break; -- and done because no need to look further
end
end
z.error_msgs_t[1] = table.concat ({utilities.error_comment (msg_prefix, hidden), z.error_msgs_t[1]}); -- add error message prefix to first error message to prevent extraneous punctuation
table.insert (render_t, table.concat (z.error_msgs_t, '; ')); -- make a big string of error messages and add it to the rendering
end
if 0 ~= #z.maint_cats_t then
mw.addWarning (utilities.substitute (cfg.messages.warning_msg_m, {template_link, options_t.id}));
table.sort (z.maint_cats_t); -- sort the maintenance messages list
local maint_msgs_t = {}; -- here we collect all of the maint messages
if 0 == #z.error_msgs_t then -- if no error messages
table.insert (maint_msgs_t, msg_prefix); -- insert message prefix in maint message livery
end
for _, v in ipairs( z.maint_cats_t ) do -- append maintenance categories
table.insert (maint_msgs_t, -- assemble new maint message and add it to the maint_msgs_t table
table.concat ({v, ' (', utilities.substitute (cfg.messages[':cat wikilink'], v), ')'})
);
end
table.insert (render_t, utilities.substitute (cfg.presentation['hidden-maint'], table.concat (maint_msgs_t, ' '))); -- wrap the group of maint messages with proper presentation and save
end
if not no_tracking_cats then
local sort_key;
local cat_wikilink = 'cat wikilink';
if cfg.enable_sort_keys then -- when namespace sort keys enabled
local namespace_number = mw.title.getCurrentTitle().namespace; -- get namespace number for this wikitext
sort_key = (0 ~= namespace_number and (cfg.name_space_sort_keys[namespace_number] or cfg.name_space_sort_keys.other)) or nil; -- get sort key character; nil for mainspace
cat_wikilink = (not sort_key and 'cat wikilink') or 'cat wikilink sk'; -- make <cfg.messages> key
end
for _, v in ipairs (z.error_cats_t) do -- append error categories
table.insert (render_t, utilities.substitute (cfg.messages[cat_wikilink], {v, sort_key}));
end
if cfg.id_limits_data_load_fail then -- boolean true when load failed
utilities.set_message ('maint_id_limit_load_fail'); -- done here because this maint cat emits no message
end
for _, v in ipairs (z.maint_cats_t) do -- append maintenance categories
table.insert (render_t, utilities.substitute (cfg.messages[cat_wikilink], {v, sort_key}));
end
for _, v in ipairs (z.prop_cats_t) do -- append properties categories
table.insert (render_t, utilities.substitute (cfg.messages['cat wikilink'], v)); -- no sort keys
end
end
return table.concat (render_t); -- make a big string and done
end
--[[--------------------------< V A L I D A T E >--------------------------------------------------------------
Looks for a parameter's name in one of several whitelists.
Parameters in the whitelist can have three values:
true - active, supported parameters
false - deprecated, supported parameters
nil - unsupported parameters
]]
local function validate (name, cite_class, empty)
local name = tostring (name);
local enum_name; -- parameter name with enumerator (if any) replaced with '#'
local state;
local function state_test (state, name) -- local function to do testing of state values
if true == state then return true; end -- valid actively supported parameter
if false == state then
if empty then return nil; end -- empty deprecated parameters are treated as unknowns
deprecated_parameter (name); -- parameter is deprecated but still supported
return true;
end
if 'tracked' == state then
local base_name = name:gsub ('%d', ''); -- strip enumerators from parameter names that have them to get the base name
utilities.add_prop_cat ('tracked-param', {base_name}, base_name); -- add a properties category; <base_name> modifies <key>
return true;
end
return nil;
end
if name:find ('#') then -- # is a cs1|2 reserved character so parameters with # not permitted
return nil;
end
-- replace enumerator digit(s) with # (|last25= becomes |last#=) (mw.ustring because non-Western 'local' digits)
enum_name = mw.ustring.gsub (name, '%d+$', '#'); -- where enumerator is last charaters in parameter name (these to protect |s2cid=)
enum_name = mw.ustring.gsub (enum_name, '%d+([%-l])', '#%1'); -- where enumerator is in the middle of the parameter name; |author#link= is the oddity
if 'document' == cite_class then -- special case for {{cite document}}
state = whitelist.document_parameters_t[enum_name]; -- this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
return false;
end
if utilities.in_array (cite_class, whitelist.preprint_template_list_t) then -- limited parameter sets allowed for these templates
state = whitelist.limited_parameters_t[enum_name]; -- this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
state = whitelist.preprint_arguments_t[cite_class][name]; -- look in the parameter-list for the template identified by cite_class
if true == state_test (state, name) then return true; end
return false; -- not supported because not found or name is set to nil
end -- end limited parameter-set templates
if utilities.in_array (cite_class, whitelist.unique_param_template_list_t) then -- template-specific parameters for templates that accept parameters from the basic argument list
state = whitelist.unique_arguments_t[cite_class][name]; -- look in the template-specific parameter-lists for the template identified by cite_class
if true == state_test (state, name) then return true; end
end -- if here, fall into general validation
state = whitelist.common_parameters_t[enum_name]; -- all other templates; all normal parameters allowed; this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
return false; -- not supported because not found or name is set to nil
end
--[=[-------------------------< I N T E R _ W I K I _ C H E C K >----------------------------------------------
check <value> for inter-language interwiki-link markup. <prefix> must be a MediaWiki-recognized language
code. when these values have the form (without leading colon):
[[<prefix>:link|label]] return label as plain-text
[[<prefix>:link]] return <prefix>:link as plain-text
return value as is else
]=]
local function inter_wiki_check (parameter, value)
local prefix = value:match ('%[%[(%a+):'); -- get an interwiki prefix if one exists
local _;
if prefix and cfg.inter_wiki_map[prefix:lower()] then -- if prefix is in the map, needs preceding colon so
utilities.set_message ('err_bad_paramlink', parameter); -- emit an error message
_, value, _ = utilities.is_wikilink (value); -- extract label portion from wikilink
end
return value;
end
--[[--------------------------< M I S S I N G _ P I P E _ C H E C K >------------------------------------------
Look at the contents of a parameter. If the content has a string of characters and digits followed by an equal
sign, compare the alphanumeric string to the list of cs1|2 parameters. If found, then the string is possibly a
parameter that is missing its pipe. There are two tests made:
{{cite ... |title=Title access-date=2016-03-17}} -- the first parameter has a value and whitespace separates that value from the missing pipe parameter name
{{cite ... |title=access-date=2016-03-17}} -- the first parameter has no value (whitespace after the first = is trimmed by MediaWiki)
cs1|2 shares some parameter names with XML/HTML attributes: class=, title=, etc. To prevent false positives XML/HTML
tags are removed before the search.
If a missing pipe is detected, this function adds the missing pipe maintenance category.
]]
local function missing_pipe_check (parameter, value)
local capture;
value = value:gsub ('%b<>', ''); -- remove XML/HTML tags because attributes: class=, title=, etc.
capture = value:match ('%s+(%a[%w%-]+)%s*=') or value:match ('^(%a[%w%-]+)%s*='); -- find and categorize parameters with possible missing pipes
if capture and validate (capture) then -- if the capture is a valid parameter name
utilities.set_message ('err_missing_pipe', parameter);
end
end
--[[--------------------------< H A S _ E X T R A N E O U S _ P U N C T >--------------------------------------
look for extraneous terminal punctuation in most parameter values; parameters listed in skip table are not checked
]]
local function has_extraneous_punc (param, value)
if 'number' == type (param) then
return;
end
param = param:gsub ('%d+', '#'); -- enumerated name-list mask params allow terminal punct; normalize
if cfg.punct_skip[param] then
return; -- parameter name found in the skip table so done
end
if value:match ('[,;:]$') then
utilities.set_message ('maint_extra_punct'); -- has extraneous punctuation; add maint cat
end
if value:match ('^=') then -- sometimes an extraneous '=' character appears ...
utilities.set_message ('maint_extra_punct'); -- has extraneous punctuation; add maint cat
end
end
--[[--------------------------< H A S _ T W L _ U R L >--------------------------------------------------------
look for The Wikipedia Library urls in url-holding parameters. TWL urls are accessible only for readers who are
active extended confirmed Wikipedia editors. This function sets an error message when such urls are discovered
and when appropriate, sets the |<param>-url-access=subscription. returns nothing.
looks for: '.wikipedialibrary.idm.oclc.org'
]]
local function has_twl_url (url_params_t, cite_args_t)
local url_error_t = {}; -- sequence of url-holding parameters that have a TWL url
for param, value in pairs (url_params_t) do
if value:find ('%.wikipedialibrary%.idm%.oclc%.org') then -- has the TWL base url?
table.insert (url_error_t, param); -- add parameter name to the error list
end
end
if 0 ~= #url_error_t then -- non-zero when there are errors
table.sort (url_error_t); -- sor for error messaging
for i, param in ipairs (url_error_t) do
if cfg.url_access_map_t[param] then -- if <param> has a matching -access parameter
cite_args_t[cfg.url_access_map_t[param]] = cfg.keywords_xlate.subscription; -- set |<param>-url-access=subscription
end
url_error_t[i] = utilities.wrap_style ('parameter', param); -- make the parameter pretty for error message
end
utilities.set_message ('err_param_has_twl_url', {utilities.make_sep_list (#url_error_t, url_error_t)}); -- add this error message
end
end
--[[--------------------------< H A S _ E X T R A N E O U S _ U R L >------------------------------------------
look for extraneous url parameter values; parameters listed in skip table are not checked
]]
local function has_extraneous_url (non_url_param_t)
local url_error_t = {};
check_for_url (non_url_param_t, url_error_t); -- extraneous url check
if 0 ~= #url_error_t then -- non-zero when there are errors
table.sort (url_error_t);
utilities.set_message ('err_param_has_ext_link', {utilities.make_sep_list (#url_error_t, url_error_t)}); -- add this error message
end
end
--[[--------------------------< _ C I T A T I O N >------------------------------------------------------------
Module entry point
frame – from template call (citation()); may be nil when called from another module
args_t – table of all cs1|2 parameters in the template (the parent frame)
config_t – table of template-supplied parameter (the #invoke frame)
]]
local function _citation (frame, args_t, config_t) -- save a copy in case we need to display an error message in preview mode
if not frame then
frame = mw.getCurrentFrame(); -- if called from another module, get a frame for frame-provided functions
end
-- i18n: set the name that your wiki uses to identify sandbox subpages from sandbox template invoke (or can be set here)
local sandbox = ((config_t.SandboxPath and '' ~= config_t.SandboxPath) and config_t.SandboxPath) or '/sandbox'; -- sandbox path from {{#invoke:Citation/CS1/sandbox|citation|SandboxPath=/...}}
is_sandbox = nil ~= string.find (frame:getTitle(), sandbox, 1, true); -- is this invoke the sandbox module?
sandbox = is_sandbox and sandbox or ''; -- use i18n sandbox to load sandbox modules when this module is the sandox; live modules else
cfg = mw.loadData ('Module:Citation/CS1/Configuration' .. sandbox); -- load sandbox versions of support modules when {{#invoke:Citation/CS1/sandbox|...}}; live modules else
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist' .. sandbox);
utilities = require ('Module:Citation/CS1/Utilities' .. sandbox);
validation = require ('Module:Citation/CS1/Date_validation' .. sandbox);
identifiers = require ('Module:Citation/CS1/Identifiers' .. sandbox);
metadata = require ('Module:Citation/CS1/COinS' .. sandbox);
utilities.set_selected_modules (cfg); -- so that functions in Utilities can see the selected cfg tables
identifiers.set_selected_modules (cfg, utilities); -- so that functions in Identifiers can see the selected cfg tables and selected Utilities module
validation.set_selected_modules (cfg, utilities); -- so that functions in Date validataion can see selected cfg tables and the selected Utilities module
metadata.set_selected_modules (cfg, utilities); -- so that functions in COinS can see the selected cfg tables and selected Utilities module
z = utilities.z; -- table of error and category tables in Module:Citation/CS1/Utilities
local cite_args_t = {}; -- because args_t is the parent (template) frame args (which cannot be modified); params and their values will be placed here
is_preview_mode = not utilities.is_set (frame:preprocess ('{{REVISIONID}}'));
local suggestions = {}; -- table where we store suggestions if we need to loadData them
local error_text; -- used as a flag
local capture; -- the single supported capture when matching unknown parameters using patterns
local empty_unknowns = {}; -- sequence table to hold empty unknown params for error message listing
for k, v in pairs (args_t) do -- get parameters from the parent (template) frame
v = mw.ustring.gsub (v, '^%s*(.-)%s*$', '%1'); -- trim leading/trailing whitespace; when v is only whitespace, becomes empty string
if v ~= '' then
if cfg.enum_needs_xlation and 'string' == type (k) then -- for wikis that set date_names['local_digits'] to non-western digits
k = mw.ustring.gsub (k, '%d', cfg.date_names.local_digits); -- translate 'local' digits enumerators to Western 0-9
end
if not validate( k, config_t.CitationClass ) then
if type (k) ~= 'string' then -- exclude empty numbered parameters
if v:match("%S+") ~= nil then
error_text = utilities.set_message ('err_text_ignored', {v});
end
elseif validate (k:lower(), config_t.CitationClass) then
error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, k:lower()}); -- suggest the lowercase version of the parameter
else
if nil == suggestions.suggestions then -- if this table is nil then we need to load it
suggestions = mw.loadData ('Module:Citation/CS1/Suggestions' .. sandbox); --load sandbox version of suggestion module when {{#invoke:Citation/CS1/sandbox|...}}; live module else
end
for pattern, param in pairs (suggestions.patterns) do -- loop through the patterns to see if we can suggest a proper parameter
capture = k:match (pattern); -- the whole match if no capture in pattern else the capture if a match
if capture then -- if the pattern matches
param = utilities.substitute (param, capture); -- add the capture to the suggested parameter (typically the enumerator)
if validate (param, config_t.CitationClass) then -- validate the suggestion to make sure that the suggestion is supported by this template (necessary for limited parameter lists)
error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, param}); -- set the suggestion error message
else
error_text = utilities.set_message ('err_parameter_ignored', {k}); -- suggested param not supported by this template
v = ''; -- unset
end
end
end
if not utilities.is_set (error_text) then -- couldn't match with a pattern, is there an explicit suggestion?
if (suggestions.suggestions[ k:lower() ] ~= nil) and validate (suggestions.suggestions[ k:lower() ], config_t.CitationClass) then
utilities.set_message ('err_parameter_ignored_suggest', {k, suggestions.suggestions[ k:lower() ]});
else
utilities.set_message ('err_parameter_ignored', {k});
v = ''; -- unset value assigned to unrecognized parameters (this for the limited parameter lists)
end
end
end
end
cite_args_t[k] = v; -- save this parameter and its value
elseif not utilities.is_set (v) then -- for empty parameters
if not validate (k, config_t.CitationClass, true) then -- is this empty parameter a valid parameter
k = ('' == k) and cfg.err_msg_supl.empty_str or k; -- when k is empty string (or was space(s) trimmed to empty string), replace with descriptive text
table.insert (empty_unknowns, utilities.wrap_style ('parameter', k)); -- format for error message and add to the list
end
end
end
if 0 ~= #empty_unknowns then -- create empty unknown error message
utilities.set_message ('err_param_unknown_empty', {
1 == #empty_unknowns and '' or 's',
utilities.make_sep_list (#empty_unknowns, empty_unknowns)
});
end
local non_url_param_t = {}; -- table of parameters and values that are not url-holding parameters
local url_param_t = {}; -- table of url-holding paramters and their values
for k, v in pairs (cite_args_t) do
if 'string' == type (k) then -- don't evaluate positional parameters
has_invisible_chars (k, v); -- look for invisible characters
end
has_extraneous_punc (k, v); -- look for extraneous terminal punctuation in parameter values
missing_pipe_check (k, v); -- do we think that there is a parameter that is missing a pipe?
cite_args_t[k] = inter_wiki_check (k, v); -- when language interwiki-linked parameter missing leading colon replace with wiki-link label
if 'string' == type (k) then -- when parameter k is not positional
if not cfg.url_skip[k] then -- and not in url skip table
non_url_param_t[k] = v; -- make a parameter/value list for extraneous url check
else -- and is in url skip table (a url-holding parameter)
url_param_t[k] = v; -- make a parameter/value list to check for values that are The Wikipedia Library url
end
end
end
if cfg.suppress_archive_today_urls then
has_archive_today_url (cite_args_t); -- look for and suppress archive.today urls and dependent parameters for all templates
end
has_extraneous_url (non_url_param_t); -- look for url in parameter values where a url does not belong
has_twl_url (url_param_t, cite_args_t); -- look for url-holding parameters that hold a The Wikipedia Library url
return table.concat ({
frame:extensionTag ('templatestyles', '', {src='Module:Citation/CS1' .. sandbox .. '/styles.css'}),
citation0 (config_t, cite_args_t)
});
end
--[[--------------------------< C I T A T I O N >--------------------------------------------------------------
Template entry point
]]
local function citation (frame)
local config_t = {}; -- table to store parameters from the module {{#invoke:}}
local args_t = frame:getParent().args; -- get template's preset parameters
for k, v in pairs (frame.args) do -- get parameters from the {{#invoke}} frame
config_t[k] = v;
-- args_t[k] = v; -- crude debug support that allows us to render a citation from module {{#invoke:}}; skips parameter validation; TODO: keep?
end
return _citation (frame, args_t, config_t)
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
citation = citation, -- template entry point
_citation = _citation, -- module entry point
}
h4z41yislgy78px9srf0h7tksybpwht
Module:Citation/CS1/Configuration
828
26975
395355
394861
2026-10-26T19:57:03Z
MacTire02
219
Iddaalish
395355
Scribunto
text/plain
local lang_obj = mw.language.getContentLanguage(); -- make a language object for the local language; used here for languages and dates
--[[--------------------------< S E T T I N G S >--------------------------------------------------------------
boolean settings used to control various things. these setting located here to make them easy to find
]]
-- these settings local to this module only
local local_digits_from_mediawiki = false; -- for i18n; when true, module fills date_names['local_digits'] from MediaWiki; manual fill required else; always false at en.wiki
local local_date_names_from_mediawiki = false; -- for i18n; when true, module fills date_names['local']['long'] and date_names['local']['short'] from MediaWiki;
-- manual translation required else; ; always false at en.wiki
-- these settings exported to other modules
local use_identifier_redirects = true; -- when true use redirect name for identifier label links; always true at en.wiki
local local_lang_cat_enable = false; -- when true categorizes pages where |language=<local wiki's language>; always false at en.wiki
local date_name_auto_xlate_enable = false; -- when true translates English month-names to the local-wiki's language month names; always false at en.wiki
local date_digit_auto_xlate_enable = false; -- when true translates Western date digit to the local-wiki's language digits (date_names['local_digits']); always false at en.wiki
local enable_sort_keys = true; -- when true module adds namespace sort keys to error and maintenance category links
local suppress_archive_today_urls = true; -- when true module suppresses all parameters with an archive.today url and any deprendent parameters
--[[--------------------------< U N C A T E G O R I Z E D _ N A M E S P A C E S >------------------------------
List of namespaces identifiers for namespaces that will not be included in citation error categories.
Same as setting notracking = true by default.
For wikis that have a current version of Module:cs1 documentation support, this #invoke will return an unordered
list of namespace names and their associated identifiers:
{{#invoke:cs1 documentation support|uncategorized_namespace_lister|all=<anything>}}
]]
local uncategorized_namespaces_t = {[2]=true}; -- init with user namespace id
for k, _ in pairs (mw.site.talkNamespaces) do -- add all talk namespace ids
uncategorized_namespaces_t[k] = true;
end
local uncategorized_subpages = {'/[Ss]andbox', '/[Tt]estcases', '/[^/]*[Ll]og', '/[Aa]rchive'}; -- list of Lua patterns found in page names of pages we should not categorize
--[[
at en.wiki Greek characters are used as sort keys for certain items in a category so that those items are
placed at the end of a category page. See Wikipedia:Categorization#Sort_keys. That works well for en.wiki
because English is written using the Latn script. This may not work well for other languages. At en.wiki it
is desireable to place content from certain namespaces at the end of a category listing so the module adds sort
keys to error and maintenance category links when rendering a cs1|2 template on a page in that namespace.
i18n: if this does not work well for your language, set <enable_sort_keys> to false.
]]
local name_space_sort_keys = { -- sort keys to be used with these namespaces:
[4] = 'ω', -- wikipedia; omega
[10] = 'τ', -- template; tau
[118] = 'Δ', -- draft; delta
['other'] = 'ο', -- all other non-talk namespaces except main (article); omicron
}
--[[--------------------------< M E S S A G E S >--------------------------------------------------------------
Translation table
The following contains fixed text that may be output as part of a citation.
This is separated from the main body to aid in future translations of this
module.
]]
local messages = {
['agency'] = '$1 $2', -- $1 is sepc, $2 is agency
['archived-dead'] = 'Er ny hashtey veih $1 er $2',
['archived-live'] = '$1 veih’n lhieggan bunneydagh er $2',
['archived-unfit'] = 'Er ny hashtey veih’n lhieggan bunneydagh er $1',
['archived'] = 'Tashtit',
['by'] = 'Lesh', -- contributions to authored works: introduction, foreword, afterword
['cartography'] = 'Cartography by $1',
['editor'] = 'ln.',
['editors'] = 'ln.',
['edition'] = '($1 ln.)',
['episode'] = 'Episode $1',
['et al'] = 'et al.',
['in'] = 'Ayns', -- edited works
['inactive'] = ' (inactive $1)', -- $1 is date which the doi was found to be broken in
['inset'] = '$1 inset',
['interview'] = 'Interviewed by $1',
invisible_1 = '$1 $2', -- $1 stripmarker name; $2 is text from <invisible_chars[1]>
invisible_2 = '$1 character', -- $1 character name from <invisible_chars[1]>
['mismatch'] = '<code class="cs1-code">|$1=</code> / <code class="cs1-code">|$2=</code> mismatch', -- $1 is year param name; $2 is date param name
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1',
['notitle'] = 'Enmys erbee', -- for |title=(()) and (in the future) |title=none
['original'] = 'y lhieggan bunneydagh',
['origdate'] = ' [$1]',
['published'] = ' (published $1)',
['retrieved'] = 'Feddynit er $1',
['season'] = 'Season $1',
['section'] = '§ $1',
['sections'] = '§§ $1',
['series'] = '$1 $2', -- $1 is sepc, $2 is series
['seriesnum'] = 'Series $1',
['translated'] = 'Er ny hyndaa lesh $1',
['type'] = ' ($1)', -- for titletype
wikidata = 'Wikidata', -- these used for interwikilinked author/editor/... names
wikipedia = 'Wikipedia',
wikisource = 'Wikisource',
['written'] = 'Screeuit ec $1',
['vol'] = '$1 Vol. $2', -- $1 is sepc; bold journal style volume is in presentation{}
['vol-no'] = '$1 Vol. $2, no. $3', -- sepc, volume, issue (alternatively insert $1 after $2, but then we'd also have to change capitalization)
['issue'] = '$1 No. $2', -- $1 is sepc
['art'] = '$1 Art. $2', -- $1 is sepc; for {{cite conference}} only
['vol-art'] = '$1 Vol. $2, art. $3', -- sepc, volume, article-number; for {{cite conference}} only
['j-vol'] = '$1 $2', -- sepc, volume; bold journal volume is in presentation{}
['j-issue'] = ' ($1)',
['j-article-num'] = ' $1', -- TODO: any punctuation here? static text?
['nopp'] = '$1 $2'; -- page(s) without prefix; $1 is sepc
['p-prefix'] = "$1 dg. $2", -- $1 is sepc
['pp-prefix'] = "$1 dgn. $2", -- $1 is sepc
['j-page(s)'] = ': $1', -- same for page and pages
['sheet'] = '$1 Sheet $2', -- $1 is sepc
['sheets'] = '$1 Sheets $2', -- $1 is sepc
['j-sheet'] = ': Sheet $1',
['j-sheets'] = ': Sheets $1',
['language'] = '(ayns $1)',
['via'] = " – via $1",
['event'] = 'Event occurs at',
['minutes'] = ' $1 minutes in', -- $1 is the number of minutes
-- Determines the location of the help page
['help page link'] = 'Help:CS1 errors',
['help page label'] = 'help',
-- categories
['cat wikilink'] = '[[Category:$1]]', -- $1 is the category name
['cat wikilink sk'] = '[[Category:$1|$2]]', -- $1 is the category name; $2 is namespace sort key
[':cat wikilink'] = '[[:Category:$1|link]]', -- category name as maintenance message wikilink; $1 is the category name
-- Internal errors (should only occur if configuration is bad)
['undefined_error'] = 'Called with an undefined error condition',
['unknown_ID_key'] = 'Unrecognized ID key: ', -- an ID key in id_handlers not found in ~/Identifiers func_map{}
['unknown_ID_access'] = 'Unrecognized ID access keyword: ', -- an ID access keyword in id_handlers not found in keywords_lists['id-access']{}
['unknown_argument_map'] = 'Argument map not defined for this variable',
['bare_url_no_origin'] = 'Bare URL found but origin indicator is nil or empty',
['warning_msg_e'] = '<span style="color:#d33"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code>: this [[#$2|reference]] has errors</span>; messages may be hidden ([[Help:CS1_errors#Controlling_error_message_display|help]]).'; -- $1 is template link; $2 is anchor ID
['warning_msg_m'] = '<span style="color:#085"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code>: this [[#$2|reference]] has maintenance messages</span>; messages may be hidden ([[Help:CS1_errors#Controlling_error_message_display|help]]).'; -- $1 is template link; $2 is anchor ID
}
--[[--------------------------< C I T A T I O N _ C L A S S _ M A P >------------------------------------------
this table maps the value assigned to |CitationClass= in the cs1|2 templates to the canonical template name when
the value assigned to |CitationClass= is different from the canonical template name. |CitationClass= values are
used as class attributes in the <cite> tag that encloses the citation so these names may not contain spaces while
the canonical template name may. These names are used in warning_msg_e and warning_msg_m to create links to the
template's documentation when an article is displayed in preview mode.
]]
local citation_class_map_t = { -- TODO: in Module:Cite/config write a function to use this table
arxiv = 'cite arXiv', -- as the source for known_templates_t and citation_classes_t
['audio-visual'] = 'cite AV media',
['AV-media-notes'] = 'cite AV media notes',
biorxiv = 'cite bioRxiv',
book = 'cite book',
citation = 'citation',
citeseerx = 'cite CiteSeerX',
conference = 'cite conference',
document = 'cite document',
encyclopaedia = 'cite encyclopedia',
episode = 'cite episode',
interview = 'cite interview',
journal = 'cite journal',
magazine = 'cite magazine',
mailinglist = 'cite mailing list',
map = 'cite map',
medrxiv = 'cite medRxiv',
news = 'cite news',
newsgroup = 'cite newsgroup',
podcast = 'cite podcast',
pressrelease = 'cite press release',
report = 'cite report',
serial = 'cite serial',
sign = 'cite sign',
speech = 'cite speech',
ssrn = 'cite SSRN',
techreport = 'cite tech report',
thesis = 'cite thesis',
web = 'cite web',
}
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This table provides Lua patterns for the phrase "et al" and variants in name text
(author, editor, etc.). The main module uses these to identify and emit the 'etal' message.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
"%[%[ *[Ee][Tt]%.? *[Aa][Ll]%.? *%]%]", -- a wikilinked form
"%(%( *[Ee][Tt]%.? *[Aa][Ll]%.? *%)%)", -- a double-bracketed form (to counter partial removal of ((...)) syntax)
"[%(%[] *[Ee][Tt]%.? *[Aa][Ll]%.? *[%)%]]", -- a bracketed form
}
--[[--------------------------< P R E S E N T A T I O N >------------------------
Fixed presentation markup. Originally part of citation_config.messages it has
been moved into its own, more semantically correct place.
]]
local presentation =
{
-- .citation-comment class is specified at Help:CS1_errors#Controlling_error_message_display
['hidden-error'] = '<span class="cs1-hidden-error citation-comment">$1</span>',
['visible-error'] = '<span class="cs1-visible-error citation-comment">$1</span>',
['hidden-maint'] = '<span class="cs1-maint citation-comment">$1</span>',
['accessdate'] = '<span class="reference-accessdate">$1$2</span>', -- to allow editors to hide accessdate using personal CSS
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like
['cite'] = '<cite class="$1">$2</cite>'; -- for use when citation does not have a namelist and |ref= not set so no id="..." attribute
['cite-id'] = '<cite id="$1" class="$2">$3</cite>'; -- for use when when |ref= is set or when citation has a namelist
['format'] = ' <span class="cs1-format">($1)</span>', -- for |format=, |chapter-format=, etc.
['interwiki'] = ' <span class="cs1-format">[ayns $1]</span>', -- for interwiki-language-linked author, editor, etc
['interproj'] = ' <span class="cs1-format">[ec $1]</span>', -- for interwiki-project-linked author, editor, etc (:d: and :s: supported; :w: ignored)
-- various access levels, for |access=, |doi-access=, |arxiv=, ...
-- narrow no-break space   may work better than nowrap CSS. Or not? Browser support?
['ext-link-access-signal'] = '<span class="$1" title="$2">$3</span>', -- external link with appropriate lock icon
['free'] = {class='id-lock-free', title='Freely accessible'}, -- classes defined in Module:Citation/CS1/styles.css
['registration'] = {class='id-lock-registration', title='Free registration required'},
['limited'] = {class='id-lock-limited', title='Free access subject to limited trial, subscription normally required'},
['subscription'] = {class='id-lock-subscription', title='Paid subscription required'},
['interwiki-icon'] = '<span class="$1" title="$2">$3</span>',
['class-wikisource'] = 'cs1-ws-icon',
['italic-title'] = "''$1''",
['kern-left'] = '<span class="cs1-kern-left"></span>$1', -- spacing to use when title contains leading single or double quote mark
['kern-right'] = '$1<span class="cs1-kern-right"></span>', -- spacing to use when title contains trailing single or double quote mark
['nowrap1'] = '<span class="nowrap">$1</span>', -- for nowrapping an item: <span ...>yyyy-mm-dd</span>
['nowrap2'] = '<span class="nowrap">$1</span> $2', -- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space)
['ocins'] = '<span title="$1" class="Z3988"></span>',
['parameter'] = '<code class="cs1-code">|$1=</code>',
['ps_cs1'] = '.'; -- CS1 style postscript (terminal) character
['ps_cs2'] = ''; -- CS2 style postscript (terminal) character (empty string)
['quoted-text'] = '<q>$1</q>', -- for wrapping |quote= content
['quoted-title'] = '"$1"',
['sep_cs1'] = '.', -- CS1 element separator
['sep_cs2'] = ',', -- CS2 separator
['sep_nl'] = ';', -- CS1|2 style name-list separator between names is a semicolon
['sep_nl_and'] = ' as ', -- used as last nl sep when |name-list-style=and and list has 2 items
['sep_nl_end'] = '; as ', -- used as last nl sep when |name-list-style=and and list has 3+ names
['sep_name'] = ', ', -- CS1|2 style last/first separator is <comma><space>
['sep_nl_vanc'] = ',', -- Vancouver style name-list separator between authors is a comma
['sep_name_vanc'] = ' ', -- Vancouver style last/first separator is a space
['sep_list'] = ', ', -- used for |language= when list has 3+ items except for last sep which uses sep_list_end
['sep_list_pair'] = ' as ', -- used for |language= when list has 2 items
['sep_list_end'] = ', as ', -- used as last list sep for |language= when list has 3+ items
['trans-italic-title'] = "[''$1'']",
['trans-quoted-title'] = "[$1]", -- for |trans-title= and |trans-quote=
['vol-bold'] = '$1 <b>$2</b>', -- sepc, volume; for bold journal cites; for other cites ['vol'] in messages{}
}
--[[--------------------------< A L I A S E S >---------------------------------
Aliases table for commonly passed parameters.
Parameter names on the right side in the assignments in this table must have been
defined in the Whitelist before they will be recognized as valid parameter names
]]
local aliases = {
['AccessDate'] = {'access-date', 'accessdate'}, -- Used by InternetArchiveBot
['Agency'] = 'agency',
['ArchiveDate'] = {'archive-date', 'archivedate'}, -- Used by InternetArchiveBot
['ArchiveFormat'] = 'archive-format',
['ArchiveURL'] = {'archive-url', 'archiveurl'}, -- Used by InternetArchiveBot
['ArticleNumber'] = 'article-number',
['ASINTLD'] = 'asin-tld',
['At'] = 'at', -- Used by InternetArchiveBot
['Authors'] = {'people', 'credits', 'ughtaryn'},
['BookTitle'] = {'book-title', 'booktitle'},
['Cartography'] = 'cartography',
['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section'},
['ChapterFormat'] = {'chapter-format', 'contribution-format', 'entry-format',
'article-format', 'section-format'};
['ChapterURL'] = {'chapter-url', 'contribution-url', 'entry-url', 'article-url', 'section-url'}, -- Used by InternetArchiveBot
['ChapterUrlAccess'] = {'chapter-url-access', 'contribution-url-access',
'entry-url-access', 'article-url-access', 'section-url-access'}, -- Used by InternetArchiveBot
['Class'] = 'class', -- cite arxiv and arxiv identifier
['Collaboration'] = 'collaboration',
['Conference'] = {'conference', 'event'},
['ConferenceFormat'] = 'conference-format',
['ConferenceURL'] = 'conference-url', -- Used by InternetArchiveBot
['Date'] = {'date', 'air-date', 'airdate'}, -- air-date and airdate for cite episode and cite serial only
['Degree'] = 'degree',
['DF'] = 'df',
['DisplayAuthors'] = {'display-authors', 'display-subjects'},
['DisplayContributors'] = 'display-contributors',
['DisplayEditors'] = 'display-editors',
['DisplayInterviewers'] = 'display-interviewers',
['DisplayTranslators'] = 'display-translators',
['Docket'] = 'docket',
['DoiBroken'] = 'doi-broken-date',
['Edition'] = {'edition', 'lhieggan'},
['Embargo'] = 'pmc-embargo-date',
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia', 'dictionary', 'kicklipaid', 'fockleyr'}, -- cite encyclopedia only
['Episode'] = 'episode', -- cite serial only TODO: make available to cite episode?
['Format'] = 'format',
['ID'] = {'id', 'ID'},
['Inset'] = 'inset',
['Issue'] = {'issue', 'number', 'cur magh'},
['Language'] = {'language', 'lang', 'çhengey'},
['MailingList'] = {'mailing-list', 'mailinglist'}, -- cite mailing list only
['Map'] = 'map', -- cite map only
['MapFormat'] = 'map-format', -- cite map only
['MapURL'] = {'map-url', 'mapurl'}, -- cite map only -- Used by InternetArchiveBot
['MapUrlAccess'] = 'map-url-access', -- cite map only -- Used by InternetArchiveBot
['Minutes'] = 'minutes',
['Mode'] = 'mode',
['NameListStyle'] = 'name-list-style',
['Network'] = 'network',
['Newsgroup'] = 'newsgroup', -- cite newsgroup only
['NoPP'] = {'no-pp', 'nopp'},
['NoTracking'] = {'no-tracking', 'template-doc-demo'},
['Number'] = 'number', -- this case only for cite techreport
['OrigDate'] = {'orig-date', 'orig-year', 'origyear'},
['Others'] = 'others',
['Page'] = {'page', 'p', 'duillag', 'dg', 'dg.'}, -- Used by InternetArchiveBot
['Pages'] = {'pages', 'pp', 'duillagyn', 'dgn', 'dgn.'}, -- Used by InternetArchiveBot
['Periodical'] = {'journal', 'magazine', 'newspaper', 'periodical', 'website', 'work', 'earishlioar', 'jurnyl', 'pabyr-naight', 'pabyr naight', 'ynnyd-eggey', 'obbyr'},
['Place'] = {'place', 'location'},
['PostScript'] = 'postscript',
['PublicationDate'] = {'publication-date', 'publicationdate'},
['PublicationPlace'] = {'publication-place', 'publicationplace'},
['PublisherName'] = {'publisher', 'institution', 'soilsheyder'},
['Quote'] = {'quote', 'quotation'},
['QuotePage'] = 'quote-page',
['QuotePages'] = 'quote-pages',
['Ref'] = 'ref',
['Scale'] = 'scale',
['ScriptChapter'] = {'script-chapter', 'script-contribution', 'script-entry',
'script-article', 'script-section'},
['ScriptEncyclopedia'] = {'script-encyclopedia', 'script-encyclopaedia'}, -- cite encyclopedia only
['ScriptMap'] = 'script-map',
['ScriptPeriodical'] = {'script-journal', 'script-magazine', 'script-newspaper',
'script-periodical', 'script-website', 'script-work'},
['ScriptQuote'] = 'script-quote',
['ScriptTitle'] = 'script-title', -- Used by InternetArchiveBot
['Season'] = 'season',
['Sections'] = 'sections', -- cite map only
['Series'] = {'series', 'version'},
['SeriesLink'] = {'series-link', 'serieslink'},
['SeriesNumber'] = {'series-number', 'series-no'},
['Sheet'] = 'sheet', -- cite map only
['Sheets'] = 'sheets', -- cite map only
['Station'] = 'station',
['Time'] = 'time',
['TimeCaption'] = 'time-caption',
['Title'] = {'title', 'enmys'}, -- Used by InternetArchiveBot
['TitleLink'] = {'title-link', 'episode-link', 'episodelink'}, -- Used by InternetArchiveBot
['TitleNote'] = {'title-note', 'department'},
['TitleType'] = {'type', 'medium'},
['TransChapter'] = {'trans-article', 'trans-chapter', 'trans-contribution',
'trans-entry', 'trans-section'},
['Transcript'] = 'transcript',
['TranscriptFormat'] = 'transcript-format',
['TranscriptURL'] = 'transcript-url', -- Used by InternetArchiveBot
['TransEncyclopedia'] = {'trans-encyclopedia', 'trans-encyclopaedia'}, -- cite encyclopedia only
['TransMap'] = 'trans-map', -- cite map only
['TransPeriodical'] = {'trans-journal', 'trans-magazine', 'trans-newspaper',
'trans-periodical', 'trans-website', 'trans-work'},
['TransQuote'] = 'trans-quote',
['TransTitle'] = 'trans-title', -- Used by InternetArchiveBot
['URL'] = {'url', 'URL'}, -- Used by InternetArchiveBot
['UrlAccess'] = 'url-access', -- Used by InternetArchiveBot
['UrlStatus'] = 'url-status', -- Used by InternetArchiveBot
['Vauthors'] = 'vauthors',
['Veditors'] = 'veditors',
['Via'] = 'via',
['Volume'] = 'volume',
['Year'] = 'year',
['AuthorList-First'] = {"first#", "author-first#", "author#-first", "author-given#", "author#-given",
"subject-first#", "subject#-first", "subject-given#", "subject#-given",
"given#"},
['AuthorList-Last'] = {"last#", "author-last#", "author#-last", "author-surname#", "author#-surname",
"subject-last#", "subject#-last", "subject-surname#", "subject#-surname",
"author#", 'host#', "subject#", "surname#", 'ughtar#'},
['AuthorList-Link'] = {"author-link#", "author#-link", "subject-link#",
"subject#-link", "authorlink#", "author#link"},
['AuthorList-Mask'] = {"author-mask#", "author#-mask", "subject-mask#", "subject#-mask"},
['ContributorList-First'] = {'contributor-first#', 'contributor#-first',
'contributor-given#', 'contributor#-given'},
['ContributorList-Last'] = {'contributor-last#', 'contributor#-last',
'contributor-surname#', 'contributor#-surname', 'contributor#'},
['ContributorList-Link'] = {'contributor-link#', 'contributor#-link'},
['ContributorList-Mask'] = {'contributor-mask#', 'contributor#-mask'},
['EditorList-First'] = {"editor-first#", "editor#-first", "editor-given#", "editor#-given"},
['EditorList-Last'] = {"editor-last#", "editor#-last", "editor-surname#",
"editor#-surname", "editor#"},
['EditorList-Link'] = {"editor-link#", "editor#-link"},
['EditorList-Mask'] = {"editor-mask#", "editor#-mask"},
['InterviewerList-First'] = {'interviewer-first#', 'interviewer#-first',
'interviewer-given#', 'interviewer#-given'},
['InterviewerList-Last'] = {'interviewer-last#', 'interviewer#-last',
'interviewer-surname#', 'interviewer#-surname', 'interviewer#'},
['InterviewerList-Link'] = {'interviewer-link#', 'interviewer#-link'},
['InterviewerList-Mask'] = {'interviewer-mask#', 'interviewer#-mask'},
['TranslatorList-First'] = {'translator-first#', 'translator#-first',
'translator-given#', 'translator#-given'},
['TranslatorList-Last'] = {'translator-last#', 'translator#-last',
'translator-surname#', 'translator#-surname', 'translator#'},
['TranslatorList-Link'] = {'translator-link#', 'translator#-link'},
['TranslatorList-Mask'] = {'translator-mask#', 'translator#-mask'},
}
--[[--------------------------< D E P E N D E N C I E S _ T >--------------------------------------------------
a table of url-holding parameters upon which other parameters are dependent.
this table is used by has_archive_today_url() to suppress parameters that are dependant upon a url-holding parameter
that has as a value an archive.today (or alternate tld) url.
archive.today is deprecated at en.wiki; see Wikipedia:Requests_for_comment/Archive.is_RFC_5
]]
local url_dependency_map_t = { -- table of url-holding parameters and the meta-parameters that are dependent on them
['url'] = {'AccessDate', 'ArchiveURL', 'Format', 'UrlAccess'},
['archive-url'] = {'ArchiveDate', 'ArchiveFormat', 'UrlStatus'},
['archiveurl'] = {'ArchiveDate', 'ArchiveFormat', 'UrlStatus'},
['article-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['chapter-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['conference-url'] = {'ConferenceFormat'},
['contribution-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['entry-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['map-url'] = {'MapFormat', 'MapUrlAccess'},
['section-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['transcript-url'] = {'TranscriptFormat'},
};
local dependencies_t = {}; -- the table of url-holding parameters and their dependent parameters
for url_param, meta_parameters_t in pairs (url_dependency_map_t) do -- sequence of meta-parameters (indexes) into <aliases> table
local dependant_params_t = {}; -- collection of parameters that are dependent on this <url_param>
for _, meta_parameter in ipairs (meta_parameters_t) do -- for each <aliases> meta-parameter (index)
if 'string' == type (aliases[meta_parameter]) then -- for single parameter names (no aliases), <aliases[meta_parameter]> will be a string
table.insert (dependant_params_t, aliases[meta_parameter]); -- add to this <url_param>'s dependency sequence
else
for _, alias in ipairs (aliases[meta_parameter]) do -- for each alias in aliases[meta_parameter] (aliases['AccessDate'] for example)
table.insert (dependant_params_t, alias); -- add to this <url_param>'s dependency sequence
end
end
end
dependencies_t[url_param] = dependant_params_t; -- add the <url_param> and its dependent parameters
end
--[[--------------------------< P U N C T _ S K I P >---------------------------
builds a table of parameter names that the extraneous terminal punctuation check should not check.
]]
local punct_meta_params = { -- table of aliases[] keys (meta parameters); each key has a table of parameter names for a value
'BookTitle', 'Chapter', 'ScriptChapter', 'ScriptTitle', 'Title', 'TransChapter', 'Transcript', 'TransMap', 'TransTitle', -- title-holding parameters
'AuthorList-Mask', 'ContributorList-Mask', 'EditorList-Mask', 'InterviewerList-Mask', 'TranslatorList-Mask', -- name-list mask may have name separators
'PostScript', 'Quote', 'ScriptQuote', 'TransQuote', 'Ref', -- miscellaneous
'ArchiveURL', 'ChapterURL', 'ConferenceURL', 'MapURL', 'TranscriptURL', 'URL', -- URL-holding parameters
}
local url_meta_params = { -- table of aliases[] keys (meta parameters); each key has a table of parameter names for a value
'ArchiveURL', 'ChapterURL', 'ConferenceURL', 'ID', 'MapURL', 'TranscriptURL', 'URL', -- parameters allowed to hold urls
'Page', 'Pages', 'At', 'QuotePage', 'QuotePages', -- insource locators allowed to hold urls
}
local function build_skip_table (skip_t, meta_params)
for _, meta_param in ipairs (meta_params) do -- for each meta parameter key
local params = aliases[meta_param]; -- get the parameter or the table of parameters associated with the meta parameter name
if 'string' == type (params) then
skip_t[params] = 1; -- just a single parameter
else
for _, param in ipairs (params) do -- get the parameter name
skip_t[param] = 1; -- add the parameter name to the skip table
local count;
param, count = param:gsub ('#', ''); -- remove enumerator marker from enumerated parameters
if 0 ~= count then -- if removed
skip_t[param] = 1; -- add param name without enumerator marker
end
end
end
end
return skip_t;
end
local punct_skip = {};
local url_skip = {};
--[[--------------------------< U R L _ A C C E S S _ M A P >--------------------------------------------------
this table used by the wikipedia library url test, has_twl_url(), which automatically sets a url-access parameter
to 'subscription' when it discovers a wikipedia library url in any of the url-holding paramters used as keys in
this table.
translators: if your wiki uses parameter names for these url-holding parameters and their matching -access parameters,
add your wiki's parameters to this list. Leave the English parameters in place.
TODO: is there a better way to do this?
]]
local url_access_map_t = {
['chapter-url'] = 'chapter-url-access',
['contribution-url'] = 'contribution-url-access',
['entry-url'] = 'entry-url-access',
['article-url'] = 'article-url-access',
['section-url'] = 'section-url-access',
['map-url'] = 'map-url-access',
['mapurl'] = 'map-url-access',
['url'] = 'url-access',
['URL'] = 'url-access'
}
--[[--------------------------< S I N G L E - L E T T E R S E C O N D - L E V E L D O M A I N S >----------
this is a list of tlds that are known to have single-letter second-level domain names. This list does not include
ccTLDs which are accepted in is_domain_name().
]]
local single_letter_2nd_lvl_domains_t = {'cash', 'company', 'foundation', 'media', 'org', 'today'};
--[[-----------< S P E C I A L C A S E T R A N S L A T I O N S >------------
This table is primarily here to support internationalization. Translations in
this table are used, for example, when an error message, category name, etc.,
is extracted from the English alias key. There may be other cases where
this translation table may be useful.
]]
local is_Latn = 'A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191';
local special_case_translation = {
author = {'author', 'ughtar'},
editor = 'editor',
name_list_params = '$1-name-list parameters', -- $1 is 'author' or 'editor'; used with err_redundant_parameters
['AuthorList'] = 'authors list', -- used to assemble maintenance category names
['ContributorList'] = 'contributors list', -- translation of these names plus translation of the base maintenance category names in maint_cats{} table below
['EditorList'] = 'editors list', -- must match the names of the actual categories
['InterviewerList'] = 'interviewers list', -- this group or translations used by name_has_ed_markup() and name_has_mult_names()
['TranslatorList'] = 'translators list',
-- Lua patterns to match pseudo-titles used by InternetArchiveBot and others as placeholder for unknown |title= value
['archived_copy'] = { -- used with CS1 maint: Archive[d] copy as title
['en'] = '^archived?%s+copy$', -- for English; translators: keep this because templates imported from en.wiki
['local'] = nil, -- translators: replace ['local'] = nil with lowercase translation only when bots or tools create generic titles in your language
},
-- Lua patterns to match generic titles; usually created by bots or reference filling tools
-- translators: replace ['local'] = nil with lowercase translation only when bots or tools create generic titles in your language
-- generic titles and patterns in this table should be lowercase only
-- leave ['local'] nil except when there is a matching generic title in your language
-- boolean 'true' for plain-text searches; 'false' for pattern searches
['generic_titles'] = {
['accept'] = {
},
['reject'] = {
{['en'] = {'^wayback%s+machine$', false}, ['local'] = nil},
{['en'] = {'are you a robot', true}, ['local'] = nil},
{['en'] = {'hugedomains', true}, ['local'] = nil},
{['en'] = {'^[%(%[{<]?no +title[>}%]%)]?$', false}, ['local'] = nil},
{['en'] = {'page not found', true}, ['local'] = nil},
{['en'] = {'subscribe to read', true}, ['local'] = nil},
{['en'] = {'^[%(%[{<]?unknown[>}%]%)]?$', false}, ['local'] = nil},
{['en'] = {'website is for sale', true}, ['local'] = nil},
{['en'] = {'^404', false}, ['local'] = nil},
{['en'] = {'error[ %-]404', false}, ['local'] = nil},
{['en'] = {'internet archive wayback machine', true}, ['local'] = nil},
{['en'] = {'log into facebook', true}, ['local'] = nil},
{['en'] = {'login • instagram', true}, ['local'] = nil},
{['en'] = {'redirecting...', true}, ['local'] = nil},
{['en'] = {'usurped title', true}, ['local'] = nil}, -- added by a GreenC bot
{['en'] = {'wayback machine', true}, ['local'] = nil},
{['en'] = {'webcite query result', true}, ['local'] = nil},
{['en'] = {'wikiwix\'s cache', true}, ['local'] = nil},
{['en'] = {'bot verification', true}, ['local'] = nil},
}
},
-- boolean 'true' for plain-text searches, search string must be lowercase only
-- boolean 'false' for pattern searches
-- leave ['local'] nil except when there is a matching generic name in your language
['generic_names'] = {
['accept'] = {
{['en'] = {'%[%[[^|]*%(author%) *|[^%]]*%]%]', false}, ['local'] = nil},
},
['reject'] = {
{['en'] = {'about us', true}, ['local'] = nil},
{['en'] = {'%f[%a][Aa]dvisor%f[%A]', false}, ['local'] = nil},
{['en'] = {'allmusic', true}, ['local'] = nil},
{['en'] = {'%f[%a][Aa]uthor%f[%A]', false}, ['local'] = nil},
{['en'] = {'^[Bb]ureau$', false}, ['local'] = nil},
{['en'] = {'business', true}, ['local'] = nil},
{['en'] = {'cnn', true}, ['local'] = nil},
{['en'] = {'collaborator', true}, ['local'] = nil},
{['en'] = {'^[Cc]ompany$', false}, ['local'] = nil},
{['en'] = {'contributor', true}, ['local'] = nil},
{['en'] = {'contact us', true}, ['local'] = nil},
{['en'] = {'correspondent', true}, ['local'] = nil},
{['en'] = {'^[Dd]esk$', false}, ['local'] = nil},
{['en'] = {'directory', true}, ['local'] = nil},
{['en'] = {'%f[%(%[][%(%[]%s*eds?%.?%s*[%)%]]?$', false}, ['local'] = nil},
{['en'] = {'[,%.%s]%f[e]eds?%.?$', false}, ['local'] = nil},
{['en'] = {'^eds?[%.,;]', false}, ['local'] = nil},
{['en'] = {'^[%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]', false}, ['local'] = nil},
{['en'] = {'%f[%a][Ee]dited%f[%A]', false}, ['local'] = nil},
{['en'] = {'%f[%a][Ee]ditors?%f[%A]', false}, ['local'] = nil},
{['en'] = {'%f[%a][Ee]mail%f[%A]', false}, ['local'] = nil},
{['en'] = {'facebook', true}, ['local'] = nil},
{['en'] = {'google', true}, ['local'] = nil},
{['en'] = {'^[Gg]roup$', false}, ['local'] = nil},
{['en'] = {'home page', true}, ['local'] = nil},
{['en'] = {'^[Ii]nc%.?$', false}, ['local'] = nil},
{['en'] = {'instagram', true}, ['local'] = nil},
{['en'] = {'interviewer', true}, ['local'] = nil},
{['en'] = {'^[Ll]imited$', false}, ['local'] = nil},
{['en'] = {'linkedIn', true}, ['local'] = nil},
{['en'] = {'^[Nn]ews$', false}, ['local'] = nil},
{['en'] = {'[Nn]ews[ %-]?[Rr]oom', false}, ['local'] = nil},
{['en'] = {'pinterest', true}, ['local'] = nil},
{['en'] = {'policy', true}, ['local'] = nil},
{['en'] = {'privacy', true}, ['local'] = nil},
{['en'] = {'reuters', true}, ['local'] = nil},
{['en'] = {'translator', true}, ['local'] = nil},
{['en'] = {'tumblr', true}, ['local'] = nil},
{['en'] = {'twitter', true}, ['local'] = nil},
{['en'] = {'site name', true}, ['local'] = nil},
{['en'] = {'statement', true}, ['local'] = nil},
{['en'] = {'submitted', true}, ['local'] = nil},
{['en'] = {'super.?user', false}, ['local'] = nil},
{['en'] = {'%f['..is_Latn..'][Uu]ser%f[^'..is_Latn..']', false}, ['local'] = nil},
{['en'] = {'updated', true}, ['local'] = nil},
{['en'] = {'verfasser', true}, ['local'] = nil},
}
}
}
--[[--------------------------< D A T E _ N A M E S >----------------------------------------------------------
This table of tables lists local language date names and fallback English date names.
The code in Date_validation will look first in the local table for valid date names.
If date names are not found in the local table, the code will look in the English table.
Because citations can be copied to the local wiki from en.wiki, the English is
required when the date-name translation function date_name_xlate() is used.
In these tables, season numbering is defined by
Extended Date/Time Format (EDTF) Specification (https://www.loc.gov/standards/datetime/)
which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard
defines various divisions using numbers 21-41. CS1|2 only supports generic seasons.
EDTF does support the distinction between north and south hemisphere seasons
but CS1|2 has no way to make that distinction.
33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)
The standard does not address 'named' dates so, for the purposes of CS1|2,
Easter and Christmas are defined here as 98 and 99, which should be out of the
ISO 8601 (EDTF) range of uses for a while.
local_date_names_from_mediawiki is a boolean. When set to:
true – module will fetch local month names from MediaWiki for both date_names['local']['long'] and date_names['local']['short']; this will unconditionally overwrite manual translations
false – module will *not* fetch local month names from MediaWiki
Caveat lector: There is no guarantee that MediaWiki will provide short month names. At your wiki you can test
the results of the MediaWiki fetch in the debug console with this command (the result is alpha sorted):
=mw.dumpObject (p.date_names['local'])
While the module can fetch month names from MediaWiki, it cannot fetch the quarter, season, and named date names
from MediaWiki. Those must be translated manually.
]]
local local_date_names_from_mediawiki = true; -- when false, manual translation required for date_names['local']['long'] and date_names['local']['short']; overwrites manual translations
-- when true, module fetches long and short month names from MediaWiki
local date_names = {
['en'] = { -- English
['long'] = {['January'] = 1, ['February'] = 2, ['March'] = 3, ['April'] = 4, ['May'] = 5, ['June'] = 6, ['July'] = 7, ['August'] = 8, ['September'] = 9, ['October'] = 10, ['November'] = 11, ['December'] = 12},
['short'] = {['Jan'] = 1, ['Feb'] = 2, ['Mar'] = 3, ['Apr'] = 4, ['May'] = 5, ['Jun'] = 6, ['Jul'] = 7, ['Aug'] = 8, ['Sep'] = 9, ['Oct'] = 10, ['Nov'] = 11, ['Dec'] = 12},
['quarter'] = {['First Quarter'] = 33, ['Second Quarter'] = 34, ['Third Quarter'] = 35, ['Fourth Quarter'] = 36},
['season'] = {['Winter'] = 24, ['Spring'] = 21, ['Summer'] = 22, ['Fall'] = 23, ['Autumn'] = 23},
['named'] = {['Easter'] = 98, ['Christmas'] = 99},
},
-- when local_date_names_from_mediawiki = false
['local'] = { -- replace these English date names with the local language equivalents
['long'] = {['Jerrey Geuree'] = 1, ['Toshiaght Arree'] = 2, ['Mayrnt'] = 3, ['Averil'] = 4, ['Boaldyn'] = 5, ['Mean Souree'] = 6, ['Jerrey Souree'] = 7, ['Luanistyn'] = 8, ['Mean Fouyir'] = 9, ['Jerrey Fouyir'] = 10, ['Mee Houney'] = 11, ['Mee ny Nollick'] = 12},
['short'] = {['J Geu'] = 1, ['T Arr'] = 2, ['Mayr'] = 3, ['Ave'] = 4, ['Boal'] = 5, ['M Sou'] = 6, ['J Sou'] = 7, ['Luan'] = 8, ['M Fou'] = 9, ['J Fou'] = 10, ['M Hou'] = 11, ['Nol'] = 12},
['quarter'] = {['Y Chied Cherroo'] = 33, ['Y Nah Cherroo'] = 34, ['Y Trass Kerroo'] = 35, ['Y Kiarroo Kerroo'] = 36},
['season'] = {['Geurey'] = 24, ['Arragh'] = 21, ['Sourey'] = 22, ['Fouyr'] = 23},
['named'] = {['Caisht'] = 98, ['Nollick'] = 99},
},
['inv_local_long'] = {}, -- used in date reformatting & translation; copy of date_names['local'].long where k/v are inverted: [1]='<local name>' etc.
['inv_local_short'] = {}, -- used in date reformatting & translation; copy of date_names['local'].short where k/v are inverted: [1]='<local name>' etc.
['inv_local_quarter'] = {}, -- used in date translation; copy of date_names['local'].quarter where k/v are inverted: [1]='<local name>' etc.
['inv_local_season'] = {}, -- used in date translation; copy of date_names['local'].season where k/v are inverted: [1]='<local name>' etc.
['inv_local_named'] = {}, -- used in date translation; copy of date_names['local'].named where k/v are inverted: [1]='<local name>' etc.
['local_digits'] = {['0'] = '0', ['1'] = '1', ['2'] = '2', ['3'] = '3', ['4'] = '4', ['5'] = '5', ['6'] = '6', ['7'] = '7', ['8'] = '8', ['9'] = '9'}, -- used to convert local language digits to Western 0-9
['xlate_digits'] = {},
}
if local_date_names_from_mediawiki then -- if fetching local month names from MediaWiki is enabled
local long_t = {};
local short_t = {};
for i=1, 12 do -- loop 12x and
local name = lang_obj:formatDate('F', '2022-' .. i .. '-1'); -- get long month name for each i
long_t[name] = i; -- save it
name = lang_obj:formatDate('M', '2022-' .. i .. '-1'); -- get short month name for each i
short_t[name] = i; -- save it
end
date_names['local']['long'] = long_t; -- write the long table – overwrites manual translation
date_names['local']['short'] = short_t; -- write the short table – overwrites manual translation
end
-- create inverted date-name tables for reformatting and/or translation
for _, invert_t in pairs {{'long', 'inv_local_long'}, {'short', 'inv_local_short'}, {'quarter', 'inv_local_quarter'}, {'season', 'inv_local_season'}, {'named', 'inv_local_named'}} do
for name, i in pairs (date_names['local'][invert_t[1]]) do -- this table is ['name'] = i
date_names[invert_t[2]][i] = name; -- invert to get [i] = 'name' for conversions from ymd
end
end
if local_digits_from_mediawiki then -- if fetching local digits from MediaWiki is enabled
local digits_t = {};
for i=0, 9 do -- loop 10x and
digits_t [lang_obj:formatNum (i)] = tostring (i); -- format the loop indexer as local lang table index and assign loop indexer (a string) as the value
end
date_names['local_digits'] = digits_t;
end
for ld, ed in pairs (date_names.local_digits) do -- make a digit translation table for simple date translation from en to local language using local_digits table
date_names.xlate_digits [ed] = ld; -- en digit becomes index with local digit as the value
end
local df_template_patterns = { -- table of redirects to {{Use dmy dates}} and {{Use mdy dates}}
'{{ *[Uu]se +(dmy) +dates *[|}]', -- 1159k -- sorted by approximate transclusion count
'{{ *[Uu]se +(mdy) +dates *[|}]', -- 212k
'{{ *[Uu]se +(MDY) +dates *[|}]', -- 788
'{{ *[Uu]se +(DMY) +dates *[|}]', -- 343
'{{ *([Mm]dy) *[|}]', -- 176
'{{ *[Uu]se *(dmy) *[|}]', -- 156 + 18
'{{ *[Uu]se *(mdy) *[|}]', -- 149 + 11
'{{ *([Dd]my) *[|}]', -- 56
'{{ *[Uu]se +(MDY) *[|}]', -- 5
'{{ *([Dd]MY) *[|}]', -- 3
'{{ *[Uu]se(mdy)dates *[|}]', -- 1
'{{ *[Uu]se +(DMY) *[|}]', -- 0
'{{ *([Mm]DY) *[|}]', -- 0
}
local title_object = mw.title.getCurrentTitle();
local content; -- done this way so that unused templates appear in unused-template-reports; self-transcluded makes them look like they are used
if 10 ~= title_object.namespace then -- all namespaces except Template
content = title_object:getContent() or ''; -- get the content of the article or ''; new pages edited w/ve do not have 'content' until saved; ve does not preview; phab:T221625
end
local function get_date_format ()
if not content then -- nil content when we're in template
return nil; -- auto-formatting does not work in Template space so don't set global_df
end
for _, pattern in ipairs (df_template_patterns) do -- loop through the patterns looking for {{Use dmy dates}} or {{Use mdy dates}} or any of their redirects
local start, _, match = content:find(pattern); -- match is the three letters indicating desired date format
if match then
local use_dates_template = content:match ('%b{}', start); -- get the whole template
if use_dates_template:match ('| *cs1%-dates *= *[lsy][sy]?') then -- look for |cs1-dates=publication date length access-/archive-date length
return match:lower() .. '-' .. use_dates_template:match ('| *cs1%-dates *= *([lsy][sy]?)');
else
return match:lower() .. '-all'; -- no |cs1-dates= k/v pair; return value appropriate for use in |df=
end
end
end
end
local global_df; -- TODO: add this to <global_cs1_config_t>?
--[[-----------------< V O L U M E , I S S U E , P A G E S >------------------
These tables hold cite class values (from the template invocation) and identify those templates that support
|volume=, |issue=, and |page(s)= parameters. Cite conference and cite map require further qualification which
is handled in the main module.
]]
local templates_using_volume = {'citation', 'audio-visual', 'book', 'conference', 'encyclopaedia', 'interview', 'journal', 'magazine', 'map', 'news', 'report', 'techreport', 'thesis'}
local templates_using_issue = {'citation', 'conference', 'episode', 'interview', 'journal', 'magazine', 'map', 'news', 'podcast'}
local templates_not_using_page = {'audio-visual', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'}
--[[
These tables control when it is appropriate for {{citation}} to render |volume= and/or |issue=. The parameter
names in the tables constrain {{citation}} so that its renderings match the renderings of the equivalent cs1
templates. For example, {{cite web}} does not support |volume= so the equivalent {{citation |website=...}} must
not support |volume=.
]]
local citation_no_volume_t = { -- {{citation}} does not render |volume= when these parameters are used
'website', 'mailinglist', 'script-website',
}
local citation_issue_t = { -- {{citation}} may render |issue= when these parameters are used
'journal', 'magazine', 'newspaper', 'periodical', 'work',
'script-journal', 'script-magazine', 'script-newspaper', 'script-periodical', 'script-work',
}
--[[
Patterns for finding extra text in |volume=, |issue=, |page=, |pages=
]]
local vol_iss_pg_patterns = {
good_ppattern = '^P[^%.PpGg]', -- OK to begin with uppercase P: P7 (page 7 of section P), but not p123 (page 123); TODO: this allows 'Pages' which it should not
bad_ppatterns = { -- patterns for |page= and |pages=
'^[Pp][PpGg]?%.?[ %d]',
'^[Pp][Pp]?%. ', -- from {{p.}} and {{pp.}} templates
'^[Pp]ages?',
'^[Pp]gs.?',
},
vi_patterns_t = { -- combined to catch volume-like text in |issue= and issue-like text in |volume=
'^volumes?', -- volume-like text
'^vols?[%.:=]?',
'^issues?', --issue-like text
'^iss[%.:=]?',
'^numbers?',
'^nos?%A', -- don't match 'november' or 'nostradamus'
'^nr[%.:=]?',
'^n[%.:= ]', -- might be a valid issue without separator (space char is sep char here)
'^n°', -- 'n' with degree sign (U+00B0)
'^№', -- precomposed unicode numero character (U+2116)
},
}
--[[--------------------------< K E Y W O R D S >-------------------------------
These tables hold keywords for those parameters that have defined sets of acceptable keywords.
]]
--[[-------------------< K E Y W O R D S T A B L E >--------------------------
this is a list of keywords; each key in the list is associated with a table of
synonymous keywords possibly from different languages.
for I18N: add local-language keywords to value table; do not change the key.
For example, adding the German keyword 'ja':
['affirmative'] = {'yes', 'true', 'y', 'ja'},
Because CS1|2 templates from en.wiki articles are often copied to other local wikis,
it is recommended that the English keywords remain in these tables.
]]
local keywords = {
['amp'] = {'&', 'amp', 'ampersand'}, -- |name-list-style=
['and'] = {'and', 'serial'}, -- |name-list-style=
['affirmative'] = {'yes', 'true', 'y'}, -- |no-tracking=, |no-pp= -- Used by InternetArchiveBot
['afterword'] = {'afterword'}, -- |contribution=
['bot: unknown'] = {'bot: unknown'}, -- |url-status= -- Used by InternetArchiveBot
['cs1'] = {'cs1'}, -- |mode=
['cs2'] = {'cs2'}, -- |mode=
['dead'] = {'dead', 'deviated'}, -- |url-status= -- Used by InternetArchiveBot
['dmy'] = {'dmy'}, -- |df=
['dmy-all'] = {'dmy-all'}, -- |df=
['foreword'] = {'foreword'}, -- |contribution=
['free'] = {'free'}, -- |<id>-access= -- Used by InternetArchiveBot
['harv'] = {'harv'}, -- |ref=; this no longer supported; is_valid_parameter_value() called with <invert> = true
['introduction'] = {'introduction'}, -- |contribution=
['limited'] = {'limited'}, -- |url-access= -- Used by InternetArchiveBot
['live'] = {'live'}, -- |url-status= -- Used by InternetArchiveBot
['mdy'] = {'mdy'}, -- |df=
['mdy-all'] = {'mdy-all'}, -- |df=
['none'] = {'none'}, -- |postscript=, |ref=, |title=, |type= -- Used by InternetArchiveBot
['off'] = {'off'}, -- |title= (potentially also: |title-link=, |postscript=, |ref=, |type=)
['preface'] = {'preface'}, -- |contribution=
['registration'] = {'registration'}, -- |url-access= -- Used by InternetArchiveBot
['subscription'] = {'subscription'}, -- |url-access= -- Used by InternetArchiveBot
['unfit'] = {'unfit'}, -- |url-status= -- Used by InternetArchiveBot
['usurped'] = {'usurped'}, -- |url-status= -- Used by InternetArchiveBot
['vanc'] = {'vanc'}, -- |name-list-style=
['ymd'] = {'ymd'}, -- |df=
['ymd-all'] = {'ymd-all'}, -- |df=
-- ['yMd'] = {'yMd'}, -- |df=; not supported at en.wiki
-- ['yMd-all'] = {'yMd-all'}, -- |df=; not supported at en.wiki
}
--[[------------------------< X L A T E _ K E Y W O R D S >---------------------
this function builds a list, keywords_xlate{}, of the keywords found in keywords{} where the values from keywords{}
become the keys in keywords_xlate{} and the keys from keywords{} become the values in keywords_xlate{}:
['affirmative'] = {'yes', 'true', 'y'}, -- in keywords{}
becomes
['yes'] = 'affirmative', -- in keywords_xlate{}
['true'] = 'affirmative',
['y'] = 'affirmative',
the purpose of this function is to act as a translator between a non-English keyword and its English equivalent
that may be used in other modules of this suite
]]
local function xlate_keywords ()
local out_table = {}; -- output goes here
for k, keywords_t in pairs (keywords) do -- spin through the keywords table
for _, keyword in ipairs (keywords_t) do -- for each keyword
out_table[keyword] = k; -- create an entry in the output table where keyword is the key
end
end
return out_table;
end
local keywords_xlate = xlate_keywords (); -- the list of translated keywords
--[[----------------< M A K E _ K E Y W O R D S _ L I S T >---------------------
this function assembles, for parameter-value validation, the list of keywords appropriate to that parameter.
keywords_lists{}, is a table of tables from keywords{}
]]
local function make_keywords_list (keywords_lists)
local out_table = {}; -- output goes here
for _, keyword_list in ipairs (keywords_lists) do -- spin through keywords_lists{} and get a table of keywords
for _, keyword in ipairs (keyword_list) do -- spin through keyword_list{} and add each keyword, ...
table.insert (out_table, keyword); -- ... as plain text, to the output list
end
end
return out_table;
end
--[[----------------< K E Y W O R D S _ L I S T S >-----------------------------
this is a list of lists of valid keywords for the various parameters in [key].
Generally the keys in this table are the canonical en.wiki parameter names though
some are contrived because of use in multiple differently named parameters:
['yes_true_y'], ['id-access'].
The function make_keywords_list() extracts the individual keywords from the
appropriate list in keywords{}.
The lists in this table are used to validate the keyword assignment for the
parameters named in this table's keys.
]]
local keywords_lists = {
['yes_true_y'] = make_keywords_list ({keywords.affirmative}),
['contribution'] = make_keywords_list ({keywords.afterword, keywords.foreword, keywords.introduction, keywords.preface}),
['df'] = make_keywords_list ({keywords.dmy, keywords['dmy-all'], keywords.mdy, keywords['mdy-all'], keywords.ymd, keywords['ymd-all']}),
-- ['df'] = make_keywords_list ({keywords.dmy, keywords['dmy-all'], keywords.mdy, keywords['mdy-all'], keywords.ymd, keywords['ymd-all'], keywords.yMd, keywords['yMd-all']}), -- not supported at en.wiki
['mode'] = make_keywords_list ({keywords.cs1, keywords.cs2}),
['name-list-style'] = make_keywords_list ({keywords.amp, keywords['and'], keywords.vanc}),
['ref'] = make_keywords_list ({keywords.harv}), -- inverted check; |ref=harv no longer supported
['url-access'] = make_keywords_list ({keywords.subscription, keywords.limited, keywords.registration}),
['url-status'] = make_keywords_list ({keywords.dead, keywords.live, keywords.unfit, keywords.usurped, keywords['bot: unknown']}),
['id-access'] = make_keywords_list ({keywords.free}),
}
--[[--------------------------< C S 1 _ C O N F I G _ G E T >--------------------------------------------------
fetch and validate values from {{cs1 config}} template to fill <global_cs1_config_t>
no error messages; when errors are detected, the parameter value from {{cs1 config}} is blanked.
Supports all parameters and aliases associated with the metaparameters: DisplayAuthors, DisplayContributors,
DisplayEditors, DisplayInterviewers, DisplayTranslators, NameListStyle, and Mode. The DisplayWhatever metaparameters
accept numeric values only (|display-authors=etal and the like is not supported).
]]
local global_cs1_config_t = {}; -- TODO: add value returned from get_date_format() to this table?
local function get_cs1_config ()
if not content then -- nil content when we're in template
return nil; -- auto-formatting does not work in Template space so don't set global_df
end
local start = content:find('{{ *[Cc][Ss]1 config *[|}]'); -- <start> is offset into <content> when {{cs1 config}} found; nil else
if start then
local cs1_config_template = content:match ('%b{}', start); -- get the whole template
if not cs1_config_template then
return nil;
end
local params_t = mw.text.split (cs1_config_template:gsub ('^{{%s*', ''):gsub ('%s*}}$', ''), '%s*|%s*'); -- remove '{{' and '}}'; make a sequence of parameter/value pairs (split on the pipe)
table.remove (params_t, 1); -- remove the template name because it isn't a parameter/value pair
local config_meta_params_t = {'DisplayAuthors', 'DisplayContributors', 'DisplayEditors', 'DisplayInterviewers', 'DisplayTranslators', 'NameListStyle', 'Mode'};
local meta_param_map_t = {}; -- list of accepted parameter names usable in {{cs1 config}} goes here
for _, meta_param in ipairs (config_meta_params_t) do -- for i18n using <config_meta_params_t>, map template parameter names to their metaparameter equivalents
if 'table' == type (aliases[meta_param]) then -- if <meta_param> is a sequence,
for _, param in ipairs (aliases[meta_param]) do -- extract its contents
meta_param_map_t[param] = meta_param; -- and add to <meta_param_map_t>
end
else
meta_param_map_t[aliases[meta_param]] = meta_param; -- not a sequence so just add the parameter to <meta_param_map_t>
end
end
local keywords_t = {}; -- map valid keywords to their associate metaparameter; reverse form of <keyword_lists[key] for these metaparameters
for _, metaparam_t in ipairs ({{'NameListStyle', 'name-list-style'}, {'Mode', 'mode'}}) do -- only these metaparameter / keywords_lists key pairs
for _, keyword in ipairs (keywords_lists[metaparam_t[2]]) do -- spin through the list of keywords
keywords_t[keyword] = metaparam_t[1]; -- add [keyword] = metaparameter to the map
end
end
for _, param in ipairs (params_t) do -- spin through the {{cs1 config}} parameters and fill <global_cs1_config_t>
local k, v = param:match ('([^=]-)%s*=%s*(.+)'); -- <k> is the parameter name; <v> is parameter's assigned value
if k then
if k:find ('^display') then -- if <k> is one of the |display-<namelist>= parameters
if v:match ('%d+') then -- the assigned value must be digits; doesn't accept 'etal'
global_cs1_config_t[meta_param_map_t[k]]=v; -- add the display param and its value to globals table
end
else
if keywords_t[v] == meta_param_map_t[k] then -- keywords_t[v] returns nil or the metaparam name; these must be the same
global_cs1_config_t[meta_param_map_t[k]]=v; -- add the parameter and its value to globals table
end
end
end
end
end
end
get_cs1_config (); -- fill <global_cs1_config_t>
--[[---------------------< S T R I P M A R K E R S >----------------------------
Common pattern definition location for stripmarkers so that we don't have to go
hunting for them if (when) MediaWiki changes their form.
]]
local stripmarkers = {
['any'] = '\127[^\127]*UNIQ%-%-(%a+)%-[%a%d]+%-QINU[^\127]*\127', -- capture returns name of stripmarker
['math'] = '\127[^\127]*UNIQ%-%-math%-[%a%d]+%-QINU[^\127]*\127' -- math stripmarkers used in coins_cleanup() and coins_replace_math_stripmarker()
}
--[[------------< I N V I S I B L E _ C H A R A C T E R S >---------------------
This table holds non-printing or invisible characters indexed either by name or
by Unicode group. Values are decimal representations of UTF-8 codes. The table
is organized as a table of tables because the Lua pairs keyword returns table
data in an arbitrary order. Here, we want to process the table from top to bottom
because the entries at the top of the table are also found in the ranges specified
by the entries at the bottom of the table.
Also here is a pattern that recognizes stripmarkers that begin and end with the
delete characters. The nowiki stripmarker is not an error but some others are
because the parameter values that include them become part of the template's
metadata before stripmarker replacement.
]]
local invisible_defs = {
del = '\127', -- used to distinguish between stripmarker and del char
zwj = '\226\128\141', -- used with capture because zwj may be allowed
}
local invisible_chars = {
{'replacement', '\239\191\189'}, -- U+FFFD, EF BF BD
{'zero width joiner', '('.. invisible_defs.zwj .. ')'}, -- U+200D, E2 80 8D; capture because zwj may be allowed
{'zero width space', '\226\128\139'}, -- U+200B, E2 80 8B
{'hair space', '\226\128\138'}, -- U+200A, E2 80 8A
{'soft hyphen', '\194\173'}, -- U+00AD, C2 AD
{'horizontal tab', '\009'}, -- U+0009 (HT), 09
{'line feed', '\010'}, -- U+000A (LF), 0A
{'no-break space', '\194\160'}, -- U+00A0 (NBSP), C2 A0
{'carriage return', '\013'}, -- U+000D (CR), 0D
{'stripmarker', stripmarkers.any}, -- stripmarker; may or may not be an error; capture returns the stripmaker type
{'delete', '('.. invisible_defs.del .. ')'}, -- U+007F (DEL), 7F; must be done after stripmarker test; capture to distinguish isolated del chars not part of stripmarker
{'C0 control', '[\000-\008\011\012\014-\031]'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D))
{'C1 control', '[\194\128-\194\159]'}, -- U+0080–U+009F (XXX–APC), C2 80 – C2 9F
-- {'Specials', '[\239\191\185-\239\191\191]'}, -- U+FFF9-U+FFFF, EF BF B9 – EF BF BF
-- {'Private use area', '[\238\128\128-\239\163\191]'}, -- U+E000–U+F8FF, EE 80 80 – EF A3 BF
-- {'Supplementary Private Use Area-A', '[\243\176\128\128-\243\191\191\189]'}, -- U+F0000–U+FFFFD, F3 B0 80 80 – F3 BF BF BD
-- {'Supplementary Private Use Area-B', '[\244\128\128\128-\244\143\191\189]'}, -- U+100000–U+10FFFD, F4 80 80 80 – F4 8F BF BD
}
--[[
Indic script makes use of zero width joiner as a character modifier so zwj
characters must be left in. This pattern covers all of the unicode characters
for these languages:
Devanagari 0900–097F – https://unicode.org/charts/PDF/U0900.pdf
Devanagari extended A8E0–A8FF – https://unicode.org/charts/PDF/UA8E0.pdf
Bengali 0980–09FF – https://unicode.org/charts/PDF/U0980.pdf
Gurmukhi 0A00–0A7F – https://unicode.org/charts/PDF/U0A00.pdf
Gujarati 0A80–0AFF – https://unicode.org/charts/PDF/U0A80.pdf
Oriya 0B00–0B7F – https://unicode.org/charts/PDF/U0B00.pdf
Tamil 0B80–0BFF – https://unicode.org/charts/PDF/U0B80.pdf
Telugu 0C00–0C7F – https://unicode.org/charts/PDF/U0C00.pdf
Kannada 0C80–0CFF – https://unicode.org/charts/PDF/U0C80.pdf
Malayalam 0D00–0D7F – https://unicode.org/charts/PDF/U0D00.pdf
plus the not-necessarily Indic scripts for Sinhala and Burmese:
Sinhala 0D80-0DFF - https://unicode.org/charts/PDF/U0D80.pdf
Myanmar 1000-109F - https://unicode.org/charts/PDF/U1000.pdf
Myanmar extended A AA60-AA7F - https://unicode.org/charts/PDF/UAA60.pdf
Myanmar extended B A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf
the pattern is used by has_invisible_chars() and coins_cleanup()
]]
local indic_script = '[\224\164\128-\224\181\191\224\163\160-\224\183\191\225\128\128-\225\130\159\234\167\160-\234\167\191\234\169\160-\234\169\191]';
-- list of emoji that use a zwj character (U+200D) to combine with another emoji
-- from: https://unicode.org/Public/emoji/17.0/emoji-zwj-sequences.txt; version: 17.0; 2025-01-08
-- table created by: [[:en:Module:Make emoji zwj table]]
local emoji_t = { -- indexes are decimal forms of the hex values in U+xxxx
[8596] = true, -- U+2194 ↔ left right arrow
[8597] = true, -- U+2195 ↕ up down arrow
[9760] = true, -- U+2620 ☠ skull and crossbones
[9792] = true, -- U+2640 ♀ female sign
[9794] = true, -- U+2642 ♂ male sign
[9877] = true, -- U+2695 ⚕ staff of aesculapius
[9878] = true, -- U+2696 ⚖ scales
[9895] = true, -- U+26A7 ⚧ male with stroke and male and female sign
[9992] = true, -- U+2708 ✈ airplane
[10052] = true, -- U+2744 ❄ snowflake
[10084] = true, -- U+2764 ❤ heavy black heart
[10145] = true, -- U+27A1 ➡ black rightwards arrow
[11035] = true, -- U+2B1B ⬛ black large square
[127752] = true, -- U+1F308 🌈 rainbow
[127787] = true, -- U+1F32B 🌫 fog
[127806] = true, -- U+1F33E 🌾 ear of rice
[127859] = true, -- U+1F373 🍳 cooking
[127868] = true, -- U+1F37C 🍼 baby bottle
[127876] = true, -- U+1F384 🎄 christmas tree
[127891] = true, -- U+1F393 🎓 graduation cap
[127908] = true, -- U+1F3A4 🎤 microphone
[127912] = true, -- U+1F3A8 🎨 artist palette
[127979] = true, -- U+1F3EB 🏫 school
[127981] = true, -- U+1F3ED 🏭 factory
[128048] = true, -- U+1F430 🐰 rabbit face
[128102] = true, -- U+1F466 👦 boy
[128103] = true, -- U+1F467 👧 girl
[128104] = true, -- U+1F468 👨 man
[128105] = true, -- U+1F469 👩 woman
[128139] = true, -- U+1F48B 💋 kiss mark
[128165] = true, -- U+1F4A5 💥 collision symbol
[128168] = true, -- U+1F4A8 💨 dash symbol
[128171] = true, -- U+1F4AB 💫 dizzy symbol
[128187] = true, -- U+1F4BB 💻 personal computer
[128188] = true, -- U+1F4BC 💼 brief case
[128293] = true, -- U+1F525 🔥 fire
[128295] = true, -- U+1F527 🔧 wrench
[128300] = true, -- U+1F52C 🔬 microscope
[128488] = true, -- U+1F5E8 🗨 left speech bubble
[128640] = true, -- U+1F680 🚀 rocket
[128658] = true, -- U+1F692 🚒 fire engine
[129001] = true, -- U+1F7E9 🟩 large green square
[129003] = true, -- U+1F7EB 🟫 large brown square
[129309] = true, -- U+1F91D 🤝 handshake
[129455] = true, -- U+1F9AF 🦯 probing cane
[129456] = true, -- U+1F9B0 🦰 emoji component red hair
[129457] = true, -- U+1F9B1 🦱 emoji component curly hair
[129458] = true, -- U+1F9B2 🦲 emoji component bald
[129459] = true, -- U+1F9B3 🦳 emoji component white hair
[129466] = true, -- U+1F9BA 🦺 safety vest
[129468] = true, -- U+1F9BC 🦼 motorized wheelchair
[129469] = true, -- U+1F9BD 🦽 manual wheelchair
[129489] = true, -- U+1F9D1 🧑 adult
[129490] = true, -- U+1F9D2 🧒 child
[129648] = true, -- U+1FA70 🩰 ballet shoes
[129657] = true, -- U+1FA79 🩹 adhesive bandage
[129775] = true, -- U+1FAEF fight cloud
[129778] = true, -- U+1FAF2 🫲 leftwards hand
}
--[[----------------------< L A N G U A G E S U P P O R T >-------------------
These tables and constants support various language-specific functionality.
]]
--local this_wiki_code = mw.getContentLanguage():getCode(); -- get this wiki's language code
local this_wiki_code = lang_obj:getCode(); -- get this wiki's language code
if string.match (mw.site.server, 'wikidata') then
this_wiki_code = mw.getCurrentFrame():callParserFunction('int', {'lang'}); -- on Wikidata so use interface language setting instead
end
local mw_languages_by_tag_t = mw.language.fetchLanguageNames (this_wiki_code, 'all'); -- get a table of language tag/name pairs known to Wikimedia; used for interwiki tests
local mw_languages_by_name_t = {};
for k, v in pairs (mw_languages_by_tag_t) do -- build a 'reversed' table name/tag language pairs know to MediaWiki; used for |language=
v = mw.ustring.lower (v); -- lowercase for tag fetch; get name's proper case from mw_languages_by_tag_t[<tag>]
if mw_languages_by_name_t[v] then -- when name already in the table
if 2 == #k or 3 == #k then -- if tag does not have subtags
mw_languages_by_name_t[v] = k; -- prefer the shortest tag for this name
end
else -- here when name not in the table
mw_languages_by_name_t[v] = k; -- so add name and matching tag
end
end
local inter_wiki_map = {}; -- map of interwiki prefixes that are language-code prefixes
for k, v in pairs (mw.site.interwikiMap ('local')) do -- spin through the base interwiki map (limited to local)
if mw_languages_by_tag_t[v["prefix"]] then -- if the prefix matches a known language tag
inter_wiki_map[v["prefix"]] = true; -- add it to our local map
end
end
--[[--------------------< S C R I P T _ L A N G _ C O D E S >-------------------
This table is used to hold ISO 639-1 two-character and ISO 639-3 three-character
language codes that apply only to |script-title= and |script-chapter=
]]
local script_lang_codes = {
'ab', 'am', 'ar', 'as', 'az', 'be', 'bg', 'bn', 'bo', 'bs', 'ce', 'chr',
'cu', 'dv', 'dz', 'el', 'fa', 'grc', 'gu', 'he', 'hi', 'hy', 'ja', 'ka',
'kaa', 'kk', 'km', 'kn', 'ko', 'ku', 'ky', 'lo', 'mk', 'ml', 'mn', 'mni',
'mr', 'my', 'ne', 'or', 'ota', 'pa', 'ps', 'ru', 'sd', 'si', 'sr', 'syc',
'ta', 'te', 'tg', 'th', 'ti', 'tkr', 'tt', 'ug', 'uk', 'ur', 'uz', 'yi',
'yue', 'zh', 'zgh'
};
--[[---------------< L A N G U A G E R E M A P P I N G >----------------------
These tables hold language information that is different (correct) from MediaWiki's definitions
For each ['<tag>'] = 'language name' in lang_code_remap{} there must be a matching ['language name'] = {'language name', '<tag>'} in lang_name_remap{}
lang_tag_remap{}:
key is always lowercase ISO 639-1, -2, -3 language tag or a valid lowercase IETF language tag
value is properly spelled and capitalized language name associated with <tag>
only one language name per <tag>;
key/value pair must have matching entry in lang_name_remap{}
lang_name_remap{}:
key is always lowercase language name
value is a table the holds correctly spelled and capitalized language name [1] and associated tag [2] (tag must match a tag key in lang_tag_remap{})
may have multiple keys referring to a common preferred name and tag; For example:
['kolsch'] and ['kölsch'] both refer to 'Kölsch' and 'ksh'
]]
local lang_tag_remap = { -- used for |language= and |script-title= / |script-chapter=
['als'] = 'Tosk Albanian', -- MediaWiki returns Alemannisch
['bh'] = 'Bihari', -- MediaWiki uses 'bh' as a subdomain name for Bhojpuri Wikipedia: bh.wikipedia.org
['bla'] = 'Blackfoot', -- MediaWiki/IANA/ISO 639: Siksika; use en.wiki preferred name
['bn'] = 'Bengali', -- MediaWiki returns Bangla
['ca-valencia'] = 'Valencian', -- IETF variant of Catalan
['fkv'] = 'Kven', -- MediaWiki returns Kvensk
['gsw'] = 'Swiss German',
['ilo'] = 'Ilocano', -- MediaWiki/IANA/ISO 639: Iloko; use en.wiki preferred name
['ksh'] = 'Kölsch', -- MediaWiki: Colognian; use IANA/ISO 639 preferred name
['ksh-x-colog'] = 'Colognian', -- override MediaWiki ksh; no IANA/ISO 639 code for Colognian; IETF private code created at Module:Lang/data
['mis-x-ripuar'] = 'Ripuarian', -- override MediaWiki ksh; no IANA/ISO 639 code for Ripuarian; IETF private code created at Module:Lang/data
['nan-tw'] = 'Taiwanese Hokkien', -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese and support en.wiki preferred name
['sr-ec'] = 'Serbian (Cyrillic script)', -- MediaWiki returns српски (ћирилица)
['sr-el'] = 'Serbian (Latin script)', -- MediaWiki returns srpski (latinica)
-- gv.wiki: Manx-language names for |language=, replacing MediaWiki's English default
['en'] = 'Baarle',
['en-us'] = 'Baarle Americaanagh',
['en-gb'] = 'Baarle Ghoaldagh',
['en-in'] = 'Baarle Injinagh',
['hy'] = 'Armeainish',
['hr'] = 'Cruaatish',
['cs'] = 'Sheckish',
['da'] = 'Danvargish',
['nl'] = 'Ollanish',
['fo'] = 'Faaroish',
['fi'] = 'Finnlynnish',
['fr'] = 'Frangish',
['de'] = 'Germaanish',
['el'] = 'Greagish',
['he'] = 'Ewnish',
['hu'] = 'Ungaarish',
['is'] = 'Eeslynnish',
['ga'] = 'Yernish',
['it'] = 'Iddaalish',
['ko'] = 'Koreeish',
['la'] = 'Ladjyn',
['no'] = 'Norlynnish',
['pl'] = 'Polynnish',
['pt'] = 'Portiugish',
['ro'] = 'Romaanish',
['ru'] = 'Rooshish',
['sk'] = 'Slovackish',
['es'] = 'Spaainish',
['sv'] = 'Soolynnish',
['ta'] = 'Tamilish',
['tn'] = 'Tswaanish',
['tr'] = 'Turkish',
['uk'] = 'Ookraanish',
['ca'] = 'Catalaanish',
['et'] = 'Estaanish',
['lt'] = 'Litaanish',
['lv'] = 'Latvish',
['be'] = 'Belarooshish',
['bg'] = 'Bulgeyrish',
['zh'] = 'Sheenish',
['ja'] = 'Shapaanish',
['ar'] = 'Arabish',
['gd'] = 'Gaelg ny h-Albey',
['cy'] = 'Bretnish',
['kw'] = 'Cornish',
['br'] = 'Britaanish',
['gv'] = 'Gaelg',
['kl'] = 'Greenlynnish',
['hi'] = 'Hindish',
['ur'] = 'Oordooish',
['yi'] = 'Ewdish',
['mt'] = 'Maltish',
['gl'] = 'Galeeshish',
['eu'] = 'Bascish',
['lb'] = 'Lucsemburgish',
['sl'] = 'Sloveanish',
['sr'] = 'Serbish',
['sq'] = 'Albaanish',
['mk'] = 'Massadoanish',
['ku'] = 'Kurdish',
['az'] = 'Asserbajaanish',
['kk'] = 'Kassaghish',
['mn'] = 'Mongoilish',
['wo'] = 'Wolofish',
}
local lang_name_remap = { -- used for |language=; names require proper capitalization; tags must be lowercase
['alemannic'] = {'Swiss German', 'gsw'}, -- ISO 639-2, -3 alternate for Swiss German; MediaWiki mediawiki returns Alemannic for gsw; en.wiki preferred name
['alemannisch'] = {'Swiss German', 'gsw'}, -- not an ISO or IANA language name; MediaWiki uses 'als' as a subdomain name for Alemannic Wikipedia: als.wikipedia.org
['bangla'] = {'Bengali', 'bn'}, -- MediaWiki returns Bangla (the endonym) but we want Bengali (the exonym); here we remap
['bengali'] = {'Bengali', 'bn'}, -- MediaWiki doesn't use exonym so here we provide correct language name and 639-1 code
['bhojpuri'] = {'Bhojpuri', 'bho'}, -- MediaWiki uses 'bh' as a subdomain name for Bhojpuri Wikipedia: bh.wikipedia.org
['bihari'] = {'Bihari', 'bh'}, -- MediaWiki replaces 'Bihari' with 'Bhojpuri' so 'Bihari' cannot be found
['blackfoot'] = {'Blackfoot', 'bla'}, -- MediaWiki/IANA/ISO 639: Siksika; use en.wiki preferred name
['colognian'] = {'Colognian', 'ksh-x-colog'}, -- MediaWiki preferred name for ksh
['ilocano'] = {'Ilocano', 'ilo'}, -- MediaWiki/IANA/ISO 639: Iloko; use en.wiki preferred name
['kolsch'] = {'Kölsch', 'ksh'}, -- use IANA/ISO 639 preferred name (use non-diacritical o instead of umlaut ö)
['kölsch'] = {'Kölsch', 'ksh'}, -- use IANA/ISO 639 preferred name
['kven'] = {'Kven', 'fkv'}, -- Unicode CLDR have decided not to support English language name for these two...
['kvensk'] = {'Kven', 'fkv'}, -- ...they say to refer to IANA registry for English names
['ripuarian'] = {'Ripuarian', 'mis-x-ripuar'}, -- group of dialects; no code in MediaWiki or in IANA/ISO 639
['serbian (cyrillic script)'] = {'Serbian (Cyrillic script)', 'sr-cyrl'}, -- special case to get correct tag when |language=sr-ec
['serbian (latin script)'] = {'Serbian (Latin script)', 'sr-latn'}, -- special case to get correct tag when |language=sr-el
['swiss german'] = {'Swiss German', 'gsw'},
['taiwanese hokkien'] = {'Taiwanese Hokkien', 'nan-tw'}, -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese
['tosk albanian'] = {'Tosk Albanian', 'als'}, -- MediaWiki replaces 'Tosk Albanian' with 'Alemannisch' so 'Tosk Albanian' cannot be found
['valencian'] = {'Valencian', 'ca-valencia'}, -- variant of Catalan; categorizes as Valencian
-- gv.wiki: Manx-language names for |language=
['baarle'] = {'Baarle', 'en'},
['baarle americaanagh'] = {'Baarle Americaanagh', 'en-us'},
['baarle ghoaldagh'] = {'Baarle Ghoaldagh', 'en-gb'},
['baarle injinagh'] = {'Baarle Injinagh', 'en-in'},
['armeainish'] = {'Armeainish', 'hy'},
['cruaatish'] = {'Cruaatish', 'hr'},
['sheckish'] = {'Sheckish', 'cs'},
['danvargish'] = {'Danvargish', 'da'},
['ollanish'] = {'Ollanish', 'nl'},
['faaroish'] = {'Faaroish', 'fo'},
['finnlynnish'] = {'Finnlynnish', 'fi'},
['frangish'] = {'Frangish', 'fr'},
['germaanish'] = {'Germaanish', 'de'},
['greagish'] = {'Greagish', 'el'},
['ewnish'] = {'Ewnish', 'he'},
['ungaarish'] = {'Ungaarish', 'hu'},
['eeslynnish'] = {'Eeslynnish', 'is'},
['yernish'] = {'Yernish', 'ga'},
['Iddaalish'] = {'Iddaalish', 'it'},
['koreeish'] = {'Koreeish', 'ko'},
['ladjyn'] = {'Ladjyn', 'la'},
['norlynnish'] = {'Norlynnish', 'no'},
['polynnish'] = {'Polynnish', 'pl'},
['portiugish'] = {'Portiugish', 'pt'},
['romaanish'] = {'Romaanish', 'ro'},
['rooshish'] = {'Rooshish', 'ru'},
['slovackish'] = {'Slovackish', 'sk'},
['spaainish'] = {'Spaainish', 'es'},
['soolynnish'] = {'Soolynnish', 'sv'},
['tamilish'] = {'Tamilish', 'ta'},
['tswaanish'] = {'Tswaanish', 'tn'},
['turkish'] = {'Turkish', 'tr'},
['ookraanish'] = {'Ookraanish', 'uk'},
['catalaanish'] = {'Catalaanish', 'ca'},
['estaanish'] = {'Estaanish', 'et'},
['litaanish'] = {'Litaanish', 'lt'},
['latvish'] = {'Latvish', 'lv'},
['belarooshish'] = {'Belarooshish', 'be'},
['bulgeyrish'] = {'Bulgeyrish', 'bg'},
['sheenish'] = {'Sheenish', 'zh'},
['shapaanish'] = {'Shapaanish', 'ja'},
['arabish'] = {'Arabish', 'ar'},
['gaelg ny h-albey'] = {'Gaelg ny h-Albey', 'gd'},
['bretnish'] = {'Bretnish', 'cy'},
['cornish'] = {'Cornish', 'kw'},
['britaanish'] = {'Britaanish', 'br'},
['gaelg'] = {'Gaelg', 'gv'},
['greenlynnish'] = {'Greenlynnish', 'kl'},
['hindish'] = {'Hindish', 'hi'},
['oordooish'] = {'Oordooish', 'ur'},
['ewdish'] = {'Ewdish', 'yi'},
['maltish'] = {'Maltish', 'mt'},
['galeeshish'] = {'Galeeshish', 'gl'},
['bascish'] = {'Bascish', 'eu'},
['lucsemburgish'] = {'Lucsemburgish', 'lb'},
['sloveanish'] = {'Sloveanish', 'sl'},
['serbish'] = {'Serbish', 'sr'},
['albaanish'] = {'Albaanish', 'sq'},
['massadoanish'] = {'Massadoanish', 'mk'},
['kurdish'] = {'Kurdish', 'ku'},
['asserbajaanish'] = {'Asserbajaanish', 'az'},
['kassaghish'] = {'Kassaghish', 'kk'},
['mongoilish'] = {'Mongoilish', 'mn'},
['wolofish'] = {'Wolofish', 'wo'},
}
local lang_name_remap = { -- used for |language=; names require proper capitalization; tags must be lowercase
['alemannic'] = {'Swiss German', 'gsw'}, -- ISO 639-2, -3 alternate for Swiss German; MediaWiki mediawiki returns Alemannic for gsw; en.wiki preferred name
['alemannisch'] = {'Swiss German', 'gsw'}, -- not an ISO or IANA language name; MediaWiki uses 'als' as a subdomain name for Alemannic Wikipedia: als.wikipedia.org
['bangla'] = {'Bengali', 'bn'}, -- MediaWiki returns Bangla (the endonym) but we want Bengali (the exonym); here we remap
['bengali'] = {'Bengali', 'bn'}, -- MediaWiki doesn't use exonym so here we provide correct language name and 639-1 code
['bhojpuri'] = {'Bhojpuri', 'bho'}, -- MediaWiki uses 'bh' as a subdomain name for Bhojpuri Wikipedia: bh.wikipedia.org
['bihari'] = {'Bihari', 'bh'}, -- MediaWiki replaces 'Bihari' with 'Bhojpuri' so 'Bihari' cannot be found
['blackfoot'] = {'Blackfoot', 'bla'}, -- MediaWiki/IANA/ISO 639: Siksika; use en.wiki preferred name
['colognian'] = {'Colognian', 'ksh-x-colog'}, -- MediaWiki preferred name for ksh
['ilocano'] = {'Ilocano', 'ilo'}, -- MediaWiki/IANA/ISO 639: Iloko; use en.wiki preferred name
['kolsch'] = {'Kölsch', 'ksh'}, -- use IANA/ISO 639 preferred name (use non-diacritical o instead of umlaut ö)
['kölsch'] = {'Kölsch', 'ksh'}, -- use IANA/ISO 639 preferred name
['kven'] = {'Kven', 'fkv'}, -- Unicode CLDR have decided not to support English language name for these two...
['kvensk'] = {'Kven', 'fkv'}, -- ...they say to refer to IANA registry for English names
['ripuarian'] = {'Ripuarian', 'mis-x-ripuar'}, -- group of dialects; no code in MediaWiki or in IANA/ISO 639
['serbian (cyrillic script)'] = {'Serbian (Cyrillic script)', 'sr-cyrl'}, -- special case to get correct tag when |language=sr-ec
['serbian (latin script)'] = {'Serbian (Latin script)', 'sr-latn'}, -- special case to get correct tag when |language=sr-el
['swiss german'] = {'Swiss German', 'gsw'},
['taiwanese hokkien'] = {'Taiwanese Hokkien', 'nan-tw'}, -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese
['tosk albanian'] = {'Tosk Albanian', 'als'}, -- MediaWiki replaces 'Tosk Albanian' with 'Alemannisch' so 'Tosk Albanian' cannot be found
['valencian'] = {'Valencian', 'ca-valencia'}, -- variant of Catalan; categorizes as Valencian
-- gv.wiki: Manx-language names for |language=
['baarle'] = {'Baarle', 'en'},
['baarle americaanagh'] = {'Baarle Americaanagh', 'en-us'},
['baarle ghoaldagh'] = {'Baarle Ghoaldagh', 'en-gb'},
['baarle injinagh'] = {'Baarle Injinagh', 'en-in'},
['armeainish'] = {'Armeainish', 'hy'},
['cruaatish'] = {'Cruaatish', 'hr'},
['sheckish'] = {'Sheckish', 'cs'},
['danvargish'] = {'Danvargish', 'da'},
['ollanish'] = {'Ollanish', 'nl'},
['faaroish'] = {'Faaroish', 'fo'},
['finnlynnish'] = {'Finnlynnish', 'fi'},
['frangish'] = {'Frangish', 'fr'},
['germaanish'] = {'Germaanish', 'de'},
['greagish'] = {'Greagish', 'el'},
['ewnish'] = {'Ewnish', 'he'},
['ungaarish'] = {'Ungaarish', 'hu'},
['eeslynnish'] = {'Eeslynnish', 'is'},
['yernish'] = {'Yernish', 'ga'},
['Iddaalish'] = {'Iddaalish', 'it'},
['koreeish'] = {'Koreeish', 'ko'},
['ladjyn'] = {'Ladjyn', 'la'},
['norlynnish'] = {'Norlynnish', 'no'},
['polynnish'] = {'Polynnish', 'pl'},
['portiugish'] = {'Portiugish', 'pt'},
['romaanish'] = {'Romaanish', 'ro'},
['rooshish'] = {'Rooshish', 'ru'},
['slovackish'] = {'Slovackish', 'sk'},
['spaainish'] = {'Spaainish', 'es'},
['soolynnish'] = {'Soolynnish', 'sv'},
['tamilish'] = {'Tamilish', 'ta'},
['tswaanish'] = {'Tswaanish', 'tn'},
['turkish'] = {'Turkish', 'tr'},
['ookraanish'] = {'Ookraanish', 'uk'},
['catalaanish'] = {'Catalaanish', 'ca'},
['estaanish'] = {'Estaanish', 'et'},
['litaanish'] = {'Litaanish', 'lt'},
['latvish'] = {'Latvish', 'lv'},
['belarooshish'] = {'Belarooshish', 'be'},
['bulgeyrish'] = {'Bulgeyrish', 'bg'},
['sheenish'] = {'Sheenish', 'zh'},
['shapaanish'] = {'Shapaanish', 'ja'},
['arabish'] = {'Arabish', 'ar'},
['gaelg ny h-albey'] = {'Gaelg ny h-Albey', 'gd'},
['bretnish'] = {'Bretnish', 'cy'},
['cornish'] = {'Cornish', 'kw'},
['britaanish'] = {'Britaanish', 'br'},
['gaelg'] = {'Gaelg', 'gv'},
['greenlynnish'] = {'Greenlynnish', 'kl'},
['hindish'] = {'Hindish', 'hi'},
['oordooish'] = {'Oordooish', 'ur'},
['ewdish'] = {'Ewdish', 'yi'},
['maltish'] = {'Maltish', 'mt'},
['galeeshish'] = {'Galeeshish', 'gl'},
['bascish'] = {'Bascish', 'eu'},
['lucsemburgish'] = {'Lucsemburgish', 'lb'},
['sloveanish'] = {'Sloveanish', 'sl'},
['serbish'] = {'Serbish', 'sr'},
['albaanish'] = {'Albaanish', 'sq'},
['massadoanish'] = {'Massadoanish', 'mk'},
['kurdish'] = {'Kurdish', 'ku'},
['asserbajaanish'] = {'Asserbajaanish', 'az'},
['kassaghish'] = {'Kassaghish', 'kk'},
['mongoilish'] = {'Mongoilish', 'mn'},
['wolofish'] = {'Wolofish', 'wo'},
}
--[[---------------< P R O P E R T I E S _ C A T E G O R I E S >----------------
Properties categories. These are used for investigating qualities of citations.
]]
local prop_cats = {
['foreign-lang-source'] = 'Geillyn CS1 ayns $1 ($2)', -- |language= categories; $1 is foreign-language name, $2 is ISO639-1 code
['foreign-lang-source-2'] = 'Geillyn CS1 ayns çhengaghyn joarree (ISO 639-2)|$1', -- |language= category; a cat for ISO639-2 languages; $1 is the ISO 639-2 code used as a sort key
['interproj-linked-name'] = 'CS1 interproject-linked names|$1', -- any author, editor, etc that has an interproject link; $1 is interproject tag used as a sort key
['interwiki-linked-name'] = 'CS1 interwiki-linked names|$1', -- any author, editor, etc that has an interwiki link; $1 is interwiki tag used as a sort key; yeilds to interproject
['local-lang-source'] = 'Geillyn CS1 ayns $1 ($2)', -- |language= categories; $1 is local-language name, $2 is ISO639-1 code; not emitted when local_lang_cat_enable is false
['location-test'] = 'CS1 location test',
['long-vol'] = 'CS1: long volume value', -- probably temporary cat to identify scope of |volume= values longer than 4 characters
['script'] = 'CS1 gymmydey script $1 ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is language tag
['tracked-param'] = 'CS1 tracked parameter: $1', -- $1 is base (enumerators removed) parameter name
['unfit'] = 'CS1: unfit URL', -- |url-status=unfit or |url-status=usurped; used to be a maint cat
['vanc-accept'] = 'CS1:Vancouver names with accept markup', -- for |vauthors=/|veditors= with accept-as-written markup
['year-range-abbreviated'] = 'CS1: abbreviated year range', -- probably temporary cat to identify scope of |date=, |year= values using YYYY–YY form
}
--[[-------------------< T I T L E _ T Y P E S >--------------------------------
Here we map a template's CitationClass to TitleType (default values for |type= parameter)
]]
local title_types = {
['AV-media-notes'] = 'Media notes',
['document'] = 'Document',
['interview'] = 'Interview',
['mailinglist'] = 'Mailing list',
['map'] = 'Map',
['podcast'] = 'Podcast',
['pressrelease'] = 'Press release',
['report'] = 'Report',
['speech'] = 'Speech',
['techreport'] = 'Technical report',
['thesis'] = 'Thesis',
}
--[[--------------------------< B U I L D _ K N O W N _ F R E E _ D O I _ R E G I S T R A N T S _ T A B L E >--
build a table of doi registrants known to be free-to-read In a doi, the registrant ID is the series of digits
between the '10.' and the first '/': in doi 10.1100/sommat, 1100 is the registrant ID
see §3.2.2 DOI prefix of the Doi Handbook p. 43
https://www.doi.org/doi-handbook/DOI_Handbook_Final.pdf#page=43
]]
local function build_free_doi_registrants_table()
local registrants_t = {};
for _, v in ipairs ({
'1045', '1074', '1096', '1100', '1155', '1186', '1194', '1371', '1613', '1629', '1989', '1999', '2147', '2196', '3285', '3389', '3390', '3906',
'3748', '3814', '3847', '3897', '4061', '4089', '4103', '4172', '4175', '4230', '4236', '4239', '4240', '4249', '4251',
'4252', '4253', '4254', '4291', '4292', '4329', '4330', '4331', '5086', '5194', '5210', '5306', '5312', '5313', '5314',
'5315', '5316', '5317', '5318', '5319', '5320', '5321', '5334', '5402', '5409', '5410', '5411', '5412',
'5492', '5493', '5494', '5495', '5496', '5497', '5498', '5499', '5500', '5501', '5527', '5528', '5662',
'6064', '6219', '7167', '7217', '7287', '7482', '7490', '7554', '7717', '7759', '7766', '9778', '11131', '11569', '11647',
'11648', '12688', '12703', '12715', '12942', '12998', '13105', '14256', '14293', '14303', '15215', '15347', '15412', '15560', '16995',
'17645', '18637', '19080', '19173', '20944', '21037', '21105', '21468', '21767', '21425', '22261', '22323', '22459', '24105', '24196', '24966',
'26775', '30845', '32545', '35711', '35712', '35713', '35995', '36648', '37126', '37532', '37871', '47128',
'47622', '47959', '52437', '52975', '53288', '53347', '54081', '54947', '55667', '55914', '57009', '58647', '59081',
}) do
registrants_t[v] = true; -- build a k/v table of known free-to-read doi registrants
end
return registrants_t;
end
-- known free registrants identifiable by the doi suffix incipit
local extended_registrants_t = { -- doi suffix incipits are evaluated as lua patterns
['1002'] = {'aelm', 'leap', 'loe2%.', 'lol2%.'}, -- Advanced Electronic Materials, Learned Publishing, L&O e-Lectures, L&O Letters
['1016'] = {'j%.aace', 'j%.aed', 'j%.aiopen', 'j%.animal', 'j%.apsb', 'j%.addicn', -- AACE Endocrinology and Diabetes, AACE Endocrinology and Diabetes, AI Open, Animal, Acta Pharmaceutica Sinica B, Addiction Neuroscience
'j%.abrep', 'j%.gpb', 'j%.heliyon', 'j%.nlp', 'j%.patter', 'j%.proche', -- Addictive Behaviors Reports, Genomics, Proteomics & Bioinformatics after 2015, Heliyon, Natural Language Processing, Patterns, Procedia Chemistry
'j%.vgie', 'S1672-0229'}, -- VideoGIE, Genomics, Proteomics & Bioinformatics before 2015
['1017'] = {'apj%.', 'nlp', 'mdh', 'S15574660'}, -- Natural Language Processing Journal, Medical History, Asia Pacific Journal
['1046'] = {'j%.1365-8711', 'j%.1365-246x'}, -- MNRAS, GJI
['1021'] = {'acscentsci', 'acsomega'}, -- ACS Central Science, ACS Omega
['1093'] = {'mnras', 'mnrasl', 'gji', 'pnasnexus', 'rasti'}, -- MNRAS, MNRAS Letters, GJI, PNAS Nexus, RASTI
['1098'] = {'rsbm', 'rsob', 'rsos'}, -- Biographical Memoirs of Fellows of the Royal Society, Open Biology, Royal Society Open Science
['1099'] = {'acmi', 'mic', '00221287', 'mgen'}, -- Access Microbiology, Microbiology, Journal of General Microbiology, Microbial Genomics
['1107'] = {'S20569890', 'S20522525', 'S16005775', 'S24143146'}, -- Acta Crystallographica E, IUCrJ, Journal of Synchrotron Radiation, IUCrData
['1109'] = {'oa', 'oj'}, -- IEEE Open Access..., IEEE Open Journal...
['1111'] = {'aogs', 'j%.1365-2966', 'j%.1745-3933', 'j%.1365-246X'}, -- Acta Obstetricia et Gynecologica Scandinavica, MNRAS, MNRAS Letters, GJI
['1128'] = {'asmcr', 'jmbe', 'mbio', 'mra', 'spectrum', 'msphere', 'msystems'}, --ASM Case Reports, Journal of Microbiology & Biology Education, mBio, Microbiology Resource Announcements, Microbiology Spectrum, mSphere, mSystems
['1136'] = {'bmjopen'}, -- BMJ Open
['1140'] = {'epjc'}, -- European Physical Journal C
['1192'] = {'bjo'}, -- BJPsych Open
['1210'] = {'jendso','jcemcr'}, -- Journal of the Endocrine Society, JCEM Case Reports
['1215'] = {'21573689', '21573698'}, -- L&O Fluids
['1590'] = {'0102-3306'}, -- Acta Botanica Brasilica
['4171'] = {'dm','mag'}, -- Documenta Mathematica, EMS Magazine
['4319'] = {'lo%.', 'lol%.', 'lom%.'}, -- L&O, L&O e-Lectures, L&O Methods
['5852'] = {'ejt'}, -- European Journal of Taxonomy
['7155'] = {'jgaa'}, -- Journal of Graph Algorithms and Applications
['11158'] = {'saasp'}, -- Systematic and Applied Acarology Special Publications
['11646'] = {'megataxa', 'mesozoic'}, -- Megataxa, Mesozoic
['14231'] = {'ag'}, -- Algebraic Geometry
['15446'] = {'abc'}, -- Acta Biológica Colombiana
['17239'] = {'jowr'}, -- Journal of Writing Research
['22073'] = {'pja'}, -- Persian Journal of Acarology
['24310'] = {'abm'}, -- Acta Botanica Malacitana
['24425'] = {'agp'}, -- Acta Geologica Polonica
['35249'] = {'rche'}, -- Revista Chilena de Entomología
['37520'] = {'fi'}, -- Fossil Imprint
['53562'] = {'ajcb'} -- Asian Journal of Conservation Biology
}
--[[===================<< E R R O R M E S S A G I N G >>======================
]]
--[[----------< E R R O R M E S S A G E S U P P L E M E N T S >-------------
I18N for those messages that are supplemented with additional specific text that
describes the reason for the error
TODO: merge this with special_case_translations{}?
]]
local err_msg_supl = {
['char'] = 'invalid character', -- |isbn=, |sbn=
['check'] = 'checksum', -- |isbn=, |sbn=
empty_str = '(empty string)', -- empty unknown parameter check when cite has |=
['flag'] = 'flag', -- |archive-url=
['form'] = 'invalid form', -- |isbn=, |sbn=
['group'] = 'invalid group id', -- |isbn=
['initials'] = 'initials', -- Vancouver
['invalid language code'] = 'invalid language code', -- |script-<param>=
['journal'] = 'journal', -- |bibcode=
['length'] = 'length', -- |isbn=, |bibcode=, |sbn=
['liveweb'] = 'liveweb', -- |archive-url=
['missing comma'] = 'missing comma', -- Vancouver
['missing prefix'] = 'missing prefix', -- |script-<param>=
['missing title part'] = 'missing title part', -- |script-<param>=
['name'] = 'name', -- Vancouver
['non-Latin char'] = 'non-Latin character', -- Vancouver
['path'] = 'path', -- |archive-url=
['prefix'] = 'invalid prefix', -- |isbn=
['punctuation'] = 'punctuation', -- Vancouver
['save'] = 'save command', -- |archive-url=
['suffix'] = 'suffix', -- Vancouver
['timestamp'] = 'timestamp', -- |archive-url=
['unknown language code'] = 'unknown language code', -- |script-<param>=
['value'] = 'value', -- |bibcode=
['year'] = 'year', -- |bibcode=
}
--[[--------------< E R R O R _ C O N D I T I O N S >---------------------------
Error condition table. This table has two sections: errors at the top, maintenance
at the bottom. Maint 'messaging' does not have a 'message' (message=nil)
The following contains a list of IDs for various error conditions defined in the
code. For each ID, we specify a text message to display, an error category to
include, and whether the error message should be wrapped as a hidden comment.
Anchor changes require identical changes to matching anchor in Help:CS1 errors
TODO: rename error_conditions{} to something more generic; create separate error
and maint tables inside that?
]]
local error_conditions = {
err_accessdate_missing_url = {
message = '<code class="cs1-code">|access-date=</code> requires <code class="cs1-code">|url=</code>',
anchor = 'accessdate_missing_url',
category = 'CS1 errors: access-date without URL',
hidden = false
},
err_apostrophe_markup = {
message = 'Italic or bold markup not allowed in: <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'apostrophe_markup',
category = 'CS1 errors: markup',
hidden = false
},
err_archive_date_missing_url = {
message = '<code class="cs1-code">|archive-date=</code> requires <code class="cs1-code">|archive-url=</code>',
anchor = 'archive_date_missing_url',
category = 'CS1 errors: archive-url',
hidden = false
},
err_archive_date_url_ts_mismatch = {
message = '<code class="cs1-code">|archive-date=</code> / <code class="cs1-code">|archive-url=</code> timestamp mismatch; $1 suggested',
anchor = 'archive_date_url_ts_mismatch',
category = 'CS1 errors: archive-url',
hidden = false
},
err_archive_missing_date = {
message = '<code class="cs1-code">|archive-url=</code> requires <code class="cs1-code">|archive-date=</code>',
anchor = 'archive_missing_date',
category = 'CS1 errors: archive-url',
hidden = false
},
err_archive_missing_url = {
message = '<code class="cs1-code">|archive-url=</code> requires <code class="cs1-code">|url=</code>',
anchor = 'archive_missing_url',
category = 'CS1 errors: archive-url',
hidden = false
},
err_archive_url = {
message = '<code class="cs1-code">|archive-url=</code> is malformed: $1', -- $1 is error message detail
anchor = 'archive_url',
category = 'CS1 errors: archive-url',
hidden = false
},
err_arxiv_missing = {
message = '<code class="cs1-code">|arxiv=</code> required',
anchor = 'arxiv_missing',
category = 'CS1 errors: arXiv', -- same as bad arxiv
hidden = false
},
err_asintld_missing_asin = {
message = '<code class="cs1-code">|$1=</code> requires <code class="cs1-code">|asin=</code>', -- $1 is parameter name
anchor = 'asintld_missing_asin',
category = 'CS1 errors: ASIN TLD',
hidden = false
},
err_bad_arxiv = {
message = 'Check <code class="cs1-code">|arxiv=</code> value',
anchor = 'bad_arxiv',
category = 'CS1 errors: arXiv',
hidden = false
},
err_bad_asin = {
message = 'Check <code class="cs1-code">|asin=</code> value',
anchor = 'bad_asin',
category ='CS1 errors: ASIN',
hidden = false
},
err_bad_asin_tld = {
message = 'Check <code class="cs1-code">|asin-tld=</code> value',
anchor = 'bad_asin_tld',
category ='CS1 errors: ASIN TLD',
hidden = false
},
err_bad_bibcode = {
message = 'Check <code class="cs1-code">|bibcode=</code> $1', -- $1 is error message detail
anchor = 'bad_bibcode',
category = 'CS1 errors: bibcode',
hidden = false
},
err_bad_biorxiv = {
message = 'Check <code class="cs1-code">|biorxiv=</code> value',
anchor = 'bad_biorxiv',
category = 'CS1 errors: bioRxiv',
hidden = false
},
err_bad_citeseerx = {
message = 'Check <code class="cs1-code">|citeseerx=</code> value',
anchor = 'bad_citeseerx',
category = 'CS1 errors: citeseerx',
hidden = false
},
err_bad_date = {
message = 'Check date values in: $1', -- $1 is a parameter name list
anchor = 'bad_date',
category = 'CS1 errors: dates',
hidden = false
},
err_bad_doi = {
message = 'Check <code class="cs1-code">|doi=</code> value',
anchor = 'bad_doi',
category = 'CS1 errors: DOI',
hidden = false
},
err_bad_hdl = {
message = 'Check <code class="cs1-code">|hdl=</code> value',
anchor = 'bad_hdl',
category = 'CS1 errors: HDL',
hidden = false
},
err_bad_isbn = {
message = 'Check <code class="cs1-code">|isbn=</code> value: $1', -- $1 is error message detail
anchor = 'bad_isbn',
category = 'CS1 errors: ISBN',
hidden = false
},
err_bad_ismn = {
message = 'Check <code class="cs1-code">|ismn=</code> value',
anchor = 'bad_ismn',
category = 'CS1 errors: ISMN',
hidden = false
},
err_bad_issn = {
message = 'Check <code class="cs1-code">|$1issn=</code> value', -- $1 is 'e' or '' for eissn or issn
anchor = 'bad_issn',
category = 'CS1 errors: ISSN',
hidden = false
},
err_bad_jfm = {
message = 'Check <code class="cs1-code">|jfm=</code> value',
anchor = 'bad_jfm',
category = 'CS1 errors: JFM',
hidden = false
},
err_bad_jstor = {
message = 'Check <code class="cs1-code">|jstor=</code> value',
anchor = 'bad_jstor',
category = 'CS1 errors: JSTOR',
hidden = false
},
err_bad_lccn = {
message = 'Check <code class="cs1-code">|lccn=</code> value',
anchor = 'bad_lccn',
category = 'CS1 errors: LCCN',
hidden = false
},
err_bad_medrxiv = {
message = 'Check <code class="cs1-code">|medrxiv=</code> value',
anchor = 'bad_medrxiv',
category = 'CS1 errors: medRxiv',
hidden = false
},
err_bad_mr = {
message = 'Check <code class="cs1-code">|mr=</code> value',
anchor = 'bad_mr',
category = 'CS1 errors: MR',
hidden = false
},
err_bad_oclc = {
message = 'Check <code class="cs1-code">|oclc=</code> value',
anchor = 'bad_oclc',
category = 'CS1 errors: OCLC',
hidden = false
},
err_bad_ol = {
message = 'Check <code class="cs1-code">|ol=</code> value',
anchor = 'bad_ol',
category = 'CS1 errors: OL',
hidden = false
},
err_bad_osti = {
message = 'Check <code class="cs1-code">|osti=</code> value',
anchor = 'bad_osti',
category = 'CS1 errors: OSTI',
hidden = false
},
err_bad_paramlink = { -- for |title-link=, |author/editor/translator-link=, |series-link=, |episode-link=
message = 'Check <code class="cs1-code">|$1=</code> value', -- $1 is parameter name
anchor = 'bad_paramlink',
category = 'CS1 errors: parameter link',
hidden = false
},
err_bad_pmc = {
message = 'Check <code class="cs1-code">|pmc=</code> value',
anchor = 'bad_pmc',
category = 'CS1 errors: PMC',
hidden = false
},
err_bad_pmid = {
message = 'Check <code class="cs1-code">|pmid=</code> value',
anchor = 'bad_pmid',
category = 'CS1 errors: PMID',
hidden = false
},
err_bad_rfc = {
message = 'Check <code class="cs1-code">|rfc=</code> value',
anchor = 'bad_rfc',
category = 'CS1 errors: RFC',
hidden = false
},
err_bad_s2cid = {
message = 'Check <code class="cs1-code">|s2cid=</code> value',
anchor = 'bad_s2cid',
category = 'CS1 errors: S2CID',
hidden = false
},
err_bad_sbn = {
message = 'Check <code class="cs1-code">|sbn=</code> value: $1', -- $1 is error message detail
anchor = 'bad_sbn',
category = 'CS1 errors: SBN',
hidden = false
},
err_bad_ssrn = {
message = 'Check <code class="cs1-code">|ssrn=</code> value',
anchor = 'bad_ssrn',
category = 'CS1 errors: SSRN',
hidden = false
},
err_bad_url = {
message = 'Check $1 value', -- $1 is parameter name
anchor = 'bad_url',
category = 'CS1 errors: URL',
hidden = false
},
err_bad_usenet_id = {
message = 'Check <code class="cs1-code">|message-id=</code> value',
anchor = 'bad_message_id',
category = 'CS1 errors: message-id',
hidden = false
},
err_bad_zbl = {
message = 'Check <code class="cs1-code">|zbl=</code> value',
anchor = 'bad_zbl',
category = 'CS1 errors: Zbl',
hidden = false
},
err_bare_url_missing_title = {
message = '$1 missing title', -- $1 is parameter name
anchor = 'bare_url_missing_title',
category = 'CS1 errors: bare URL',
hidden = false
},
err_biorxiv_missing = {
message = '<code class="cs1-code">|biorxiv=</code> required',
anchor = 'biorxiv_missing',
category = 'CS1 errors: bioRxiv', -- same as bad bioRxiv
hidden = false
},
err_chapter_ignored = {
message = '<code class="cs1-code">|$1=</code> ignored', -- $1 is parameter name
anchor = 'chapter_ignored',
category = 'CS1 errors: chapter ignored',
hidden = false
},
err_citation_missing_title = {
message = 'Missing or empty <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'citation_missing_title',
category = 'CS1 errors: missing title',
hidden = false
},
err_citeseerx_missing = {
message = '<code class="cs1-code">|citeseerx=</code> required',
anchor = 'citeseerx_missing',
category = 'CS1 errors: citeseerx', -- same as bad citeseerx
hidden = false
},
err_cite_web_url = { -- this error applies to cite web and to cite podcast
message = 'Missing or empty <code class="cs1-code">|url=</code>',
anchor = 'cite_web_url',
category = 'CS1 errors: requires URL',
hidden = false
},
err_class_ignored = {
message = '<code class="cs1-code">|class=</code> ignored',
anchor = 'class_ignored',
category = 'CS1 errors: class',
hidden = false
},
err_contributor_ignored = {
message = '<code class="cs1-code">|contributor=</code> ignored',
anchor = 'contributor_ignored',
category = 'CS1 errors: contributor',
hidden = false
},
err_contributor_missing_required_param = {
message = '<code class="cs1-code">|contributor=</code> requires <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'contributor_missing_required_param',
category = 'CS1 errors: contributor',
hidden = false
},
err_deprecated_params = {
message = 'Cite uses deprecated parameter <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'deprecated_params',
category = 'CS1 errors: deprecated parameters',
hidden = false
},
err_disp_name = {
message = 'Invalid <code class="cs1-code">|$1=$2</code>', -- $1 is parameter name; $2 is the assigned value
anchor = 'disp_name',
category = 'CS1 errors: display-names',
hidden = false,
},
err_doibroken_missing_doi = {
message = '<code class="cs1-code">|$1=</code> requires <code class="cs1-code">|doi=</code>', -- $1 is parameter name
anchor = 'doibroken_missing_doi',
category = 'CS1 errors: DOI',
hidden = false
},
err_embargo_missing_pmc = {
message = '<code class="cs1-code">|$1=</code> requires <code class="cs1-code">|pmc=</code>', -- $1 is parameter name
anchor = 'embargo_missing_pmc',
category = 'CS1 errors: PMC embargo',
hidden = false
},
err_empty_citation = {
message = 'Empty citation',
anchor = 'empty_citation',
category = 'CS1 errors: empty citation',
hidden = false
},
err_etal = {
message = 'Explicit use of et al. in: <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'explicit_et_al',
category = 'CS1 errors: explicit use of et al.',
hidden = false
},
err_extra_text_edition = {
message = '<code class="cs1-code">|edition=</code> has extra text',
anchor = 'extra_text_edition',
category = 'CS1 errors: extra text: edition',
hidden = false,
},
err_extra_text_issue = {
message = '<code class="cs1-code">|$1=</code> has extra text', -- $1 is parameter name
anchor = 'extra_text_issue',
category = 'CS1 errors: extra text: issue',
hidden = false,
},
err_extra_text_pages = {
message = '<code class="cs1-code">|$1=</code> has extra text', -- $1 is parameter name
anchor = 'extra_text_pages',
category = 'CS1 errors: extra text: pages',
hidden = false,
},
err_extra_text_volume = {
message = '<code class="cs1-code">|$1=</code> has extra text', -- $1 is parameter name
anchor = 'extra_text_volume',
category = 'CS1 errors: extra text: volume',
hidden = false,
},
err_first_missing_last = {
message = '<code class="cs1-code">|$1=</code> missing <code class="cs1-code">|$2=</code>', -- $1 is first alias, $2 is matching last alias
anchor = 'first_missing_last',
category = 'CS1 errors: missing name', -- author, contributor, editor, interviewer, translator
hidden = false
},
err_format_missing_url = {
message = '<code class="cs1-code">|$1=</code> requires <code class="cs1-code">|$2=</code>', -- $1 is format parameter $2 is url parameter
anchor = 'format_missing_url',
category = 'CS1 errors: format without URL',
hidden = false
},
err_generic_name = {
message = '<code class="cs1-code">|$1=</code> has generic name', -- $1 is parameter name
anchor = 'generic_name',
category = 'CS1 errors: generic name',
hidden = false,
},
err_generic_title = {
message = 'Cite uses generic title',
anchor = 'generic_title',
category = 'CS1 errors: generic title',
hidden = false,
},
err_invalid_isbn_date = {
message = 'ISBN / Date incompatibility',
anchor = 'invalid_isbn_date',
category = 'CS1 errors: ISBN date',
hidden = true
},
err_invalid_param_val = {
message = 'Invalid <code class="cs1-code">|$1=$2</code>', -- $1 is parameter name $2 is parameter value
anchor = 'invalid_param_val',
category = 'CS1 errors: invalid parameter value',
hidden = false
},
err_invisible_char = {
message = '$1 in $2 at position $3', -- $1 is invisible char $2 is parameter name $3 is position number
anchor = 'invisible_char',
category = 'CS1 errors: invisible characters',
hidden = false
},
err_medrxiv_missing = {
message = '<code class="cs1-code">|medrxiv=</code> required',
anchor = 'medrxiv_missing',
category = 'CS1 errors: medRxiv', -- same as bad medRxiv
hidden = false
},
err_missing_name = {
message = 'Missing <code class="cs1-code">|$1$2=</code>', -- $1 is modified NameList; $2 is enumerator
anchor = 'missing_name',
category = 'CS1 errors: missing name', -- author, contributor, editor, interviewer, translator
hidden = false
},
err_missing_periodical = {
message = 'Cite $1 requires <code class="cs1-code">|$2=</code>', -- $1 is cs1 template name; $2 is canonical periodical parameter name for cite $1
anchor = 'missing_periodical',
category = 'CS1 errors: missing periodical',
hidden = false
},
err_missing_pipe = {
message = 'Missing pipe in: <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'missing_pipe',
category = 'CS1 errors: missing pipe',
hidden = false
},
err_missing_publisher = {
message = 'Cite $1 requires <code class="cs1-code">|$2=</code>', -- $1 is cs1 template name; $2 is canonical publisher parameter name for cite $1
anchor = 'missing_publisher',
category = 'CS1 errors: missing publisher',
hidden = false
},
err_numeric_names = {
message = '<code class="cs1-code">|$1=</code> has numeric name', -- $1 is parameter name',
anchor = 'numeric_names',
category = 'CS1 errors: numeric name',
hidden = false,
},
err_param_access_requires_param = {
message = '<code class="cs1-code">|$1-access=</code> requires <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'param_access_requires_param',
category = 'CS1 errors: param-access',
hidden = false
},
err_param_has_ext_link = {
message = 'External link in <code class="cs1-code">$1</code>', -- $1 is parameter name
anchor = 'param_has_ext_link',
category = 'CS1 errors: external links',
hidden = false
},
err_param_has_twl_url = {
message = 'Wikipedia Library link in <code class="cs1-code">$1</code>', -- $1 is parameter name
anchor = 'param_has_twl_url',
category = 'CS1 errors: URL',
hidden = false
},
err_parameter_ignored = {
message = 'Unknown parameter <code class="cs1-code">|$1=</code> ignored', -- $1 is parameter name
anchor = 'parameter_ignored',
category = 'CS1 errors: unsupported parameter',
hidden = false
},
err_parameter_ignored_suggest = {
message = 'Unknown parameter <code class="cs1-code">|$1=</code> ignored (<code class="cs1-code">|$2=</code> suggested)', -- $1 is unknown parameter $2 is suggested parameter name
anchor = 'parameter_ignored_suggest',
category = 'CS1 errors: unsupported parameter',
hidden = false
},
err_periodical_ignored = {
message = '<code class="cs1-code">|$1=</code> ignored', -- $1 is parameter name
anchor = 'periodical_ignored',
category = 'CS1 errors: periodical ignored',
hidden = false
},
err_redundant_parameters = {
message = 'More than one of $1 specified', -- $1 is error message detail
anchor = 'redundant_parameters',
category = 'CS1 errors: redundant parameter',
hidden = false
},
err_script_parameter = {
message = 'Invalid <code class="cs1-code">|$1=</code>: $2', -- $1 is parameter name $2 is script language code or error detail
anchor = 'script_parameter',
category = 'CS1 errors: script parameters',
hidden = false
},
err_ssrn_missing = {
message = '<code class="cs1-code">|ssrn=</code> required',
anchor = 'ssrn_missing',
category = 'CS1 errors: SSRN',
hidden = false
},
err_text_ignored = {
message = 'Text "$1" ignored', -- $1 is ignored text
anchor = 'text_ignored',
category = 'CS1 errors: unrecognized parameter',
hidden = false
},
err_trans_missing_title = {
message = '<code class="cs1-code">|trans-$1=</code> requires <code class="cs1-code">|$1=</code> or <code class="cs1-code">|script-$1=</code>', -- $1 is base parameter name
anchor = 'trans_missing_title',
category = 'CS1 errors: translated title',
hidden = false
},
err_param_unknown_empty = {
message = 'Cite has empty unknown parameter$1: $2', -- $1 is 's' or empty space; $2 is emty unknown param list
anchor = 'param_unknown_empty',
category = 'CS1 errors: empty unknown parameters',
hidden = false
},
err_vancouver = {
message = 'Vancouver style error: $1 in name $2', -- $1 is error detail, $2 is the nth name
anchor = 'vancouver',
category = 'CS1 errors: Vancouver style',
hidden = false
},
err_wikilink_in_url = {
message = 'URL–wikilink conflict', -- uses ndash
anchor = 'wikilink_in_url',
category = 'CS1 errors: URL–wikilink conflict', -- uses ndash
hidden = false
},
--[[--------------------------< M A I N T >-------------------------------------
maint messages do not have a message (message = nil); otherwise the structure
is the same as error messages
]]
maint_archive_origin = {
message = nil,
anchor = 'archive_origin',
category = 'CS1 maint: archive origin',
hidden = true,
},
maint_archived_copy = {
message = nil,
anchor = 'archived_copy',
category = 'CS1 maint: archived copy as title',
hidden = true,
},
maint_bibcode = {
message = nil,
anchor = 'bibcode',
category = 'CS1 maint: bibcode',
hidden = true,
},
maint_location_no_publisher = { -- cite book, conference, encyclopedia; citation as book cite or encyclopedia cite
message = nil,
anchor = 'location_no_publisher',
category = 'CS1 maint: location missing publisher',
hidden = true,
},
maint_bot_unknown = {
message = nil,
anchor = 'bot:_unknown',
category = 'CS1 maint: bot: original URL status unknown',
hidden = true,
},
maint_date_auto_xlated = { -- date auto-translation not supported by en.wiki
message = nil,
anchor = 'date_auto_xlated',
category = 'CS1 maint: date auto-translated',
hidden = true,
},
maint_date_format = {
message = nil,
anchor = 'date_format',
category = 'CS1 maint: date format',
hidden = true,
},
maint_date_year = {
message = nil,
anchor = 'date_year',
category = 'CS1 maint: date and year',
hidden = true,
},
maint_deprecated_archive = {
message = nil,
anchor = 'deprecated_archive',
category = 'CS1 maint: deprecated archival service',
hidden = true,
},
maint_doi_ignore = {
message = nil,
anchor = 'doi_ignore',
category = 'CS1 maint: ignored DOI errors',
hidden = true,
},
maint_doi_inactive = {
message = nil,
anchor = 'doi_inactive',
category = 'CS1 maint: DOI neuvioyr',
hidden = true,
},
maint_doi_inactive_dated = {
message = nil,
anchor = 'doi_inactive_dated',
category = 'CS1 maint: DOI neuvioyr ec $2$3$1', -- $1 is year, $2 is month-name or empty string, $3 is space or empty string
hidden = true,
},
maint_doi_unflagged_free = {
message = nil,
anchor = 'doi_unflagged_free',
category = 'CS1 maint: DOI seyr neu-chowrit',
hidden = true,
},
maint_extra_punct = {
message = nil,
anchor = 'extra_punct',
category = 'CS1 maint: extra punctuation',
hidden = true,
},
maint_id_limit_load_fail = { -- applies to all cs1|2 templates on a page;
message = nil, -- maint message (category link) never emitted
anchor = 'id_limit_load_fail',
category = 'CS1 maint: ID limit load fail',
hidden = true,
},
maint_isbn_ignore = {
message = nil,
anchor = 'ignore_isbn_err',
category = 'CS1 maint: ignored ISBN errors',
hidden = true,
},
maint_issn_ignore = {
message = nil,
anchor = 'ignore_issn',
category = 'CS1 maint: ignored ISSN errors',
hidden = true,
},
maint_jfm_format = {
message = nil,
anchor = 'jfm_format',
category = 'CS1 maint: JFM format',
hidden = true,
},
maint_location = {
message = nil,
anchor = 'location',
category = 'CS1 maint: location',
hidden = true,
},
maint_missing_class = {
message = nil,
anchor = 'missing_class',
category = 'CS1 maint: missing class',
hidden = true,
},
maint_mr_format = {
message = nil,
anchor = 'mr_format',
category = 'CS1 maint: MR format',
hidden = true,
},
maint_mult_names = {
message = nil,
anchor = 'mult_names',
category = 'CS1 maint: multiple names: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
hidden = true,
},
maint_numeric_names = {
message = nil,
anchor = 'numeric_names',
category = 'CS1 maint: numeric names: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
hidden = true,
},
maint_others = {
message = nil,
anchor = 'others',
category = 'CS1 maint: others',
hidden = true,
},
maint_others_avm = {
message = nil,
anchor = 'others_avm',
category = 'CS1 maint: others in cite AV media (notes)',
hidden = true,
},
maint_overridden_setting = {
message = nil,
anchor = 'overridden',
category = 'CS1 maint: overridden setting',
hidden = true,
},
maint_page_art_num = {
message = nil,
anchor = 'page_art_num',
category = 'CS1 maint: article number as page number',
hidden = true,
},
maint_pmc_embargo = {
message = nil,
anchor = 'embargo',
category = 'CS1 maint: PMC embargo expired',
hidden = true,
},
maint_pmc_format = {
message = nil,
anchor = 'pmc_format',
category = 'CS1 maint: PMC format',
hidden = true,
},
maint_postscript = {
message = nil,
anchor = 'postscript',
category = 'CS1 maint: postscript',
hidden = true,
},
maint_publisher_location = {
message = nil,
anchor = 'publisher_location',
category = 'CS1 maint: publisher location',
hidden = true,
},
maint_ref_duplicates_default = {
message = nil,
anchor = 'ref_default',
category = 'CS1 maint: ref duplicates default',
hidden = true,
},
maint_shortened_archive_url = {
message = nil,
anchor = 'shortened_archive_url',
category = 'CS1 maint: shortened archive url',
hidden = true,
},
maint_unknown_lang = {
message = nil,
anchor = 'unknown_lang',
category = 'CS1 maint: çhengey gyn enney',
hidden = true,
},
maint_untitled = {
message = nil,
anchor = 'untitled',
category = 'CS1 maint: untitled periodical',
hidden = true,
},
maint_url_status = {
message = nil,
anchor = 'url_status',
category = 'CS1 maint: url-status',
hidden = true,
},
maint_work_isbn = {
message = nil,
anchor = 'work_isbn',
category = 'CS1 maint: work parameter with ISBN',
hidden = true,
},
maint_year= {
message = nil,
anchor = 'year',
category = 'CS1 maint: year',
hidden = true,
},
maint_zbl = {
message = nil,
anchor = 'zbl',
category = 'CS1 maint: Zbl',
hidden = true,
},
}
--[[--------------------------< I D _ L I M I T S _ D A T A _ T >----------------------------------------------
fetch id limits for certain identifiers from c:Data:CS1/Identifier limits.tab. This source is a json tabular
data file maintained at wikipedia commons. Convert the json format to a table of k/v pairs.
The values from <id_limits_data_t> are used to set handle.id_limit.
From 2025-02-21, MediaWiki is broken. Use this link to edit the tablular data file:
https://commons.wikimedia.org/w/index.php?title=Data:CS1/Identifier_limits.tab&action=edit
See Phab:T389105
]]
local id_limits_data_t = {};
local use_commons_data = true; -- set to false if your wiki does not have access to mediawiki commons; then,
if false == use_commons_data then -- update this table from https://commons.wikimedia.org/wiki/Data:CS1/Identifier_limits.tab; last update: 2025-02-21
id_limits_data_t = {['OCLC'] = 10450000000, ['OSTI'] = 23010000, ['PMC'] = 11900000, ['PMID'] = 40400000, ['RFC'] = 9300, ['SSRN'] = 5200000, ['S2CID'] = 276000000}; -- this table must be maintained locally
else -- here for wikis that do have access to mediawiki commons
local load_fail_limit = 99999999999; -- very high number to avoid error messages on load failure
id_limits_data_t = {['OCLC'] = load_fail_limit, ['OSTI'] = load_fail_limit, ['PMC'] = load_fail_limit, ['PMID'] = load_fail_limit, ['RFC'] = load_fail_limit, ['SSRN'] = load_fail_limit, ['S2CID'] = load_fail_limit};
local id_limits_data_load_fail = false; -- flag; assume that we will be successful when loading json id limit tabular data
if mw.ext.data == nil then
id_limits_data_load_fail = true; -- safeguard against Lua errors if mw.ext.data is not available for some reason
else
local tab_data_t = mw.ext.data.get ('CS1/Identifier limits.tab'); -- attempt to load the tabular data from commons into <tab_data_t>
if false == tab_data_t then -- undocumented 'feature': mw.ext.data.get() sometimes returns false
id_limits_data_load_fail = true; -- set the flag so that Module:Citation/CS1 can create an unannotated maint category
else
for _, limit_t in ipairs (tab_data_t.data) do -- overwrite default <load_fail_limit> values from the data table in the tabular data
id_limits_data_t[limit_t[1]] = limit_t[2]; -- <limit[1]> is identifier; <limit[2]> is upper limit for that identifier
end
end
end
end
--[[--------------------------< I D _ H A N D L E R S >--------------------------------------------------------
The following contains a list of values for various defined identifiers. For each
identifier we specify a variety of information necessary to properly render the
identifier in the citation.
parameters: a list of parameter aliases for this identifier; first in the list is the canonical form
link: Wikipedia article name
redirect: a local redirect to a local Wikipedia article name; at en.wiki, 'ISBN (identifier)' is a redirect to 'International Standard Book Number'
q: Wikidata q number for the identifier
label: the label preceding the identifier; label is linked to a Wikipedia article (in this order):
redirect from id_handlers['<id>'].redirect when use_identifier_redirects is true
Wikidata-supplied article name for the local wiki from id_handlers['<id>'].q
local article name from id_handlers['<id>'].link
prefix: the first part of a URL that will be concatenated with a second part which usually contains the identifier
suffix: optional third part to be added after the identifier
encode: true if URI should be percent-encoded; otherwise false
COinS: identifier link or keyword for use in COinS:
for identifiers registered at info-uri.info use: info:.... where '...' is the appropriate identifier label
for identifiers that have COinS keywords, use the keyword: rft.isbn, rft.issn, rft.eissn
for |asin= and |ol=, which require assembly, use the keyword: url
for others make a URL using the value in prefix/suffix and #label, use the keyword: pre (not checked; any text other than 'info', 'rft', or 'url' works here)
set to nil to leave the identifier out of the COinS
separator: character or text between label and the identifier in the rendered citation
id_limit: for those identifiers with established limits, this property holds the upper limit
access: use this parameter to set the access level for all instances of this identifier.
the value must be a valid access level for an identifier (see ['id-access'] in this file).
custom_access: to enable custom access level for an identifier, set this parameter
to the parameter that should control it (normally 'id-access')
]]
local id_handlers = {
['ARXIV'] = {
parameters = {'arxiv', 'eprint'},
link = 'arXiv',
redirect = 'arXiv (identifier)',
q = 'Q118398',
label = 'arXiv',
prefix = 'https://arxiv.org/abs/',
encode = false,
COinS = 'info:arxiv',
separator = ':',
access = 'free', -- free to read
},
['ASIN'] = {
parameters = { 'asin', 'ASIN' },
link = 'Amazon Standard Identification Number',
redirect = 'ASIN (identifier)',
q = 'Q1753278',
label = 'ASIN',
prefix = 'https://www.amazon.',
COinS = 'url',
separator = ' ',
encode = false;
},
['BIBCODE'] = {
parameters = {'bibcode'},
link = 'Bibcode',
redirect = 'Bibcode (identifier)',
q = 'Q25754',
label = 'Bibcode',
prefix = 'https://ui.adsabs.harvard.edu/abs/',
encode = false,
COinS = 'info:bibcode',
separator = ':',
custom_access = 'bibcode-access',
},
['BIORXIV'] = {
parameters = {'biorxiv'},
link = 'bioRxiv',
redirect = 'bioRxiv (identifier)',
q = 'Q19835482',
label = 'bioRxiv',
prefix = 'https://doi.org/',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = true,
separator = ' ',
},
['CITESEERX'] = {
parameters = {'citeseerx'},
link = 'CiteSeerX',
redirect = 'CiteSeerX (identifier)',
q = 'Q2715061',
label = 'CiteSeerX',
prefix = 'https://citeseerx.ist.psu.edu/viewdoc/summary?doi=',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = true,
separator = ' ',
},
['DOI'] = { -- Used by InternetArchiveBot
parameters = { 'doi', 'DOI'},
link = 'Digital object identifier',
redirect = 'doi (identifier)',
q = 'Q25670',
label = 'doi',
prefix = 'https://doi.org/',
COinS = 'info:doi',
separator = ':',
encode = true,
custom_access = 'doi-access',
},
['EISSN'] = {
parameters = {'eissn', 'EISSN'},
link = 'International Standard Serial Number#Electronic ISSN',
redirect = 'eISSN (identifier)',
q = 'Q46339674',
label = 'eISSN',
prefix = 'https://search.worldcat.org/issn/',
COinS = 'rft.eissn',
encode = false,
separator = ' ',
},
['HDL'] = {
parameters = { 'hdl', 'HDL' },
link = 'Handle System',
redirect = 'hdl (identifier)',
q = 'Q3126718',
label = 'hdl',
prefix = 'https://hdl.handle.net/',
COinS = 'info:hdl',
separator = ':',
encode = true,
custom_access = 'hdl-access',
},
['ISBN'] = { -- Used by InternetArchiveBot
parameters = {'isbn', 'ISBN'},
link = 'International Standard Book Number',
redirect = 'ISBN (identifier)',
q = 'Q33057',
label = 'ISBN',
prefix = 'Special:BookSources/',
COinS = 'rft.isbn',
separator = ' ',
},
['ISMN'] = {
parameters = {'ismn', 'ISMN'},
link = 'International Standard Music Number',
redirect = 'ISMN (identifier)',
q = 'Q1666938',
label = 'ISMN',
prefix = '', -- not currently used;
COinS = nil, -- nil because we can't use pre or rft or info:
separator = ' ',
},
['ISSN'] = {
parameters = {'issn', 'ISSN'},
link = 'International Standard Serial Number',
redirect = 'ISSN (identifier)',
q = 'Q131276',
label = 'ISSN',
prefix = 'https://search.worldcat.org/issn/',
COinS = 'rft.issn',
encode = false,
separator = ' ',
},
['JFM'] = {
parameters = {'jfm', 'JFM'},
link = 'Jahrbuch über die Fortschritte der Mathematik',
redirect = 'JFM (identifier)',
q = '',
label = 'JFM',
prefix = 'https://zbmath.org/?format=complete&q=an:',
COinS = 'pre', -- use prefix value
encode = true,
separator = ' ',
},
['JSTOR'] = {
parameters = {'jstor', 'JSTOR'},
link = 'JSTOR',
redirect = 'JSTOR (identifier)',
q = 'Q1420342',
label = 'JSTOR',
prefix = 'https://www.jstor.org/stable/',
COinS = 'pre', -- use prefix value
encode = false,
separator = ' ',
custom_access = 'jstor-access',
},
['LCCN'] = {
parameters = {'lccn', 'LCCN'},
link = 'Library of Congress Control Number',
redirect = 'LCCN (identifier)',
q = 'Q620946',
label = 'LCCN',
prefix = 'https://lccn.loc.gov/',
COinS = 'info:lccn',
encode = false,
separator = ' ',
},
['MEDRXIV'] = {
parameters = {'medrxiv'},
link = 'medRxiv',
redirect = 'medRxiv (identifier)',
q = 'Q58465838',
label = 'medRxiv',
prefix = 'https://www.medrxiv.org/content/',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = false,
separator = ' ',
},
['MR'] = {
parameters = {'mr', 'MR'},
link = 'Mathematical Reviews',
redirect = 'MR (identifier)',
q = 'Q211172',
label = 'MR',
prefix = 'https://mathscinet.ams.org/mathscinet-getitem?mr=',
COinS = 'pre', -- use prefix value
encode = true,
separator = ' ',
},
['OCLC'] = {
parameters = {'oclc', 'OCLC'},
link = 'OCLC',
redirect = 'OCLC (identifier)',
q = 'Q190593',
label = 'OCLC',
prefix = 'https://search.worldcat.org/oclc/',
COinS = 'info:oclcnum',
encode = true,
separator = ' ',
id_limit = id_limits_data_t.OCLC or 0,
},
['OL'] = {
parameters = { 'ol', 'OL' },
link = 'Open Library',
redirect = 'OL (identifier)',
q = 'Q1201876',
label = 'OL',
prefix = 'https://openlibrary.org/',
COinS = 'url',
separator = ' ',
encode = true,
custom_access = 'ol-access',
},
['OSTI'] = {
parameters = {'osti', 'OSTI'},
link = 'Office of Scientific and Technical Information',
redirect = 'OSTI (identifier)',
q = 'Q2015776',
label = 'OSTI',
prefix = 'https://www.osti.gov/biblio/',
COinS = 'pre', -- use prefix value
encode = true,
separator = ' ',
id_limit = id_limits_data_t.OSTI or 0,
custom_access = 'osti-access',
},
['PMC'] = {
parameters = {'pmc', 'PMC'},
link = 'PubMed Central',
redirect = 'PMC (identifier)',
q = 'Q229883',
label = 'PMC',
prefix = 'https://www.ncbi.nlm.nih.gov/pmc/articles/PMC',
suffix = '',
COinS = 'pre', -- use prefix value
encode = true,
separator = ' ',
id_limit = id_limits_data_t.PMC or 0,
access = 'free', -- free to read
},
['PMID'] = {
parameters = {'pmid', 'PMID'},
link = 'PubMed Identifier',
redirect = 'PMID (identifier)',
q = 'Q2082879',
label = 'PMID',
prefix = 'https://pubmed.ncbi.nlm.nih.gov/',
COinS = 'info:pmid',
encode = false,
separator = ' ',
id_limit = id_limits_data_t.PMID or 0,
},
['RFC'] = {
parameters = {'rfc', 'RFC'},
link = 'Request for Comments',
redirect = 'RFC (identifier)',
q = 'Q212971',
label = 'RFC',
prefix = 'https://tools.ietf.org/html/rfc',
COinS = 'pre', -- use prefix value
encode = false,
separator = ' ',
id_limit = id_limits_data_t.RFC or 0,
access = 'free', -- free to read
},
['SBN'] = {
parameters = {'sbn', 'SBN'},
link = 'Standard Book Number', -- redirect to International_Standard_Book_Number#History
redirect = 'SBN (identifier)',
label = 'SBN',
prefix = 'Special:BookSources/0-', -- prefix has leading zero necessary to make 9-digit sbn a 10-digit isbn
COinS = nil, -- nil because we can't use pre or rft or info:
separator = ' ',
},
['SSRN'] = {
parameters = {'ssrn', 'SSRN'},
link = 'Social Science Research Network',
redirect = 'SSRN (identifier)',
q = 'Q7550801',
label = 'SSRN',
prefix = 'https://papers.ssrn.com/sol3/papers.cfm?abstract_id=',
COinS = 'pre', -- use prefix value
encode = true,
separator = ' ',
id_limit = id_limits_data_t.SSRN or 0,
custom_access = 'ssrn-access',
},
['S2CID'] = {
parameters = {'s2cid', 'S2CID'},
link = 'Semantic Scholar',
redirect = 'S2CID (identifier)',
q = 'Q22908627',
label = 'S2CID',
prefix = 'https://api.semanticscholar.org/CorpusID:',
COinS = 'pre', -- use prefix value
encode = false,
separator = ' ',
id_limit = id_limits_data_t.S2CID or 0,
custom_access = 's2cid-access',
},
['USENETID'] = {
parameters = {'message-id'},
link = 'Usenet',
redirect = 'Usenet (identifier)',
q = 'Q193162',
label = 'Usenet:',
prefix = 'news:',
encode = false,
COinS = 'pre', -- use prefix value
separator = ' ',
},
['ZBL'] = {
parameters = {'zbl', 'ZBL' },
link = 'Zentralblatt MATH',
redirect = 'Zbl (identifier)',
q = 'Q190269',
label = 'Zbl',
prefix = 'https://zbmath.org/?format=complete&q=an:',
COinS = 'pre', -- use prefix value
encode = true,
separator = ' ',
},
}
--[[--------------------------< E X P O R T S >---------------------------------
]]
return {
use_identifier_redirects = use_identifier_redirects, -- booleans defined in the settings at the top of this module
local_lang_cat_enable = local_lang_cat_enable,
date_name_auto_xlate_enable = date_name_auto_xlate_enable,
date_digit_auto_xlate_enable = date_digit_auto_xlate_enable,
enable_sort_keys = enable_sort_keys,
suppress_archive_today_urls = suppress_archive_today_urls,
-- tables and variables created when this module is loaded
dependencies_t = dependencies_t, -- used to suppress parameters dependent on url-holding parameters holding archive.today urls
enum_needs_xlation = '1' ~= date_names.xlate_digits['1'], -- to avoid unnecessary enumerator translation
global_df = get_date_format (), -- this line can be replaced with "global_df = 'dmy-all'," to have all dates auto translated to dmy format.
global_cs1_config_t = global_cs1_config_t, -- global settings from {{cs1 config}}
id_limits_data_load_fail = id_limits_data_load_fail, -- true when commons tabular identifier-limit data fails to load
known_free_doi_registrants_t = build_free_doi_registrants_table(),
punct_skip = build_skip_table (punct_skip, punct_meta_params),
url_skip = build_skip_table (url_skip, url_meta_params),
archive_today_tlds_t = {['today'] = true, ['ph'] = true, ['is'] = true, ['md'] = true, ['li'] = true, ['fo'] = true, ['vn'] = true}; -- used by is_archive_today_url()
name_space_sort_keys = name_space_sort_keys,
aliases = aliases,
special_case_translation = special_case_translation,
date_names = date_names,
err_msg_supl = err_msg_supl,
error_conditions = error_conditions,
editor_markup_patterns = editor_markup_patterns,
et_al_patterns = et_al_patterns,
extended_registrants_t = extended_registrants_t,
id_handlers = id_handlers,
keywords_lists = keywords_lists,
keywords_xlate = keywords_xlate,
stripmarkers = stripmarkers,
invisible_chars = invisible_chars,
invisible_defs = invisible_defs,
indic_script = indic_script,
emoji_t = emoji_t,
maint_cats = maint_cats,
messages = messages,
presentation = presentation,
prop_cats = prop_cats,
script_lang_codes = script_lang_codes,
lang_tag_remap = lang_tag_remap,
lang_name_remap = lang_name_remap,
this_wiki_code = this_wiki_code,
title_types = title_types,
uncategorized_namespaces = uncategorized_namespaces_t,
uncategorized_subpages = uncategorized_subpages,
templates_using_volume = templates_using_volume,
templates_using_issue = templates_using_issue,
templates_not_using_page = templates_not_using_page,
vol_iss_pg_patterns = vol_iss_pg_patterns,
single_letter_2nd_lvl_domains_t = single_letter_2nd_lvl_domains_t,
url_access_map_t = url_access_map_t,
inter_wiki_map = inter_wiki_map,
mw_languages_by_tag_t = mw_languages_by_tag_t,
mw_languages_by_name_t = mw_languages_by_name_t,
citation_class_map_t = citation_class_map_t,
citation_issue_t = citation_issue_t,
citation_no_volume_t = citation_no_volume_t,
}
05widufe9sfh1kep3zzqtw72q78rhwa
Module:Language/data/iana languages
828
30253
395409
395188
2026-10-27T01:01:48Z
MacTire02
219
++
395409
Scribunto
text/plain
-- File-Date: 2023-10-16
local active = {
["aa"] = {"Afarish"},
["ab"] = {"Abcaashish"},
["ae"] = {"Avestan"},
["af"] = {"Affrickaanish"},
["ak"] = {"Akanish"},
["am"] = {"Amharish"},
["an"] = {"Aragonish"},
["ar"] = {"Arabish"},
["as"] = {"Assamish"},
["av"] = {"Avarish"},
["ay"] = {"Aymarish"},
["az"] = {"Asserbajaanish"},
["ba"] = {"Bashkeerish"},
["be"] = {"Belarooshish"},
["bg"] = {"Bulgeyrish"},
["bh"] = {"çhengaghyn Biharagh"},
["bi"] = {"Bislamish"},
["bm"] = {"Bambarish"},
["bn"] = {"Bengaalish", "Bangla"},
["bo"] = {"Tibetish"},
["br"] = {"Britaanish"},
["bs"] = {"Bosnish"},
["ca"] = {"Catalaanish", "Cataloanish", "Valensianish", "Valenciano"},
["ce"] = {"Sheshnish"},
["ch"] = {"Chamorro"},
["co"] = {"Corsickish"},
["cr"] = {"Creeish"},
["cs"] = {"Sheckish"},
["cu"] = {"Slavish Agglish", "Slavonish Agglish", "Slavish yn Agglish", "Slavonish yn Agglish", "Shenn Vulgeyrish", "Shenn Slavonish Agglish", "Shenn Slavish Agglish"},
["cv"] = {"Shuvashish"},
["cy"] = {"Bretnish"},
["da"] = {"Danvargish"},
["de"] = {"Germaanish"},
["dv"] = {"Maldeevish", "Dhivehi", "Divehi"},
["dz"] = {"Dzongkha"},
["ee"] = {"Ewe"},
["el"] = {"Greagish Noa-emshyragh (1453-)"},
["en"] = {"Baarle"},
["eo"] = {"Esperanto"},
["es"] = {"Spaainish", "Cashteelish"},
["et"] = {"Estaanish", "Estoinish", "Esthoinish"},
["eu"] = {"Bascish"},
["fa"] = {"Pershish"},
["ff"] = {"Fulah"},
["fi"] = {"Finnlynnish"},
["fj"] = {"Fijiish"},
["fo"] = {"Faaroish"},
["fr"] = {"Frangish"},
["fy"] = {"Freeshlannish Heear"},
["ga"] = {"Yernish", "Gaelg Nerin", "Gaelg ny h-Erin", "Gaelg Yernagh"},
["gd"] = {"Gaelg ny h-Albey", "Gaelg Albinagh"},
["gl"] = {"Galeeshish"},
["gn"] = {"Guaranish"},
["gu"] = {"Gujaratish"},
["gv"] = {"Gaelg", "Gailck"},
["ha"] = {"Hausish"},
["he"] = {"Ewnish"},
["hi"] = {"Hindish"},
["ho"] = {"Hiri Motu"},
["hr"] = {"Cruaatish", "Croitish"},
["ht"] = {"Haitish", "Creeole Haiti"},
["hu"] = {"Ungaarish"},
["hy"] = {"Armeanish"},
["hz"] = {"Hereroish"},
["ia"] = {"Interlingua (International Auxiliary Language Association)"},
["id"] = {"Indoneeshish"},
["ie"] = {"Interlingue", "Occidental"},
["ig"] = {"Igbo"},
["ii"] = {"Sichuan Yi", "Nuosu"},
["ik"] = {"Inupiaq"},
["io"] = {"Idoish"},
["is"] = {"Eeslynnish"},
["it"] = {"Iddaalish"},
["iu"] = {"Inuktitut"},
["ja"] = {"Shapaanish"},
["jv"] = {"Javish", "basa Jawa"},
["ka"] = {"Shorshish"},
["kg"] = {"Kongoish"},
["ki"] = {"Kikuyuish", "Gikuyu"},
["kj"] = {"Kuanyamish", "Kwanyama"},
["kk"] = {"Kassaghish"},
["kl"] = {"Kalaallisut", "Greenlynnish"},
["km"] = {"Khmerish", "Khmerish Veanagh"},
["kn"] = {"Kannada"},
["ko"] = {"Koreeish"},
["kr"] = {"Kanurish"},
["ks"] = {"Kashmirish"},
["ku"] = {"Kurdish"},
["kv"] = {"Komish"},
["kw"] = {"Cornish"},
["ky"] = {"Kyrgisish"},
["la"] = {"Ladjyn"},
["lb"] = {"Lucsemburgish", "Letzeburgesch"},
["lg"] = {"Ganda", "Luganda"},
["li"] = {"Limburgish"},
["ln"] = {"Lingalish"},
["lo"] = {"Laoish"},
["lt"] = {"Litaanish"},
["lu"] = {"Luba-Katanga"},
["lv"] = {"Latvish"},
["mg"] = {"Malagasish"},
["mh"] = {"Marshylish"},
["mi"] = {"Maorish"},
["mk"] = {"Massadoanish"},
["ml"] = {"Malayalamish"},
["mn"] = {"Mongoilish"},
["mr"] = {"Marathish"},
["ms"] = {"Malayish (mooar-hengey)"},
["mt"] = {"Maltish"},
["my"] = {"Burmish"},
["na"] = {"Nauru"},
["nb"] = {"Bokmål Norlynnagh"},
["nd"] = {"Ndebele Hwoaie"},
["ne"] = {"Nepaalish"},
["ng"] = {"Ndonga"},
["nl"] = {"Ollanish", "Flandrynish"},
["nn"] = {"Nynorsk Norlynnagh"},
["no"] = {"Norlynnish"},
["nr"] = {"Ndebele Yiass"},
["nv"] = {"Navahoish", "Navajo", "Navaho"},
["ny"] = {"Chewish", "Nyanja", "Chewa", "Chichewa"},
["oc"] = {"Ocsitaanish (lurg 1500)"},
["oj"] = {"Ojibwa"},
["om"] = {"Oromoish"},
["or"] = {"Oriyish (mooar-hengey)", "Odish (mooar-hengey)"},
["os"] = {"Ossetish"},
["pa"] = {"Panjabish", "Punjabish"},
["pi"] = {"Palish"},
["pl"] = {"Polynnish"},
["ps"] = {"Pushtish", "Pashtish"},
["pt"] = {"Portiugish"},
["qu"] = {"Quechua"},
["rm"] = {"Romansh", "Romanshish"},
["rn"] = {"Rundish"},
["ro"] = {"Romaanish", "Romaainish", "Moldaavish", "Moldovish"},
["ru"] = {"Rooshish"},
["rw"] = {"Kinyarooandish"},
["sa"] = {"Sanskrit"},
["sc"] = {"Sardeenish"},
["sd"] = {"Sindhish"},
["se"] = {"Saamish Hwoaie"},
["sg"] = {"Sangoish"},
["sh"] = {"Serbo-Cruaatish"},
["si"] = {"Seeloinish"},
["sk"] = {"Slovackish"},
["sl"] = {"Sloveanish"},
["sm"] = {"Samoish"},
["sn"] = {"Shonish"},
["so"] = {"Somaalish"},
["sq"] = {"Albaanish"},
["sr"] = {"Serbish"},
["ss"] = {"Swassish"},
["st"] = {"Sotoish Yiass"},
["su"] = {"Sundanish"},
["sv"] = {"Soolynnish"},
["sw"] = {"Swahilish (mooar-hengey)"},
["ta"] = {"Tamilish"},
["te"] = {"Teloogooish"},
["tg"] = {"Tajikish"},
["th"] = {"Thaish"},
["ti"] = {"Tigrinyish"},
["tk"] = {"Turkmenish"},
["tl"] = {"Tagalogish"},
["tn"] = {"Tswaanish"},
["to"] = {"Tonga (Ellanyn y Tongey)"},
["tr"] = {"Turkish"},
["ts"] = {"Tsongish"},
["tt"] = {"Tatarish"},
["tw"] = {"Twi"},
["ty"] = {"Tahitish"},
["ug"] = {"Uighurish", "Uyghurish"},
["uk"] = {"Ookraanish"},
["ur"] = {"Oordooish"},
["uz"] = {"Oosbeckish"},
["ve"] = {"Vendish"},
["vi"] = {"Vietnamish"},
["vo"] = {"Volapük"},
["wa"] = {"Walloonish"},
["wo"] = {"Wolofish"},
["xh"] = {"Xhosa"},
["yi"] = {"Ewdish"},
["yo"] = {"Yorubish"},
["za"] = {"Zhuang", "Chuang"},
["zh"] = {"Sheenish"},
["zu"] = {"Soolooish"},
["aaa"] = {"Ghotuo"},
["aab"] = {"Alumu-Tesu"},
["aac"] = {"Ari"},
["aad"] = {"Amal"},
["aae"] = {"Albaanish Arbëreshë"},
["aaf"] = {"Aranadanish"},
["aag"] = {"Ambrakish"},
["aah"] = {"Abu' Arapesh"},
["aai"] = {"Arifama-Miniafia"},
["aak"] = {"Ankave"},
["aal"] = {"Afade"},
["aan"] = {"Anambé"},
["aao"] = {"Arabish Algearagh y Tahara"},
["aap"] = {"Pará Arára"},
["aaq"] = {"Abnakish Hiar"},
["aas"] = {"Aasáx"},
["aat"] = {"Albaanish Arvanitika"},
["aau"] = {"Abau"},
["aav"] = {"çhengaghyn Austro-Aishanagh"},
["aaw"] = {"Solong"},
["aax"] = {"Mandobo Atas"},
["aaz"] = {"Amarasish"},
["aba"] = {"Abé"},
["abb"] = {"Bankonish"},
["abc"] = {"Ambala Ayta"},
["abd"] = {"Manide"},
["abe"] = {"Abnakish Heear"},
["abf"] = {"Abai Sungai"},
["abg"] = {"Abaga"},
["abh"] = {"Arabish Hajikagh"},
["abi"] = {"Abidji"},
["abj"] = {"Aka-Bea"},
["abl"] = {"Lampung Nyo"},
["abm"] = {"Abanyom"},
["abn"] = {"Abua"},
["abo"] = {"Abon"},
["abp"] = {"Abellen Ayta"},
["abq"] = {"Abaza"},
["abr"] = {"Abron"},
["abs"] = {"Ambonese Malay"},
["abt"] = {"Ambulas"},
["abu"] = {"Abure"},
["abv"] = {"Baharna Arabic"},
["abw"] = {"Pal"},
["abx"] = {"Inabaknon"},
["aby"] = {"Aneme Wake"},
["abz"] = {"Abui"},
["aca"] = {"Achagua"},
["acb"] = {"Áncá"},
["acd"] = {"Gikyode"},
["ace"] = {"Achinish"},
["acf"] = {"Creeole Frangish Noo Lucia"},
["ach"] = {"Acoli"},
["aci"] = {"Aka-Cari"},
["ack"] = {"Aka-Kora"},
["acl"] = {"Akar-Bale"},
["acm"] = {"Arabish Vesopotaamagh"},
["acn"] = {"Achang"},
["acp"] = {"Acipa Hiar"},
["acq"] = {"Ta'izzi-Adeni Arabic"},
["acr"] = {"Achi"},
["acs"] = {"Acroá"},
["act"] = {"Achterhoeks"},
["acu"] = {"Achuar-Shiwiar"},
["acv"] = {"Achumawi"},
["acw"] = {"Arabish Hijaz"},
["acx"] = {"Arabish Omaanagh"},
["acy"] = {"Arabish Cheepragh"},
["acz"] = {"Acheron"},
["ada"] = {"Adangme"},
["adb"] = {"Atauran"},
["add"] = {"Lidzonka", "Dzodinka"},
["ade"] = {"Adele"},
["adf"] = {"Arabish Dhofari"},
["adg"] = {"Andegerebinha"},
["adh"] = {"Adhola"},
["adi"] = {"Adi"},
["adj"] = {"Adioukrou"},
["adl"] = {"Galo"},
["adn"] = {"Adang"},
["ado"] = {"Abu"},
["adq"] = {"Adangbe"},
["adr"] = {"Adonara"},
["ads"] = {"Çhengey Chowree Adamorobe"},
["adt"] = {"Adnyamathanha"},
["adu"] = {"Aduge"},
["adw"] = {"Amundava"},
["adx"] = {"Tibetish Amdo"},
["ady"] = {"Adyghe", "Adygei"},
["adz"] = {"Adzera"},
["aea"] = {"Areba"},
["aeb"] = {"arabish Hooneeshagh"},
["aec"] = {"Arabish Saidi"},
["aed"] = {"Çhengey Chowree Argenteenagh"},
["aee"] = {"Pashai Hiar Hwoaie", "Pashayi Hiar Hwoaie"},
["aek"] = {"Haeke"},
["ael"] = {"Ambele"},
["aem"] = {"Arem"},
["aen"] = {"Çhengey Chowree Armeanagh"},
["aeq"] = {"Aer"},
["aer"] = {"Arrernte Hiar"},
["aes"] = {"Alsea"},
["aeu"] = {"Akeu"},
["aew"] = {"Ambakich"},
["aey"] = {"Amele"},
["aez"] = {"Aeka"},
["afa"] = {"çhengaghyn Affro-Aishanagh"},
["afb"] = {"Arabish Cheayn yn Arabaght"},
["afd"] = {"Andai"},
["afe"] = {"Putukwam"},
["afg"] = {"Çhengey Chowree Afghaanagh"},
["afh"] = {"Afrihili"},
["afi"] = {"Akrukay", "Chini"},
["afk"] = {"Nanubae"},
["afn"] = {"Defaka"},
["afo"] = {"Eloyi"},
["afp"] = {"Tapei"},
["afs"] = {"Creeole Affro-Seminolagh"},
["aft"] = {"Afitti"},
["afu"] = {"Awutu"},
["afz"] = {"Obokuitai"},
["aga"] = {"Aguano"},
["agb"] = {"Legbo"},
["agc"] = {"Agatu"},
["agd"] = {"Agarabi"},
["age"] = {"Angal"},
["agf"] = {"Arguni"},
["agg"] = {"Angor"},
["agh"] = {"Ngelima"},
["agi"] = {"Agariya"},
["agj"] = {"Argobba"},
["agk"] = {"Isarog Agta"},
["agl"] = {"Fembe"},
["agm"] = {"Angaataha"},
["agn"] = {"Agutaynen"},
["ago"] = {"Tainae"},
["agq"] = {"Aghem"},
["agr"] = {"Aguaruna"},
["ags"] = {"Esimbi"},
["agt"] = {"Cagayan Agta Meanagh"},
["agu"] = {"Aguacateco"},
["agv"] = {"Remontado Dumagat"},
["agw"] = {"Kahua"},
["agx"] = {"Aghul"},
["agy"] = {"Alta Yiass"},
["agz"] = {"Mt. Iriga Agta"},
["aha"] = {"Ahanta"},
["ahb"] = {"Axamb"},
["ahg"] = {"Qimant"},
["ahh"] = {"Aghu"},
["ahi"] = {"Tiagbamrin Aizi"},
["ahk"] = {"Akha"},
["ahl"] = {"Igo"},
["ahm"] = {"Mobumrin Aizi"},
["ahn"] = {"Àhàn"},
["aho"] = {"Ahom"},
["ahp"] = {"Aproumu Aizi"},
["ahr"] = {"Ahirani"},
["ahs"] = {"Ashe"},
["aht"] = {"Ahtena"},
["aia"] = {"Arosi"},
["aib"] = {"Ainu (y Çheen)"},
["aic"] = {"Ainbai"},
["aid"] = {"Alngith"},
["aie"] = {"Amara"},
["aif"] = {"Agi"},
["aig"] = {"Creeole Baarle Antigua as Barbuda"},
["aih"] = {"Ai-Cham"},
["aii"] = {"Noa-Aramaaish Assyriagh"},
["aij"] = {"Lishanid Noshan"},
["aik"] = {"Ake"},
["ail"] = {"Aimele"},
["aim"] = {"Aimol"},
["ain"] = {"Ainu (y Çhapaan)"},
["aio"] = {"Aiton"},
["aip"] = {"Burumakok"},
["aiq"] = {"Aimaq"},
["air"] = {"Airoran"},
["ait"] = {"Arikem"},
["aiw"] = {"Aari"},
["aix"] = {"Aighon"},
["aiy"] = {"Ali"},
["aja"] = {"Aja (y Toodaan Yiass)"},
["ajg"] = {"Aja (Benin)"},
["aji"] = {"Ajië"},
["ajn"] = {"Andajin"},
["ajs"] = {"Algerian Jewish Sign Language"},
["aju"] = {"Judeo-Moroccan Arabic"},
["ajw"] = {"Ajawa"},
["ajz"] = {"Amri Karbi"},
["akb"] = {"Batak Angkola"},
["akc"] = {"Mpur"},
["akd"] = {"Ukpet-Ehom"},
["ake"] = {"Akawaio"},
["akf"] = {"Akpa"},
["akg"] = {"Anakalangu"},
["akh"] = {"Angal Heneng"},
["aki"] = {"Aiome"},
["akj"] = {"Aka-Jeru"},
["akk"] = {"Akkadian"},
["akl"] = {"Aklanon"},
["akm"] = {"Aka-Bo"},
["ako"] = {"Akurio"},
["akp"] = {"Siwu"},
["akq"] = {"Ak"},
["akr"] = {"Araki"},
["aks"] = {"Akaselem"},
["akt"] = {"Akolet"},
["aku"] = {"Akum"},
["akv"] = {"Akhvakh"},
["akw"] = {"Akwa"},
["akx"] = {"Aka-Kede"},
["aky"] = {"Aka-Kol"},
["akz"] = {"Alabama"},
["ala"] = {"Alago"},
["alc"] = {"Qawasqar"},
["ald"] = {"Alladian"},
["ale"] = {"Aleutagh"},
["alf"] = {"Alege"},
["alg"] = {"çhengaghyn Algonquiagh"},
["alh"] = {"Alawa"},
["ali"] = {"Amaimon"},
["alj"] = {"Alangan"},
["alk"] = {"Alak"},
["all"] = {"Allar"},
["alm"] = {"Amblong"},
["aln"] = {"Albaanish Gheg"},
["alo"] = {"Larike-Wakasihu"},
["alp"] = {"Alune"},
["alq"] = {"Algonquin"},
["alr"] = {"Alutorish"},
["als"] = {"Albaanish Tosk"},
["alt"] = {"Altayish Yiass"},
["alu"] = {"'Are'are"},
["alv"] = {"çhengaghyn Atlantagh-Congo"},
["alw"] = {"Alaba-K’abeena", "Wanbasana"},
["alx"] = {"Amol"},
["aly"] = {"Alyawarr"},
["alz"] = {"Alur"},
["ama"] = {"Amanayé"},
["amb"] = {"Ambo"},
["amc"] = {"Amahuaca"},
["ame"] = {"Yanesha'"},
["amf"] = {"Hamer-Banna"},
["amg"] = {"Amurdak"},
["ami"] = {"Amis"},
["amj"] = {"Amdang"},
["amk"] = {"Ambai"},
["aml"] = {"War-Jaintia"},
["amm"] = {"Ama (Papooey Guinea Noa)"},
["amn"] = {"Amanab"},
["amo"] = {"Amo"},
["amp"] = {"Alamblak"},
["amq"] = {"Amahai"},
["amr"] = {"Amarakaeri"},
["ams"] = {"Amami-Oshima Yiass"},
["amt"] = {"Amto"},
["amu"] = {"Guerrero Amuzgo"},
["amv"] = {"Ambelau"},
["amw"] = {"Noa-Aramaaish Heear"},
["amx"] = {"Anmatyerre"},
["amy"] = {"Ami"},
["amz"] = {"Atampaya"},
["ana"] = {"Andaqui"},
["anb"] = {"Andoa"},
["anc"] = {"Ngas"},
["and"] = {"Ansus"},
["ane"] = {"Xârâcùù"},
["anf"] = {"Animere"},
["ang"] = {"Shenn Vaarle (ca. 450-1100)"},
["anh"] = {"Nend"},
["ani"] = {"Andi"},
["anj"] = {"Anor"},
["ank"] = {"Goemai"},
["anl"] = {"Anu-Hkongso Chin"},
["anm"] = {"Anal"},
["ann"] = {"Obolo"},
["ano"] = {"Andoque"},
["anp"] = {"Angika"},
["anq"] = {"Jarawa (yn Injey)"},
["anr"] = {"Andh"},
["ans"] = {"Anserma"},
["ant"] = {"Antakarinya", "Antikarinya"},
["anu"] = {"Anuak"},
["anv"] = {"Denya"},
["anw"] = {"Anaang"},
["anx"] = {"Andra-Hus"},
["any"] = {"Anyin"},
["anz"] = {"Anem"},
["aoa"] = {"Angolar"},
["aob"] = {"Abom"},
["aoc"] = {"Pemon"},
["aod"] = {"Andarum"},
["aoe"] = {"Angal Enen"},
["aof"] = {"Bragat"},
["aog"] = {"Angoram"},
["aoi"] = {"Anindilyakwa"},
["aoj"] = {"Mufian"},
["aok"] = {"Arhö"},
["aol"] = {"Alor"},
["aom"] = {"Ömie"},
["aon"] = {"Bumbita Arapesh"},
["aor"] = {"Aore"},
["aos"] = {"Taikat"},
["aot"] = {"Atong (yn Injey)", "A'tong"},
["aou"] = {"A'ou"},
["aox"] = {"Atorada"},
["aoz"] = {"Uab Meto"},
["apa"] = {"çhengaghyn Apaçheeagh"},
["apb"] = {"Sa'a"},
["apc"] = {"Arabish Levaantagh"},
["apd"] = {"Arabish Hoodaanagh"},
["ape"] = {"Bukiyip"},
["apf"] = {"Pahanan Agta"},
["apg"] = {"Ampanang"},
["aph"] = {"Athpariya"},
["api"] = {"Apiaká"},
["apj"] = {"Apaçheeish Jicarilla"},
["apk"] = {"Apaçheeish Kiowa"},
["apl"] = {"Apaçheeish Lipan"},
["apm"] = {"Apaçheeish Mescalero-Chiricahua"},
["apn"] = {"Apinayé"},
["apo"] = {"Ambul"},
["app"] = {"Apma"},
["apq"] = {"A-Pucikwar"},
["apr"] = {"Arop-Lokep"},
["aps"] = {"Arop-Sissano"},
["apt"] = {"Apatanish"},
["apu"] = {"Apurinã"},
["apv"] = {"Alapmunte"},
["apw"] = {"Apaçheeish Heear"},
["apx"] = {"Aputai"},
["apy"] = {"Apalaí"},
["apz"] = {"Safeyoka"},
["aqa"] = {"çhengaghyn Alacalufan"},
["aqc"] = {"Archi"},
["aqd"] = {"Ampari Dogon"},
["aqg"] = {"Arigidi"},
["aqk"] = {"Aninka"},
["aql"] = {"çhengaghyn Algagh"},
["aqm"] = {"Atohwaim"},
["aqn"] = {"Alta Hwoaie"},
["aqp"] = {"Atakapa"},
["aqr"] = {"Arhâ"},
["aqt"] = {"Angaité"},
["aqz"] = {"Akuntsu"},
["arb"] = {"Arabish Stundayrtit"},
["arc"] = {"Aramaaish Oikoil (700-300 RC)", "Aramaaish Impiroil (700-300 RC)"},
["ard"] = {"Arabana"},
["are"] = {"Arrarnta Heear"},
["arh"] = {"Arhuaco"},
["ari"] = {"Arikara"},
["arj"] = {"Arapaso"},
["ark"] = {"Arikapú"},
["arl"] = {"Arabela"},
["arn"] = {"Mapudungunish", "Mapuçhish"},
["aro"] = {"Araona"},
["arp"] = {"Arapahoish"},
["arq"] = {"Arabish Algearagh"},
["arr"] = {"Karo (y Vrasseel)"},
["ars"] = {"Arabish Najdi"},
["art"] = {"Çhengaghyn ellynagh"},
["aru"] = {"Aruá (Steat Amazonas)", "Arawá"},
["arv"] = {"Arbore"},
["arw"] = {"Arawak"},
["arx"] = {"Aruá (Steat Rodonia)"},
["ary"] = {"Arabish Varocagh"},
["arz"] = {"Arabish Egyptagh"},
["asa"] = {"Asu (Tanzania)"},
["asb"] = {"Assiniboine"},
["asc"] = {"Casuarina Coast Asmat"},
["ase"] = {"Çhengey Chowree Americaanagh"},
["asf"] = {"Auslan", "Çhengey Chowree Austrailagh"},
["asg"] = {"Cishingini"},
["ash"] = {"Abishira"},
["asi"] = {"Buruwai"},
["asj"] = {"Sari"},
["ask"] = {"Ashkun"},
["asl"] = {"Asilulu"},
["asn"] = {"Xingú Asuriní"},
["aso"] = {"Dano"},
["asp"] = {"Çhengey Chowree Algearagh"},
["asq"] = {"Çhengey Chowree Austrailagh"},
["asr"] = {"Asuri"},
["ass"] = {"Ipulo"},
["ast"] = {"Astoorish", "Astoorleonish", "Bable", "Leonish"},
["asu"] = {"Tocantins Asurini"},
["asv"] = {"Asoa"},
["asw"] = {"Çhengey Chowree Vun-dooghyssee yn Austrail"},
["asx"] = {"Muratayak"},
["asy"] = {"Yaosakor Asmat"},
["asz"] = {"As"},
["ata"] = {"Pele-Ata"},
["atb"] = {"Zaiwa"},
["atc"] = {"Atsahuaca"},
["atd"] = {"Ata Manobo"},
["ate"] = {"Atemble"},
["atg"] = {"Ivbie North-Okpela-Arhe"},
["ath"] = {"çhengaghyn Athapascagh"},
["ati"] = {"Attié"},
["atj"] = {"Atikamekw"},
["atk"] = {"Ati"},
["atl"] = {"Mt. Iraya Agta"},
["atm"] = {"Ata"},
["atn"] = {"Ashtiani"},
["ato"] = {"Atong (Cameroon)"},
["atp"] = {"Pudtol Atta"},
["atq"] = {"Aralle-Tabulahan"},
["atr"] = {"Waimiri-Atroari"},
["ats"] = {"Gros Ventre"},
["att"] = {"Pamplona Atta"},
["atu"] = {"Reel"},
["atv"] = {"Altayish Hwoaie"},
["atw"] = {"Atsugewi"},
["atx"] = {"Arutani"},
["aty"] = {"Aneityum"},
["atz"] = {"Arta"},
["aua"] = {"Asumboa"},
["aub"] = {"Alugu"},
["auc"] = {"Waorani"},
["aud"] = {"Anuta"},
["auf"] = {"çhengaghyn Arauagh"},
["aug"] = {"Aguna"},
["auh"] = {"Aushi"},
["aui"] = {"Anuki"},
["auj"] = {"Awjilah"},
["auk"] = {"Heyo"},
["aul"] = {"Aulua"},
["aum"] = {"Asu (y Naigeer)"},
["aun"] = {"Molmo One"},
["auo"] = {"Auyokawa"},
["aup"] = {"Makayam"},
["auq"] = {"Anus", "Korur"},
["aur"] = {"Aruek"},
["aus"] = {"çhengaghyn Austrailagh"},
["aut"] = {"Austral"},
["auu"] = {"Auye"},
["auw"] = {"Awyi"},
["aux"] = {"Aurá"},
["auy"] = {"Awiyaana"},
["auz"] = {"Arabish Oosbeckagh"},
["avb"] = {"Avau"},
["avd"] = {"Alviri-Vidari"},
["avi"] = {"Avikam"},
["avk"] = {"Kotava"},
["avl"] = {"Arabish Bedawi Egyptagh Hiar"},
["avm"] = {"Angkamuthi"},
["avn"] = {"Avatime"},
["avo"] = {"Agavotaguerra"},
["avs"] = {"Aushiri"},
["avt"] = {"Au"},
["avu"] = {"Avokaya"},
["avv"] = {"Avá-Canoeiro"},
["awa"] = {"Awadhi"},
["awb"] = {"Awa (Papooey Guinea Noa)"},
["awc"] = {"Cicipu"},
["awd"] = {"çhengaghyn Arawakagh"},
["awe"] = {"Awetí"},
["awg"] = {"Anguthimri"},
["awh"] = {"Awbono"},
["awi"] = {"Aekyom"},
["awk"] = {"Awabakal"},
["awm"] = {"Arawum"},
["awn"] = {"Awngi"},
["awo"] = {"Awak"},
["awr"] = {"Awera"},
["aws"] = {"Awyu Yiass"},
["awt"] = {"Araweté"},
["awu"] = {"Awyu Meanagh"},
["awv"] = {"Jair Awyu"},
["aww"] = {"Awun"},
["awx"] = {"Awara"},
["awy"] = {"Edera Awyu"},
["axb"] = {"Abipon"},
["axe"] = {"Ayerrerenge"},
["axg"] = {"Mato Grosso Arára"},
["axk"] = {"Yaka (Pobblaght yn Affrick Veanagh)"},
["axl"] = {"Arandish Yiass Injil"},
["axm"] = {"Armeanish Veanagh"},
["axx"] = {"Xârâgurè"},
["aya"] = {"Awar"},
["ayb"] = {"Ayizo Gbe"},
["ayc"] = {"Aymarish Yiass"},
["ayd"] = {"Ayabadhu"},
["aye"] = {"Ayere"},
["ayg"] = {"Ginyanga"},
["ayh"] = {"Arabish Hadram"},
["ayi"] = {"Leyigha"},
["ayk"] = {"Akuku"},
["ayl"] = {"Arabish Leebagh"},
["ayn"] = {"Arabish Sanaanagh"},
["ayo"] = {"Ayoreo"},
["ayp"] = {"Arabish Vesopotaamagh Hwoaie"},
["ayq"] = {"Ayi (Papooey Guinea Noa)"},
["ayr"] = {"Aymarish Veanagh"},
["ays"] = {"Sorsogon Ayta"},
["ayt"] = {"Magbukun Ayta"},
["ayu"] = {"Ayu"},
["ayz"] = {"Mai Brat"},
["aza"] = {"Azha"},
["azb"] = {"Asserbajaanish Yiass"},
["azc"] = {"çhengaghyn Uto-Asteckagh"},
["azd"] = {"Nahuatl Durango Hiar"},
["azg"] = {"San Pedro Amuzgos Amuzgo"},
["azj"] = {"Asserbajaanish Hwoaie"},
["azm"] = {"Ipalapa Amuzgo"},
["azn"] = {"Nahuatl Durango Heear"},
["azo"] = {"Awing"},
["azt"] = {"Faire Atta"},
["azz"] = {"Nahuatl Puebla Sleitoil"},
["baa"] = {"Babatana"},
["bab"] = {"Bainouk-Gunyuño"},
["bac"] = {"Badui"},
["bad"] = {"çhengaghyn Banda"},
["bae"] = {"Baré"},
["baf"] = {"Nubaca"},
["bag"] = {"Tuki"},
["bah"] = {"Creeole Baarle ny Bahamaghyn"},
["bai"] = {"çhengaghyn Bamileke"},
["baj"] = {"Barakai"},
["bal"] = {"Balooçhish"},
["ban"] = {"Balinish"},
["bao"] = {"Waimaha"},
["bap"] = {"Bantawa"},
["bar"] = {"Baveyrish"},
["bas"] = {"Basa (Cameroon)"},
["bat"] = {"çhengaghyn Baltagh"},
["bau"] = {"Bada (y Naigeer)"},
["bav"] = {"Vengo"},
["baw"] = {"Bambili-Bambui"},
["bax"] = {"Bamun"},
["bay"] = {"Batuley"},
["bba"] = {"Baatonum"},
["bbb"] = {"Barai"},
["bbc"] = {"Batak Toba"},
["bbd"] = {"Bau"},
["bbe"] = {"Bangba"},
["bbf"] = {"Baibai"},
["bbg"] = {"Barama"},
["bbh"] = {"Bugan"},
["bbi"] = {"Barombi"},
["bbj"] = {"Ghomálá'"},
["bbk"] = {"Babanki"},
["bbl"] = {"Bats"},
["bbm"] = {"Babango"},
["bbn"] = {"Uneapa"},
["bbo"] = {"Bobo Madaré Hwoaie", "Konabéré"},
["bbp"] = {"Banda Veanagh Heear"},
["bbq"] = {"Bamali"},
["bbr"] = {"Girawa"},
["bbs"] = {"Bakpinka"},
["bbt"] = {"Mburku"},
["bbu"] = {"Kulung (y Naigeer)"},
["bbv"] = {"Karnai"},
["bbw"] = {"Baba"},
["bbx"] = {"Bubia"},
["bby"] = {"Befang"},
["bca"] = {"Bai Meanagh"},
["bcb"] = {"Bainouk-Samik"},
["bcc"] = {"Balooçhish Yiass"},
["bcd"] = {"Babar Hwoaie"},
["bce"] = {"Bamenyam"},
["bcf"] = {"Bamu"},
["bcg"] = {"Baga Pokur"},
["bch"] = {"Bariai"},
["bci"] = {"Baoulé"},
["bcj"] = {"Bardi"},
["bck"] = {"Bunuba"},
["bcl"] = {"Bikolish Veanagh"},
["bcm"] = {"Bannoni"},
["bcn"] = {"Bali (y Naigeer)"},
["bco"] = {"Kaluli"},
["bcp"] = {"Bali (Pobblaght Gheynlagh y Chongo)"},
["bcq"] = {"Bench"},
["bcr"] = {"Babine"},
["bcs"] = {"Kohumono"},
["bct"] = {"Bendi"},
["bcu"] = {"Awad Bing"},
["bcv"] = {"Shoo-Minda-Nye"},
["bcw"] = {"Bana"},
["bcy"] = {"Bacama"},
["bcz"] = {"Bainouk-Gunyaamolo"},
["bda"] = {"Bayot"},
["bdb"] = {"Basap"},
["bdc"] = {"Emberá-Baudó"},
["bdd"] = {"Bunama"},
["bde"] = {"Bade"},
["bdf"] = {"Biage"},
["bdg"] = {"Bonggi"},
["bdh"] = {"Baka (y Toodaan Yiass)"},
["bdi"] = {"Burun"},
["bdj"] = {"Bai (y Toodaan Yiass)", "Bai"},
["bdk"] = {"Budukh"},
["bdl"] = {"Bajau Indoneeshagh"},
["bdm"] = {"Buduma"},
["bdn"] = {"Baldemu"},
["bdo"] = {"Morom"},
["bdp"] = {"Bende"},
["bdq"] = {"Bahnar"},
["bdr"] = {"Bajau y Choose Heear"},
["bds"] = {"Burunge"},
["bdt"] = {"Bokoto"},
["bdu"] = {"Oroko"},
["bdv"] = {"Bodo Parja"},
["bdw"] = {"Baham"},
["bdx"] = {"Budong-Budong"},
["bdy"] = {"Bandjalang"},
["bdz"] = {"Badeshi"},
["bea"] = {"Beaver"},
["beb"] = {"Bebele"},
["bec"] = {"Iceve-Maci"},
["bed"] = {"Bedoanas"},
["bee"] = {"Byangsi"},
["bef"] = {"Benabena"},
["beg"] = {"Belait"},
["beh"] = {"Biali"},
["bei"] = {"Bekati'"},
["bej"] = {"Beja", "Bedawiyet"},
["bek"] = {"Bebeli"},
["bem"] = {"Bemba (y Tambia)"},
["beo"] = {"Beami"},
["bep"] = {"Besoa"},
["beq"] = {"Beembe"},
["ber"] = {"çhengaghyn Berberagh"},
["bes"] = {"Besme"},
["bet"] = {"Guiberoua Béte"},
["beu"] = {"Blagar"},
["bev"] = {"Daloa Bété"},
["bew"] = {"Betawi"},
["bex"] = {"Jur Modo"},
["bey"] = {"Beli (Papooey Guinea Noa)"},
["bez"] = {"Bena (Tanzania)"},
["bfa"] = {"Bari"},
["bfb"] = {"Pauri Bareli"},
["bfc"] = {"Panyi Bai", "Bai Hwoaie"},
["bfd"] = {"Bafut"},
["bfe"] = {"Betaf", "Tena"},
["bff"] = {"Bofi"},
["bfg"] = {"Busang Kayan"},
["bfh"] = {"Blafe"},
["bfi"] = {"Çhengey Chowree Ghoaldagh"},
["bfj"] = {"Bafanji"},
["bfk"] = {"Çhengey Chowree Ban Khor"},
["bfl"] = {"Banda-Ndélé"},
["bfm"] = {"Mmen"},
["bfn"] = {"Bunak"},
["bfo"] = {"Malba Birifor"},
["bfp"] = {"Beba"},
["bfq"] = {"Badaga"},
["bfr"] = {"Bazigar"},
["bfs"] = {"Bai Yiass"},
["bft"] = {"Balti"},
["bfu"] = {"Gahri"},
["bfw"] = {"Bondo"},
["bfx"] = {"Bantayanon"},
["bfy"] = {"Bagheli"},
["bfz"] = {"Mahasu Pahari"},
["bga"] = {"Gwamhi-Wuri"},
["bgb"] = {"Bobongko"},
["bgc"] = {"Haryanvi"},
["bgd"] = {"Rathwi Bareli"},
["bge"] = {"Bauria"},
["bgf"] = {"Bangandu"},
["bgg"] = {"Bugun"},
["bgi"] = {"Giangan"},
["bgj"] = {"Bangolan"},
["bgk"] = {"Bit", "Buxinhua"},
["bgl"] = {"Bo (y Laos)"},
["bgn"] = {"Balooçhish"},
["bgo"] = {"Baga Koga"},
["bgp"] = {"Balooçhish Hiar"},
["bgq"] = {"Bagri"},
["bgr"] = {"Bawm Chin"},
["bgs"] = {"Tagabawa"},
["bgt"] = {"Bughotu"},
["bgu"] = {"Mbongno"},
["bgv"] = {"Warkay-Bipim"},
["bgw"] = {"Bhatri"},
["bgx"] = {"Turkish Ghaugaussagh Balkanagh"},
["bgy"] = {"Benggoi"},
["bgz"] = {"Banggai"},
["bha"] = {"Bharia"},
["bhb"] = {"Bhili"},
["bhc"] = {"Biga"},
["bhd"] = {"Bhadrawahi"},
["bhe"] = {"Bhaya"},
["bhf"] = {"Odiai"},
["bhg"] = {"Binandere"},
["bhh"] = {"Bukharic"},
["bhi"] = {"Bhilali"},
["bhj"] = {"Bahing"},
["bhl"] = {"Bimin"},
["bhm"] = {"Bathari"},
["bhn"] = {"Noa-Aramaaish Bohtan"},
["bho"] = {"Bhojpuri"},
["bhp"] = {"Bima"},
["bhq"] = {"Tukang Besi South"},
["bhr"] = {"Bara Malagasy"},
["bhs"] = {"Buwal"},
["bht"] = {"Bhattiyali"},
["bhu"] = {"Bhunjia"},
["bhv"] = {"Bahau"},
["bhw"] = {"Biak"},
["bhx"] = {"Bhalay"},
["bhy"] = {"Bhele"},
["bhz"] = {"Bada (yn Indoneesh)"},
["bia"] = {"Badimaya"},
["bib"] = {"Bissa", "Bisa"},
["bid"] = {"Bidiyo"},
["bie"] = {"Bepour"},
["bif"] = {"Biafada"},
["big"] = {"Biangai"},
["bik"] = {"Bikol"},
["bil"] = {"Bile"},
["bim"] = {"Bimoba"},
["bin"] = {"Bini", "Edo"},
["bio"] = {"Nai"},
["bip"] = {"Bila"},
["biq"] = {"Bipi"},
["bir"] = {"Bisorio"},
["bit"] = {"Berinomo"},
["biu"] = {"Biete"},
["biv"] = {"Birifor Yiass"},
["biw"] = {"Kol (Cameroon)"},
["bix"] = {"Bijori"},
["biy"] = {"Birhor"},
["biz"] = {"Baloi"},
["bja"] = {"Budza"},
["bjb"] = {"Banggarla"},
["bjc"] = {"Bariji"},
["bje"] = {"Biao-Jiao Mien"},
["bjf"] = {"Barzani Jewish Neo-Aramaic"},
["bjg"] = {"Bidyogo"},
["bjh"] = {"Bahinemo"},
["bji"] = {"Burji"},
["bjj"] = {"Kanauji"},
["bjk"] = {"Barok"},
["bjl"] = {"Bulu (Papooey Guinea Noa)"},
["bjm"] = {"Bajelani"},
["bjn"] = {"Banjar"},
["bjo"] = {"Banda Jiass Veanagh"},
["bjp"] = {"Fanamaket"},
["bjr"] = {"Binumarien"},
["bjs"] = {"Bajan"},
["bjt"] = {"Balanta-Ganja"},
["bju"] = {"Busuu"},
["bjv"] = {"Bedjond"},
["bjw"] = {"Bakwé"},
["bjx"] = {"Banao Itneg"},
["bjy"] = {"Bayali"},
["bjz"] = {"Baruga"},
["bka"] = {"Kyak"},
["bkc"] = {"Baka (Cameroon)"},
["bkd"] = {"Binukid", "Talaandig"},
["bkf"] = {"Beeke"},
["bkg"] = {"Buraka"},
["bkh"] = {"Bakoko"},
["bki"] = {"Baki"},
["bkj"] = {"Pande"},
["bkk"] = {"Brokskat"},
["bkl"] = {"Berik"},
["bkm"] = {"Kom (Cameroon)"},
["bkn"] = {"Bukitan"},
["bko"] = {"Kwa'"},
["bkp"] = {"Boko (Pobblaght Gheynlagh y Chongo)"},
["bkq"] = {"Bakairí"},
["bkr"] = {"Bakumpai"},
["bks"] = {"Sorsoganon Hwoaie"},
["bkt"] = {"Boloki"},
["bku"] = {"Buhid"},
["bkv"] = {"Bekwarra"},
["bkw"] = {"Bekwel"},
["bkx"] = {"Baikeno"},
["bky"] = {"Bokyi"},
["bkz"] = {"Bungku"},
["bla"] = {"Siksika"},
["blb"] = {"Bilua"},
["blc"] = {"Bella Coola"},
["bld"] = {"Bolango"},
["ble"] = {"Balanta-Kentohe"},
["blf"] = {"Buol"},
["blh"] = {"Kuwaa"},
["bli"] = {"Bolia"},
["blj"] = {"Bolongan"},
["blk"] = {"Pa'o Karen", "Pa'O"},
["bll"] = {"Biloxi"},
["blm"] = {"Beli (y Toodaan Yiass)"},
["bln"] = {"Bikol Catanduanes Yiass"},
["blo"] = {"Anii"},
["blp"] = {"Blablanga"},
["blq"] = {"Baluan-Pam"},
["blr"] = {"Blang"},
["bls"] = {"Balaesang"},
["blt"] = {"Tai Dam"},
["blv"] = {"Kibala", "Bolo"},
["blw"] = {"Balangao"},
["blx"] = {"Mag-Indi Ayta"},
["bly"] = {"Notre"},
["blz"] = {"Balantak"},
["bma"] = {"Lame"},
["bmb"] = {"Bembe"},
["bmc"] = {"Biem"},
["bmd"] = {"Baga Manduri"},
["bme"] = {"Limassa"},
["bmf"] = {"Bom-Kim"},
["bmg"] = {"Bamwe"},
["bmh"] = {"Kein"},
["bmi"] = {"Bagirmi"},
["bmj"] = {"Bote-Majhi"},
["bmk"] = {"Ghayavi"},
["bml"] = {"Bomboli"},
["bmm"] = {"Malagasish Betsimisaraka Hwoaie"},
["bmn"] = {"Bina (Papooey Guinea Noa)"},
["bmo"] = {"Bambalang"},
["bmp"] = {"Bulgebi"},
["bmq"] = {"Bomu"},
["bmr"] = {"Muinane"},
["bms"] = {"Bilma Kanuri"},
["bmt"] = {"Biao Mon"},
["bmu"] = {"Somba-Siawari"},
["bmv"] = {"Bum"},
["bmw"] = {"Bomwali"},
["bmx"] = {"Baimak"},
["bmz"] = {"Baramu"},
["bna"] = {"Bonerate"},
["bnb"] = {"Bookan"},
["bnc"] = {"Bontok"},
["bnd"] = {"Banda (yn Indoneesh)"},
["bne"] = {"Bintauna"},
["bnf"] = {"Masiwang"},
["bng"] = {"Benga"},
["bni"] = {"Bangi"},
["bnj"] = {"Tawbuid Hiar"},
["bnk"] = {"Bierebo"},
["bnl"] = {"Boon"},
["bnm"] = {"Batanga"},
["bnn"] = {"Bunun"},
["bno"] = {"Bantoanon"},
["bnp"] = {"Bola"},
["bnq"] = {"Bantik"},
["bnr"] = {"Butmas-Tur"},
["bns"] = {"Bundeli"},
["bnt"] = {"çhengaghyn Bantu"},
["bnu"] = {"Bentong"},
["bnv"] = {"Bonerif", "Beneraf", "Edwas"},
["bnw"] = {"Bisis"},
["bnx"] = {"Bangubangu"},
["bny"] = {"Bintulu"},
["bnz"] = {"Beezen"},
["boa"] = {"Bora"},
["bob"] = {"Aweer"},
["boe"] = {"Mundabli"},
["bof"] = {"Bolon"},
["bog"] = {"Çhengey Chowree Bamako"},
["boh"] = {"Boma"},
["boi"] = {"Barbareño"},
["boj"] = {"Anjam"},
["bok"] = {"Bonjo"},
["bol"] = {"Bole"},
["bom"] = {"Berom"},
["bon"] = {"Bine"},
["boo"] = {"Tiemacèwè Bozo"},
["bop"] = {"Bonkiman"},
["boq"] = {"Bogaya"},
["bor"] = {"Borôro"},
["bot"] = {"Bongo"},
["bou"] = {"Bondei"},
["bov"] = {"Tuwuli"},
["bow"] = {"Rema"},
["box"] = {"Buamu"},
["boy"] = {"Bodo (Pobblaght yn Affrick Veanagh)"},
["boz"] = {"Tiéyaxo Bozo"},
["bpa"] = {"Daakaka"},
["bpc"] = {"Mbuk"},
["bpd"] = {"Banda-Banda"},
["bpe"] = {"Bauni"},
["bpg"] = {"Bonggo"},
["bph"] = {"Botlikh"},
["bpi"] = {"Bagupi"},
["bpj"] = {"Binji"},
["bpk"] = {"Orowe", "'Ôrôê"},
["bpl"] = {"Broome Pearling Lugger Pidgin"},
["bpm"] = {"Biyom"},
["bpn"] = {"Dzao Min"},
["bpo"] = {"Anasi"},
["bpp"] = {"Kaure"},
["bpq"] = {"Malayish Banda"},
["bpr"] = {"Koronadal Blaan"},
["bps"] = {"Sarangani Blaan"},
["bpt"] = {"Barrow Point"},
["bpu"] = {"Bongu"},
["bpv"] = {"Bian Marind"},
["bpw"] = {"Bo (Papooey Guinea Noa)"},
["bpx"] = {"Palya Bareli"},
["bpy"] = {"Bishnupriya"},
["bpz"] = {"Bilba"},
["bqa"] = {"Tchumbuli"},
["bqb"] = {"Bagusa"},
["bqc"] = {"Boko (Benin)", "Boo"},
["bqd"] = {"Bung"},
["bqf"] = {"Baga Kaloum"},
["bqg"] = {"Bago-Kusuntu"},
["bqh"] = {"Baima"},
["bqi"] = {"Bakhtiari"},
["bqj"] = {"Bandial"},
["bqk"] = {"Banda-Mbrès"},
["bql"] = {"Bilakura"},
["bqm"] = {"Wumboko"},
["bqn"] = {"Çhengey Chowree Vulgeyragh"},
["bqo"] = {"Balo"},
["bqp"] = {"Busa"},
["bqq"] = {"Biritai"},
["bqr"] = {"Burusu"},
["bqs"] = {"Bosngun"},
["bqt"] = {"Bamukumbit"},
["bqu"] = {"Boguru"},
["bqv"] = {"Koro Wachi", "Begbere-Ejar"},
["bqw"] = {"Buru (y Naigeer)"},
["bqx"] = {"Baangi"},
["bqy"] = {"Çhengey Chowree Bengkala"},
["bqz"] = {"Bakaka"},
["bra"] = {"Braj"},
["brb"] = {"Brao", "Lave"},
["brc"] = {"Creeole Ollanish Berbice"},
["brd"] = {"Baraamu"},
["brf"] = {"Bira"},
["brg"] = {"Baure"},
["brh"] = {"Brahui"},
["bri"] = {"Mokpwe"},
["brj"] = {"Bieria"},
["brk"] = {"Birked"},
["brl"] = {"Birwa"},
["brm"] = {"Barambu"},
["brn"] = {"Boruca"},
["bro"] = {"Brokkat"},
["brp"] = {"Barapasi"},
["brq"] = {"Breri"},
["brr"] = {"Birao"},
["brs"] = {"Baras"},
["brt"] = {"Bitare"},
["bru"] = {"Bru Hiar"},
["brv"] = {"Bru Heear"},
["brw"] = {"Bellari"},
["brx"] = {"Bodo (yn Injey)"},
["bry"] = {"Burui"},
["brz"] = {"Bilbil"},
["bsa"] = {"Abinomn"},
["bsb"] = {"Brunei Bisaya"},
["bsc"] = {"Bassari", "Oniyan"},
["bse"] = {"Wushi"},
["bsf"] = {"Bauchi"},
["bsg"] = {"Bashkardish"},
["bsh"] = {"Kati"},
["bsi"] = {"Bassossi"},
["bsj"] = {"Bangwinji"},
["bsk"] = {"Burushaski"},
["bsl"] = {"Basa-Gumna"},
["bsm"] = {"Busami"},
["bsn"] = {"Barasana-Eduria"},
["bso"] = {"Buso"},
["bsp"] = {"Baga Sitemu"},
["bsq"] = {"Bassa"},
["bsr"] = {"Bassa-Kontagora"},
["bss"] = {"Akoose"},
["bst"] = {"Basketo"},
["bsu"] = {"Bahonsuai"},
["bsv"] = {"Baga Sobané"},
["bsw"] = {"Baiso"},
["bsx"] = {"Yangkam"},
["bsy"] = {"Sabah Bisaya"},
["bta"] = {"Bata"},
["btc"] = {"Bati (Cameroon)"},
["btd"] = {"Batak Dairi"},
["bte"] = {"Gamo-Ningi"},
["btf"] = {"Birgit"},
["btg"] = {"Gagnoa Bété"},
["bth"] = {"Biatah Bidayuh"},
["bti"] = {"Burate"},
["btj"] = {"Malayish Vacanagh"},
["btk"] = {"çhengaghyn Batak"},
["btm"] = {"Batak Mandailing"},
["btn"] = {"Ratagnon"},
["bto"] = {"Rinconada Bikol"},
["btp"] = {"Budibud"},
["btq"] = {"Batek"},
["btr"] = {"Baetora"},
["bts"] = {"Batak Simalungun"},
["btt"] = {"Bete-Bendi"},
["btu"] = {"Batu"},
["btv"] = {"Bateri"},
["btw"] = {"Butuanon"},
["btx"] = {"Batak Karo"},
["bty"] = {"Bobot"},
["btz"] = {"Batak Alas-Kluet"},
["bua"] = {"Buryatish"},
["bub"] = {"Bua"},
["buc"] = {"Bushi"},
["bud"] = {"Ntcham"},
["bue"] = {"Beothuk"},
["buf"] = {"Bushoong"},
["bug"] = {"Buginish"},
["buh"] = {"Younuo Bunu"},
["bui"] = {"Bongili"},
["buj"] = {"Basa-Gurmana"},
["buk"] = {"Bugawac"},
["bum"] = {"Bulu (Cameroon)"},
["bun"] = {"Sherbro"},
["buo"] = {"Terei"},
["bup"] = {"Busoa"},
["buq"] = {"Brem"},
["bus"] = {"Bokobaru"},
["but"] = {"Bungain"},
["buu"] = {"Budu"},
["buv"] = {"Bun"},
["buw"] = {"Bubi"},
["bux"] = {"Boghom"},
["buy"] = {"Bullom So"},
["buz"] = {"Bukwen"},
["bva"] = {"Barein"},
["bvb"] = {"Bube"},
["bvc"] = {"Baelelea"},
["bvd"] = {"Baeggu"},
["bve"] = {"Malayish Berau"},
["bvf"] = {"Boor"},
["bvg"] = {"Bonkeng"},
["bvh"] = {"Bure"},
["bvi"] = {"Belanda Viri"},
["bvj"] = {"Baan"},
["bvk"] = {"Bukat"},
["bvl"] = {"Çh Chowree Voliviagh"},
["bvm"] = {"Bamunka"},
["bvn"] = {"Buna"},
["bvo"] = {"Bolgo"},
["bvp"] = {"Bumang"},
["bvq"] = {"Birri"},
["bvr"] = {"Burarra"},
["bvt"] = {"Bati (yn Indoneesh)"},
["bvu"] = {"Malayish Bukit"},
["bvv"] = {"Baniva"},
["bvw"] = {"Boga"},
["bvx"] = {"Dibole"},
["bvy"] = {"Baybayanon"},
["bvz"] = {"Bauzi"},
["bwa"] = {"Bwatoo"},
["bwb"] = {"Namosi-Naitasiri-Serua"},
["bwc"] = {"Bwile"},
["bwd"] = {"Bwaidoka"},
["bwe"] = {"Bwe Karen"},
["bwf"] = {"Boselewa"},
["bwg"] = {"Barwe"},
["bwh"] = {"Bishuo"},
["bwi"] = {"Baniwa"},
["bwj"] = {"Láá Láá Bwamu"},
["bwk"] = {"Bauwaki"},
["bwl"] = {"Bwela"},
["bwm"] = {"Biwat"},
["bwn"] = {"Wunai Bunu"},
["bwo"] = {"Boro (yn Eetoip)", "Borna (yn Eetoip)"},
["bwp"] = {"Mandobo Bawah"},
["bwq"] = {"Bobo Madaré Yiass"},
["bwr"] = {"Bura-Pabir"},
["bws"] = {"Bomboma"},
["bwt"] = {"Bafaw-Balong"},
["bwu"] = {"Buli (y Ghaney)"},
["bww"] = {"Bwa"},
["bwx"] = {"Bu-Nao Bunu"},
["bwy"] = {"Cwi Bwamu"},
["bwz"] = {"Bwisi"},
["bxa"] = {"Tairaha"},
["bxb"] = {"Belanda Bor"},
["bxc"] = {"Molengue"},
["bxd"] = {"Pela"},
["bxe"] = {"Birale"},
["bxf"] = {"Bilur", "Minigir"},
["bxg"] = {"Bangala"},
["bxh"] = {"Buhutu"},
["bxi"] = {"Pirlatapa"},
["bxj"] = {"Bayungu"},
["bxk"] = {"Bukusu", "Lubukusu"},
["bxl"] = {"Jalkunan"},
["bxm"] = {"Buryatish Vongoilagh"},
["bxn"] = {"Burduna"},
["bxo"] = {"Barikanchi"},
["bxp"] = {"Bebil"},
["bxq"] = {"Beele"},
["bxr"] = {"Buryatish Rooshagh"},
["bxs"] = {"Busam"},
["bxu"] = {"Buryatish Heenagh"},
["bxv"] = {"Berakou"},
["bxw"] = {"Bankagooma"},
["bxz"] = {"Binahari"},
["bya"] = {"Batak"},
["byb"] = {"Bikya"},
["byc"] = {"Ubaghara"},
["byd"] = {"Benyadu'"},
["bye"] = {"Pouye"},
["byf"] = {"Bete"},
["byg"] = {"Baygo"},
["byh"] = {"Bhujel"},
["byi"] = {"Buyu"},
["byj"] = {"Bina (y Naigeer)"},
["byk"] = {"Biao"},
["byl"] = {"Bayono"},
["bym"] = {"Bidjara"},
["byn"] = {"Bilin", "Blin"},
["byo"] = {"Biyo"},
["byp"] = {"Bumaji"},
["byq"] = {"Basay"},
["byr"] = {"Baruya", "Yipma"},
["bys"] = {"Burak"},
["byt"] = {"Berti"},
["byv"] = {"Medumba"},
["byw"] = {"Belhariya"},
["byx"] = {"Qaqet"},
["byz"] = {"Banaro"},
["bza"] = {"Bandi"},
["bzb"] = {"Andio"},
["bzc"] = {"Malagasish Betsimisaraka Yiass"},
["bzd"] = {"Bribri"},
["bze"] = {"Jenaama Bozo"},
["bzf"] = {"Boikin"},
["bzg"] = {"Babuza"},
["bzh"] = {"Mapos Buang"},
["bzi"] = {"Bisu"},
["bzj"] = {"Creeole Baarle Beleeshagh"},
["bzk"] = {"Creeole Baarle Nickeraagagh"},
["bzl"] = {"Boano (Sulawesi)"},
["bzm"] = {"Bolondo"},
["bzn"] = {"Boano (Maluku)"},
["bzo"] = {"Bozaba"},
["bzp"] = {"Kemberano"},
["bzq"] = {"Buli (yn Indoneesh)"},
["bzr"] = {"Biri"},
["bzs"] = {"Çhengey Chowree Vrasseelagh"},
["bzt"] = {"Brithenig"},
["bzu"] = {"Burmeso"},
["bzv"] = {"Naami"},
["bzw"] = {"Basa (y Naigeer)"},
["bzx"] = {"Kɛlɛngaxo Bozo"},
["bzy"] = {"Obanliku"},
["bzz"] = {"Evant"},
["caa"] = {"Chortí"},
["cab"] = {"Garifunish"},
["cac"] = {"Chuj"},
["cad"] = {"Caddo"},
["cae"] = {"Lehar", "Laalaa"},
["caf"] = {"Carrier Yiass"},
["cag"] = {"Nivaclé"},
["cah"] = {"Cahuarano"},
["cai"] = {"çhengaghyn Injinagh Americaanagh Meanagh"},
["caj"] = {"Chané"},
["cak"] = {"Kaqchikel", "Cakchiquel"},
["cal"] = {"Carolinish"},
["cam"] = {"Cemuhî"},
["can"] = {"Chambri"},
["cao"] = {"Chácobo"},
["cap"] = {"Chipaya"},
["caq"] = {"Car Nicobarese"},
["car"] = {"Caribish Galibi"},
["cas"] = {"Tsimané"},
["cau"] = {"çhengaghyn Coagaashagh"},
["cav"] = {"Cavineña"},
["caw"] = {"Callawalla"},
["cax"] = {"Chiquitano"},
["cay"] = {"Cayuga"},
["caz"] = {"Canichana"},
["cba"] = {"çhengaghyn Çhibçhagh"},
["cbb"] = {"Cabiyarí"},
["cbc"] = {"Carapana"},
["cbd"] = {"Carijona"},
["cbg"] = {"Chimila"},
["cbi"] = {"Chachi"},
["cbj"] = {"Ede Cabe"},
["cbk"] = {"Chavacano"},
["cbl"] = {"Bualkhaw Chin"},
["cbn"] = {"Nyahkur"},
["cbo"] = {"Izora"},
["cbq"] = {"Tsucuba", "Cuba"},
["cbr"] = {"Cashibo-Cacataibo"},
["cbs"] = {"Cashinahua"},
["cbt"] = {"Chayahuita"},
["cbu"] = {"Candoshi-Shapra"},
["cbv"] = {"Cacua"},
["cbw"] = {"Kinabalish"},
["cby"] = {"Carabayo"},
["ccc"] = {"Chamicuro"},
["ccd"] = {"Creeole Cafundo"},
["cce"] = {"Chopi"},
["ccg"] = {"Samba Daka"},
["cch"] = {"Atsam"},
["ccj"] = {"Kasanga"},
["ccl"] = {"Cutchi-Swahili"},
["ccm"] = {"Creeole Malayish Malacca"},
["ccn"] = {"çhengaghyn Coagaashagh Hwoaie"},
["cco"] = {"Comaltepec Chinantec"},
["ccp"] = {"Chakma"},
["ccr"] = {"Cacaopera"},
["ccs"] = {"çhengaghyn Coagaashagh Yiass"},
["cda"] = {"Choni"},
["cdc"] = {"çhengaghyn Shadagh"},
["cdd"] = {"çhengaghyn Caddoagh"},
["cde"] = {"Chenchu"},
["cdf"] = {"Chiru"},
["cdh"] = {"Chambeali"},
["cdi"] = {"Chodri"},
["cdj"] = {"Churahi"},
["cdm"] = {"Chepang"},
["cdn"] = {"Chaudangsi"},
["cdo"] = {"Sheenish Min Dong"},
["cdr"] = {"Cinda-Regi-Tiyal"},
["cds"] = {"Çhengey Chowree Hadagh"},
["cdy"] = {"Chadong"},
["cdz"] = {"Koda"},
["cea"] = {"Chehalis Injil"},
["ceb"] = {"Cebuano"},
["ceg"] = {"Chamacoco"},
["cek"] = {"Khumi Chin Hiar"},
["cel"] = {"çhengaghyn Celtiagh"},
["cen"] = {"Cen"},
["cet"] = {"Centúúm"},
["cey"] = {"Ekai Chin"},
["cfa"] = {"Dijim-Bwilim"},
["cfd"] = {"Cara"},
["cfg"] = {"Como Karim"},
["cfm"] = {"Falam Chin"},
["cga"] = {"Changriwa"},
["cgc"] = {"Kagayanen"},
["cgg"] = {"Chiga"},
["cgk"] = {"Chocangacakha"},
["chb"] = {"Chibcha"},
["chc"] = {"Catawba"},
["chd"] = {"Chontal Oaxaca Sleitoil"},
["chf"] = {"Chontal Tabasco"},
["chg"] = {"Chagatai"},
["chh"] = {"Chinook"},
["chj"] = {"Ojitlán Chinantec"},
["chk"] = {"Chuukese"},
["chl"] = {"Cahuilla"},
["chm"] = {"Marish (y Roosh)"},
["chn"] = {"Chinookish"},
["cho"] = {"Shoctawish"},
["chp"] = {"Chipewyish", "Dene Suline"},
["chq"] = {"Chinantec Quiotepec"},
["chr"] = {"Sherokeeish"},
["cht"] = {"Cholón"},
["chw"] = {"Chuwabu"},
["chx"] = {"Chantyal"},
["chy"] = {"Cheyenne"},
["chz"] = {"Chinantec Ozumacín"},
["cia"] = {"Cia-Cia"},
["cib"] = {"Ci Gbe"},
["cic"] = {"Chickasawish"},
["cid"] = {"Chimariko"},
["cie"] = {"Cineni"},
["cih"] = {"Chinali"},
["cik"] = {"Chitkuli Kinnauri"},
["cim"] = {"Cimbrish"},
["cin"] = {"Cinta Larga"},
["cip"] = {"Chiapanec"},
["cir"] = {"Tiri", "Haméa", "Méa"},
["ciw"] = {"Chippewa"},
["ciy"] = {"Chaima"},
["cja"] = {"Chamish Heear"},
["cje"] = {"Chru"},
["cjh"] = {"Chehalis Heose"},
["cji"] = {"Chamalal"},
["cjk"] = {"Chokwe"},
["cjm"] = {"Chamish Hiar"},
["cjn"] = {"Chenapish"},
["cjo"] = {"Ashéninka Pajonal"},
["cjp"] = {"Cabécar"},
["cjs"] = {"Shor"},
["cjv"] = {"Chuave"},
["cjy"] = {"Sheenish Jinyu"},
["ckb"] = {"Kurdish Veanagh"},
["ckh"] = {"Chak"},
["ckl"] = {"Cibak"},
["ckm"] = {"Chakavish"},
["ckn"] = {"Kaang Chin"},
["cko"] = {"Anufo"},
["ckq"] = {"Kajakse"},
["ckr"] = {"Kairak"},
["cks"] = {"Tayo"},
["ckt"] = {"Shukçheeish"},
["cku"] = {"Koasati"},
["ckv"] = {"Kavalan"},
["ckx"] = {"Caka"},
["cky"] = {"Cakfem-Mushere"},
["ckz"] = {"Çhengey Vestit Cakchiquel-Quiché"},
["cla"] = {"Ron"},
["clc"] = {"Chilcotin"},
["cld"] = {"Noa-Aramaaish Haldeanagh"},
["cle"] = {"Chinantec Lealao"},
["clh"] = {"Chilisso"},
["cli"] = {"Chakali"},
["clj"] = {"Laitu Chin"},
["clk"] = {"Idu-Mishmi"},
["cll"] = {"Chala"},
["clm"] = {"Clallam"},
["clo"] = {"Chontal Oaxaca Injil"},
["clt"] = {"Lautu Chin"},
["clu"] = {"Caluyanun"},
["clw"] = {"Chulym"},
["cly"] = {"Chatino Sleitoil Hiar"},
["cma"] = {"Maa"},
["cmc"] = {"çhengaghyn Shamagh"},
["cme"] = {"Cerma"},
["cmg"] = {"Mongoilish Chlassicagh"},
["cmi"] = {"Emberá-Chamí"},
["cml"] = {"Campalagian"},
["cmm"] = {"Michigamea"},
["cmn"] = {"Sheenish Mandarin"},
["cmo"] = {"Mnong Meanagh"},
["cmr"] = {"Mro-Khimi Chin"},
["cms"] = {"Messapic"},
["cmt"] = {"Camtho"},
["cna"] = {"Changthang"},
["cnb"] = {"Chinbon Chin"},
["cnc"] = {"Côông"},
["cng"] = {"Qiang Hwoaie"},
["cnh"] = {"Hakha Chin", "Haka Chin"},
["cni"] = {"Asháninka"},
["cnk"] = {"Khumi Chin"},
["cnl"] = {"Lalana Chinantec"},
["cno"] = {"Con"},
["cnp"] = {"Sheenish Ping Hwoaie", "Pinghua Hwoaie"},
["cnq"] = {"Chung"},
["cnr"] = {"Montenegrish"},
["cns"] = {"Asmatish Veanagh"},
["cnt"] = {"Chinantec Tepetotutla"},
["cnu"] = {"Chenoua"},
["cnw"] = {"Ngawn Chin"},
["cnx"] = {"Cornish Veanagh"},
["coa"] = {"Malayish Ellanyn Cocos"},
["cob"] = {"Chicomuceltec"},
["coc"] = {"Cocopa"},
["cod"] = {"Cocama-Cocamilla"},
["coe"] = {"Koreguaje"},
["cof"] = {"Colorado"},
["cog"] = {"Chong"},
["coh"] = {"Chonyi-Dzihana-Kauma", "Chichonyi-Chidzihana-Chikauma"},
["coj"] = {"Cochimi"},
["cok"] = {"Santa Teresa Cora"},
["col"] = {"Columbia-Wenatchi"},
["com"] = {"Comançheeish"},
["con"] = {"Cofán"},
["coo"] = {"Comox"},
["cop"] = {"Coptish"},
["coq"] = {"Coquille"},
["cot"] = {"Caquinte"},
["cou"] = {"Wamey"},
["cov"] = {"Cao Miao"},
["cow"] = {"Cowlitz"},
["cox"] = {"Nanti"},
["coz"] = {"Chochotec"},
["cpa"] = {"Palantla Chinantec"},
["cpb"] = {"Ucayali-Yurúa Ashéninka"},
["cpc"] = {"Ajyíninka Apurucayali"},
["cpe"] = {"creeoleyn as baarlaghyn brisht bunnit er y Vaarle"},
["cpf"] = {"creeoleyn as baarlaghyn brisht bunnit er y Rangish"},
["cpg"] = {"Greagish Cappadocia"},
["cpi"] = {"Baarle Vrisht Heenagh"},
["cpn"] = {"Cherepon"},
["cpo"] = {"Kpeego"},
["cpp"] = {"creeoleyn as baarlaghyn brisht bunnit er y Phortiugish"},
["cps"] = {"Capiznon"},
["cpu"] = {"Pichis Ashéninka"},
["cpx"] = {"Sheenish Pu-Xian"},
["cpy"] = {"Ashéninka Ucayali Yiass"},
["cqd"] = {"Chuanqiandian Cluster Miao"},
["cra"] = {"Chara"},
["crb"] = {"Caribish Ellanagh"},
["crc"] = {"Lonwolwol"},
["crd"] = {"Coeur d'Alene"},
["crf"] = {"Caramanta"},
["crg"] = {"Michif"},
["crh"] = {"Tatarish Chrimeeagh", "Turkish Chrimeeagh"},
["cri"] = {"Sãotomense"},
["crj"] = {"Creeish Hiar Yiass"},
["crk"] = {"Creeish ny Strahyn"},
["crl"] = {"Creeish Hiar Hwoaie"},
["crm"] = {"Creeish Moose"},
["crn"] = {"El Nayar Cora"},
["cro"] = {"Crowish"},
["crp"] = {"Creeoleyn as baarlaghyn brisht"},
["crq"] = {"Iyo'wujwa Chorote"},
["crr"] = {"Algonquiagh Carolina"},
["crs"] = {"Creeole Frangish Seselwa"},
["crt"] = {"Iyojwa'ja Chorote"},
["crv"] = {"Chaura"},
["crw"] = {"Chrau"},
["crx"] = {"Carrier"},
["cry"] = {"Cori"},
["crz"] = {"Cruzeño"},
["csa"] = {"Chinantec Chiltepec"},
["csb"] = {"Kashoobish"},
["csc"] = {"Çhengey Chowree Chataloanagh", "Lengua de señas catalana", "Llengua de Signes Catalana"},
["csd"] = {"Çhengey Chowree Chiangmai"},
["cse"] = {"Çhengey Chowree Heckagh"},
["csf"] = {"Çhengey Chowree Choobagh"},
["csg"] = {"Çhengey Chowree Hilleeagh"},
["csh"] = {"Chin Asho"},
["csi"] = {"Miwok Coose"},
["csj"] = {"Chin Songlai"},
["csk"] = {"Jola-Kasa"},
["csl"] = {"Çhengey Chowree Heenagh"},
["csm"] = {"Miwokish Sierra Veanagh"},
["csn"] = {"Çhengey Chowree Cholombagh"},
["cso"] = {"Chinantec Sochiapam", "Chinantec Sochiapan"},
["csp"] = {"Sheenish Pink Yiass", "Pinghua Yiass"},
["csq"] = {"Çhengey Chowree Chruaatagh"},
["csr"] = {"Çhengey Chowree Choose-verçhagh"},
["css"] = {"Ohlone Yiass"},
["cst"] = {"Ohlone Hwoaie"},
["csu"] = {"çhengaghyn Soodaanagh Meanagh"},
["csv"] = {"Chin Sumtu"},
["csw"] = {"Creeish Ushlagh"},
["csx"] = {"Çhengey Chowree Chamboydagh"},
["csy"] = {"Siyin Chin"},
["csz"] = {"Coos"},
["cta"] = {"Tataltepec Chatino"},
["ctc"] = {"Chetco"},
["ctd"] = {"Chin Tedim"},
["cte"] = {"Chinantec Tepinapa"},
["ctg"] = {"Chittagonish"},
["cth"] = {"Chin Thaiphum"},
["ctl"] = {"Chinantec Tlacoatzintepec"},
["ctm"] = {"Chitimacha"},
["ctn"] = {"Chhintange"},
["cto"] = {"Emberá-Catío"},
["ctp"] = {"Chatino Sleitoil Heear"},
["cts"] = {"Bikol Catanduanes Heear"},
["ctt"] = {"Wayanad Chetti"},
["ctu"] = {"Chol"},
["cty"] = {"Moundadan Chetty"},
["ctz"] = {"Chatino Zacatepec"},
["cua"] = {"Cua"},
["cub"] = {"Cubeo"},
["cuc"] = {"Usila Chinantec"},
["cuh"] = {"Chuka", "Gichuka"},
["cui"] = {"Cuiba"},
["cuj"] = {"Mashco Piro"},
["cuk"] = {"San Blas Kuna"},
["cul"] = {"Culina", "Kulina"},
["cuo"] = {"Cumanagoto"},
["cup"] = {"Cupeño"},
["cuq"] = {"Cun"},
["cur"] = {"Chhulung"},
["cus"] = {"çhengaghyn Cushitagh"},
["cut"] = {"Teutila Cuicatec"},
["cuu"] = {"Tai Ya"},
["cuv"] = {"Cuvok"},
["cuw"] = {"Chukwa"},
["cux"] = {"Tepeuxila Cuicatec"},
["cuy"] = {"Cuitlatec"},
["cvg"] = {"Chug"},
["cvn"] = {"Valle Nacional Chinantec"},
["cwa"] = {"Kabwa"},
["cwb"] = {"Maindo"},
["cwd"] = {"Creeish ny Keylljyn"},
["cwe"] = {"Kwere"},
["cwg"] = {"Chewong", "Cheq Wong"},
["cwt"] = {"Kuwaataay"},
["cxh"] = {"Cha'ari"},
["cya"] = {"Nopala Chatino"},
["cyb"] = {"Cayubaba"},
["cyo"] = {"Cuyonon"},
["czh"] = {"Sheenish Huizhou"},
["czk"] = {"Knaanic"},
["czn"] = {"Zenzontepec Chatino"},
["czo"] = {"Sheenish Min Zhong"},
["czt"] = {"Zotung Chin"},
["daa"] = {"Dangaléat"},
["dac"] = {"Dambi"},
["dad"] = {"Marik"},
["dae"] = {"Duupa"},
["dag"] = {"Dagbani"},
["dah"] = {"Gwahatike"},
["dai"] = {"Day"},
["daj"] = {"Dar Fur Daju"},
["dak"] = {"Dakota"},
["dal"] = {"Dahalo"},
["dam"] = {"Damakawa"},
["dao"] = {"Daai Chin"},
["daq"] = {"Dandami Maria"},
["dar"] = {"Dargwa"},
["das"] = {"Daho-Doo"},
["dau"] = {"Dar Sila Daju"},
["dav"] = {"Taita", "Dawida"},
["daw"] = {"Davawenyo"},
["dax"] = {"Dayi"},
["day"] = {"çhengaghyn Land Dayak"},
["daz"] = {"Dao"},
["dba"] = {"Bangime"},
["dbb"] = {"Deno"},
["dbd"] = {"Dadiya"},
["dbe"] = {"Dabe"},
["dbf"] = {"Edopi"},
["dbg"] = {"Dogul Dom Dogon"},
["dbi"] = {"Doka"},
["dbj"] = {"Ida'an"},
["dbl"] = {"Dyirbal"},
["dbm"] = {"Duguri"},
["dbn"] = {"Duriankere"},
["dbo"] = {"Dulbu"},
["dbp"] = {"Duwai"},
["dbq"] = {"Daba"},
["dbr"] = {"Dabarre"},
["dbt"] = {"Ben Tey Dogon"},
["dbu"] = {"Bondum Dom Dogon"},
["dbv"] = {"Dungu"},
["dbw"] = {"Bankan Tey Dogon"},
["dby"] = {"Dibiyaso"},
["dcc"] = {"Deccan"},
["dcr"] = {"Negerhollands"},
["dda"] = {"Dadi Dadi"},
["ddd"] = {"Dongotono"},
["dde"] = {"Doondo"},
["ddg"] = {"Fataluku"},
["ddi"] = {"West Goodenough"},
["ddj"] = {"Jaru"},
["ddn"] = {"Dendi (Benin)"},
["ddo"] = {"Dido"},
["ddr"] = {"Dhudhuroa"},
["dds"] = {"Donno So Dogon"},
["ddw"] = {"Dawera-Daweloor"},
["dec"] = {"Dagik"},
["ded"] = {"Dedua"},
["dee"] = {"Dewoin"},
["def"] = {"Dezfuli"},
["deg"] = {"Degema"},
["deh"] = {"Dehwari"},
["dei"] = {"Demisa"},
["dek"] = {"Dek"},
["del"] = {"Delaware"},
["dem"] = {"Dem"},
["den"] = {"Slavish (Athapascagh)"},
["dep"] = {"Pidgin Delaware"},
["deq"] = {"Dendi (Pobblaght yn Affrick Veanagh)"},
["der"] = {"Deori"},
["des"] = {"Desano"},
["dev"] = {"Domung"},
["dez"] = {"Dengese"},
["dga"] = {"Dagaare Yiass"},
["dgb"] = {"Bunoge Dogon"},
["dgc"] = {"Casiguran Dumagat Agta"},
["dgd"] = {"Dagaari Dioula"},
["dge"] = {"Degenan"},
["dgg"] = {"Doga"},
["dgh"] = {"Dghwede"},
["dgi"] = {"Dagara Hwoaie"},
["dgk"] = {"Dagba"},
["dgl"] = {"Andaandi", "Dongolawi"},
["dgn"] = {"Dagoman"},
["dgo"] = {"Dogri (çhengey er lheh)"},
["dgr"] = {"Dogrib", "Tłı̨chǫ"},
["dgs"] = {"Dogoso"},
["dgt"] = {"Ndra'ngith"},
["dgw"] = {"Daungwurrung"},
["dgx"] = {"Doghoro"},
["dgz"] = {"Daga"},
["dhd"] = {"Dhundari"},
["dhg"] = {"Dhangu-Djangu", "Dhangu", "Djangu"},
["dhi"] = {"Dhimal"},
["dhl"] = {"Dhalandji"},
["dhm"] = {"Zemba"},
["dhn"] = {"Dhanki"},
["dho"] = {"Dhodia"},
["dhr"] = {"Dhargari"},
["dhs"] = {"Dhaiso"},
["dhu"] = {"Dhurga"},
["dhv"] = {"Dehu", "Drehu"},
["dhw"] = {"Dhanwar (Nepaal)"},
["dhx"] = {"Dhungaloo"},
["dia"] = {"Dia"},
["dib"] = {"Dinka Yiass Veanagh"},
["dic"] = {"Lakota Dida"},
["did"] = {"Didinga"},
["dif"] = {"Dieri", "Diyari"},
["dig"] = {"Digo", "Chidigo"},
["dih"] = {"Kumiai"},
["dii"] = {"Dimbong"},
["dij"] = {"Dai"},
["dik"] = {"Dinka Heear Yiass"},
["dil"] = {"Dilling"},
["dim"] = {"Dime"},
["din"] = {"Dinka"},
["dio"] = {"Dibo"},
["dip"] = {"Dinka Hiar Yiass"},
["diq"] = {"Dimli (çhengey er lheh)"},
["dir"] = {"Dirim"},
["dis"] = {"Dimasa"},
["diu"] = {"Diriku"},
["diw"] = {"Dinka Heear Hwoaie"},
["dix"] = {"Dixon Reef"},
["diy"] = {"Diuwe"},
["diz"] = {"Ding"},
["dja"] = {"Djadjawurrung"},
["djb"] = {"Djinba"},
["djc"] = {"Dar Daju Daju"},
["djd"] = {"Djamindjung", "Ngaliwurru"},
["dje"] = {"Zarma"},
["djf"] = {"Djangun"},
["dji"] = {"Djinang"},
["djj"] = {"Djeebbana"},
["djk"] = {"Creeole Maroon Hiar", "Businenge Tongo", "Nenge"},
["djm"] = {"Jamsay Dogon"},
["djn"] = {"Jawoyn", "Djauan"},
["djo"] = {"Jangkang"},
["djr"] = {"Djambarrpuyngu"},
["dju"] = {"Kapriman"},
["djw"] = {"Djawi"},
["dka"] = {"Dakpakha"},
["dkg"] = {"Kadung"},
["dkk"] = {"Dakka"},
["dkr"] = {"Kuijau"},
["dks"] = {"Dinka Hiar Yiass"},
["dkx"] = {"Mazagway"},
["dlg"] = {"Dolgan"},
["dlk"] = {"Dahalik"},
["dlm"] = {"Dalmaatish"},
["dln"] = {"Darlong"},
["dma"] = {"Duma"},
["dmb"] = {"Mombo Dogon"},
["dmc"] = {"Gavak"},
["dmd"] = {"Madhi Madhi"},
["dme"] = {"Dugwor"},
["dmf"] = {"Medefaidrin"},
["dmg"] = {"Kinabatangan Heose"},
["dmk"] = {"Domaaki"},
["dml"] = {"Dameli"},
["dmm"] = {"Dama"},
["dmn"] = {"çhengaghyn Mande"},
["dmo"] = {"Kemedzung"},
["dmr"] = {"Damar Hiar"},
["dms"] = {"Dampelas"},
["dmu"] = {"Dubu", "Tebi"},
["dmv"] = {"Dumpas"},
["dmw"] = {"Mudburra"},
["dmx"] = {"Dema"},
["dmy"] = {"Demta", "Sowari"},
["dna"] = {"Dani yn Upper Grand Valley"},
["dnd"] = {"Daonda"},
["dne"] = {"Ndendeule"},
["dng"] = {"Dungan"},
["dni"] = {"Dani yn Lower Grand Valley"},
["dnj"] = {"Dan"},
["dnk"] = {"Dengka"},
["dnn"] = {"Dzùùngoo"},
["dno"] = {"Ndrulo", "Lendu Hwoaie"},
["dnr"] = {"Danaru"},
["dnt"] = {"Dani yn Mid Grand Valley"},
["dnu"] = {"Danau"},
["dnv"] = {"Danu"},
["dnw"] = {"Dani Heear"},
["dny"] = {"Dení"},
["doa"] = {"Dom"},
["dob"] = {"Dobu"},
["doc"] = {"Dong Hwoaie"},
["doe"] = {"Doe"},
["dof"] = {"Domu"},
["doh"] = {"Dong"},
["doi"] = {"Dogri (mooar-hengey)"},
["dok"] = {"Dondo"},
["dol"] = {"Doso"},
["don"] = {"Toura (Papooey Guinea Noa)"},
["doo"] = {"Dongo"},
["dop"] = {"Lukpa"},
["doq"] = {"Çhengey Chowree Ghominicagh"},
["dor"] = {"Dori'o"},
["dos"] = {"Dogosé"},
["dot"] = {"Dass"},
["dov"] = {"Dombe"},
["dow"] = {"Doyayo"},
["dox"] = {"Bussa"},
["doy"] = {"Dompo"},
["doz"] = {"Dorze"},
["dpp"] = {"Papar"},
["dra"] = {"çhengaghyn Dravidagh"},
["drb"] = {"Dair"},
["drc"] = {"Minderico"},
["drd"] = {"Darmiya"},
["dre"] = {"Dolpo"},
["drg"] = {"Rungus"},
["dri"] = {"C'Lela"},
["drl"] = {"Paakantyi"},
["drn"] = {"Damar Heear"},
["dro"] = {"Daro-Matu Melanau"},
["drq"] = {"Dura"},
["drs"] = {"Gedeo"},
["drt"] = {"Drents"},
["dru"] = {"Rukai"},
["dry"] = {"Darai"},
["dsb"] = {"Sorbish Eeghtyragh"},
["dse"] = {"Çhengey Chowree Ollanagh"},
["dsh"] = {"Daasanach"},
["dsi"] = {"Disa"},
["dsk"] = {"Dokshi"},
["dsl"] = {"Çhengey Chowree Ghanvargagh"},
["dsn"] = {"Dusner"},
["dso"] = {"Desiya"},
["dsq"] = {"Tadaksahak"},
["dsz"] = {"Çh Chowree Mardin"},
["dta"] = {"Daur"},
["dtb"] = {"Labuk-Kinabatangan Kadazan"},
["dtd"] = {"Ditidaht"},
["dth"] = {"Adithinngithigh"},
["dti"] = {"Ana Tinga Dogon"},
["dtk"] = {"Tene Kan Dogon"},
["dtm"] = {"Tomo Kan Dogon"},
["dtn"] = {"Daatsʼíin"},
["dto"] = {"Tommo So Dogon"},
["dtp"] = {"Kadazan Dusun", "Dusun Veanagh"},
["dtr"] = {"Lotud"},
["dts"] = {"Toro So Dogon"},
["dtt"] = {"Toro Tegu Dogon"},
["dtu"] = {"Tebul Ure Dogon"},
["dty"] = {"Dotyali"},
["dua"] = {"Duala"},
["dub"] = {"Dubli"},
["duc"] = {"Duna"},
["due"] = {"Umiray Dumaget Agta"},
["duf"] = {"Dumbea", "Drubea"},
["dug"] = {"Duruma", "Chiduruma"},
["duh"] = {"Dungra Bhil"},
["dui"] = {"Dumun"},
["duk"] = {"Uyajitaya"},
["dul"] = {"Alabat Island Agta"},
["dum"] = {"Ollanish Veanagh (ca. 1050-1350)"},
["dun"] = {"Dusun Deyah"},
["duo"] = {"Dupaninan Agta"},
["dup"] = {"Duano"},
["duq"] = {"Dusun Malang"},
["dur"] = {"Dii"},
["dus"] = {"Dumi"},
["duu"] = {"Drung"},
["duv"] = {"Duvle"},
["duw"] = {"Dusun Witu"},
["dux"] = {"Duungooma"},
["duy"] = {"Dicamay Agta"},
["duz"] = {"Duli-Gey"},
["dva"] = {"Duau"},
["dwa"] = {"Diri"},
["dwk"] = {"Dawik Kui"},
["dwr"] = {"Dawro"},
["dws"] = {"Dutton World Speedwords"},
["dwu"] = {"Dhuwal"},
["dww"] = {"Dawawa"},
["dwy"] = {"Dhuwaya"},
["dwz"] = {"Dewas Rai"},
["dya"] = {"Dyan"},
["dyb"] = {"Dyaberdyaber"},
["dyd"] = {"Dyugun"},
["dyg"] = {"Villa Viciosa Agta"},
["dyi"] = {"Djimini Senoufo"},
["dym"] = {"Yanda Dom Dogon"},
["dyn"] = {"Dyangadi", "Dhanggatti"},
["dyo"] = {"Jola-Fonyi"},
["dyr"] = {"Dyarim"},
["dyu"] = {"Dyulish"},
["dyy"] = {"Djabugay", "Dyaabugay"},
["dza"] = {"Tunzu"},
["dzd"] = {"Daza"},
["dze"] = {"Djiwarli"},
["dzg"] = {"Dazaga"},
["dzl"] = {"Dzalakha"},
["dzn"] = {"Dzando"},
["eaa"] = {"Karenggapa"},
["ebc"] = {"Beginci"},
["ebg"] = {"Ebughu"},
["ebk"] = {"Bontok Hiar"},
["ebo"] = {"Teke-Ebo"},
["ebr"] = {"Ebrié"},
["ebu"] = {"Embu", "Kiembu"},
["ecr"] = {"Eteocretan"},
["ecs"] = {"Çhengey Chowree Ecuadoragh"},
["ecy"] = {"Eteocheeprish"},
["eee"] = {"E"},
["efa"] = {"Efai"},
["efe"] = {"Efe"},
["efi"] = {"Efik"},
["ega"] = {"Ega"},
["egl"] = {"Emilianish"},
["egm"] = {"Benamanga"},
["ego"] = {"Eggon"},
["egx"] = {"çhengaghyn Egyptagh"},
["egy"] = {"Egyptish (Shenn)"},
["ehs"] = {"Çhengey Chowree Miyakubo"},
["ehu"] = {"Ehueun"},
["eip"] = {"Eipomek"},
["eit"] = {"Eitiep"},
["eiv"] = {"Askopan"},
["eja"] = {"Ejamat"},
["eka"] = {"Ekajuk"},
["eke"] = {"Ekit"},
["ekg"] = {"Ekari"},
["eki"] = {"Eki"},
["ekk"] = {"Estoinish"},
["ekl"] = {"Kol (y Vangladesh)", "Kol"},
["ekm"] = {"Elip"},
["eko"] = {"Koti"},
["ekp"] = {"Ekpeye"},
["ekr"] = {"Yace"},
["eky"] = {"Kayah Hiar"},
["ele"] = {"Elepi"},
["elh"] = {"El Hugeirat"},
["eli"] = {"Nding"},
["elk"] = {"Elkei"},
["elm"] = {"Eleme"},
["elo"] = {"El Molo"},
["elu"] = {"Elu"},
["elx"] = {"Elamish"},
["ema"] = {"Emai-Iuleha-Ora"},
["emb"] = {"Embaloh"},
["eme"] = {"Emerillon"},
["emg"] = {"Meohang Hiar"},
["emi"] = {"Mussau-Emira"},
["emk"] = {"Maninkish Hiar"},
["emm"] = {"Mamulique"},
["emn"] = {"Emanish"},
["emp"] = {"Emberá Hwoaie"},
["emq"] = {"Minyagish Hiar"},
["ems"] = {"Yupik Lhoob y Cheayn Sheealtagh"},
["emu"] = {"Muria Hiar"},
["emw"] = {"Emplawas"},
["emx"] = {"Erromintxela"},
["emy"] = {"Mayish Epigrafagh"},
["emz"] = {"Mbessa"},
["ena"] = {"Apali"},
["enb"] = {"Markweeta"},
["enc"] = {"En"},
["end"] = {"Ende"},
["enf"] = {"Enetsish ny Keylljyn"},
["enh"] = {"Enetsish y Tundrey"},
["enl"] = {"Enlhet"},
["enm"] = {"Baarle Veanagh (1100-1500)"},
["enn"] = {"Engenni"},
["eno"] = {"Enggano"},
["enq"] = {"Enga"},
["enr"] = {"Emumu", "Emem"},
["enu"] = {"Enu"},
["env"] = {"Enwan (Steat Edo)"},
["enw"] = {"Enwan (Steat Akwa Ibom)"},
["enx"] = {"Enxet"},
["eot"] = {"Beti (y Clyst Iuaagagh)"},
["epi"] = {"Epie"},
["era"] = {"Eravallan"},
["erg"] = {"Sie"},
["erh"] = {"Eruwa"},
["eri"] = {"Ogea"},
["erk"] = {"Efate Yiass"},
["ero"] = {"Horpa"},
["err"] = {"Erre"},
["ers"] = {"Ersu"},
["ert"] = {"Eritai"},
["erw"] = {"Erokwanas"},
["ese"] = {"Ese Ejja"},
["esg"] = {"Aheri Gondi"},
["esh"] = {"Eshtehardi"},
["esi"] = {"Inupiatun Alaska Hwoaie"},
["esk"] = {"Inupiatun Alaska Heear Hwoaie"},
["esl"] = {"Çhengey Chowree yn Egypt"},
["esm"] = {"Esuma"},
["esn"] = {"Çhengey Chowree Halvadoragh"},
["eso"] = {"Çhengey Chowree Estaanagh"},
["esq"] = {"Esselen"},
["ess"] = {"Yupik y Çhibbeyr Veanagh"},
["esu"] = {"Yupik Veanagh"},
["esx"] = {"çhengaghyn Eskimogh-Aleutagh"},
["esy"] = {"Eskayan"},
["etb"] = {"Etebi"},
["etc"] = {"Etchemin"},
["eth"] = {"Çhengey Chowree Eetoipagh"},
["etn"] = {"Eton (Vanuatu)"},
["eto"] = {"Eton (Cameroon)"},
["etr"] = {"Edolo"},
["ets"] = {"Yekhee"},
["ett"] = {"Etruscish"},
["etu"] = {"Ejagham"},
["etx"] = {"Eten"},
["etz"] = {"Semimi"},
["eud"] = {"Eudeve"},
["euq"] = {"Bascagh (kynney)"},
["eve"] = {"Evenish"},
["evh"] = {"Uvbie"},
["evn"] = {"Evenkish"},
["ewo"] = {"Ewondo"},
["ext"] = {"Estremadurish"},
["eya"] = {"Eyak"},
["eyo"] = {"Keiyo"},
["eza"] = {"Ezaa"},
["eze"] = {"Uzekwe"},
["faa"] = {"Fasu"},
["fab"] = {"Fa d'Ambu"},
["fad"] = {"Wagi"},
["faf"] = {"Fagani"},
["fag"] = {"Finongan"},
["fah"] = {"Baissa Fali"},
["fai"] = {"Faiwol"},
["faj"] = {"Faita"},
["fak"] = {"Fang (Cameroon)"},
["fal"] = {"Fali Yiass"},
["fam"] = {"Fam"},
["fan"] = {"Fang (Guinea Chryss ny Cruinney)"},
["fap"] = {"Paloor"},
["far"] = {"Fataleka"},
["fat"] = {"Fanti"},
["fau"] = {"Fayu"},
["fax"] = {"Fala"},
["fay"] = {"Fars Heear Yiass"},
["faz"] = {"Fars Heear Hwoaie"},
["fbl"] = {"Bikol Albay Heear"},
["fcs"] = {"Çhengey Chowree Québec"},
["fer"] = {"Feroge"},
["ffi"] = {"Foia Foia"},
["ffm"] = {"Maasina Fulfulde"},
["fgr"] = {"Fongoro"},
["fia"] = {"Nobiin"},
["fie"] = {"Fyer"},
["fif"] = {"Faifi"},
["fil"] = {"Philippeenish"},
["fip"] = {"Fipa"},
["fir"] = {"Firan"},
["fit"] = {"Finnlynnish Tornedal", "Meänkieli"},
["fiu"] = {"çhengaghyn Finn-Oogragh"},
["fiw"] = {"Fiwaga"},
["fkk"] = {"Kirya-Konzəl"},
["fkv"] = {"Finnlynnish Kven"},
["fla"] = {"Kalispel-Pend d'Oreille"},
["flh"] = {"Foau"},
["fli"] = {"Fali"},
["fll"] = {"Fali Hwoaie"},
["fln"] = {"Flinders Island"},
["flr"] = {"Fuliiru"},
["fly"] = {"Flaaitaal", "Tsotsitaal"},
["fmp"] = {"Fe'fe'"},
["fmu"] = {"Muria Heear Foddey"},
["fnb"] = {"Fanbak"},
["fng"] = {"Fanagalo"},
["fni"] = {"Fania"},
["fod"] = {"Foodo"},
["foi"] = {"Foi"},
["fom"] = {"Foma"},
["fon"] = {"Fon"},
["for"] = {"Fore"},
["fos"] = {"Siraya"},
["fox"] = {"çhengaghyn Formosagh"},
["fpe"] = {"Creeole Baarle Fernando Po"},
["fqs"] = {"Fas"},
["frc"] = {"Frangish Cajun"},
["frd"] = {"Fordata"},
["frk"] = {"Frankish"},
["frm"] = {"Frangish Veanagh (ca. 1400-1600)"},
["fro"] = {"Shenn Rangish (842-ca. 1400)"},
["frp"] = {"Arpitanish", "Francoprovençal"},
["frq"] = {"Forak"},
["frr"] = {"Freeshlannish Hwoaie"},
["frs"] = {"Freeshlannish Hiar"},
["frt"] = {"Fortsenal"},
["fse"] = {"Çhengey Cowree Innlynnagh"},
["fsl"] = {"Çhengey Chowree Rangagh"},
["fss"] = {"Çhengey Chowree Finnlynn-y Toolynn", "finlandssvenskt teckenspråk", "suomenruotsalainen viittomakieli"},
["fub"] = {"Adamawa Fulfulde"},
["fuc"] = {"Pulaarish"},
["fud"] = {"Futuna Hiar"},
["fue"] = {"Borgu Fulfulde"},
["fuf"] = {"Pularish"},
["fuh"] = {"Fulfulde y Neegeyr Heear"},
["fui"] = {"Fulfulde Bagirmi"},
["fuj"] = {"Ko"},
["fum"] = {"Fum"},
["fun"] = {"Fulniô"},
["fuq"] = {"Fulfulde y Neegeyr Hiar Veanagh"},
["fur"] = {"Friulish"},
["fut"] = {"Futuna-Aniwa"},
["fuu"] = {"Furu"},
["fuv"] = {"Fulfulde y Naigeer"},
["fuy"] = {"Fuyug"},
["fvr"] = {"Fur"},
["fwa"] = {"Fwâi"},
["fwe"] = {"Fwe"},
["gaa"] = {"Ga"},
["gab"] = {"Gabri"},
["gac"] = {"Andamanish Vooar Vestit"},
["gad"] = {"Gaddang"},
["gae"] = {"Guarequena"},
["gaf"] = {"Gende"},
["gag"] = {"Gagauzish"},
["gah"] = {"Alekano"},
["gai"] = {"Borei"},
["gaj"] = {"Gadsup"},
["gak"] = {"Gamkonora"},
["gal"] = {"Galolen"},
["gam"] = {"Kandawo"},
["gan"] = {"Sheenish Gan"},
["gao"] = {"Gants"},
["gap"] = {"Gal"},
["gaq"] = {"Gata'"},
["gar"] = {"Galeya"},
["gas"] = {"Adiwasi Garasia"},
["gat"] = {"Kenati"},
["gau"] = {"Mudhili Gadaba"},
["gaw"] = {"Nobonob"},
["gax"] = {"Borana-Arsi-Guji Oromo"},
["gay"] = {"Gayo"},
["gaz"] = {"Oromoish Veanagh Heear"},
["gba"] = {"Gbaya (Pobblaght yn Affrick Veanagh)"},
["gbb"] = {"Kaytetye"},
["gbd"] = {"Karajarri"},
["gbe"] = {"Niksek"},
["gbf"] = {"Gaikundi"},
["gbg"] = {"Gbanziri"},
["gbh"] = {"Defi Gbe"},
["gbi"] = {"Galela"},
["gbj"] = {"Bodo Gadaba"},
["gbk"] = {"Gaddi"},
["gbl"] = {"Gamit"},
["gbm"] = {"Garhwali"},
["gbn"] = {"Mo'da"},
["gbo"] = {"Grebo Hwoaie"},
["gbp"] = {"Gbaya-Bossangoa"},
["gbq"] = {"Gbaya-Bozoum"},
["gbr"] = {"Gbagyi"},
["gbs"] = {"Gbesi Gbe"},
["gbu"] = {"Gagadu"},
["gbv"] = {"Gbanu"},
["gbw"] = {"Gabi-Gabi"},
["gbx"] = {"Xwla Gbe Hiar"},
["gby"] = {"Gbari"},
["gbz"] = {"Darish Horoastrianagh"},
["gcc"] = {"Mali"},
["gcd"] = {"Ganggalida"},
["gce"] = {"Galice"},
["gcf"] = {"Creeole Frangish Guadeloupe"},
["gcl"] = {"Creeole Baarle Grenadagh"},
["gcn"] = {"Gaina"},
["gcr"] = {"Creeole Frangish Geeaanagh"},
["gct"] = {"Germaanish Colonia Tovar"},
["gda"] = {"Gade Lohar"},
["gdb"] = {"Pottangi Ollar Gadaba"},
["gdc"] = {"Gugu Badhun"},
["gdd"] = {"Gedaged"},
["gde"] = {"Gude"},
["gdf"] = {"Guduf-Gava"},
["gdg"] = {"Ga'dang"},
["gdh"] = {"Gadjerawang", "Gajirrabeng"},
["gdi"] = {"Gundi"},
["gdj"] = {"Gurdjar"},
["gdk"] = {"Gadang"},
["gdl"] = {"Dirasha"},
["gdm"] = {"Laal"},
["gdn"] = {"Umanakaina"},
["gdo"] = {"Ghodoberi"},
["gdq"] = {"Mehri"},
["gdr"] = {"Wipi"},
["gds"] = {"Çhengey CHowree Ghandruk"},
["gdt"] = {"Kungardutyi"},
["gdu"] = {"Gudu"},
["gdx"] = {"Godwari"},
["gea"] = {"Geruma"},
["geb"] = {"Kire"},
["gec"] = {"Gboloo Grebo"},
["ged"] = {"Gade"},
["gef"] = {"Gerai"},
["geg"] = {"Gengle"},
["geh"] = {"Germaanish utteragh", "Hutterisch"},
["gei"] = {"Gebe"},
["gej"] = {"Gen"},
["gek"] = {"Ywom"},
["gel"] = {"ut-Ma'in"},
["gem"] = {"çhengaghyn Germaanic"},
["geq"] = {"Geme"},
["ges"] = {"Geser-Gorom"},
["gev"] = {"Eviya"},
["gew"] = {"Gera"},
["gex"] = {"Garre"},
["gey"] = {"Enya"},
["gez"] = {"Geez"},
["gfk"] = {"Patpatar"},
["gft"] = {"Gafat"},
["gga"] = {"Gao"},
["ggb"] = {"Gbii"},
["ggd"] = {"Gugadj"},
["gge"] = {"Gurr-goni"},
["ggg"] = {"Gurgula"},
["ggk"] = {"Kungarakany"},
["ggl"] = {"Ganglau"},
["ggt"] = {"Gitua"},
["ggu"] = {"Gagu", "Gban"},
["ggw"] = {"Gogodala"},
["gha"] = {"Ghadamès"},
["ghc"] = {"Gaelg Yerno-Albinagh"},
["ghe"] = {"Ghale Yiass"},
["ghh"] = {"Ghale Hwoaie"},
["ghk"] = {"Karenish Geko"},
["ghl"] = {"Ghulfan"},
["ghn"] = {"Ghanongga"},
["gho"] = {"Ghomara"},
["ghr"] = {"Ghera"},
["ghs"] = {"Guhu-Samane"},
["ght"] = {"Kuke", "Kutang Ghale"},
["gia"] = {"Kija"},
["gib"] = {"Gibanawa"},
["gic"] = {"Gail"},
["gid"] = {"Gidar"},
["gie"] = {"Gaɓogbo", "Guébie"},
["gig"] = {"Goaria"},
["gih"] = {"Githabul"},
["gii"] = {"Girirra"},
["gil"] = {"Kiribatish"},
["gim"] = {"Gimi (yn Ard-Heer Hiar)"},
["gin"] = {"Hinukh"},
["gip"] = {"Gimi (y Vretyn Noa Heear)"},
["giq"] = {"Gelao Eayney"},
["gir"] = {"Gelao Jiarg"},
["gis"] = {"Giziga Hwoaie"},
["git"] = {"Gitxsan"},
["giu"] = {"Mulao"},
["giw"] = {"Gelao Bane"},
["gix"] = {"Gilima"},
["giy"] = {"Giyug"},
["giz"] = {"Giziga Yiass"},
["gjk"] = {"Kachi Koli"},
["gjm"] = {"Gunditjmara"},
["gjn"] = {"Gonja"},
["gjr"] = {"Kriol Gurindji"},
["gju"] = {"Gujari"},
["gka"] = {"Guya"},
["gkd"] = {"Magɨ (Queiggey Madang)"},
["gke"] = {"Ndai"},
["gkn"] = {"Gokana"},
["gko"] = {"Kok-Nar"},
["gkp"] = {"Kpelle yn Ghuinea"},
["gku"] = {"ǂUngkue"},
["glb"] = {"Belning"},
["glc"] = {"Bon Gula"},
["gld"] = {"Nanai"},
["glh"] = {"Pashai Heear Hwoaie", "Pashayi Heear Hwoaie"},
["glj"] = {"Gula Iro"},
["glk"] = {"Gilaki"},
["gll"] = {"Garlali"},
["glo"] = {"Galambu"},
["glr"] = {"Glaro-Twabo"},
["glu"] = {"Gula (Shad)"},
["glw"] = {"Glavda"},
["gly"] = {"Gule"},
["gma"] = {"Gambera"},
["gmb"] = {"Gula'alaa"},
["gmd"] = {"Mághdì"},
["gme"] = {"çhengaghyn Germaanic Hiar"},
["gmg"] = {"Magɨyi"},
["gmh"] = {"Ard-Ghermaanish Veanagh (ca. 1050-1500)"},
["gml"] = {"Germaanish Injil Veanagh"},
["gmm"] = {"Gbaya-Mbodomo"},
["gmn"] = {"Gimnime"},
["gmq"] = {"çhengaghyn Germaanic Hwoaie"},
["gmr"] = {"Mirning", "Mirniny"},
["gmu"] = {"Gumalu"},
["gmv"] = {"Gamo"},
["gmw"] = {"çhengaghyn Germaanagh Heear"},
["gmx"] = {"Magoma"},
["gmy"] = {"Greagish Vycenaeagh"},
["gmz"] = {"Mgbolizhia"},
["gna"] = {"Kaansa"},
["gnb"] = {"Gangte"},
["gnc"] = {"Guançhish"},
["gnd"] = {"Zulgo-Gemzek"},
["gne"] = {"Ganang"},
["gng"] = {"Ngangam"},
["gnh"] = {"Lere"},
["gni"] = {"Gooniyandi"},
["gnj"] = {"Ngen"},
["gnk"] = {"ǁGana"},
["gnl"] = {"Gangulu"},
["gnm"] = {"Ginuman"},
["gnn"] = {"Gumatj"},
["gno"] = {"Gondi Hwoaie"},
["gnq"] = {"Gana"},
["gnr"] = {"Gureng Gureng"},
["gnt"] = {"Guntai"},
["gnu"] = {"Gnau"},
["gnw"] = {"Guaranish Voliviagh Heear"},
["gnz"] = {"Ganzi"},
["goa"] = {"Guro"},
["gob"] = {"Playero"},
["goc"] = {"Gorakor"},
["god"] = {"Godié"},
["goe"] = {"Gongduk"},
["gof"] = {"Gofa"},
["gog"] = {"Gogo"},
["goh"] = {"Shenn Ard-Ghermaanish (ca. 750-1050)"},
["goi"] = {"Gobasi"},
["goj"] = {"Gowlan"},
["gok"] = {"Gowli"},
["gol"] = {"Gola"},
["gom"] = {"Goan Konkani"},
["gon"] = {"Gondi"},
["goo"] = {"Gone Dau"},
["gop"] = {"Yeretuar"},
["goq"] = {"Gorap"},
["gor"] = {"Gorontalo"},
["gos"] = {"Gronings"},
["got"] = {"Gothish"},
["gou"] = {"Gavar"},
["gov"] = {"Goo"},
["gow"] = {"Gorowa"},
["gox"] = {"Gobu"},
["goy"] = {"Goundo"},
["goz"] = {"Gozarkhani"},
["gpa"] = {"Gupa-Abawa"},
["gpe"] = {"Baarle Vrisht Ghanaiagh"},
["gpn"] = {"Taiap"},
["gqa"] = {"Ga'anda"},
["gqi"] = {"Guiqiong"},
["gqn"] = {"Guana (y Vrasseel)"},
["gqr"] = {"Gor"},
["gqu"] = {"Qau"},
["gra"] = {"Garasia Rajput"},
["grb"] = {"Grebo"},
["grc"] = {"Shenn Ghreagish (derrey 1453)"},
["grd"] = {"Guruntum-Mbaaru"},
["grg"] = {"Madi"},
["grh"] = {"Gbiri-Niragu"},
["gri"] = {"Ghari"},
["grj"] = {"Grebo Yiass"},
["grk"] = {"çhengaghyn Greagagh"},
["grm"] = {"Kota Marudu Talantang"},
["gro"] = {"Groma"},
["grq"] = {"Gorovu"},
["grr"] = {"Taznatit"},
["grs"] = {"Gresi"},
["grt"] = {"Garo"},
["gru"] = {"Kistane"},
["grv"] = {"Grebo Veanagh"},
["grw"] = {"Gweda"},
["grx"] = {"Guriaso"},
["gry"] = {"Grebo Barclayville"},
["grz"] = {"Guramalum"},
["gse"] = {"Çhengey Chowree Ghanaiagh"},
["gsg"] = {"Çhengey Chowree Ghermaanagh"},
["gsl"] = {"Gusilay"},
["gsm"] = {"Çhengey Chowree Ghuatemalagh"},
["gsn"] = {"Nema", "Gusan"},
["gso"] = {"Gbaya Heear Yiass"},
["gsp"] = {"Wasembo"},
["gss"] = {"Çhengey Chowree Ghreagagh"},
["gsw"] = {"Germaanish Elveeishagh", "Alemannish", "Alsaasish"},
["gta"] = {"Guató"},
["gtu"] = {"Aghu-Tharnggala"},
["gua"] = {"Shiki"},
["gub"] = {"Guajajára"},
["guc"] = {"Wayuu"},
["gud"] = {"Yocoboué Dida"},
["gue"] = {"Gurindji"},
["guf"] = {"Gupapuyngu"},
["gug"] = {"Guaranish Pharaguayagh"},
["guh"] = {"Guahibo"},
["gui"] = {"Guaranish Voliviagh Hiar"},
["guk"] = {"Gumuz"},
["gul"] = {"Creeole Baarle Gullah"},
["gum"] = {"Guambiano"},
["gun"] = {"Mbyá Guaraní"},
["guo"] = {"Guayabero"},
["gup"] = {"Gunwinggu"},
["guq"] = {"Aché"},
["gur"] = {"Farefare"},
["gus"] = {"Çhengey Chowree Guineagh"},
["gut"] = {"Maléku Jaíka"},
["guu"] = {"Yanomamö"},
["guw"] = {"Gun"},
["gux"] = {"Gourmanchéma"},
["guz"] = {"Gusii", "Ekegusii"},
["gva"] = {"Guana (y Pharaguay)"},
["gvc"] = {"Guanano"},
["gve"] = {"Duwet"},
["gvf"] = {"Golin"},
["gvj"] = {"Guajá"},
["gvl"] = {"Gulay"},
["gvm"] = {"Gurmana"},
["gvn"] = {"Kuku-Yalanji"},
["gvo"] = {"Gavião Do Jiparaná"},
["gvp"] = {"Pará Gavião"},
["gvr"] = {"Gurung"},
["gvs"] = {"Gumawana"},
["gvy"] = {"Guyani"},
["gwa"] = {"Mbato"},
["gwb"] = {"Gwa"},
["gwc"] = {"Gawri", "Kalami"},
["gwd"] = {"Gawwada"},
["gwe"] = {"Gweno"},
["gwf"] = {"Gowro"},
["gwg"] = {"Moo"},
["gwi"] = {"Gwichʼin"},
["gwj"] = {"ǀGwi"},
["gwm"] = {"Awngthim"},
["gwn"] = {"Gwandara"},
["gwr"] = {"Gwere"},
["gwt"] = {"Gawar-Bati"},
["gwu"] = {"Guwamu"},
["gww"] = {"Kwini"},
["gwx"] = {"Gua"},
["gxx"] = {"Wè Yiass"},
["gya"] = {"Gbaya Heear Hwoaie"},
["gyb"] = {"Garus"},
["gyd"] = {"Kayardild"},
["gye"] = {"Gyem"},
["gyf"] = {"Gungabula"},
["gyg"] = {"Gbayi"},
["gyi"] = {"Gyele"},
["gyl"] = {"Gayil"},
["gym"] = {"Ngäbere"},
["gyn"] = {"Creeole Baarle Geeaanagh"},
["gyo"] = {"Gyalsumdo"},
["gyr"] = {"Guarayu"},
["gyy"] = {"Gunya"},
["gyz"] = {"Geji", "Gyaazi"},
["gza"] = {"Ganza"},
["gzi"] = {"Gazi"},
["gzn"] = {"Gane"},
["haa"] = {"Han"},
["hab"] = {"Çhengey Chowree Hanoi"},
["hac"] = {"Guranish"},
["had"] = {"Hatam"},
["hae"] = {"Oromoish Hiar"},
["haf"] = {"Çhengey Chowree Haiphong"},
["hag"] = {"Hanga"},
["hah"] = {"Hahon"},
["hai"] = {"Haida"},
["haj"] = {"Hajong"},
["hak"] = {"Sheenish Hakka"},
["hal"] = {"Halang"},
["ham"] = {"Hewa"},
["han"] = {"Hangaza"},
["hao"] = {"Hakö"},
["hap"] = {"Hupla"},
["haq"] = {"Ha"},
["har"] = {"Harari"},
["has"] = {"Haisla"},
["hav"] = {"Havu"},
["haw"] = {"Hawaiish"},
["hax"] = {"Haida Yiass"},
["hay"] = {"Haya"},
["haz"] = {"Hazaragi"},
["hba"] = {"Hamba"},
["hbb"] = {"Huba"},
["hbn"] = {"Heiban"},
["hbo"] = {"Shenn Ewnish"},
["hbu"] = {"Habu"},
["hca"] = {"Creeole Hindish Andamanagh"},
["hch"] = {"Huichol"},
["hdn"] = {"Haida Hwoaie"},
["hds"] = {"Çhengey Chowree Hondooragh"},
["hdy"] = {"Hadiyya"},
["hea"] = {"Miao Qiandong Hwoaie"},
["hed"] = {"Herdé"},
["heg"] = {"Helong"},
["heh"] = {"Hehe"},
["hei"] = {"Heiltsuk"},
["hem"] = {"Hemba"},
["hgm"] = {"Haiǁom"},
["hgw"] = {"Haigwai"},
["hhi"] = {"Hoia Hoia"},
["hhr"] = {"Kerak"},
["hhy"] = {"Hoyahoya"},
["hia"] = {"Lamang"},
["hib"] = {"Hibito"},
["hid"] = {"Hidatsa"},
["hif"] = {"Hindish Fiji"},
["hig"] = {"Kamwe"},
["hih"] = {"Pamosu"},
["hii"] = {"Hindurish"},
["hij"] = {"Hijuk"},
["hik"] = {"Seit-Kaitetu"},
["hil"] = {"Hiligaynonish"},
["him"] = {"çhengaghyn Himachalagh", "çhengaghyn Paharagh Heear"},
["hio"] = {"Tsoa"},
["hir"] = {"Himarimã"},
["hit"] = {"Hittish"},
["hiw"] = {"Hiw"},
["hix"] = {"Hixkaryána"},
["hji"] = {"Haji"},
["hka"] = {"Kahe"},
["hke"] = {"Hunde"},
["hkh"] = {"Khah", "Poguli"},
["hkk"] = {"Hunjara-Kaina Ke"},
["hkn"] = {"Mel-Khaonh"},
["hks"] = {"Çhengey Chowree Hong Kong", "Heung Kong Sau Yue"},
["hla"] = {"Halia"},
["hlb"] = {"Halbi"},
["hld"] = {"Halang Doan"},
["hle"] = {"Hlersu"},
["hlt"] = {"Matu Chin"},
["hlu"] = {"Luwish Yalloo-ocklagh"},
["hma"] = {"Hmongish Mashan Yiass", "Miaoish Mashan Yiass"},
["hmb"] = {"Humburi Senni Songhay"},
["hmc"] = {"Hmongish Huishui Veanagh", "Miaoish Huishui Veanagh"},
["hmd"] = {"Miaoish Vooar-Ornaidagh", "A-hmaos", "Miaoish Da-Hua"},
["hme"] = {"Hmongish Huishui Hiar", "Miaoish Huishui Hiar"},
["hmf"] = {"Hmongish Don"},
["hmg"] = {"Hmongish Guiyang Heear Yiass"},
["hmh"] = {"Hmongish Huishui Heear Yiass", "Miaoish Huishui Heear Yiass"},
["hmi"] = {"Hmongish Huishui Hwoaie", "Miaoish Huishui Hwoaie"},
["hmj"] = {"Ge", "Gejia"},
["hmk"] = {"Maek"},
["hml"] = {"Hmongish Luopohe", "Miaoish Luopohe"},
["hmm"] = {"Hmongish Mashan Veanagh", "Miaoish Mashan Veanagh"},
["hmn"] = {"Hmongish", "Mongish"},
["hmp"] = {"Hmongish Mashan Hwoaie", "Miaoish Mashan Hwoaie"},
["hmq"] = {"Miaoish Qiandong Hiar"},
["hmr"] = {"Hmar"},
["hms"] = {"Miaoish Qiandong Yiass"},
["hmt"] = {"Hamtai"},
["hmu"] = {"Hamap"},
["hmv"] = {"Hmong Dô"},
["hmw"] = {"Hmongish Mashan Heear", "Miaoish Mashan Heear"},
["hmx"] = {"çhengaghyn Hmong-Mien"},
["hmy"] = {"Hmongish Guiyang Yiass", "Miaoish Guiyang Yiass"},
["hmz"] = {"Hmongish Shua", "Miaoish Heenit"},
["hna"] = {"Mina (Cameroon)"},
["hnd"] = {"Hindko Yiass"},
["hne"] = {"Chhattisgarhi"},
["hng"] = {"Hungu"},
["hnh"] = {"ǁAni"},
["hni"] = {"Hani"},
["hnj"] = {"Hmongish Njua", "Mong Leng", "Mong Njua"},
["hnn"] = {"Hanunoo"},
["hno"] = {"Hindko Hwoaie"},
["hns"] = {"Hindustaanish Charibagh"},
["hnu"] = {"Hung"},
["hoa"] = {"Hoava"},
["hob"] = {"Marish (Queiggey Madang)"},
["hoc"] = {"Ho"},
["hod"] = {"Holma"},
["hoe"] = {"Horom"},
["hoh"] = {"Hobyót"},
["hoi"] = {"Holikachuk"},
["hoj"] = {"Hadothish", "Harotish"},
["hok"] = {"çhengaghyn Hokagh"},
["hol"] = {"Holu"},
["hom"] = {"Homa"},
["hoo"] = {"Holoholo"},
["hop"] = {"Hopi"},
["hor"] = {"Horo"},
["hos"] = {"Çhengey Chowree Chaayr Ho Chi Minh"},
["hot"] = {"Hote", "Malê"},
["hov"] = {"Hovongan"},
["how"] = {"Honi"},
["hoy"] = {"Holiya"},
["hoz"] = {"Hozo"},
["hpo"] = {"Hpon"},
["hps"] = {"Glare Chowree Hawai'i (HSL)", "Çhengey Chowree Hawaiish Vrisht"},
["hra"] = {"Hrangkhol"},
["hrc"] = {"Niwer Mil"},
["hre"] = {"Hre"},
["hrk"] = {"Haruku"},
["hrm"] = {"Miaoish Eairkagh"},
["hro"] = {"Haroi"},
["hrp"] = {"Nhirrpi"},
["hrt"] = {"Hértevin"},
["hru"] = {"Hruso"},
["hrw"] = {"Warwar Feni"},
["hrx"] = {"Hunsrikish"},
["hrz"] = {"Harzanish"},
["hsb"] = {"Sorbish Eaghtyragh"},
["hsh"] = {"Glare Chowree Ungaaragh"},
["hsl"] = {"Glare Chowree Hausagh"},
["hsn"] = {"Sheenish Xiang"},
["hss"] = {"Harsusi"},
["hti"] = {"Hoti"},
["hto"] = {"Minica Huitoto"},
["hts"] = {"Hadza"},
["htu"] = {"Hitu"},
["htx"] = {"Hittish Veanagh"},
["hub"] = {"Huambisa"},
["huc"] = {"ǂHua", "ǂʼAmkhoe"},
["hud"] = {"Huaulu"},
["hue"] = {"San Francisco Del Mar Huave"},
["huf"] = {"Humene"},
["hug"] = {"Huachipaeri"},
["huh"] = {"Huilliche"},
["hui"] = {"Huli"},
["huj"] = {"Hmongish Guiyang Hwoaie", "Miaoish Guiyang Hwoaie"},
["huk"] = {"Hulung"},
["hul"] = {"Hula"},
["hum"] = {"Hungana"},
["huo"] = {"Hu"},
["hup"] = {"Hupa"},
["huq"] = {"Tsat"},
["hur"] = {"Halkomelem"},
["hus"] = {"Huastecish"},
["hut"] = {"Humla"},
["huu"] = {"Murui Huitoto"},
["huv"] = {"San Mateo Del Mar Huave"},
["huw"] = {"Hukumina"},
["hux"] = {"Nüpode Huitoto"},
["huy"] = {"Hulaulá"},
["huz"] = {"Hunzibish"},
["hvc"] = {"Çhengey Chultoor Vodoun Haitagh"},
["hve"] = {"San Dionisio Del Mar Huave"},
["hvk"] = {"Haveke"},
["hvn"] = {"Sabu"},
["hvv"] = {"Santa María Del Mar Huave"},
["hwa"] = {"Wané"},
["hwc"] = {"Creeole Baarle Hawaiianagh", "Hawaiish Vrisht"},
["hwo"] = {"Hwana"},
["hya"] = {"Hya"},
["hyw"] = {"Armeanish Heear"},
["hyx"] = {"Armeanagh (kynney)"},
["iai"] = {"Iaai"},
["ian"] = {"Iatmul"},
["iar"] = {"Purari"},
["iba"] = {"Iban"},
["ibb"] = {"Ibibio"},
["ibd"] = {"Iwaidja"},
["ibe"] = {"Akpes"},
["ibg"] = {"Ibanag"},
["ibh"] = {"Bih"},
["ibl"] = {"Ibaloi"},
["ibm"] = {"Agoi"},
["ibn"] = {"Ibino"},
["ibr"] = {"Ibuoro"},
["ibu"] = {"Ibu"},
["iby"] = {"Ibani"},
["ica"] = {"Ede Ica"},
["ich"] = {"Etkywan"},
["icl"] = {"Çhengey Chowree Eeslynnagh"},
["icr"] = {"Creeole San Andrés–Providencia"},
["ida"] = {"Idakho-Isukha-Tiriki", "Luidakho-Luisukha-Lutirichi"},
["idb"] = {"Portiugish Injinagh"},
["idc"] = {"Idon", "Ajiya"},
["idd"] = {"Ede Idaca"},
["ide"] = {"Idere"},
["idi"] = {"Idi"},
["idr"] = {"Indri"},
["ids"] = {"Idesa"},
["idt"] = {"Idaté"},
["idu"] = {"Idoma"},
["ifa"] = {"Amganad Ifugao"},
["ifb"] = {"Batad Ifugao", "Ayangan Ifugao"},
["ife"] = {"Ifè"},
["iff"] = {"Ifo"},
["ifk"] = {"Tuwali Ifugao"},
["ifm"] = {"Teke-Fuumu"},
["ifu"] = {"Mayoyao Ifugao"},
["ify"] = {"Keley-I Kallahan"},
["igb"] = {"Ebira"},
["ige"] = {"Igede"},
["igg"] = {"Igana"},
["igl"] = {"Igala"},
["igm"] = {"Kanggape"},
["ign"] = {"Ignaciano"},
["igo"] = {"Isebe"},
["igs"] = {"Interglossa"},
["igw"] = {"Igwe"},
["ihb"] = {"Iha Vrisht"},
["ihi"] = {"Ihievbe"},
["ihp"] = {"Iha"},
["ihw"] = {"Bidhawal"},
["iin"] = {"Thiin"},
["iir"] = {"çhengaghyn Ind-Eeraanagh"},
["ijc"] = {"Izon"},
["ije"] = {"Biseni"},
["ijj"] = {"Ede Ije"},
["ijn"] = {"Kalabari"},
["ijo"] = {"çhengaghyn Ijo"},
["ijs"] = {"Ijo Hiar Yiass"},
["ike"] = {"Inuktitut Hiar y Chanadey"},
["ikh"] = {"Ikhin-Arokho"},
["iki"] = {"Iko"},
["ikk"] = {"Ika"},
["ikl"] = {"Ikulu"},
["iko"] = {"Olulumo-Ikom"},
["ikp"] = {"Ikpeshi"},
["ikr"] = {"Ikaranggal"},
["iks"] = {"Çhengey Chowree Inuitagh"},
["ikt"] = {"Inuinnaqtun", "Inuktitut Heear y Chanadey"},
["ikv"] = {"Iku-Gora-Ankwa"},
["ikw"] = {"Ikwere"},
["ikx"] = {"Ik"},
["ikz"] = {"Ikizu"},
["ila"] = {"Ile Ape"},
["ilb"] = {"Ila"},
["ilg"] = {"Garig-Ilgar"},
["ili"] = {"Ili Turki"},
["ilk"] = {"Ilongot"},
["ilm"] = {"Iranun (y Valaysia)"},
["ilo"] = {"Iloko"},
["ilp"] = {"Iranun (ny h-Ellanyn Philippeenagh)"},
["ils"] = {"Çhengey Chowree Eddyr-ashoonagh"},
["ilu"] = {"Ili'uun"},
["ilv"] = {"Ilue"},
["ima"] = {"Mala Malasar"},
["imi"] = {"Anamgura"},
["iml"] = {"Miluk"},
["imn"] = {"Imonda"},
["imo"] = {"Imbongu"},
["imr"] = {"Imroing"},
["ims"] = {"Marsish"},
["imt"] = {"Imotong"},
["imy"] = {"Milyan"},
["inb"] = {"Inga"},
["inc"] = {"çhengaghyn Indagh"},
["ine"] = {"çhengaghyn Ind-Oarpagh"},
["ing"] = {"Degexit'an"},
["inh"] = {"Ingushish"},
["inj"] = {"Inga yn Jungyl"},
["inl"] = {"Çhengey Chowree Indoneeshagh"},
["inm"] = {"Minaeish"},
["inn"] = {"Isinai"},
["ino"] = {"Inoke-Yate"},
["inp"] = {"Iñapari"},
["ins"] = {"Çhengey Chowree Injinagh"},
["int"] = {"Intha"},
["inz"] = {"Ineseño"},
["ior"] = {"Inor"},
["iou"] = {"Tuma-Irumu"},
["iow"] = {"Iowa-Oto"},
["ipi"] = {"Ipili"},
["ipo"] = {"Ipiko"},
["iqu"] = {"Iquito"},
["iqw"] = {"Ikwo"},
["ira"] = {"çhengaghyn Eeraanagh"},
["ire"] = {"Iresim"},
["irh"] = {"Irarutu"},
["iri"] = {"Rigwe", "Irigwe"},
["irk"] = {"Iraqw"},
["irn"] = {"Irántxe"},
["iro"] = {"çhengaghyn Iroquoiagh"},
["irr"] = {"Ir"},
["iru"] = {"Irula"},
["irx"] = {"Kamberau"},
["iry"] = {"Iraya"},
["isa"] = {"Isabi"},
["isc"] = {"Isconahua"},
["isd"] = {"Isnag"},
["ise"] = {"Çhengey Chowree Iddaalagh"},
["isg"] = {"Çhengey Chowree Yernagh"},
["ish"] = {"Esan"},
["isi"] = {"Nkem-Nkum"},
["isk"] = {"Ishkashimi"},
["ism"] = {"Masimasi"},
["isn"] = {"Isanzu"},
["iso"] = {"Isoko"},
["isr"] = {"Çhengey Chowree Israelagh"},
["ist"] = {"Istriotish"},
["isu"] = {"Isu (Rheynn Menchum)"},
["itb"] = {"Binongan Itneg"},
["itc"] = {"çhengaghyn Iddaalagh"},
["itd"] = {"Tidung Yiass"},
["ite"] = {"Itene"},
["iti"] = {"Inlaod Itneg"},
["itk"] = {"Iddaalish Ewagh"},
["itl"] = {"Itelmenish"},
["itm"] = {"Itu Mbon Uzo"},
["ito"] = {"Itonama"},
["itr"] = {"Iteri"},
["its"] = {"Isekiri"},
["itt"] = {"Maeng Itneg"},
["itv"] = {"Itawit"},
["itw"] = {"Ito"},
["itx"] = {"Itik"},
["ity"] = {"Moyadan Itneg"},
["itz"] = {"Itzá"},
["ium"] = {"Iu Mien"},
["ivb"] = {"Ibatan"},
["ivv"] = {"Ivatan"},
["iwk"] = {"I-Wak"},
["iwm"] = {"Iwam"},
["iwo"] = {"Iwur"},
["iws"] = {"Sepik Iwam"},
["ixc"] = {"Ixcatecish"},
["ixl"] = {"Ixil"},
["iya"] = {"Iyayu"},
["iyo"] = {"Mesaka"},
["iyx"] = {"Yaka (y Congo)"},
["izh"] = {"Ingrish"},
["izm"] = {"Kizamani"},
["izr"] = {"Izere"},
["izz"] = {"Izii"},
["jaa"] = {"Jamamadí"},
["jab"] = {"Hyam"},
["jac"] = {"Popti'", "Jakalteko"},
["jad"] = {"Jahanka"},
["jae"] = {"Yabem"},
["jaf"] = {"Jara"},
["jah"] = {"Jah Hut"},
["jaj"] = {"Zazao"},
["jak"] = {"Jakun"},
["jal"] = {"Yalahatan"},
["jam"] = {"Creeole Baarle Jamaicagh"},
["jan"] = {"Jandai"},
["jao"] = {"Yanyuwa"},
["jaq"] = {"Yaqay"},
["jas"] = {"Javish y Chaladoan Noa"},
["jat"] = {"Jakati"},
["jau"] = {"Yaur"},
["jax"] = {"Malaish Jambi"},
["jay"] = {"Yan-nhangu", "Nhangu"},
["jaz"] = {"Jawe"},
["jbe"] = {"Berberish Ewagh"},
["jbi"] = {"Badjiri"},
["jbj"] = {"Arandai"},
["jbk"] = {"Barikewa"},
["jbm"] = {"Bijim"},
["jbn"] = {"Nafusi"},
["jbo"] = {"Lojban"},
["jbr"] = {"Jofotek-Bromnya"},
["jbt"] = {"Jabutí"},
["jbu"] = {"Jukun Takum"},
["jbw"] = {"Yawijibaya"},
["jcs"] = {"Çhengey Chowree Heeragh Yamaicagh"},
["jct"] = {"Krymchak"},
["jda"] = {"Jad"},
["jdg"] = {"Jadgali"},
["jdt"] = {"Tatish Ewagh"},
["jeb"] = {"Jebero"},
["jee"] = {"Jerung"},
["jeh"] = {"Jeh"},
["jei"] = {"Yei"},
["jek"] = {"Jeri Kuo"},
["jel"] = {"Yelmek"},
["jen"] = {"Dza"},
["jer"] = {"Jere"},
["jet"] = {"Manem"},
["jeu"] = {"Jonkor Bourmataguil"},
["jgb"] = {"Ngbee"},
["jge"] = {"Shorshish Ewagh"},
["jgk"] = {"Gwak"},
["jgo"] = {"Ngomba"},
["jhi"] = {"Jehai"},
["jhs"] = {"Çhengey Chowree Jhankot"},
["jia"] = {"Jina"},
["jib"] = {"Jibu"},
["jic"] = {"Tol"},
["jid"] = {"Bu (Steat Kaduna)"},
["jie"] = {"Jilbe"},
["jig"] = {"Jingulu", "Djingili"},
["jih"] = {"sTodsde", "Shangzhai"},
["jii"] = {"Jiiddu"},
["jil"] = {"Jilim"},
["jim"] = {"Jimi (Cameroon)"},
["jio"] = {"Jiamao"},
["jiq"] = {"Guanyinqiao", "Lavrung"},
["jit"] = {"Jita"},
["jiu"] = {"Jinuo Youle"},
["jiv"] = {"Shuar"},
["jiy"] = {"Jinuo Buyuan"},
["jje"] = {"Jejueo"},
["jjr"] = {"Bankal"},
["jka"] = {"Kaera"},
["jkm"] = {"Karenish Mobwa"},
["jko"] = {"Kubo"},
["jkp"] = {"Karenish Paku"},
["jkr"] = {"Koro (yn Injey)"},
["jks"] = {"Çhengey Chowree Amami Koniya"},
["jku"] = {"Labir"},
["jle"] = {"Ngile"},
["jls"] = {"Çhengey Chowree Yamaicagh"},
["jma"] = {"Dima"},
["jmb"] = {"Zumbun"},
["jmc"] = {"Machame"},
["jmd"] = {"Yamdena"},
["jmi"] = {"Jimi (y Naigeer)"},
["jml"] = {"Jumli"},
["jmn"] = {"Makuri Naga"},
["jmr"] = {"Kamara"},
["jms"] = {"Mashi (y Naigeer)"},
["jmw"] = {"Mouwase"},
["jmx"] = {"Mixtecish Juxtlahuaca Heear"},
["jna"] = {"Jangshung"},
["jnd"] = {"Jandavra"},
["jng"] = {"Yangman"},
["jni"] = {"Janji"},
["jnj"] = {"Yemsa"},
["jnl"] = {"Rawat"},
["jns"] = {"Jaunsari"},
["job"] = {"Joba"},
["jod"] = {"Wojenaka"},
["jog"] = {"Jogi"},
["jor"] = {"Jorá"},
["jos"] = {"Çhengey Chowree Yordaanagh"},
["jow"] = {"Jowulu"},
["jpa"] = {"Aramaaish Phalasteenagh Ewagh"},
["jpr"] = {"Pershish Ewagh"},
["jpx"] = {"Shapaanagh (kynney)"},
["jqr"] = {"Jaqaru"},
["jra"] = {"Jarai"},
["jrb"] = {"Arabish Ewagh"},
["jrr"] = {"Jiru"},
["jrt"] = {"Jakattoe"},
["jru"] = {"Japrería"},
["jsl"] = {"Çhengey Chowree Hapaanagh"},
["jua"] = {"Júma"},
["jub"] = {"Wannu"},
["juc"] = {"Jurchen"},
["jud"] = {"Worodougou"},
["juh"] = {"Hõne"},
["jui"] = {"Ngadjuri"},
["juk"] = {"Wapan"},
["jul"] = {"Jirel"},
["jum"] = {"Jumjum"},
["jun"] = {"Juang"},
["juo"] = {"Jiba"},
["jup"] = {"Hupdë"},
["jur"] = {"Jurúna"},
["jus"] = {"Çhengey Chowree Jumla"},
["jut"] = {"Jutish"},
["juu"] = {"Ju"},
["juw"] = {"Wãpha"},
["juy"] = {"Juray"},
["jvd"] = {"Javindo"},
["jvn"] = {"Javish Charibagh"},
["jwi"] = {"Jwira-Pepesa"},
["jya"] = {"Jiarong"},
["jye"] = {"Arabish Yemenagh Ewagh"},
["jyy"] = {"Jaya"},
["kaa"] = {"Kara-Kalpakish", "Karakalpakish"},
["kab"] = {"Kabylish"},
["kac"] = {"Kachin", "Jingpho"},
["kad"] = {"Adara"},
["kae"] = {"Ketangalan"},
["kaf"] = {"Katso"},
["kag"] = {"Kajaman"},
["kah"] = {"Kara (Pobblaght yn Affrick Veanagh)"},
["kai"] = {"Karekare"},
["kaj"] = {"Jju"},
["kak"] = {"Kalanguya", "Kayapa Kallahan"},
["kam"] = {"Kamba (y Cheinney)"},
["kao"] = {"Xaasongaxango"},
["kap"] = {"Bezhta"},
["kaq"] = {"Capanahua"},
["kar"] = {"çhengaghyn Karenagh"},
["kav"] = {"Katukína"},
["kaw"] = {"Kawish"},
["kax"] = {"Kao"},
["kay"] = {"Kamayurá"},
["kba"] = {"Kalarko"},
["kbb"] = {"Kaxuiâna"},
["kbc"] = {"Kadiwéu"},
["kbd"] = {"Kabardish"},
["kbe"] = {"Kanju"},
["kbg"] = {"Khamba"},
["kbh"] = {"Camsá"},
["kbi"] = {"Kaptiau"},
["kbj"] = {"Kari"},
["kbk"] = {"Grass Koiari"},
["kbl"] = {"Kanembu"},
["kbm"] = {"Iwal"},
["kbn"] = {"Kare (Pobblaght yn Affrick Veanagh)"},
["kbo"] = {"Keliko"},
["kbp"] = {"Kabiyè"},
["kbq"] = {"Kamano"},
["kbr"] = {"Kafa"},
["kbs"] = {"Kande"},
["kbt"] = {"Abadi"},
["kbu"] = {"Kabutra"},
["kbv"] = {"Dera (yn Indoneesh)"},
["kbw"] = {"Kaiep"},
["kbx"] = {"Ap Ma"},
["kby"] = {"Manga Kanuri"},
["kbz"] = {"Duhwa"},
["kca"] = {"Khanty"},
["kcb"] = {"Kawacha"},
["kcc"] = {"Lubila"},
["kcd"] = {"Ngkâlmpw Kanum"},
["kce"] = {"Kaivi"},
["kcf"] = {"Ukaan"},
["kcg"] = {"Tyap"},
["kch"] = {"Vono"},
["kci"] = {"Kamantanish"},
["kcj"] = {"Kobiana"},
["kck"] = {"Kalanga"},
["kcl"] = {"Kela (Papeey Guinea Noa)", "Kala"},
["kcm"] = {"Gula (Pobblaght yn Affrick Veanagh)"},
["kcn"] = {"Nubi"},
["kco"] = {"Kinalakna"},
["kcp"] = {"Kanga"},
["kcq"] = {"Kamo"},
["kcr"] = {"Katla"},
["kcs"] = {"Koenoem"},
["kct"] = {"Kaian"},
["kcu"] = {"Kami (Tanzania)"},
["kcv"] = {"Kete"},
["kcw"] = {"Kabwari"},
["kcx"] = {"Kachama-Ganjule"},
["kcy"] = {"Korandje"},
["kcz"] = {"Konongo"},
["kda"] = {"Worimi"},
["kdc"] = {"Kutu"},
["kdd"] = {"Yankunytjatjara"},
["kde"] = {"Makonde"},
["kdf"] = {"Mamusi"},
["kdg"] = {"Seba"},
["kdh"] = {"Tem"},
["kdi"] = {"Kumam"},
["kdj"] = {"Karamojong"},
["kdk"] = {"Numèè", "Kwényi"},
["kdl"] = {"Tsikimba"},
["kdm"] = {"Kagoma"},
["kdn"] = {"Kunda"},
["kdo"] = {"çhengaghyn Kordofaniagh"},
["kdp"] = {"Kaningdon-Nindem"},
["kdq"] = {"Koch"},
["kdr"] = {"Karaimish"},
["kdt"] = {"Kuy"},
["kdu"] = {"Kadaru"},
["kdw"] = {"Koneraw"},
["kdx"] = {"Kam"},
["kdy"] = {"Keder", "Keijar"},
["kdz"] = {"Kwaja"},
["kea"] = {"Kabuverdianu"},
["keb"] = {"Kélé"},
["kec"] = {"Keiga"},
["ked"] = {"Kerewe"},
["kee"] = {"Keres Hiar"},
["kef"] = {"Kpessi"},
["keg"] = {"Tese"},
["keh"] = {"Keak"},
["kei"] = {"Kei"},
["kej"] = {"Kadar"},
["kek"] = {"Kekchí"},
["kel"] = {"Kela (Pobblaght Gheynlagh y Chongo)"},
["kem"] = {"Kemak"},
["ken"] = {"Kenyang"},
["keo"] = {"Kakwa"},
["kep"] = {"Kaikadi"},
["keq"] = {"Kamar"},
["ker"] = {"Kera"},
["kes"] = {"Kugbo"},
["ket"] = {"Ket"},
["keu"] = {"Akebu"},
["kev"] = {"Kanikkaran"},
["kew"] = {"Kewa Heear"},
["kex"] = {"Kukna"},
["key"] = {"Kupia"},
["kez"] = {"Kukele"},
["kfa"] = {"Kodava"},
["kfb"] = {"Kolamish Heear Hwoaie"},
["kfc"] = {"Konda-Dora"},
["kfd"] = {"Korra Koraga"},
["kfe"] = {"Kota (yn Injey)"},
["kff"] = {"Koya"},
["kfg"] = {"Kudiya"},
["kfh"] = {"Kurichiya"},
["kfi"] = {"Kurumba Kannada"},
["kfj"] = {"Kemiehua"},
["kfk"] = {"Kinnaurish"},
["kfl"] = {"Kung"},
["kfm"] = {"Khunsarish"},
["kfn"] = {"Kuk"},
["kfo"] = {"Koro (y Clyst Iuaagagh)"},
["kfp"] = {"Korwa"},
["kfq"] = {"Korku"},
["kfr"] = {"Kachhish", "Kutchish"},
["kfs"] = {"Bilaspurish"},
["kft"] = {"Kanjarish"},
["kfu"] = {"Katkarish"},
["kfv"] = {"Kurmukarish"},
["kfw"] = {"Kharam Naga"},
["kfx"] = {"Kullu Pahari"},
["kfy"] = {"Kumaoni"},
["kfz"] = {"Koromfé"},
["kga"] = {"Koyaga"},
["kgb"] = {"Kawe"},
["kge"] = {"Komering"},
["kgf"] = {"Kube"},
["kgg"] = {"Kusunda"},
["kgi"] = {"Çhengey Chowree Selangor"},
["kgj"] = {"Gamale Kham"},
["kgk"] = {"Kaiwá"},
["kgl"] = {"Kunggari"},
["kgn"] = {"Karingani"},
["kgo"] = {"Krongo"},
["kgp"] = {"Kaingang"},
["kgq"] = {"Kamoro"},
["kgr"] = {"Abun"},
["kgs"] = {"Kumbainggar"},
["kgt"] = {"Somyev"},
["kgu"] = {"Kobol"},
["kgv"] = {"Karas"},
["kgw"] = {"Karon Dori"},
["kgx"] = {"Kamaru"},
["kgy"] = {"Kyerung"},
["kha"] = {"Khasi"},
["khb"] = {"Lü"},
["khc"] = {"Tukang Besi North"},
["khd"] = {"Bädi Kanum"},
["khe"] = {"Korowai"},
["khf"] = {"Khuen"},
["khg"] = {"Khams Tibetan"},
["khh"] = {"Kehu"},
["khi"] = {"çhengaghyn Khoisan"},
["khj"] = {"Kuturmi"},
["khk"] = {"Mongoilish Halh"},
["khl"] = {"Lusi"},
["khn"] = {"Khandesi"},
["kho"] = {"Khotanish", "Sakan"},
["khp"] = {"Kapori", "Kapauri"},
["khq"] = {"Koyra Chiini Songhay"},
["khr"] = {"Kharia"},
["khs"] = {"Kasua"},
["kht"] = {"Khamti"},
["khu"] = {"Nkhumbi"},
["khv"] = {"Khvarshi"},
["khw"] = {"Khowar"},
["khx"] = {"Kanu"},
["khy"] = {"Kele (Pobblaght Gheynlagh y Chongo)"},
["khz"] = {"Keapara"},
["kia"] = {"Kim"},
["kib"] = {"Koalib"},
["kic"] = {"Kickapoo"},
["kid"] = {"Koshin"},
["kie"] = {"Kibet"},
["kif"] = {"Magar Kham Hiar"},
["kig"] = {"Kimaama", "Kimaghima"},
["kih"] = {"Kilmeri"},
["kii"] = {"Kitsai"},
["kij"] = {"Kilivila"},
["kil"] = {"Kariya"},
["kim"] = {"Karagas"},
["kio"] = {"Kiowa"},
["kip"] = {"Sheshi Kham"},
["kiq"] = {"Kosadle", "Kosare"},
["kis"] = {"Kis"},
["kit"] = {"Agob"},
["kiu"] = {"Kirmanjki (çhengey er lheh)"},
["kiv"] = {"Kimbu"},
["kiw"] = {"Kiwai Hiar Hwoaie"},
["kix"] = {"Khiamniungan Naga"},
["kiy"] = {"Kirikiri"},
["kiz"] = {"Kisi"},
["kja"] = {"Mlap"},
["kjb"] = {"Q'anjob'al", "Kanjobal"},
["kjc"] = {"Konjo Slystagh"},
["kjd"] = {"Kiwai Yiass"},
["kje"] = {"Kisar"},
["kjg"] = {"Khmu"},
["kjh"] = {"Khakas"},
["kji"] = {"Zabana"},
["kjj"] = {"Khinalugh"},
["kjk"] = {"Konjo Sleitoil"},
["kjl"] = {"Magar Kham Heear"},
["kjm"] = {"Kháng"},
["kjn"] = {"Kunjen"},
["kjo"] = {"Kinnaurish Harijan"},
["kjp"] = {"Karenish Hiar Pwo"},
["kjq"] = {"Keres Heear"},
["kjr"] = {"Kurudu"},
["kjs"] = {"Kewa Hiar"},
["kjt"] = {"Karenish Phrae Pwo"},
["kju"] = {"Kashaya"},
["kjv"] = {"Çhengey Lettyragh Kaikavagh"},
["kjx"] = {"Ramopa"},
["kjy"] = {"Erave"},
["kjz"] = {"Bumthangkha"},
["kka"] = {"Kakanda"},
["kkb"] = {"Kwerisa"},
["kkc"] = {"Odoodee"},
["kkd"] = {"Kinuku"},
["kke"] = {"Kakabe"},
["kkf"] = {"Kalaktang Monpa"},
["kkg"] = {"Kalinga Ghlion Mabaka"},
["kkh"] = {"Khün"},
["kki"] = {"Kagulu"},
["kkj"] = {"Kako"},
["kkk"] = {"Kokota"},
["kkl"] = {"Kosarek Yale"},
["kkm"] = {"Kiong"},
["kkn"] = {"Kon Keu"},
["kko"] = {"Karko"},
["kkp"] = {"Gugubera", "Koko-Bera"},
["kkq"] = {"Kaeku"},
["kkr"] = {"Kir-Balar"},
["kks"] = {"Giiwo"},
["kkt"] = {"Koi"},
["kku"] = {"Tumi"},
["kkv"] = {"Kangean"},
["kkw"] = {"Teke-Kukuya"},
["kkx"] = {"Kohin"},
["kky"] = {"Guugu Yimidhirr", "Guguyimidjir"},
["kkz"] = {"Kaska"},
["kla"] = {"Klamath-Modoc"},
["klb"] = {"Kiliwa"},
["klc"] = {"Kolbila"},
["kld"] = {"Gamilaraay"},
["kle"] = {"Kulung (Nepaal)"},
["klf"] = {"Kendeje"},
["klg"] = {"Tagakaulo"},
["klh"] = {"Weliki"},
["kli"] = {"Kalumpang"},
["klj"] = {"Khalaj"},
["klk"] = {"Kono (y Naigeer)"},
["kll"] = {"Kagan Kalagan"},
["klm"] = {"Migum"},
["kln"] = {"Kalenjin"},
["klo"] = {"Kapya"},
["klp"] = {"Kamasa"},
["klq"] = {"Rumu"},
["klr"] = {"Khaling"},
["kls"] = {"Kalasha"},
["klt"] = {"Nukna"},
["klu"] = {"Klao"},
["klv"] = {"Maskelynes"},
["klw"] = {"Tado", "Lindu"},
["klx"] = {"Koluwawa"},
["kly"] = {"Kalao"},
["klz"] = {"Kabola"},
["kma"] = {"Konni"},
["kmb"] = {"Kimbundu"},
["kmc"] = {"Dong Yiass"},
["kmd"] = {"Majukayang Kalinga"},
["kme"] = {"Bakole"},
["kmf"] = {"Kare (Papooe Guinea Noa)"},
["kmg"] = {"Kâte"},
["kmh"] = {"Kalam"},
["kmi"] = {"Kami (y Naigeer)"},
["kmj"] = {"Kumarbhag Paharia"},
["kmk"] = {"Limos Kalinga"},
["kml"] = {"Tanudan Kalinga"},
["kmm"] = {"Kom (yn Injey)"},
["kmn"] = {"Awtuw"},
["kmo"] = {"Kwoma"},
["kmp"] = {"Gimme"},
["kmq"] = {"Kwama"},
["kmr"] = {"Kurdish Hwoaie"},
["kms"] = {"Kamasau"},
["kmt"] = {"Kemtuik"},
["kmu"] = {"Kanite"},
["kmv"] = {"Creeole Frangish Karipúna"},
["kmw"] = {"Komo (Pobblaght Gheynlagh y Chongo)"},
["kmx"] = {"Waboda"},
["kmy"] = {"Koma"},
["kmz"] = {"Turkish Khorasan"},
["kna"] = {"Dera (y Naigeer)"},
["knb"] = {"Lubuagan Kalinga"},
["knc"] = {"Kanurish Veanagh"},
["knd"] = {"Konda"},
["kne"] = {"Kankanaey"},
["knf"] = {"Mankanya"},
["kng"] = {"Koongo"},
["kni"] = {"Kanufi"},
["knj"] = {"Kanjobal Heear"},
["knk"] = {"Kuranko"},
["knl"] = {"Keninjal"},
["knm"] = {"Kanamarí"},
["knn"] = {"Konkani (çhengey er lheh)"},
["kno"] = {"Kono (Sierra Leone)"},
["knp"] = {"Kwanja"},
["knq"] = {"Kintaq"},
["knr"] = {"Kaningra"},
["kns"] = {"Kensiu"},
["knt"] = {"Panoan Katukína"},
["knu"] = {"Kono (y Ghuinea)"},
["knv"] = {"Tabo"},
["knw"] = {"Kung-Ekoka"},
["knx"] = {"Kendayan", "Salako"},
["kny"] = {"Kanyok"},
["knz"] = {"Kalamsé"},
["koa"] = {"Konomala"},
["koc"] = {"Kpati"},
["kod"] = {"Kodi"},
["koe"] = {"Kacipo-Bale Suri"},
["kof"] = {"Kubi"},
["kog"] = {"Cogui", "Kogi"},
["koh"] = {"Koyo"},
["koi"] = {"Komish Phermagh"},
["kok"] = {"Konkanish (mooar-hengey)"},
["kol"] = {"Kol (Papooey Guinea Noa)"},
["koo"] = {"Konzo"},
["kop"] = {"Waube"},
["koq"] = {"Kota (Gabon)"},
["kos"] = {"Kosraeish"},
["kot"] = {"Lagwan"},
["kou"] = {"Koke"},
["kov"] = {"Kudu-Camo"},
["kow"] = {"Kugama"},
["koy"] = {"Koyukon"},
["koz"] = {"Korak"},
["kpa"] = {"Kutto"},
["kpb"] = {"Mullu Kurumba"},
["kpc"] = {"Curripaco"},
["kpd"] = {"Koba"},
["kpe"] = {"Kpelle"},
["kpf"] = {"Komba"},
["kpg"] = {"Kapingamarangi"},
["kph"] = {"Kplang"},
["kpi"] = {"Kofei"},
["kpj"] = {"Karajá"},
["kpk"] = {"Kpan"},
["kpl"] = {"Kpala"},
["kpm"] = {"Koho"},
["kpn"] = {"Kepkiriwát"},
["kpo"] = {"Ikposo"},
["kpq"] = {"Korupun-Sela"},
["kpr"] = {"Korafe-Yegha"},
["kps"] = {"Tehit"},
["kpt"] = {"Karata"},
["kpu"] = {"Kafoa"},
["kpv"] = {"Komish Hyriagh"},
["kpw"] = {"Kobon"},
["kpx"] = {"Koialish Sleitoil"},
["kpy"] = {"Koryakish"},
["kpz"] = {"Kupsabiny"},
["kqa"] = {"Mum"},
["kqb"] = {"Kovai"},
["kqc"] = {"Doromu-Koki"},
["kqd"] = {"Koy Sanjaq Surat"},
["kqe"] = {"Kalagan"},
["kqf"] = {"Kakabai"},
["kqg"] = {"Khe"},
["kqh"] = {"Kisankasa"},
["kqi"] = {"Koitabu"},
["kqj"] = {"Koromira"},
["kqk"] = {"Kotafon Gbe"},
["kql"] = {"Kyenele"},
["kqm"] = {"Khisa"},
["kqn"] = {"Kaonde"},
["kqo"] = {"Krahn Hiar"},
["kqp"] = {"Kimré"},
["kqq"] = {"Krenak"},
["kqr"] = {"Kimaragang"},
["kqs"] = {"Kissi Hwoaie"},
["kqt"] = {"Kadazan yn Awin Klias"},
["kqu"] = {"Seroa"},
["kqv"] = {"Okolod"},
["kqw"] = {"Kandas"},
["kqx"] = {"Mser"},
["kqy"] = {"Koorete"},
["kqz"] = {"Korana"},
["kra"] = {"Kumhali"},
["krb"] = {"Karkin"},
["krc"] = {"Karaçhayish-Balkarish"},
["krd"] = {"Kairui-Midiki"},
["kre"] = {"Panará"},
["krf"] = {"Koro (Vanuatu)"},
["krh"] = {"Kurama"},
["kri"] = {"Krio"},
["krj"] = {"Kinaray-A"},
["krk"] = {"Kerek"},
["krl"] = {"Karelish"},
["krn"] = {"Sapo"},
["kro"] = {"çhengaghyn Kru"},
["krp"] = {"Durop"},
["krr"] = {"Krung"},
["krs"] = {"Gbaya (y Toodaan)"},
["krt"] = {"Tumari Kanuri"},
["kru"] = {"Kurukh"},
["krv"] = {"Kavet"},
["krw"] = {"Krahn Heear"},
["krx"] = {"Karon"},
["kry"] = {"Kryts"},
["krz"] = {"Sota Kanum"},
["ksb"] = {"Shambala"},
["ksc"] = {"Kalinga Yiass"},
["ksd"] = {"Kuanua"},
["kse"] = {"Kuni"},
["ksf"] = {"Bafia"},
["ksg"] = {"Kusaghe"},
["ksh"] = {"Kölsch"},
["ksi"] = {"Krisa", "I'saka"},
["ksj"] = {"Uare"},
["ksk"] = {"Kansa"},
["ksl"] = {"Kumalu"},
["ksm"] = {"Kumba"},
["ksn"] = {"Kasiguranin"},
["kso"] = {"Kofa"},
["ksp"] = {"Kaba"},
["ksq"] = {"Kwaami"},
["ksr"] = {"Borong"},
["kss"] = {"Kisi Yiass"},
["kst"] = {"Winyé"},
["ksu"] = {"Khamyang"},
["ksv"] = {"Kusu"},
["ksw"] = {"Karenish S'gaw"},
["ksx"] = {"Kedang"},
["ksy"] = {"Kharia Thar"},
["ksz"] = {"Kodaku"},
["kta"] = {"Katua"},
["ktb"] = {"Kambaata"},
["ktc"] = {"Kholok"},
["ktd"] = {"Kokata", "Kukatha"},
["kte"] = {"Nubri"},
["ktf"] = {"Kwami"},
["ktg"] = {"Kalkutung"},
["kth"] = {"Karanga"},
["kti"] = {"Muyu Hwoaie"},
["ktj"] = {"Plapo Krumen"},
["ktk"] = {"Kaniet"},
["ktl"] = {"Koroshi"},
["ktm"] = {"Kurti"},
["ktn"] = {"Karitiâna"},
["kto"] = {"Kuot"},
["ktp"] = {"Kaduo"},
["ktq"] = {"Katabaga"},
["kts"] = {"Muyu Yiass"},
["ktt"] = {"Ketum"},
["ktu"] = {"Kitubish (Pobblaght Gheynlagh y Chongo)"},
["ktv"] = {"Katu Hiar"},
["ktw"] = {"Kato"},
["ktx"] = {"Kaxararí"},
["kty"] = {"Kango (Slyst Bas-Uélé)"},
["ktz"] = {"Juǀʼhoan", "Juǀʼhoansi"},
["kub"] = {"Kutep"},
["kuc"] = {"Kwinsu"},
["kud"] = {"'Auhelawa"},
["kue"] = {"Kuman (Papooey Guinea Noa)"},
["kuf"] = {"Katu Heear"},
["kug"] = {"Kupa"},
["kuh"] = {"Kushi"},
["kui"] = {"Kuikúro-Kalapálo", "Kalapalo"},
["kuj"] = {"Kuria"},
["kuk"] = {"Kepo'"},
["kul"] = {"Kulere"},
["kum"] = {"Kumykish"},
["kun"] = {"Kunama"},
["kuo"] = {"Kumukio"},
["kup"] = {"Kunimaipa"},
["kuq"] = {"Karipuna"},
["kus"] = {"Kusaal"},
["kut"] = {"Kutenai"},
["kuu"] = {"Kuskokwim Eaghtyragh"},
["kuv"] = {"Kur"},
["kuw"] = {"Kpagua"},
["kux"] = {"Kukatja"},
["kuy"] = {"Kuuku-Ya'u"},
["kuz"] = {"Kunza"},
["kva"] = {"Bagvalal"},
["kvb"] = {"Kubu"},
["kvc"] = {"Kove"},
["kvd"] = {"Kui (yn Indoneesh)"},
["kve"] = {"Kalabakanish"},
["kvf"] = {"Kabalai"},
["kvg"] = {"Kuni-Boazi"},
["kvh"] = {"Komodo"},
["kvi"] = {"Kwang"},
["kvj"] = {"Psikye"},
["kvk"] = {"Çhengey Chowree Choreeagh"},
["kvl"] = {"Kayaw"},
["kvm"] = {"Kendem"},
["kvn"] = {"Border Kuna"},
["kvo"] = {"Dobel"},
["kvp"] = {"Kompane"},
["kvq"] = {"Karenish Geba"},
["kvr"] = {"Kerinci"},
["kvt"] = {"Karenish Lahta", "Lahta"},
["kvu"] = {"Karenish Yinbaw"},
["kvv"] = {"Kola"},
["kvw"] = {"Wersing"},
["kvx"] = {"Parkari Koli"},
["kvy"] = {"Karenish Yintale", "Yintale"},
["kvz"] = {"Tsakwambo", "Tsaukambo"},
["kwa"] = {"Dâw"},
["kwb"] = {"Kwa"},
["kwc"] = {"Likwala"},
["kwd"] = {"Kwaio"},
["kwe"] = {"Kwerba"},
["kwf"] = {"Kwara'ae"},
["kwg"] = {"Sara Kaba Deme"},
["kwh"] = {"Kowiai"},
["kwi"] = {"Awa-Cuaiquer"},
["kwj"] = {"Kwanga"},
["kwk"] = {"Kwakiutl"},
["kwl"] = {"Kofyar"},
["kwm"] = {"Kwambish"},
["kwn"] = {"Kwangalish"},
["kwo"] = {"Kwomtarish"},
["kwp"] = {"Kodia"},
["kwr"] = {"Kwer"},
["kws"] = {"Kwese"},
["kwt"] = {"Kwesten"},
["kwu"] = {"Kwakum"},
["kwv"] = {"Sara Kaba Náà"},
["kww"] = {"Kwintish"},
["kwx"] = {"Khirwar"},
["kwy"] = {"Kongo San Salvador"},
["kwz"] = {"Kwadi"},
["kxa"] = {"Kairiru"},
["kxb"] = {"Krobu"},
["kxc"] = {"Konso", "Khonso"},
["kxd"] = {"Brunei"},
["kxf"] = {"Manumanaw Karen", "Manumanaw"},
["kxh"] = {"Karo (yn Eetoip)"},
["kxi"] = {"Keningau Murut"},
["kxj"] = {"Kulfa"},
["kxk"] = {"Karenish Zayein"},
["kxm"] = {"Khmerish Hwoaie"},
["kxn"] = {"Kanowit-Tanjong Melanau"},
["kxo"] = {"Kanoé"},
["kxp"] = {"Wadiyara Koli"},
["kxq"] = {"Smärky Kanum"},
["kxr"] = {"Koro (Papooey Guinea Noa)"},
["kxs"] = {"Kangjia"},
["kxt"] = {"Koiwat"},
["kxv"] = {"Kuvi"},
["kxw"] = {"Konai"},
["kxx"] = {"Likuba"},
["kxy"] = {"Kayong"},
["kxz"] = {"Kerewo"},
["kya"] = {"Kwaya"},
["kyb"] = {"Butbut Kalinga"},
["kyc"] = {"Kyaka"},
["kyd"] = {"Karey"},
["kye"] = {"Krache"},
["kyf"] = {"Kouya"},
["kyg"] = {"Keyagana"},
["kyh"] = {"Karok"},
["kyi"] = {"Kiput"},
["kyj"] = {"Karao"},
["kyk"] = {"Kamayo"},
["kyl"] = {"Kalapuya"},
["kym"] = {"Kpatili"},
["kyn"] = {"Binukidnon Hwoaie"},
["kyo"] = {"Kelon"},
["kyp"] = {"Kang"},
["kyq"] = {"Kenga"},
["kyr"] = {"Kuruáya"},
["kys"] = {"Baram Kayan"},
["kyt"] = {"Kayagar"},
["kyu"] = {"Kayah Heear"},
["kyv"] = {"Kayort"},
["kyw"] = {"Kudmali"},
["kyx"] = {"Rapoisi"},
["kyy"] = {"Kambaira"},
["kyz"] = {"Kayabí"},
["kza"] = {"Karaboro Heear"},
["kzb"] = {"Kaibobo"},
["kzc"] = {"Bondoukou Kulango"},
["kzd"] = {"Kadai"},
["kze"] = {"Kosena"},
["kzf"] = {"Da'a Kaili"},
["kzg"] = {"Kikai"},
["kzi"] = {"Kelabit"},
["kzk"] = {"Kazukuru"},
["kzl"] = {"Kayeli"},
["kzm"] = {"Kais"},
["kzn"] = {"Kokola"},
["kzo"] = {"Kaningi"},
["kzp"] = {"Kaidipang"},
["kzq"] = {"Kaike"},
["kzr"] = {"Karang"},
["kzs"] = {"Sugut Dusun"},
["kzu"] = {"Kayupulau"},
["kzv"] = {"Komyandaret"},
["kzw"] = {"Karirí-Xocó"},
["kzx"] = {"Kamarian"},
["kzy"] = {"Kango (Slyst Tshopo)"},
["kzz"] = {"Kalabra"},
["laa"] = {"Subanen Yiass"},
["lab"] = {"Linnagh A"},
["lac"] = {"Lacandon"},
["lad"] = {"Ladinoish"},
["lae"] = {"Pattani"},
["laf"] = {"Lafofa"},
["lag"] = {"Rangi"},
["lah"] = {"Lahnda"},
["lai"] = {"Lambya"},
["laj"] = {"Lango (Ooganda)"},
["lal"] = {"Lalia"},
["lam"] = {"Lamba"},
["lan"] = {"Laru"},
["lap"] = {"Laka (Shad)"},
["laq"] = {"Qabiao"},
["lar"] = {"Larteh"},
["las"] = {"Lama (y Togo)"},
["lau"] = {"Laba"},
["law"] = {"Lauje"},
["lax"] = {"Tiwa"},
["lay"] = {"Lama Bai"},
["laz"] = {"Aribwatsa"},
["lbb"] = {"Label"},
["lbc"] = {"Lakkia"},
["lbe"] = {"Lakish"},
["lbf"] = {"Tinani"},
["lbg"] = {"Laopang"},
["lbi"] = {"La'bi"},
["lbj"] = {"Ladakhi"},
["lbk"] = {"Bontok Veanagh"},
["lbl"] = {"Bikol Libon"},
["lbm"] = {"Lodhi"},
["lbn"] = {"Rmeet"},
["lbo"] = {"Laven"},
["lbq"] = {"Wampar"},
["lbr"] = {"Lohorung"},
["lbs"] = {"Çhengey Chowree Leebagh"},
["lbt"] = {"Lachi"},
["lbu"] = {"Labu"},
["lbv"] = {"Lavatbura-Lamusong"},
["lbw"] = {"Tolaki"},
["lbx"] = {"Lawangan"},
["lby"] = {"Lamalama", "Lamu-Lamu"},
["lbz"] = {"Lardil"},
["lcc"] = {"Legenyem"},
["lcd"] = {"Lola"},
["lce"] = {"Loncong", "Sekak"},
["lcf"] = {"Lubu"},
["lch"] = {"Luchazi"},
["lcl"] = {"Lisela"},
["lcm"] = {"Tungag"},
["lcp"] = {"Lawa Heear"},
["lcq"] = {"Luhu"},
["lcs"] = {"Lisabata-Nuniali"},
["lda"] = {"Kla-Dan"},
["ldb"] = {"Dũya"},
["ldd"] = {"Lurish"},
["ldg"] = {"Lenyima"},
["ldh"] = {"Lamja-Dengsa-Tola"},
["ldi"] = {"Laari"},
["ldj"] = {"Lemoro"},
["ldk"] = {"Leelau"},
["ldl"] = {"Kaan"},
["ldm"] = {"Landoma"},
["ldn"] = {"Láadan"},
["ldo"] = {"Loo"},
["ldp"] = {"Tso"},
["ldq"] = {"Lufu"},
["lea"] = {"Lega-Shabunda"},
["leb"] = {"Lala-Bisa"},
["lec"] = {"Leco"},
["led"] = {"Lendu"},
["lee"] = {"Lyélé"},
["lef"] = {"Lelemi"},
["leh"] = {"Lenje"},
["lei"] = {"Lemio"},
["lej"] = {"Lengola"},
["lek"] = {"Leipon"},
["lel"] = {"Lele (Pobblaght Gheynlagh y Chongo)"},
["lem"] = {"Nomaande"},
["len"] = {"Lenca"},
["leo"] = {"Leti (Cameroon)"},
["lep"] = {"Lepcha"},
["leq"] = {"Lembena"},
["ler"] = {"Lenkau"},
["les"] = {"Lese"},
["let"] = {"Lesing-Gelimi", "Amio-Gelimi"},
["leu"] = {"Kara (Papooey Guinea Noa)"},
["lev"] = {"Lamma"},
["lew"] = {"Ledo Kaili"},
["lex"] = {"Luang"},
["ley"] = {"Lemolang"},
["lez"] = {"Lesgish"},
["lfa"] = {"Lefa"},
["lfn"] = {"Lingua Franca Nova"},
["lga"] = {"Lungga"},
["lgb"] = {"Laghu"},
["lgg"] = {"Lugbara"},
["lgh"] = {"Laghuu"},
["lgi"] = {"Lengilu"},
["lgk"] = {"Lingarak", "Neverver"},
["lgl"] = {"Wala"},
["lgm"] = {"Lega-Mwenga"},
["lgn"] = {"T'apo", "Opuuo"},
["lgo"] = {"Lango (y Toodaan Yiass)"},
["lgq"] = {"Logba"},
["lgr"] = {"Lengo"},
["lgs"] = {"Çhengey Chowree Ghuinea-Bissau", "Língua Gestual Guineense"},
["lgt"] = {"Pahi"},
["lgu"] = {"Longgu"},
["lgz"] = {"Ligenza"},
["lha"] = {"Laha (Viet Nam)"},
["lhh"] = {"Laha (yn Indoneesh)"},
["lhi"] = {"Lahu Shi"},
["lhl"] = {"Lahul Lohar"},
["lhm"] = {"Lhomi"},
["lhn"] = {"Lahanan"},
["lhp"] = {"Lhokpu"},
["lhs"] = {"Mlahsö"},
["lht"] = {"Lo-Toga"},
["lhu"] = {"Lahu"},
["lia"] = {"Limba Veanagh Heear"},
["lib"] = {"Likum"},
["lic"] = {"Hlai"},
["lid"] = {"Nyindrou"},
["lie"] = {"Likila"},
["lif"] = {"Limbu"},
["lig"] = {"Ligbi"},
["lih"] = {"Lihir"},
["lij"] = {"Ligoorish"},
["lik"] = {"Lika"},
["lil"] = {"Lillooet"},
["lio"] = {"Liki"},
["lip"] = {"Sekpele"},
["liq"] = {"Libido"},
["lir"] = {"Baarle Laibeeragh"},
["lis"] = {"Lisu"},
["liu"] = {"Logorik"},
["liv"] = {"Liv"},
["liw"] = {"Col"},
["lix"] = {"Liabuku"},
["liy"] = {"Banda-Bambari"},
["liz"] = {"Libinza"},
["lja"] = {"Golpa"},
["lje"] = {"Rampi"},
["lji"] = {"Laiyolo"},
["ljl"] = {"Li'o"},
["ljp"] = {"Lampung Api"},
["ljw"] = {"Yirandali"},
["ljx"] = {"Yuru"},
["lka"] = {"Lakalei"},
["lkb"] = {"Kabras", "Lukabaras"},
["lkc"] = {"Kucong"},
["lkd"] = {"Lakondê"},
["lke"] = {"Kenyi"},
["lkh"] = {"Lakha"},
["lki"] = {"Laki"},
["lkj"] = {"Remun"},
["lkl"] = {"Laeko-Libuat"},
["lkm"] = {"Kalaamaya"},
["lkn"] = {"Lakon", "Vure"},
["lko"] = {"Khayo", "Olukhayo"},
["lkr"] = {"Päri"},
["lks"] = {"Kisa", "Olushisa"},
["lkt"] = {"Lakota"},
["lku"] = {"Kungkari"},
["lky"] = {"Lokoya"},
["lla"] = {"Lala-Roba"},
["llb"] = {"Lolo"},
["llc"] = {"Lele (y Ghuinea)"},
["lld"] = {"Ladinish"},
["lle"] = {"Lele (Papooey Guinea Noa)"},
["llf"] = {"Hermit"},
["llg"] = {"Lole"},
["llh"] = {"Lamu"},
["lli"] = {"Teke-Laali"},
["llj"] = {"Ladji Ladji"},
["llk"] = {"Lelak"},
["lll"] = {"Lilau"},
["llm"] = {"Lasalimu"},
["lln"] = {"Lele (Shad)"},
["llp"] = {"Efate Hwoaie"},
["llq"] = {"Lolak"},
["lls"] = {"Glare Chowree Litaanagh"},
["llu"] = {"Lau"},
["llx"] = {"Lauan"},
["lma"] = {"Limba Hiar"},
["lmb"] = {"Merei"},
["lmc"] = {"Limilngan"},
["lmd"] = {"Lumun"},
["lme"] = {"Pévé"},
["lmf"] = {"Lembata Yiass"},
["lmg"] = {"Lamogai"},
["lmh"] = {"Lambichhong"},
["lmi"] = {"Lombi"},
["lmj"] = {"Lembata Heear"},
["lmk"] = {"Lamkang"},
["lml"] = {"Hano"},
["lmn"] = {"Lambadi"},
["lmo"] = {"Lombardish"},
["lmp"] = {"Limbum"},
["lmq"] = {"Lamatuka"},
["lmr"] = {"Lamalera"},
["lmu"] = {"Lamenu"},
["lmv"] = {"Lomaiviti"},
["lmw"] = {"Lake Miwok"},
["lmx"] = {"Laimbue"},
["lmy"] = {"Lamboya"},
["lna"] = {"Langbashe"},
["lnb"] = {"Mbalanhu"},
["lnd"] = {"Lundayeh", "Lun Bawang"},
["lng"] = {"Langobardish"},
["lnh"] = {"Lanoh"},
["lni"] = {"Daantanai'"},
["lnj"] = {"Leningitij"},
["lnl"] = {"Banda Veanagh Yiass"},
["lnm"] = {"Langam"},
["lnn"] = {"Lorediakarkar"},
["lns"] = {"Lamnso'"},
["lnu"] = {"Longuda"},
["lnw"] = {"Lanima"},
["lnz"] = {"Lonzo"},
["loa"] = {"Loloda"},
["lob"] = {"Lobi"},
["loc"] = {"Inonhan"},
["loe"] = {"Saluan"},
["lof"] = {"Logol"},
["log"] = {"Logo"},
["loh"] = {"Laarim", "Narim"},
["loi"] = {"Loma (y Clyst Iuaagagh)"},
["loj"] = {"Lou"},
["lok"] = {"Loko"},
["lol"] = {"Mongo"},
["lom"] = {"Loma (y Laibeer)"},
["lon"] = {"Lombwe Malawi"},
["loo"] = {"Lombo"},
["lop"] = {"Lopa"},
["loq"] = {"Lobala"},
["lor"] = {"Téén"},
["los"] = {"Loniu"},
["lot"] = {"Otuho"},
["lou"] = {"Creeole Louisiana"},
["lov"] = {"Lopi"},
["low"] = {"Tampias Lobu"},
["lox"] = {"Loun"},
["loy"] = {"Loke"},
["loz"] = {"Lozish"},
["lpa"] = {"Lelepa"},
["lpe"] = {"Lepki"},
["lpn"] = {"Long Phuri Naga"},
["lpo"] = {"Lipo"},
["lpx"] = {"Lopit"},
["lqr"] = {"Logir"},
["lra"] = {"Rara Bakati'"},
["lrc"] = {"Lurish Hwoaie"},
["lre"] = {"Lauryssish"},
["lrg"] = {"Laragia"},
["lri"] = {"Marachi", "Olumarachi"},
["lrk"] = {"Loarki"},
["lrl"] = {"Lari"},
["lrm"] = {"Marama", "Olumarama"},
["lrn"] = {"Lorang"},
["lro"] = {"Laro"},
["lrr"] = {"Yamphu Yiass"},
["lrt"] = {"Malayish Larantuka"},
["lrv"] = {"Larevat"},
["lrz"] = {"Lemerig"},
["lsa"] = {"Lasgerdi"},
["lsb"] = {"Çhengey Chowree Vurundeeagh", "Langue des Signes Burundaise"},
["lsc"] = {"Çhengey Chowree Albarradas", "Lengua de señas Albarradas"},
["lsd"] = {"Lishana Deni"},
["lse"] = {"Lusengo"},
["lsh"] = {"Lish"},
["lsi"] = {"Lashi"},
["lsl"] = {"Çhengey Chowree Latvagh"},
["lsm"] = {"Saamia", "Olusamia"},
["lsn"] = {"Çhengey Chowree Hibetagh"},
["lso"] = {"Çhengey Chowree Laosaghe"},
["lsp"] = {"Çhengey Chowree Phanamaagh", "Lengua de Señas Panameñas"},
["lsr"] = {"Aruop"},
["lss"] = {"Lasi"},
["lst"] = {"Çhengey Chowree yn Trinaid as Tobago"},
["lsv"] = {"Çhengey Chowree Sivia"},
["lsw"] = {"Çhengey Chowree Heshellagh", "Lalang Siny Seselwa", "Langue des Signes Seychelloise"},
["lsy"] = {"Çhengey Chowree Wirrishagh"},
["ltc"] = {"Sheenish Veanagh Yeianagh"},
["ltg"] = {"Latgalish"},
["lth"] = {"Thur"},
["lti"] = {"Leti (yn Indoneesh)"},
["ltn"] = {"Latundê"},
["lto"] = {"Tsotso", "Olutsotso"},
["lts"] = {"Tachoni", "Lutachoni"},
["ltu"] = {"Latu"},
["lua"] = {"Luba-Lulua"},
["luc"] = {"Aringa"},
["lud"] = {"Ludish"},
["lue"] = {"Luvale"},
["luf"] = {"Laua"},
["lui"] = {"Luiseno"},
["luj"] = {"Luna"},
["luk"] = {"Lunanakha"},
["lul"] = {"Olu'bo"},
["lum"] = {"Luimbi"},
["lun"] = {"Lunda"},
["luo"] = {"Luo (y Cheinney as Tanzania)", "Dholuo"},
["lup"] = {"Lumbu"},
["luq"] = {"Lucumi"},
["lur"] = {"Laura"},
["lus"] = {"Lushai"},
["lut"] = {"Lushootseed"},
["luu"] = {"Lumba-Yakkha"},
["luv"] = {"Luwati"},
["luw"] = {"Luo (Cameroon)"},
["luy"] = {"Luyia", "Oluluyia"},
["luz"] = {"Lurish Yiass"},
["lva"] = {"Maku'a"},
["lvi"] = {"Lavi"},
["lvk"] = {"Lavukaleve"},
["lvl"] = {"Lwel"},
["lvs"] = {"Latvish Stundayrtit"},
["lvu"] = {"Levuka"},
["lwa"] = {"Lwalu"},
["lwe"] = {"Lewo Eleng"},
["lwg"] = {"Wanga", "Oluwanga"},
["lwh"] = {"Lachi Bane"},
["lwl"] = {"Lawa Hiar"},
["lwm"] = {"Laomish"},
["lwo"] = {"Luwo"},
["lws"] = {"Çhengey Chowree Malawi"},
["lwt"] = {"Lewotobi"},
["lwu"] = {"Lawu"},
["lww"] = {"Lewo"},
["lxm"] = {"Lakurumau"},
["lya"] = {"Layakha"},
["lyg"] = {"Lyngngam"},
["lyn"] = {"Luyana"},
["lzh"] = {"Sheenish Lettyragh"},
["lzl"] = {"Litzlitz"},
["lzn"] = {"Leinong Naga"},
["lzz"] = {"Laz"},
["maa"] = {"Mazatecish Tecóatl San Jerónimo"},
["mab"] = {"Mixtecish Yutanduchi"},
["mad"] = {"Madurish"},
["mae"] = {"Bo-Rukul"},
["maf"] = {"Mafa"},
["mag"] = {"Magahi"},
["mai"] = {"Maithilish"},
["maj"] = {"Mazatecish Jalapa De Díaz"},
["mak"] = {"Makasar"},
["mam"] = {"Mam"},
["man"] = {"Mandingo", "Manding"},
["map"] = {"çhengaghyn Austroneeshagh"},
["maq"] = {"Mazatecish Chiquihuitlán"},
["mas"] = {"Masai"},
["mat"] = {"Matlatzinca San Francisco"},
["mau"] = {"Mazatecish Huautla"},
["mav"] = {"Sateré-Mawé"},
["maw"] = {"Mampruli"},
["max"] = {"Malayish Maluku Hwoaie"},
["maz"] = {"Mazahua Veanagh"},
["mba"] = {"Higaonon"},
["mbb"] = {"Manobo Bukidnon Heear"},
["mbc"] = {"Macushi"},
["mbd"] = {"Manobo Dibabawon"},
["mbe"] = {"Molale"},
["mbf"] = {"Malayish Baba"},
["mbh"] = {"Mangseng"},
["mbi"] = {"Manobo Ilianen"},
["mbj"] = {"Nadëb"},
["mbk"] = {"Malol"},
["mbl"] = {"Maxakalí"},
["mbm"] = {"Ombamba"},
["mbn"] = {"Macaguán"},
["mbo"] = {"Mbo (Cameroon)"},
["mbp"] = {"Malayo"},
["mbq"] = {"Maisin"},
["mbr"] = {"Nukak Makú"},
["mbs"] = {"Manobo Sarangani"},
["mbt"] = {"Manobo Matigsalug"},
["mbu"] = {"Mbula-Bwazza"},
["mbv"] = {"Mbulungish"},
["mbw"] = {"Maring"},
["mbx"] = {"Mari (Queiggey East Sepik)"},
["mby"] = {"Memoni"},
["mbz"] = {"Mixtecish Amoltepec"},
["mca"] = {"Maca"},
["mcb"] = {"Machiguenga"},
["mcc"] = {"Bitur"},
["mcd"] = {"Sharanahua"},
["mce"] = {"Mixtecish Itundujia"},
["mcf"] = {"Matsés"},
["mcg"] = {"Mapoyo"},
["mch"] = {"Maquiritari"},
["mci"] = {"Mese"},
["mcj"] = {"Mvanip"},
["mck"] = {"Mbunda"},
["mcl"] = {"Macaguaje"},
["mcm"] = {"Creeole Portiugish Malaccagh"},
["mcn"] = {"Masana"},
["mco"] = {"Coatlán Mixe"},
["mcp"] = {"Makaa"},
["mcq"] = {"Ese"},
["mcr"] = {"Menya"},
["mcs"] = {"Mambai"},
["mct"] = {"Mengisa"},
["mcu"] = {"Mambila Chameroon"},
["mcv"] = {"Minanibai"},
["mcw"] = {"Mawa (Shad)"},
["mcx"] = {"Mpiemo"},
["mcy"] = {"Watut Yiass"},
["mcz"] = {"Mawan"},
["mda"] = {"Mada (y Naigeer)"},
["mdb"] = {"Morigi"},
["mdc"] = {"Male (Papooey Guinea Noa)"},
["mdd"] = {"Mbum"},
["mde"] = {"Maba (Shad)"},
["mdf"] = {"Moksha"},
["mdg"] = {"Massalat"},
["mdh"] = {"Maguindanaon"},
["mdi"] = {"Mamvu"},
["mdj"] = {"Mangbetu"},
["mdk"] = {"Mangbutu"},
["mdl"] = {"Çhengey Chowree Valtagh"},
["mdm"] = {"Mayogo"},
["mdn"] = {"Mbati"},
["mdp"] = {"Mbala"},
["mdq"] = {"Mbole"},
["mdr"] = {"Mandar"},
["mds"] = {"Maria (Papooey Guinea Noa)"},
["mdt"] = {"Mbere"},
["mdu"] = {"Mboko"},
["mdv"] = {"Mixtecish Monteverde Santa Lucía"},
["mdw"] = {"Mbosi"},
["mdx"] = {"Dizin"},
["mdy"] = {"Male (yn Eetoipt)"},
["mdz"] = {"Suruí Do Pará"},
["mea"] = {"Menka"},
["meb"] = {"Ikobi"},
["mec"] = {"Marra"},
["med"] = {"Melpa"},
["mee"] = {"Mengen"},
["mef"] = {"Megam"},
["meh"] = {"Mixtecish Tlaxiaco Heear Yiass"},
["mei"] = {"Midob"},
["mej"] = {"Meyah"},
["mek"] = {"Mekeo"},
["mel"] = {"Melanau Veanagh"},
["mem"] = {"Mangala"},
["men"] = {"Mende (Sierra Leone)"},
["meo"] = {"Malayish Kedah"},
["mep"] = {"Miriwoong"},
["meq"] = {"Merey"},
["mer"] = {"Meru"},
["mes"] = {"Masmaje"},
["met"] = {"Mato"},
["meu"] = {"Motu"},
["mev"] = {"Mano"},
["mew"] = {"Maaka"},
["mey"] = {"Hassaniyya"},
["mez"] = {"Menominee"},
["mfa"] = {"Malayish Pattani Malay"},
["mfb"] = {"Bangka"},
["mfc"] = {"Mba"},
["mfd"] = {"Mendankwe-Nkwen"},
["mfe"] = {"Creeole Mwirrishagh"},
["mff"] = {"Naki"},
["mfg"] = {"Mogofin"},
["mfh"] = {"Matal"},
["mfi"] = {"Wandala"},
["mfj"] = {"Mefele"},
["mfk"] = {"Mofu Hwoaie"},
["mfl"] = {"Putai"},
["mfm"] = {"Marghi Yiass"},
["mfn"] = {"Mbembe Cross River"},
["mfo"] = {"Mbe"},
["mfp"] = {"Malayish Makassar"},
["mfq"] = {"Moba"},
["mfr"] = {"Marrithiyel"},
["mfs"] = {"Çhengey Chowree Veksicagh"},
["mft"] = {"Mokerang"},
["mfu"] = {"Mbwela"},
["mfv"] = {"Mandjak"},
["mfw"] = {"Mulaha"},
["mfx"] = {"Melo"},
["mfy"] = {"Mayo"},
["mfz"] = {"Mabaan"},
["mga"] = {"Yernish Veanagh (900-1200)"},
["mgb"] = {"Mararit"},
["mgc"] = {"Morokodo"},
["mgd"] = {"Moru"},
["mge"] = {"Mango"},
["mgf"] = {"Maklew"},
["mgg"] = {"Mpumpong"},
["mgh"] = {"Makhuwa-Meetto"},
["mgi"] = {"Lijili"},
["mgj"] = {"Abureni"},
["mgk"] = {"Mawes"},
["mgl"] = {"Maleu-Kilenge"},
["mgm"] = {"Mambae"},
["mgn"] = {"Mbangi"},
["mgo"] = {"Meta'"},
["mgp"] = {"Magar Hiar"},
["mgq"] = {"Malila"},
["mgr"] = {"Mambwe-Lungu"},
["mgs"] = {"Manda (Tanzania)"},
["mgt"] = {"Mongol"},
["mgu"] = {"Mailu"},
["mgv"] = {"Matengo"},
["mgw"] = {"Matumbi"},
["mgy"] = {"Mbunga"},
["mgz"] = {"Mbugwe"},
["mha"] = {"Manda (yn Injey)"},
["mhb"] = {"Mahongwe"},
["mhc"] = {"Mocho"},
["mhd"] = {"Mbugu"},
["mhe"] = {"Besisi", "Mah Meri"},
["mhf"] = {"Mamaa"},
["mhg"] = {"Margu"},
["mhi"] = {"Ma'di"},
["mhj"] = {"Mogholi"},
["mhk"] = {"Mungaka"},
["mhl"] = {"Mauwake"},
["mhm"] = {"Makhuwa-Moniga"},
["mhn"] = {"Mócheno"},
["mho"] = {"Mashi (y Tambia)"},
["mhp"] = {"Malayish Bali"},
["mhq"] = {"Mandan"},
["mhr"] = {"Mari Hiar"},
["mhs"] = {"Buru (yn Indoneesh)"},
["mht"] = {"Mandahuaca"},
["mhu"] = {"Digaro-Mishmi", "Darang Deng"},
["mhw"] = {"Mbukushu"},
["mhx"] = {"Maru", "Lhaovo"},
["mhy"] = {"Ma'anyan"},
["mhz"] = {"Mor (Elanyn Mor)"},
["mia"] = {"Miami"},
["mib"] = {"Mixtecish Atatláhuca"},
["mic"] = {"Mi'kmaq", "Micmacish"},
["mid"] = {"Mandaish"},
["mie"] = {"Mixtecish Ocotepec"},
["mif"] = {"Mofu-Gudur"},
["mig"] = {"Mixtecish San Miguel El Grande"},
["mih"] = {"Mixtecish Chayuco"},
["mii"] = {"Mixtecish Chigmecatitlán"},
["mij"] = {"Abar", "Mungbam"},
["mik"] = {"Mikasuki"},
["mil"] = {"Mixtecish Peñoles"},
["mim"] = {"Mixtecish Alacatlatzala"},
["min"] = {"Minangkabau"},
["mio"] = {"Mixtecish Pinotepa Nacional"},
["mip"] = {"Mixtecish Apasco-Apoala"},
["miq"] = {"Mískito"},
["mir"] = {"Isthmus Mixe"},
["mis"] = {"çhengaghyn gyn coad"},
["mit"] = {"Mixtecish Puebla Yiassc"},
["miu"] = {"Mixtecish Cacaloxtepec"},
["miw"] = {"Akoye"},
["mix"] = {"Mixtecish Mixtepec"},
["miy"] = {"Mixtecish Ayutla"},
["miz"] = {"Mixtecish Coatzospan"},
["mjb"] = {"Makalero"},
["mjc"] = {"Mixtecish San Juan Colorado"},
["mjd"] = {"Maidu Heear Hwoaie"},
["mje"] = {"Muskum"},
["mjg"] = {"Tu"},
["mjh"] = {"Mwera (Nyasa)"},
["mji"] = {"Kim Mun"},
["mjj"] = {"Mawak"},
["mjk"] = {"Matukar"},
["mjl"] = {"Mandeali"},
["mjm"] = {"Medebur"},
["mjn"] = {"Ma (Papooey Guinea Noa)"},
["mjo"] = {"Malankuravan"},
["mjp"] = {"Malapandaram"},
["mjq"] = {"Malaryan"},
["mjr"] = {"Malavedan"},
["mjs"] = {"Miship"},
["mjt"] = {"Sauria Paharia"},
["mju"] = {"Manna-Dora"},
["mjv"] = {"Mannan"},
["mjw"] = {"Karbi"},
["mjx"] = {"Mahali"},
["mjy"] = {"Mohicanish"},
["mjz"] = {"Majhi"},
["mka"] = {"Mbre"},
["mkb"] = {"Mal Paharia"},
["mkc"] = {"Siliput"},
["mke"] = {"Mawchi"},
["mkf"] = {"Miya"},
["mkg"] = {"Mak (y Çheen)"},
["mkh"] = {"çhengaghyn Mon-Khmeragh"},
["mki"] = {"Dhatki"},
["mkj"] = {"Mokilish"},
["mkk"] = {"Byep"},
["mkl"] = {"Mokole"},
["mkm"] = {"Moklen"},
["mkn"] = {"Malayish Kupang"},
["mko"] = {"Mingang Doso"},
["mkp"] = {"Moikodi"},
["mkq"] = {"Bay Miwok"},
["mkr"] = {"Malas"},
["mks"] = {"Mixtecish Silacayoapan"},
["mkt"] = {"Vamale"},
["mku"] = {"Konyanka Maninka"},
["mkv"] = {"Mafea"},
["mkw"] = {"Kitubish (y Congo)"},
["mkx"] = {"Minobo Kinamiging"},
["mky"] = {"Makish Hiar"},
["mkz"] = {"Makasae"},
["mla"] = {"Malo"},
["mlb"] = {"Mbule"},
["mlc"] = {"Cao Lan"},
["mle"] = {"Manambu"},
["mlf"] = {"Mal"},
["mlh"] = {"Mape"},
["mli"] = {"Malimpung"},
["mlj"] = {"Miltu"},
["mlk"] = {"Ilwana", "Kiwilwana"},
["mll"] = {"Malua Bay"},
["mlm"] = {"Mulam"},
["mln"] = {"Malango"},
["mlo"] = {"Mlomp"},
["mlp"] = {"Bargam"},
["mlq"] = {"Maninkish Heear"},
["mlr"] = {"Vame"},
["mls"] = {"Masalit"},
["mlu"] = {"To'abaita"},
["mlv"] = {"Motlav", "Mwotlap"},
["mlw"] = {"Moloko"},
["mlx"] = {"Malfaxal", "Naha'ai"},
["mlz"] = {"Malaynon"},
["mma"] = {"Mama"},
["mmb"] = {"Momina"},
["mmc"] = {"Mazahua Michoacán"},
["mmd"] = {"Maonan"},
["mme"] = {"Mae"},
["mmf"] = {"Mundat"},
["mmg"] = {"Ambrym Hwoaie"},
["mmh"] = {"Mehináku"},
["mmi"] = {"Musar"},
["mmj"] = {"Majhwar"},
["mmk"] = {"Mukha-Dora"},
["mml"] = {"Man Met"},
["mmm"] = {"Maii"},
["mmn"] = {"Mamanwa"},
["mmo"] = {"Mangga Buang"},
["mmp"] = {"Siawi"},
["mmq"] = {"Musak"},
["mmr"] = {"Miaoish Xiangxi Heear"},
["mmt"] = {"Malalamai"},
["mmu"] = {"Mmaala"},
["mmv"] = {"Miriti"},
["mmw"] = {"Emae"},
["mmx"] = {"Madak"},
["mmy"] = {"Migaama"},
["mmz"] = {"Mabaale"},
["mna"] = {"Mbula"},
["mnb"] = {"Muna"},
["mnc"] = {"Mançhooish"},
["mnd"] = {"Mondé"},
["mne"] = {"Naba"},
["mnf"] = {"Mundanish"},
["mng"] = {"Mnong Hiar"},
["mnh"] = {"Mono (Pobblaght Gheynlagh y Chongo)"},
["mni"] = {"Manipurish"},
["mnj"] = {"Munji"},
["mnk"] = {"Mandinkish"},
["mnl"] = {"Tiale"},
["mnm"] = {"Mapena"},
["mnn"] = {"Mnong Yiass"},
["mno"] = {"çhengaghyn Manobo"},
["mnp"] = {"Sheenish Min Bei"},
["mnq"] = {"Minriq"},
["mnr"] = {"Mono (SUA)"},
["mns"] = {"Mansi"},
["mnu"] = {"Mer"},
["mnv"] = {"Rennell-Bellona"},
["mnw"] = {"Mon"},
["mnx"] = {"Manikion"},
["mny"] = {"Manyawa"},
["mnz"] = {"Moni"},
["moa"] = {"Mwan"},
["moc"] = {"Mocoví"},
["mod"] = {"Mobilish"},
["moe"] = {"Innu", "Montagnais"},
["mog"] = {"Mongondow"},
["moh"] = {"Mohawkish"},
["moi"] = {"Mboi"},
["moj"] = {"Monzombo"},
["mok"] = {"Morori"},
["mom"] = {"Mangue"},
["moo"] = {"Monom"},
["mop"] = {"Mayish Mopán"},
["moq"] = {"Mor (Lieh-innys Bomberai)"},
["mor"] = {"Moroish"},
["mos"] = {"Mossish"},
["mot"] = {"Barí"},
["mou"] = {"Mogum"},
["mov"] = {"Mohave"},
["mow"] = {"Moi (y Congo)"},
["mox"] = {"Molima"},
["moy"] = {"Shekkacho"},
["moz"] = {"Mukulu", "Gergiko"},
["mpa"] = {"Mpoto"},
["mpb"] = {"Malak Malak", "Mullukmulluk"},
["mpc"] = {"Mangarrayi"},
["mpd"] = {"Machinere"},
["mpe"] = {"Majang"},
["mpg"] = {"Marba"},
["mph"] = {"Maung"},
["mpi"] = {"Mpade"},
["mpj"] = {"Martu Wangka", "Wangkajunga"},
["mpk"] = {"Mbara (Shad)"},
["mpl"] = {"Watut Veanagh"},
["mpm"] = {"Mixtecish Yosondúa"},
["mpn"] = {"Mindiri"},
["mpo"] = {"Miu"},
["mpp"] = {"Migabac"},
["mpq"] = {"Matís"},
["mpr"] = {"Vangunu"},
["mps"] = {"Dadibi"},
["mpt"] = {"Mian"},
["mpu"] = {"Makuráp"},
["mpv"] = {"Mungkip"},
["mpw"] = {"Mapidish"},
["mpx"] = {"Misima-Panaeati"},
["mpy"] = {"Mapia"},
["mpz"] = {"Mpi"},
["mqa"] = {"Maba (yn Indoneesh)"},
["mqb"] = {"Mbuko"},
["mqc"] = {"Mangole"},
["mqe"] = {"Matepi"},
["mqf"] = {"Momuna"},
["mqg"] = {"Mlayish Kota Bangun Kutai"},
["mqh"] = {"Mixtecish Tlazoyaltepec"},
["mqi"] = {"Mariri"},
["mqj"] = {"Mamasa"},
["mqk"] = {"Rajah Kabunsuwan Manobo"},
["mql"] = {"Mbelime"},
["mqm"] = {"Marquesish Yiass"},
["mqn"] = {"Moronene"},
["mqo"] = {"Modole"},
["mqp"] = {"Manipa"},
["mqq"] = {"Minokok"},
["mqr"] = {"Mander"},
["mqs"] = {"Makish Heear"},
["mqt"] = {"Mok"},
["mqu"] = {"Mandari"},
["mqv"] = {"Mosimo"},
["mqw"] = {"Murupi"},
["mqx"] = {"Mamuju"},
["mqy"] = {"Manggarai"},
["mqz"] = {"Pano"},
["mra"] = {"Mlabri"},
["mrb"] = {"Marino"},
["mrc"] = {"Maricopa"},
["mrd"] = {"Magar Heear"},
["mre"] = {"Çhengey Chowree Martha's Vineyard"},
["mrf"] = {"Elseng"},
["mrg"] = {"Mising"},
["mrh"] = {"Mara Chin"},
["mrj"] = {"Marish Heear"},
["mrk"] = {"Hmwaveke"},
["mrl"] = {"Mortlockish"},
["mrm"] = {"Merlav", "Mwerlap"},
["mrn"] = {"Cheke Holo"},
["mro"] = {"Mru"},
["mrp"] = {"Morouas"},
["mrq"] = {"Marquesish Hwoaie"},
["mrr"] = {"Maria (yn Injey)"},
["mrs"] = {"Maragus"},
["mrt"] = {"Marghi Veanagh"},
["mru"] = {"Mono (Cameroon)"},
["mrv"] = {"Mangareva"},
["mrw"] = {"Maranao"},
["mrx"] = {"Maremgi", "Dineor"},
["mry"] = {"Mandaya"},
["mrz"] = {"Marind"},
["msb"] = {"Masbatenyo"},
["msc"] = {"Sankaran Maninka"},
["msd"] = {"Çhengey Chowree Mayagh Yucatec"},
["mse"] = {"Musey"},
["msf"] = {"Mekwei"},
["msg"] = {"Moraid"},
["msh"] = {"Malagasish Masikoro"},
["msi"] = {"Malayish Sabah"},
["msj"] = {"Ma (Pobblaght Gheynlagh y Chongo)"},
["msk"] = {"Mansaka"},
["msl"] = {"Molof", "Poule"},
["msm"] = {"Agusan Manobo"},
["msn"] = {"Vurës"},
["mso"] = {"Mombum"},
["msp"] = {"Maritsauá"},
["msq"] = {"Caac"},
["msr"] = {"Çhengey Chowree Vongoilagh"},
["mss"] = {"Masela Heear"},
["msu"] = {"Musom"},
["msv"] = {"Maslam"},
["msw"] = {"Mansoanka"},
["msx"] = {"Moresada"},
["msy"] = {"Aruamu"},
["msz"] = {"Momare"},
["mta"] = {"Manobo Cotabato"},
["mtb"] = {"Anyin Morofo"},
["mtc"] = {"Munit"},
["mtd"] = {"Mualang"},
["mte"] = {"Mono (Ellanyn Solomon)"},
["mtf"] = {"Murik (Papooey Guinea Noa)"},
["mtg"] = {"Una"},
["mth"] = {"Munggui"},
["mti"] = {"Maiwa (Papooey Guinea Noa)"},
["mtj"] = {"Moskona"},
["mtk"] = {"Mbe'"},
["mtl"] = {"Montol"},
["mtm"] = {"Mator"},
["mtn"] = {"Matagalpa"},
["mto"] = {"Totontepec Mixe"},
["mtp"] = {"Wichí Lhamtés Nocten"},
["mtq"] = {"Muong"},
["mtr"] = {"Mewari"},
["mts"] = {"Yora"},
["mtt"] = {"Mota"},
["mtu"] = {"Mixtecish Tututepec"},
["mtv"] = {"Asaro'o"},
["mtw"] = {"Binukidnon Yiass"},
["mtx"] = {"Mixtecish Tidaá"},
["mty"] = {"Nabi"},
["mua"] = {"Mundang"},
["mub"] = {"Mubi"},
["muc"] = {"Ajumbu"},
["mud"] = {"Aleutish Mednyj"},
["mue"] = {"Media Lengua"},
["mug"] = {"Musgu"},
["muh"] = {"Mündü"},
["mui"] = {"Musi"},
["muj"] = {"Mabire"},
["muk"] = {"Mugom"},
["mul"] = {"Ymmodee çhengaghyn"},
["mum"] = {"Maiwala"},
["mun"] = {"çhengaghyn Munda"},
["muo"] = {"Nyong"},
["mup"] = {"Malvi"},
["muq"] = {"Miaoish Xiangxi Hiar"},
["mur"] = {"Murle"},
["mus"] = {"Creekish"},
["mut"] = {"Murish Heear"},
["muu"] = {"Yaaku"},
["muv"] = {"Muthuvan"},
["mux"] = {"Bo-Ung"},
["muy"] = {"Muyang"},
["muz"] = {"Mursi"},
["mva"] = {"Manam"},
["mvb"] = {"Mattole"},
["mvd"] = {"Mamboru"},
["mve"] = {"Marwari (y Phakistaan)"},
["mvf"] = {"Mongoilish Ymmyllagh"},
["mvg"] = {"Mixtecish Yucuañe"},
["mvh"] = {"Mulgi"},
["mvi"] = {"Miyako"},
["mvk"] = {"Mekmek"},
["mvl"] = {"Mbara (yn Austrail)"},
["mvn"] = {"Minaveha"},
["mvo"] = {"Marovo"},
["mvp"] = {"Duri"},
["mvq"] = {"Moere"},
["mvr"] = {"Marau"},
["mvs"] = {"Massep"},
["mvt"] = {"Mpotovoro"},
["mvu"] = {"Marfa"},
["mvv"] = {"Tagal Murut"},
["mvw"] = {"Machinga"},
["mvx"] = {"Meoswar"},
["mvy"] = {"Kohistaanish Indus"},
["mvz"] = {"Mesqan"},
["mwa"] = {"Mwatebu"},
["mwb"] = {"Juwal"},
["mwc"] = {"Are"},
["mwe"] = {"Mwera (Chimwera)"},
["mwf"] = {"Murrinh-Patha"},
["mwg"] = {"Aiklep"},
["mwh"] = {"Mouk-Aria"},
["mwi"] = {"Labo", "Ninde"},
["mwk"] = {"Maninkish Kita"},
["mwl"] = {"Mirandish"},
["mwm"] = {"Sar"},
["mwn"] = {"Nyamwanga"},
["mwo"] = {"Maewo Veanagh"},
["mwp"] = {"Kala Lagaw Ya"},
["mwq"] = {"Mün Chin"},
["mwr"] = {"Marwari"},
["mws"] = {"Mwimbi-Muthambi"},
["mwt"] = {"Moken"},
["mwu"] = {"Mittu"},
["mwv"] = {"Mentawai"},
["mww"] = {"Hmong Daw"},
["mwz"] = {"Moingi"},
["mxa"] = {"Mixtecish Oaxaca Heear Hwoaie"},
["mxb"] = {"Mixtecish Tezoatlán"},
["mxc"] = {"Manyika"},
["mxd"] = {"Modang"},
["mxe"] = {"Mele-Fila"},
["mxf"] = {"Malgbe"},
["mxg"] = {"Mbangala"},
["mxh"] = {"Mvuba"},
["mxi"] = {"Mozarabish"},
["mxj"] = {"Miju-Mishmi", "Geman Deng"},
["mxk"] = {"Monumbo"},
["mxl"] = {"Maxi Gbe"},
["mxm"] = {"Meramera"},
["mxn"] = {"Moi (yn Indoneesh)"},
["mxo"] = {"Mbowe"},
["mxp"] = {"Tlahuitoltepec Mixe"},
["mxq"] = {"Juquila Mixe"},
["mxr"] = {"Murik (y Valaysia)"},
["mxs"] = {"Mixtecish Huitepec"},
["mxt"] = {"Mixtecish Jamiltepec"},
["mxu"] = {"Mada (Cameroon)"},
["mxv"] = {"Mixtecish Metlatónoc"},
["mxw"] = {"Namo"},
["mxx"] = {"Mahou", "Mawukakan"},
["mxy"] = {"Mixtecish Nochixtlán Hiar Yiass"},
["mxz"] = {"Masela Veanagh"},
["myb"] = {"Mbay"},
["myc"] = {"Mayeka"},
["mye"] = {"Myene"},
["myf"] = {"Bambassi"},
["myg"] = {"Manta"},
["myh"] = {"Makah"},
["myj"] = {"Mangayat"},
["myk"] = {"Mamara Senoufo"},
["myl"] = {"Moma"},
["mym"] = {"Me'en"},
["myn"] = {"çhengaghyn Mayagh"},
["myo"] = {"Anfillo"},
["myp"] = {"Pirahã"},
["myr"] = {"Muniche"},
["mys"] = {"Mesmes"},
["myu"] = {"Mundurukú"},
["myv"] = {"Erzya"},
["myw"] = {"Muyuw"},
["myx"] = {"Masaaba"},
["myy"] = {"Macuna"},
["myz"] = {"Mandaish Chlassicagh"},
["mza"] = {"Mixtecish Zacatepec Santa María"},
["mzb"] = {"Tumzabt"},
["mzc"] = {"Çhengey Chowree Vadagascar"},
["mzd"] = {"Malimba"},
["mze"] = {"Morawa"},
["mzg"] = {"Çhengey Chowree Vaynaghoil"},
["mzh"] = {"Wichí Lhamtés Güisnay"},
["mzi"] = {"Mazatec Ixcatlán"},
["mzj"] = {"Manya"},
["mzk"] = {"Mambila yn Naigeer"},
["mzl"] = {"Mazatlán Mixe"},
["mzm"] = {"Mumuye"},
["mzn"] = {"Mazanderanish"},
["mzo"] = {"Matipuhy"},
["mzp"] = {"Movima"},
["mzq"] = {"Mori Atas"},
["mzr"] = {"Marúbo"},
["mzs"] = {"Macanish"},
["mzt"] = {"Mintil"},
["mzu"] = {"Inapang"},
["mzv"] = {"Manza"},
["mzw"] = {"Deg"},
["mzx"] = {"Mawayana"},
["mzy"] = {"Çhengey Chowree Vosambeeckagh"},
["mzz"] = {"Maiadomu"},
["naa"] = {"Namla"},
["nab"] = {"Nambikuára Yiass"},
["nac"] = {"Narak"},
["nae"] = {"Naka'ela"},
["naf"] = {"Nabak"},
["nag"] = {"Naga Vrisht"},
["nah"] = {"çhengaghyn Nahuatl"},
["nai"] = {"çhengaghyn Injinagh Americaanagh Hwoaie"},
["naj"] = {"Nalu"},
["nak"] = {"Nakanai"},
["nal"] = {"Nalik"},
["nam"] = {"Ngan'gityemerri"},
["nan"] = {"Sheenish Min Nan"},
["nao"] = {"Naaba"},
["nap"] = {"Naaplish"},
["naq"] = {"Khoekhoeish", "Nama (y Nameeb)"},
["nar"] = {"Iguta"},
["nas"] = {"Naasioi"},
["nat"] = {"Ca̱hungwa̱rya̱", "Hungworo"},
["naw"] = {"Nawuri"},
["nax"] = {"Nakwi"},
["nay"] = {"Ngarrindjeri"},
["naz"] = {"Nahuatl Coatepec"},
["nba"] = {"Nyemba"},
["nbb"] = {"Ndoe"},
["nbc"] = {"Chang Naga"},
["nbd"] = {"Ngbinda"},
["nbe"] = {"Konyak Naga"},
["nbg"] = {"Nagarchal"},
["nbh"] = {"Ngamo"},
["nbi"] = {"Mao Naga"},
["nbj"] = {"Ngarinyman"},
["nbk"] = {"Nake"},
["nbm"] = {"Ngbaka Ma'bo"},
["nbn"] = {"Kuri"},
["nbo"] = {"Nkukoli"},
["nbp"] = {"Nnam"},
["nbq"] = {"Nggem"},
["nbr"] = {"Numana"},
["nbs"] = {"Çhengey Chowree Nameebagh"},
["nbt"] = {"Na"},
["nbu"] = {"Rongmei Naga"},
["nbv"] = {"Ngamambo"},
["nbw"] = {"Ngbandi Yiass"},
["nby"] = {"Ningera"},
["nca"] = {"Iyo"},
["ncb"] = {"Nicobarish Veanagh"},
["ncc"] = {"Ponam"},
["ncd"] = {"Nachering"},
["nce"] = {"Yale"},
["ncf"] = {"Notsi"},
["ncg"] = {"Nisga'a"},
["nch"] = {"Nahuatl Huasteca Veanagh"},
["nci"] = {"Nahuatl Chlassicagh"},
["ncj"] = {"Nahuatl Puebla Hwoaie"},
["nck"] = {"Na-kara"},
["ncl"] = {"Nahuatl Michoacán"},
["ncm"] = {"Nambo"},
["ncn"] = {"Nauna"},
["nco"] = {"Sibe"},
["ncq"] = {"Katang Hwoaie"},
["ncr"] = {"Ncane"},
["ncs"] = {"Çhengey Chowree Nickeraagagh"},
["nct"] = {"Naga Chothe"},
["ncu"] = {"Chumburung"},
["ncx"] = {"Nahuatl Puebla Veanagh"},
["ncz"] = {"Natchez"},
["nda"] = {"Ndasa"},
["ndb"] = {"Kenswei Nsei"},
["ndc"] = {"Ndauish"},
["ndd"] = {"Nde-Nsele-Nta"},
["ndf"] = {"Nadruvish"},
["ndg"] = {"Ndengereko"},
["ndh"] = {"Ndali"},
["ndi"] = {"Samba Leko"},
["ndj"] = {"Ndamba"},
["ndk"] = {"Ndaka"},
["ndl"] = {"Ndolo"},
["ndm"] = {"Ndam"},
["ndn"] = {"Ngundi"},
["ndp"] = {"Ndo"},
["ndq"] = {"Ndombe"},
["ndr"] = {"Ndoola"},
["nds"] = {"Germaanish Injil", "Saxonish Injil"},
["ndt"] = {"Ndunga"},
["ndu"] = {"Dugun"},
["ndv"] = {"Ndut"},
["ndw"] = {"Ndobo"},
["ndx"] = {"Nduga"},
["ndy"] = {"Lutos"},
["ndz"] = {"Ndogo"},
["nea"] = {"Ngad'a Hiar"},
["neb"] = {"Toura (y Clyst Iuaagagh)"},
["nec"] = {"Nedebang"},
["ned"] = {"Nde-Gbite"},
["nee"] = {"Nêlêmwa-Nixumwak"},
["nef"] = {"Nefamese"},
["neg"] = {"Negidal"},
["neh"] = {"Nyenkha"},
["nei"] = {"Noa-Hittish"},
["nej"] = {"Neko"},
["nek"] = {"Neku"},
["nem"] = {"Nemi"},
["nen"] = {"Nengone"},
["neo"] = {"Ná-Meo"},
["neq"] = {"Mixe Veanagh Hwoaie"},
["ner"] = {"Yahadish"},
["nes"] = {"Kinnaurish Bhoti"},
["net"] = {"Nete"},
["neu"] = {"Neo"},
["nev"] = {"Nyaheun"},
["new"] = {"Newari", "Nepal Bhasa"},
["nex"] = {"Neme"},
["ney"] = {"Neyo"},
["nez"] = {"Nez Perce"},
["nfa"] = {"Dhao"},
["nfd"] = {"Ahwai"},
["nfl"] = {"Ayiwo", "Äiwoo"},
["nfr"] = {"Nafaanra"},
["nfu"] = {"Mfumte"},
["nga"] = {"Ngbaka"},
["ngb"] = {"Ngbandi Hwoaie"},
["ngc"] = {"Ngombe (Pobblaght Gheynlagh y Chongo)"},
["ngd"] = {"Ngando (Pobblaght yn Affrick Veanagh)"},
["nge"] = {"Ngemba"},
["ngf"] = {"çhengaghyn tessen-Noa-Ghuineagh"},
["ngg"] = {"Ngbaka Manza"},
["ngh"] = {"Nǁng"},
["ngi"] = {"Ngizim"},
["ngj"] = {"Ngie"},
["ngk"] = {"Dalabon"},
["ngl"] = {"Lomwe"},
["ngm"] = {"Creeole Fir Ngatik"},
["ngn"] = {"Ngwo"},
["ngp"] = {"Ngulu"},
["ngq"] = {"Ngurimi", "Ngoreme"},
["ngr"] = {"Engdewu"},
["ngs"] = {"Gvoko"},
["ngt"] = {"Kriang", "Ngeq"},
["ngu"] = {"Nahuatl Guerrero"},
["ngv"] = {"Nagumi"},
["ngw"] = {"Ngwaba"},
["ngx"] = {"Nggwahyi"},
["ngy"] = {"Tibea"},
["ngz"] = {"Ngungwel"},
["nha"] = {"Nhanda"},
["nhb"] = {"Beng"},
["nhc"] = {"Nahuatl Tabasco"},
["nhd"] = {"Chiripá", "Guaranish Ava"},
["nhe"] = {"Nahuatl Huasteca Hiar"},
["nhf"] = {"Nhuwala"},
["nhg"] = {"Nahuatl Tetelcingo"},
["nhh"] = {"Nahari"},
["nhi"] = {"Nahuatl Zacatlán-Ahuacatlán-Tepetzintla"},
["nhk"] = {"Nahuatl Isthmus-Cosoleacaque"},
["nhm"] = {"Nahuatl Morelos"},
["nhn"] = {"Nahuatl Veanagh"},
["nho"] = {"Takuu"},
["nhp"] = {"Nahuatl Isthmus-Pajapan"},
["nhq"] = {"Nahuatl Huaxcaleca"},
["nhr"] = {"Naro"},
["nht"] = {"Nahuatl Ometepec"},
["nhu"] = {"Noone"},
["nhv"] = {"Nahuatl Temascaltepec"},
["nhw"] = {"Nahuatl Huasteca Heear"},
["nhx"] = {"Nahuatl Isthmus-Mecayapan"},
["nhy"] = {"Nahuatl Oaxaca Hwoaie"},
["nhz"] = {"Nahuatl Santa María La Alta"},
["nia"] = {"Nias"},
["nib"] = {"Nakame"},
["nic"] = {"çhengaghyn Neegeyr-Kordofanagh"},
["nid"] = {"Ngandi"},
["nie"] = {"Niellim"},
["nif"] = {"Nek"},
["nig"] = {"Ngalakgan"},
["nih"] = {"Nyiha (Tanzania)"},
["nii"] = {"Nii"},
["nij"] = {"Ngaju"},
["nik"] = {"Nicobarish Yiass"},
["nil"] = {"Nila"},
["nim"] = {"Nilamba"},
["nin"] = {"Ninzo"},
["nio"] = {"Nganasanish"},
["niq"] = {"Nandi"},
["nir"] = {"Nimborish"},
["nis"] = {"Nimi"},
["nit"] = {"Kolamish Hiar Yiass"},
["niu"] = {"Niueanish"},
["niv"] = {"Gilyakish"},
["niw"] = {"Nimo"},
["nix"] = {"Hema"},
["niy"] = {"Ngiti"},
["niz"] = {"Ningil"},
["nja"] = {"Nzanyi"},
["njb"] = {"Naga Nocte"},
["njd"] = {"Ndonde Hamba"},
["njh"] = {"Naga Lotha"},
["nji"] = {"Gudanji"},
["njj"] = {"Njen"},
["njl"] = {"Njalgulgule"},
["njm"] = {"Angami Naga"},
["njn"] = {"Naga Liangmai"},
["njo"] = {"Naga Ao"},
["njr"] = {"Njerep"},
["njs"] = {"Nisa"},
["njt"] = {"Ndyuka-Trio Vrisht"},
["nju"] = {"Ngadjunmaya"},
["njx"] = {"Kunyi"},
["njy"] = {"Njyem"},
["njz"] = {"Nyishi"},
["nka"] = {"Nkoya"},
["nkb"] = {"Naga Khoibu"},
["nkc"] = {"Nkongho"},
["nkd"] = {"Koireng"},
["nke"] = {"Duke"},
["nkf"] = {"Naga Inpui"},
["nkg"] = {"Nekgini"},
["nkh"] = {"Naga Khezha"},
["nki"] = {"Naga Thangal"},
["nkj"] = {"Nakai"},
["nkk"] = {"Nokuku"},
["nkm"] = {"Namat"},
["nkn"] = {"Nkangala"},
["nko"] = {"Nkonya"},
["nkp"] = {"Niuatoputapu"},
["nkq"] = {"Nkami"},
["nkr"] = {"Nukuoro"},
["nks"] = {"Asmat Hwoaie"},
["nkt"] = {"Nyika (Tanzania)"},
["nku"] = {"Bouna Kulango"},
["nkv"] = {"Nyika (Malawi as y Tambia)"},
["nkw"] = {"Nkutu"},
["nkx"] = {"Nkoroo"},
["nkz"] = {"Nkari"},
["nla"] = {"Ngombale"},
["nlc"] = {"Nalca"},
["nle"] = {"Nyala Hiar"},
["nlg"] = {"Gela"},
["nli"] = {"Grangali"},
["nlj"] = {"Nyali"},
["nlk"] = {"Ninia Yali"},
["nll"] = {"Nihali"},
["nlm"] = {"Mankiyali"},
["nlo"] = {"Ngul"},
["nlq"] = {"Naga Lao"},
["nlu"] = {"Nchumbulu"},
["nlv"] = {"Orizaba Nahuatl"},
["nlw"] = {"Walangama"},
["nlx"] = {"Nahali"},
["nly"] = {"Nyamal"},
["nlz"] = {"Nalögo"},
["nma"] = {"Naga Maram"},
["nmb"] = {"Nambas Vooar", "V'ënen Taut"},
["nmc"] = {"Ngam"},
["nmd"] = {"Ndumu"},
["nme"] = {"Naga Mzieme"},
["nmf"] = {"Naga Tangkhul (yn Injey)"},
["nmg"] = {"Kwasio"},
["nmh"] = {"Naga Monsang"},
["nmi"] = {"Nyam"},
["nmj"] = {"Ngombe (Pobblaght yn Affrick Veanagh)"},
["nmk"] = {"Namakura"},
["nml"] = {"Ndemli"},
["nmm"] = {"Manangba"},
["nmn"] = {"ǃXóõ"},
["nmo"] = {"Naga Moyon"},
["nmp"] = {"Nimanbur"},
["nmq"] = {"Nambya"},
["nmr"] = {"Nimbari"},
["nms"] = {"Letemboi"},
["nmt"] = {"Namonuito"},
["nmu"] = {"Maidu Hiar Hwoaie"},
["nmv"] = {"Ngamini"},
["nmw"] = {"Nimoa", "Rifao"},
["nmx"] = {"Nama (Papooey Guinea Noa)"},
["nmy"] = {"Namuyi"},
["nmz"] = {"Nawdm"},
["nna"] = {"Nyangumarta"},
["nnb"] = {"Nande"},
["nnc"] = {"Nancere"},
["nnd"] = {"Ambae Heear"},
["nne"] = {"Ngandyera"},
["nnf"] = {"Ngaing"},
["nng"] = {"Naga Maring"},
["nnh"] = {"Ngiemboon"},
["nni"] = {"Nuaulu Hwoaie"},
["nnj"] = {"Nyangatom"},
["nnk"] = {"Nankina"},
["nnl"] = {"Naga Rengma Hwoaie "},
["nnm"] = {"Namia"},
["nnn"] = {"Ngete"},
["nnp"] = {"Naga Wancho"},
["nnq"] = {"Ngindo"},
["nnr"] = {"Narungga"},
["nnt"] = {"Nanticoke"},
["nnu"] = {"Dwang"},
["nnv"] = {"Nugunu (yn Austrail)"},
["nnw"] = {"Nuni Yiass"},
["nny"] = {"Nyangga"},
["nnz"] = {"Nda'nda'"},
["noa"] = {"Woun Meu"},
["noc"] = {"Nuk"},
["nod"] = {"Thai Hwoaie"},
["noe"] = {"Nimadi"},
["nof"] = {"Nomane"},
["nog"] = {"Nogaish"},
["noh"] = {"Nomu"},
["noi"] = {"Noiri"},
["noj"] = {"Nonuya"},
["nok"] = {"Nooksack"},
["nol"] = {"Nomlaki"},
["non"] = {"Shenn Loghlynnish"},
["nop"] = {"Numanggang"},
["noq"] = {"Ngongo"},
["nos"] = {"Nisu Hiar"},
["not"] = {"Nomatsiguenga"},
["nou"] = {"Ewage-Notu"},
["nov"] = {"Novial"},
["now"] = {"Nyambo"},
["noy"] = {"Noy"},
["noz"] = {"Nayi"},
["npa"] = {"Nar Phu"},
["npb"] = {"Nupbikha"},
["npg"] = {"Naga Ponyo-Gongwang"},
["nph"] = {"Naga Phom"},
["npi"] = {"Nepaalish"},
["npl"] = {"Nahuatl Puebla Hiar Yiass"},
["npn"] = {"Mondropolon"},
["npo"] = {"Naga Pochuri"},
["nps"] = {"Nipsan"},
["npu"] = {"Naga Puimei"},
["npx"] = {"Noipx"},
["npy"] = {"Napu"},
["nqg"] = {"Nago Yiass"},
["nqk"] = {"Kura Ede Nago"},
["nql"] = {"Ngendelengo"},
["nqm"] = {"Ndom"},
["nqn"] = {"Nen"},
["nqo"] = {"N'Ko", "N’Ko"},
["nqq"] = {"Naga Kyan-Karyaw"},
["nqt"] = {"Nteng"},
["nqy"] = {"Naga Akyaung Ari"},
["nra"] = {"Ngom"},
["nrb"] = {"Nara"},
["nrc"] = {"Norish"},
["nre"] = {"Naga Rengma Yiass"},
["nrf"] = {"Jèrriais", "Guernésiais", "Sercquiais"},
["nrg"] = {"Narango"},
["nri"] = {"Naga Chokri"},
["nrk"] = {"Ngarla"},
["nrl"] = {"Ngarluma"},
["nrm"] = {"Narom"},
["nrn"] = {"Nornish"},
["nrp"] = {"Picenish Hwoaie"},
["nrr"] = {"Norra", "Nora"},
["nrt"] = {"Kalapuya Hwoaie"},
["nru"] = {"Narua"},
["nrx"] = {"Ngurmbur"},
["nrz"] = {"Lala"},
["nsa"] = {"Naga Sangtam"},
["nsb"] = {"Nossob Injil"},
["nsc"] = {"Nshi"},
["nsd"] = {"Nisu Yiass"},
["nse"] = {"Nsenga"},
["nsf"] = {"Nisu Heear Hwoaie"},
["nsg"] = {"Ngasa"},
["nsh"] = {"Ngoshie"},
["nsi"] = {"Çhengey Chowree Naigeeragh"},
["nsk"] = {"Naskapi"},
["nsl"] = {"Çhengey Chowree Norlynnagh"},
["nsm"] = {"Naga Sumi"},
["nsn"] = {"Nehan"},
["nso"] = {"Pedish", "Sotoish Hwoaie", "Sepedi"},
["nsp"] = {"Çhengey Chowree Nepaalagh"},
["nsq"] = {"Miwokish Sierra Hwoaie"},
["nsr"] = {"Çhengey Chowree Vooiragh"},
["nss"] = {"Nali"},
["nst"] = {"Naga Tase"},
["nsu"] = {"Nahuatl Sierra Negra"},
["nsv"] = {"Nisu Heear Yiass"},
["nsw"] = {"Navut"},
["nsx"] = {"Nsongo"},
["nsy"] = {"Nasal"},
["nsz"] = {"Nisenan"},
["ntd"] = {"Tidung Hwoaie"},
["nte"] = {"Nathembo"},
["ntg"] = {"Ngantangarra"},
["nti"] = {"Natioro"},
["ntj"] = {"Ngaanyatjarra"},
["ntk"] = {"Ikoma-Nata-Isenye"},
["ntm"] = {"Nateni"},
["nto"] = {"Ntomba"},
["ntp"] = {"Tepehuan Hwoaie"},
["ntr"] = {"Delo"},
["ntu"] = {"Natügu"},
["ntw"] = {"Nottoway"},
["ntx"] = {"Naga Tangkhul (Myanmar)"},
["nty"] = {"Mantsi"},
["ntz"] = {"Natanzi"},
["nua"] = {"Yuanga"},
["nub"] = {"çhengaghyn Nubiagh"},
["nuc"] = {"Nukuini"},
["nud"] = {"Ngala"},
["nue"] = {"Ngundu"},
["nuf"] = {"Nusu"},
["nug"] = {"Nungali"},
["nuh"] = {"Ndunda"},
["nui"] = {"Ngumbi"},
["nuj"] = {"Nyole"},
["nuk"] = {"Nuu-chah-nulth", "Nuuchahnulth"},
["nul"] = {"Nusa Laut"},
["num"] = {"Niuafo'ou"},
["nun"] = {"Anong"},
["nuo"] = {"Nguôn"},
["nup"] = {"Nupe-Nupe-Tako"},
["nuq"] = {"Nukumanu"},
["nur"] = {"Nukuria"},
["nus"] = {"Nuer"},
["nut"] = {"Nung (Viet Nam)"},
["nuu"] = {"Ngbundu"},
["nuv"] = {"Nuni Hwoaie"},
["nuw"] = {"Nguluwan"},
["nux"] = {"Mehek"},
["nuy"] = {"Nunggubuyu"},
["nuz"] = {"Nahuatl Tlamacazapa"},
["nvh"] = {"Nasarish"},
["nvm"] = {"Namiae"},
["nvo"] = {"Nyokon"},
["nwa"] = {"Nawathinehena"},
["nwb"] = {"Nyabwa"},
["nwc"] = {"Newarish Chlassicagh", "Nepal Bhasa Chlassicagh", "Shenn Newarish"},
["nwe"] = {"Ngwe"},
["nwg"] = {"Ngayawung"},
["nwi"] = {"Tanna Heear Yiass"},
["nwm"] = {"Nyamusa-Molo"},
["nwo"] = {"Nauo"},
["nwr"] = {"Nawaru"},
["nww"] = {"Ndwewe"},
["nwx"] = {"Newarish Veanagh"},
["nwy"] = {"Nottoway-Meherrin"},
["nxa"] = {"Nauete"},
["nxd"] = {"Ngando (Pobblaght Gheynlagh y Chongo)"},
["nxe"] = {"Nage"},
["nxg"] = {"Ngad'a"},
["nxi"] = {"Nindi"},
["nxk"] = {"Naga Koki"},
["nxl"] = {"Nuaulu Yiass"},
["nxm"] = {"Numidish"},
["nxn"] = {"Ngawun"},
["nxo"] = {"Ndambomo"},
["nxq"] = {"Naxi"},
["nxr"] = {"Ninggerum"},
["nxx"] = {"Nafri"},
["nyb"] = {"Nyangbo"},
["nyc"] = {"Nyanga-li"},
["nyd"] = {"Nyore", "Olunyole"},
["nye"] = {"Nyengo"},
["nyf"] = {"Giryama", "Kigiryama"},
["nyg"] = {"Nyindu"},
["nyh"] = {"Nyikina"},
["nyi"] = {"Ama (y Toodaan)"},
["nyj"] = {"Nyanga"},
["nyk"] = {"Nyaneka"},
["nyl"] = {"Nyeu"},
["nym"] = {"Nyamwezi"},
["nyn"] = {"Nyankole"},
["nyo"] = {"Nyoro"},
["nyp"] = {"Nyang'i"},
["nyq"] = {"Nayini"},
["nyr"] = {"Nyiha (Malawi)"},
["nys"] = {"Nyungar"},
["nyt"] = {"Nyawaygi"},
["nyu"] = {"Nyungwe"},
["nyv"] = {"Nyulnyul"},
["nyw"] = {"Nyaw"},
["nyx"] = {"Nganyaywana"},
["nyy"] = {"Nyakyusa-Ngonde"},
["nza"] = {"Tigon Mbembe"},
["nzb"] = {"Njebi"},
["nzd"] = {"Nzadi"},
["nzi"] = {"Nzima"},
["nzk"] = {"Nzakara"},
["nzm"] = {"Zeme Naga"},
["nzr"] = {"Dir-Nyamzak-Mbarimi"},
["nzs"] = {"Çhengey Chowree Noa-Heelynnagh"},
["nzu"] = {"Teke-Nzikou"},
["nzy"] = {"Nzakambay"},
["nzz"] = {"Nanga Dama Dogon"},
["oaa"] = {"Orok"},
["oac"] = {"Oroch"},
["oar"] = {"Shenn Aramaaish (derrey 700 RC)", "Aramaaish Henndeeagh (derrey 700 RC)"},
["oav"] = {"Shenn Avarish"},
["obi"] = {"Obispeño"},
["obk"] = {"Bontok Yiass"},
["obl"] = {"Oblo"},
["obm"] = {"Moabite"},
["obo"] = {"Obo Manobo"},
["obr"] = {"Shenn Vurmish"},
["obt"] = {"Shenn Vritaanish"},
["obu"] = {"Obulom"},
["oca"] = {"Ocaina"},
["och"] = {"Shenn Heenish"},
["ocm"] = {"Shenn Cham"},
["oco"] = {"Shenn Chornish"},
["ocu"] = {"Atzingo Matlatzinca"},
["oda"] = {"Odut"},
["odk"] = {"Od"},
["odt"] = {"Shenn Ollanish"},
["odu"] = {"Odual"},
["ofo"] = {"Ofo"},
["ofs"] = {"Shenn Reeshlannish"},
["ofu"] = {"Efutop"},
["ogb"] = {"Ogbia"},
["ogc"] = {"Ogbah"},
["oge"] = {"Shenn Horshish"},
["ogg"] = {"Ogbogolo"},
["ogo"] = {"Khana"},
["ogu"] = {"Ogbronuagum"},
["oht"] = {"Shenn Hittish"},
["ohu"] = {"Shenn Ungaarish"},
["oia"] = {"Oirata"},
["oie"] = {"Okolie"},
["oin"] = {"Inebu One"},
["ojb"] = {"OjibwaHeear Hwoaie"},
["ojc"] = {"Ojibwa Veanagh"},
["ojg"] = {"Ojibwa Hiar"},
["ojp"] = {"Shenn Hapaanish"},
["ojs"] = {"Ojibwa Severn"},
["ojv"] = {"Javish Ontong"},
["ojw"] = {"Ojibwa Heear"},
["oka"] = {"Okanagan"},
["okb"] = {"Okobo"},
["okc"] = {"Kobo"},
["okd"] = {"Okodia"},
["oke"] = {"Okpe (Edo Heear Yiass)"},
["okg"] = {"Koko Babangk"},
["okh"] = {"Koresh-e Rostam"},
["oki"] = {"Okiek"},
["okj"] = {"Oko-Juwoi"},
["okk"] = {"Kwamtim One"},
["okl"] = {"Shenn Çhengey Chowree Kent"},
["okm"] = {"Koreeish Veanagh (10oo-16oo eash)"},
["okn"] = {"Oki-No-Erabu"},
["oko"] = {"Shenn Choreeish (3oo-9oo eash)"},
["okr"] = {"Kirike"},
["oks"] = {"Oko-Eni-Osayen"},
["oku"] = {"Oku"},
["okv"] = {"Orokaiva"},
["okx"] = {"Okpe (Edo Heear Hwoaie)"},
["okz"] = {"Shenn Khmerish"},
["ola"] = {"Walungge"},
["old"] = {"Mochi"},
["ole"] = {"Olekha"},
["olk"] = {"Olkol"},
["olm"] = {"Oloma"},
["olo"] = {"Livvish"},
["olr"] = {"Olrat"},
["olt"] = {"Shenn Litaanish"},
["olu"] = {"Kuvale"},
["oma"] = {"Omaha-Ponca"},
["omb"] = {"Ambae Hiar"},
["omc"] = {"Mochica"},
["omg"] = {"Omagua"},
["omi"] = {"Omi"},
["omk"] = {"Omok"},
["oml"] = {"Ombo"},
["omn"] = {"Minoan"},
["omo"] = {"Utarmbung"},
["omp"] = {"Shenn Vanipurish"},
["omq"] = {"çhengaghyn Oto-Mangueagh"},
["omr"] = {"Shenn Varathish"},
["omt"] = {"Omotik"},
["omu"] = {"Omurano"},
["omv"] = {"çhengaghyn Omotagh"},
["omw"] = {"Tairora Yiass"},
["omx"] = {"Shenn Mon"},
["omy"] = {"Shenn Valayish"},
["ona"] = {"Ona"},
["onb"] = {"Lingao"},
["one"] = {"Oneida"},
["ong"] = {"Olo"},
["oni"] = {"Onin"},
["onj"] = {"Onjob"},
["onk"] = {"Kabore One"},
["onn"] = {"Onobasulu"},
["ono"] = {"Onondaga"},
["onp"] = {"Sartang"},
["onr"] = {"One Hwoaie"},
["ons"] = {"Ono"},
["ont"] = {"Ontenu"},
["onu"] = {"Unua"},
["onw"] = {"Shenn Nubish"},
["onx"] = {"Onin Vrisht"},
["ood"] = {"Tohono O'odham"},
["oog"] = {"Ong"},
["oon"] = {"Önge"},
["oor"] = {"Oorlams"},
["oos"] = {"Shenn Ossetish"},
["opa"] = {"Okpamheri"},
["opk"] = {"Kopkaka"},
["opm"] = {"Oksapmin"},
["opo"] = {"Opao"},
["opt"] = {"Opata"},
["opy"] = {"Ofayé"},
["ora"] = {"Oroha"},
["orc"] = {"Orma"},
["ore"] = {"Orejón"},
["org"] = {"Oring"},
["orh"] = {"Oroqen"},
["orn"] = {"Orang Kanaq"},
["oro"] = {"Orokolo"},
["orr"] = {"Oruma"},
["ors"] = {"Orang Seletar"},
["ort"] = {"Adivasi Oriya"},
["oru"] = {"Ormuri"},
["orv"] = {"Shenn Rooshish"},
["orw"] = {"Oro Win"},
["orx"] = {"Oro"},
["ory"] = {"Odish (çhengey er lheh)", "Oriyish (çhengey er lheh)"},
["orz"] = {"Ormu"},
["osa"] = {"Osage"},
["osc"] = {"Oscan"},
["osi"] = {"Osing"},
["osn"] = {"Shenn Hundanish"},
["oso"] = {"Ososo"},
["osp"] = {"Shenn Spaainish"},
["ost"] = {"Osatu"},
["osu"] = {"One Yiass"},
["osx"] = {"Shenn Haxonish"},
["ota"] = {"Turkish Ottomanagh (1500-1928)"},
["otb"] = {"Shenn Tibetish"},
["otd"] = {"Ot Danum"},
["ote"] = {"Otomi Mezquital"},
["oti"] = {"Oti"},
["otk"] = {"Shenn Turkish"},
["otl"] = {"Otomi Tilapa"},
["otm"] = {"Otomi Sleitoil Hiar"},
["otn"] = {"Otomi Tenango"},
["oto"] = {"çhengaghyn Otomagh"},
["otq"] = {"Otomi Querétaro"},
["otr"] = {"Otoro"},
["ots"] = {"Otomi Estado de México"},
["ott"] = {"Otomi Temoaya"},
["otu"] = {"Otuke"},
["otw"] = {"Ottawa"},
["otx"] = {"Otomi Texcatepec"},
["oty"] = {"Shenn Tamilish"},
["otz"] = {"Otomi Ixtenco"},
["oua"] = {"Tagargrent"},
["oub"] = {"Glio-Oubi"},
["oue"] = {"Oune"},
["oui"] = {"Shenn Uighurish"},
["oum"] = {"Ouma"},
["ovd"] = {"Elfdalish", "Övdalish"},
["owi"] = {"Owiniga"},
["owl"] = {"Shenn Vretnish"},
["oyb"] = {"Oy"},
["oyd"] = {"Oyda"},
["oym"] = {"Wayampi"},
["oyy"] = {"Oya'oya"},
["ozm"] = {"Koonzime"},
["paa"] = {"çhengaghyn Papooagh"},
["pab"] = {"Parecís"},
["pac"] = {"Pacoh"},
["pad"] = {"Paumarí"},
["pae"] = {"Pagibete"},
["paf"] = {"Paranawát"},
["pag"] = {"Pangasinan"},
["pah"] = {"Tenharim"},
["pai"] = {"Pe"},
["pak"] = {"Parakanã"},
["pal"] = {"Pahlavi"},
["pam"] = {"Pampanga", "Kapampangan"},
["pao"] = {"Paiute Hwoaie"},
["pap"] = {"Papiamento"},
["paq"] = {"Parya"},
["par"] = {"Panamint", "Timbisha"},
["pas"] = {"Papasena"},
["pau"] = {"Palauish"},
["pav"] = {"Pakaásnovos"},
["paw"] = {"Pawneeish"},
["pax"] = {"Pankararé"},
["pay"] = {"Pech"},
["paz"] = {"Pankararú"},
["pbb"] = {"Páez"},
["pbc"] = {"Patamona"},
["pbe"] = {"Popoloca Mezontla"},
["pbf"] = {"Popoloca Coyotepec"},
["pbg"] = {"Paraujano"},
["pbh"] = {"E'ñapa Woromaipu"},
["pbi"] = {"Parkwa"},
["pbl"] = {"Mak (y Naigeer)"},
["pbm"] = {"Mazatec Puebla"},
["pbn"] = {"Kpasam"},
["pbo"] = {"Papel"},
["pbp"] = {"Badyara"},
["pbr"] = {"Pangwa"},
["pbs"] = {"Pame Veanagh"},
["pbt"] = {"Pashtish Yiass"},
["pbu"] = {"Pashtish Hwoaie"},
["pbv"] = {"Pnar"},
["pby"] = {"Pyu (Papooey Guinea Noa)"},
["pca"] = {"Popoloca Ahuatempan Santa Inés"},
["pcb"] = {"Pear"},
["pcc"] = {"Bouyei"},
["pcd"] = {"Picardish"},
["pce"] = {"Ruching Palaung"},
["pcf"] = {"Paliyan"},
["pcg"] = {"Paniya"},
["pch"] = {"Pardhan"},
["pci"] = {"Duruwa"},
["pcj"] = {"Parenga"},
["pck"] = {"Paite Chin"},
["pcl"] = {"Pardhi"},
["pcm"] = {"Naigeerish Vrisht"},
["pcn"] = {"Piti"},
["pcp"] = {"Pacahuara"},
["pcw"] = {"Pyapun"},
["pda"] = {"Anam"},
["pdc"] = {"Germaanish Pennsylvania"},
["pdi"] = {"Pa Di"},
["pdn"] = {"Podena", "Fedan"},
["pdo"] = {"Padoe"},
["pdt"] = {"Plautdietsch"},
["pdu"] = {"Kayan"},
["pea"] = {"Indoneeshish Peranakan"},
["peb"] = {"Pomo Hiar"},
["ped"] = {"Mala (Papooey Guinea Noa)"},
["pee"] = {"Taje"},
["pef"] = {"Pomo Hiar Hwoaie"},
["peg"] = {"Pengo"},
["peh"] = {"Bonan"},
["pei"] = {"Chichimeca-Jonaz"},
["pej"] = {"Pomo Hwoaie"},
["pek"] = {"Penchal"},
["pel"] = {"Pekal"},
["pem"] = {"Phende"},
["peo"] = {"Shenn Phershish (ca. 600-400 RC)"},
["pep"] = {"Kunja"},
["peq"] = {"Pomo Yiass"},
["pes"] = {"Pershish Eeraanagh"},
["pev"] = {"Pémono"},
["pex"] = {"Petats"},
["pey"] = {"Petjo"},
["pez"] = {"Penan Hiar"},
["pfa"] = {"Pááfang"},
["pfe"] = {"Pere"},
["pfl"] = {"Pfaelzisch"},
["pga"] = {"Creeole Arabish Soodaanagh"},
["pgd"] = {"Gāndhārī"},
["pgg"] = {"Pangwali"},
["pgi"] = {"Pagi"},
["pgk"] = {"Rerep"},
["pgl"] = {"Yernish Vunneydagh"},
["pgn"] = {"Paelignian"},
["pgs"] = {"Pangseng"},
["pgu"] = {"Pagu"},
["pgz"] = {"Çhengey Phapooey Guinea Noa"},
["pha"] = {"Pa-Hng"},
["phd"] = {"Phudagi"},
["phg"] = {"Phuong"},
["phh"] = {"Phukha"},
["phi"] = {"çhengaghyn Philippeenagh"},
["phj"] = {"Pahari"},
["phk"] = {"Phake"},
["phl"] = {"Phalura", "Palula"},
["phm"] = {"Phimbi"},
["phn"] = {"çhengaghyn Feaneeckagh"},
["pho"] = {"Phunoi"},
["phq"] = {"Phana'"},
["phr"] = {"Pahari-Potwari"},
["pht"] = {"Thai Phu"},
["phu"] = {"Phuan"},
["phv"] = {"Pahlavanish"},
["phw"] = {"Phangduwali"},
["pia"] = {"Pima Bajo"},
["pib"] = {"Yine"},
["pic"] = {"Pinji"},
["pid"] = {"Piaroa"},
["pie"] = {"Piro"},
["pif"] = {"Pingelapish"},
["pig"] = {"Pisabo"},
["pih"] = {"Pitkern-Norfuk"},
["pij"] = {"Pijao"},
["pil"] = {"Yom"},
["pim"] = {"Powhatanish"},
["pin"] = {"Piame"},
["pio"] = {"Piapoco"},
["pip"] = {"Pero"},
["pir"] = {"Piratapuyo"},
["pis"] = {"Pijin"},
["pit"] = {"Pitta Pitta"},
["piu"] = {"Pintupi-Luritja"},
["piv"] = {"Pileni", "Vaeakau-Taumako"},
["piw"] = {"Pimbwe"},
["pix"] = {"Piu"},
["piy"] = {"Piya-Kwonci"},
["piz"] = {"Pije"},
["pjt"] = {"Pitjantjatjara"},
["pka"] = {"Ardhamāgadhī Prākrit"},
["pkb"] = {"Pokomo", "Kipfokomo"},
["pkc"] = {"Paekche"},
["pkg"] = {"Pak-Tong"},
["pkh"] = {"Pankhu"},
["pkn"] = {"Pakanha"},
["pko"] = {"Pökoot"},
["pkp"] = {"Pukapuka"},
["pkr"] = {"Attapady Kurumba"},
["pks"] = {"Çhengey Chowree Phakistaanagh"},
["pkt"] = {"Maleng"},
["pku"] = {"Paku"},
["pla"] = {"Miani"},
["plb"] = {"Polonombauk"},
["plc"] = {"Palawano Veanagh"},
["pld"] = {"Polari"},
["ple"] = {"Palu'e"},
["plf"] = {"çhengaghyn Malayo-Pholaneeshagh Meanagh"},
["plg"] = {"Pilagá"},
["plh"] = {"Paulohi"},
["plk"] = {"Shina Kohistan"},
["pll"] = {"Shwe Palaung"},
["pln"] = {"Palenquero"},
["plo"] = {"Popoluca Oluta"},
["plq"] = {"Palaic"},
["plr"] = {"Palaka Senoufo"},
["pls"] = {"Popoloca Tlacoyalco San Marcos", "Popoloca Tlalcoyalco San Marcos"},
["plt"] = {"Malagasish yn Ard-chlaare"},
["plu"] = {"Palikúr"},
["plv"] = {"Palawano Heear Yiass"},
["plw"] = {"Palawano Brooke's Point"},
["ply"] = {"Bolyu"},
["plz"] = {"Paluan"},
["pma"] = {"Paama"},
["pmb"] = {"Pambia"},
["pmd"] = {"Pallanganmiddang"},
["pme"] = {"Pwaamei"},
["pmf"] = {"Pamona"},
["pmh"] = {"Māhārāṣṭri Prākrit"},
["pmi"] = {"Pumi Hwoaie"},
["pmj"] = {"Pumi Yiass"},
["pml"] = {"Lingua Franca"},
["pmm"] = {"Pomo"},
["pmn"] = {"Pam"},
["pmo"] = {"Pom"},
["pmq"] = {"Pame Hwoaie"},
["pmr"] = {"Paynamar"},
["pms"] = {"Piedmontish"},
["pmt"] = {"Tuamotuan"},
["pmw"] = {"Miwokish ny Strahyn"},
["pmx"] = {"Naga Poumei"},
["pmy"] = {"Malayish Phapooagh"},
["pmz"] = {"Pame Yiass"},
["pna"] = {"Punan Bah-Biau"},
["pnb"] = {"Panjabish Heear"},
["pnc"] = {"Pannei"},
["pnd"] = {"Mpinda"},
["pne"] = {"Penan Heear"},
["png"] = {"Pangu", "Pongu"},
["pnh"] = {"Penrhyn"},
["pni"] = {"Aoheng"},
["pnj"] = {"Pinjarup"},
["pnk"] = {"Paunaka"},
["pnl"] = {"Paleni"},
["pnm"] = {"Punan Batu 1"},
["pnn"] = {"Pinai-Hagahai"},
["pno"] = {"Panobo"},
["pnp"] = {"Pancana"},
["pnq"] = {"Pana (Burkina Faso)"},
["pnr"] = {"Panim"},
["pns"] = {"Ponosakan"},
["pnt"] = {"Pontish"},
["pnu"] = {"Jiongnai Bunu"},
["pnv"] = {"Pinigura"},
["pnw"] = {"Banyjima", "Panytyima"},
["pnx"] = {"Phong-Kniang"},
["pny"] = {"Pinyin"},
["pnz"] = {"Pana (Pobblaght yn Affrick Veanagh)"},
["poc"] = {"Poqomam"},
["poe"] = {"Popoloca Atzingo San Juan"},
["pof"] = {"Poke"},
["pog"] = {"Potiguára"},
["poh"] = {"Poqomchi'"},
["poi"] = {"Popoluca Sleitoil"},
["pok"] = {"Pokangá"},
["pom"] = {"Pomo Hiar Yiass"},
["pon"] = {"Pohnpeish"},
["poo"] = {"Pomo Veanagh"},
["pop"] = {"Pwapwâ"},
["poq"] = {"Popoloca Texistepec"},
["pos"] = {"Popoloca Sayula"},
["pot"] = {"Potawatomi"},
["pov"] = {"Crioulo Ghuinea Eaghtyragh"},
["pow"] = {"Popoluca Otlaltepec San Felipe"},
["pox"] = {"Polabish"},
["poy"] = {"Pogolo"},
["poz"] = {"çhengaghyn Malayo-Pholaneeshagh"},
["ppe"] = {"Papi"},
["ppi"] = {"Paipai"},
["ppk"] = {"Uma"},
["ppl"] = {"Pipil", "Nicarao"},
["ppm"] = {"Papuma"},
["ppn"] = {"Papapana"},
["ppo"] = {"Folopa"},
["ppp"] = {"Pelende"},
["ppq"] = {"Pei"},
["pps"] = {"Popoloca Temalacayuca San Luís"},
["ppt"] = {"Pare"},
["ppu"] = {"Papora"},
["pqa"] = {"Pa'a"},
["pqe"] = {"çhengaghyn Malayo-Pholaneeshagh Hiar"},
["pqm"] = {"Malecite-Passamaquoddy"},
["pqw"] = {"çhengaghyn Malayo-Pholaneeshagh Heear"},
["pra"] = {"çhengaghyn Prakrit"},
["prc"] = {"Parachi"},
["prd"] = {"Parsish-Darish"},
["pre"] = {"Principensish"},
["prf"] = {"Paranan"},
["prg"] = {"Prooshish"},
["prh"] = {"Porohanon"},
["pri"] = {"Paicî"},
["prk"] = {"Parauk"},
["prl"] = {"Çhengey Chowree Pherooagh"},
["prm"] = {"Kibiri"},
["prn"] = {"Prasuni"},
["pro"] = {"Shenn Provençal (derrey 1500)", "Shenn Ocsitaanish (derrey 1500)"},
["prq"] = {"Ashéninka Perené"},
["prr"] = {"Puri"},
["prs"] = {"Darish", "Pershish Afghaanagh"},
["prt"] = {"Phai"},
["pru"] = {"Puragi"},
["prw"] = {"Parawen"},
["prx"] = {"Purik"},
["prz"] = {"Çhengey Chowree Providencia"},
["psa"] = {"Asue Awyu"},
["psc"] = {"Çhengey Chowree Eeraanagh", "Çhengey Chowree Phershagh"},
["psd"] = {"Çhengey Chowree Injinee ny Strahyn"},
["pse"] = {"Malayish Veanagh"},
["psg"] = {"Çhengey Chowree Penang"},
["psh"] = {"Pashai Heear Yiass", "Pashayi Heear Yiass"},
["psi"] = {"Pashai Hiar Yiass", "Pashayi Hiar Yiass"},
["psl"] = {"Çhengey Chowree Phurt-verçhagh"},
["psm"] = {"Pauserna"},
["psn"] = {"Panasuan"},
["pso"] = {"Çhengey Chowree Pholynnagh"},
["psp"] = {"Çhengey Chowree Philippeenagh"},
["psq"] = {"Pasi"},
["psr"] = {"Çhengey Chowree Phortiugagh"},
["pss"] = {"Kaulong"},
["pst"] = {"Pashtish Veanagh"},
["psu"] = {"Sauraseni Prākrit"},
["psw"] = {"Port Sandwich"},
["psy"] = {"Piscataway"},
["pta"] = {"Pai Tavytera"},
["pth"] = {"Pataxó Hã-Ha-Hãe"},
["pti"] = {"Pindiini", "Wangkatha"},
["ptn"] = {"Patanish"},
["pto"] = {"Zo'é"},
["ptp"] = {"Patep"},
["ptq"] = {"Pattapu"},
["ptr"] = {"Piamatsina"},
["ptt"] = {"Enrekang"},
["ptu"] = {"Bambam"},
["ptv"] = {"Port Vato"},
["ptw"] = {"Pentlatch"},
["pty"] = {"Pathiya"},
["pua"] = {"Purepecha Sleitoil Heear"},
["pub"] = {"Purum"},
["puc"] = {"Punan Merap"},
["pud"] = {"Punan Aput"},
["pue"] = {"Puelche"},
["puf"] = {"Punan Merah"},
["pug"] = {"Phuie"},
["pui"] = {"Puinave"},
["puj"] = {"Punan Tubu"},
["pum"] = {"Puma"},
["puo"] = {"Puoc"},
["pup"] = {"Pulabu"},
["puq"] = {"Puquina"},
["pur"] = {"Puruborá"},
["put"] = {"Putoh"},
["puu"] = {"Punu"},
["puw"] = {"Puluwatish"},
["pux"] = {"Puare"},
["puy"] = {"Purisimeño"},
["pwa"] = {"Pawaia"},
["pwb"] = {"Panawa"},
["pwg"] = {"Gapapaiwa"},
["pwi"] = {"Patwin"},
["pwm"] = {"Molbog"},
["pwn"] = {"Paiwan"},
["pwo"] = {"Karenish Heear Pwo"},
["pwr"] = {"Powari"},
["pww"] = {"Karenish Hwoaie Pwo"},
["pxm"] = {"Quetzaltepec Mixe"},
["pye"] = {"Pye Krumen"},
["pym"] = {"Fyam"},
["pyn"] = {"Poyanáwa"},
["pys"] = {"Çhengey Chowree Pharaguayagh", "Lengua de Señas del Paraguay"},
["pyu"] = {"Puyuma"},
["pyx"] = {"Pyu (Myanmar)"},
["pyy"] = {"Pyen"},
["pze"] = {"Pesse"},
["pzh"] = {"Pazeh"},
["pzn"] = {"Jejara Naga", "Para Naga"},
["qua"] = {"Quapaw"},
["qub"] = {"Quechua Huallaga Huánuco"},
["quc"] = {"K'iche'", "Quiché"},
["qud"] = {"Quichua Sleitoil Calderón"},
["quf"] = {"Quechua Lambayeque"},
["qug"] = {"Quichua Sleitoil Chimborazo"},
["quh"] = {"Quechua Voliviagh Yiass"},
["qui"] = {"Quileute"},
["quk"] = {"Quechua Chachapoyas"},
["qul"] = {"Quechua Voliviagh Hwoaie"},
["qum"] = {"Sipacapense"},
["qun"] = {"Quinault"},
["qup"] = {"Quechua Pastaza Yiass"},
["quq"] = {"Quinqui"},
["qur"] = {"Quechua Yanahuanca Pasco"},
["qus"] = {"Quichua Santiago del Estero"},
["quv"] = {"Sacapulteco"},
["quw"] = {"Quichua Injil Tena"},
["qux"] = {"Quechua Yauyos"},
["quy"] = {"Quechua Ayacucho"},
["quz"] = {"Quechua Cusco"},
["qva"] = {"Quechua Ambo-Pasco"},
["qvc"] = {"Quechua Cajamarca"},
["qve"] = {"Quechua Apurímac Hiar"},
["qvh"] = {"Quechua Huánaco Huamalíes-Dos de Mayo"},
["qvi"] = {"Quichua Sleitoil Imbabura"},
["qvj"] = {"Quichua Sleitoil Loja"},
["qvl"] = {"Quechua Lima Hwoaie Cajatambo"},
["qvm"] = {"Quechua Margos-Yarowilca-Lauricocha"},
["qvn"] = {"Quechua Junín Hwoaie"},
["qvo"] = {"Quechua Injil Napo"},
["qvp"] = {"Quechua Pacaraos"},
["qvs"] = {"Quechua San Martín"},
["qvw"] = {"Quechua Huaylla Wanca"},
["qvy"] = {"Queyu"},
["qvz"] = {"Quechua Pastaza Hwoaie"},
["qwa"] = {"Quechua Ancash Corongo"},
["qwc"] = {"Quechua Chlassicagh"},
["qwe"] = {"Quechuagh (kynney)"},
["qwh"] = {"Quechua Ancash Huaylas"},
["qwm"] = {"Kumanish (y Roosh)"},
["qws"] = {"Quechua Ancash Sihuas"},
["qwt"] = {"Kwalhioqua-Tlatskanai"},
["qxa"] = {"Quechua Ancash Chiquián"},
["qxc"] = {"Quechua Chincha"},
["qxh"] = {"Quechua Huánuco Panao"},
["qxl"] = {"Quechua Sleitoil Salasaca"},
["qxn"] = {"Quechua Ancash Conchucos Hwoaie"},
["qxo"] = {"Quechua Ancash Conchucos Yiass"},
["qxp"] = {"Quechua Puno"},
["qxq"] = {"Qashqa'i"},
["qxr"] = {"Quichua Sleitoil Cañar"},
["qxs"] = {"Qiang Yiass"},
["qxt"] = {"Quechua Pasco Santa Ana de Tusi"},
["qxu"] = {"Quechua Arequipa-La Unión"},
["qxw"] = {"Quechua Jauja Wanca"},
["qya"] = {"Quenya"},
["qyp"] = {"Quiripi"},
["raa"] = {"Dungmali"},
["rab"] = {"Camling"},
["rac"] = {"Rasawa"},
["rad"] = {"Rade"},
["raf"] = {"Meohang Heear"},
["rag"] = {"Logooli", "Lulogooli"},
["rah"] = {"Rabha"},
["rai"] = {"Ramoaaina"},
["raj"] = {"Rajasthanish"},
["rak"] = {"Tulu-Bohuai"},
["ral"] = {"Ralte"},
["ram"] = {"Canela"},
["ran"] = {"Riantana"},
["rao"] = {"Rao"},
["rap"] = {"Rapanui"},
["raq"] = {"Saam"},
["rar"] = {"Rarotongan", "Maorish Ellanyn Cook"},
["ras"] = {"Tegali"},
["rat"] = {"Razajerdi"},
["rau"] = {"Raute"},
["rav"] = {"Sampang"},
["raw"] = {"Rawang"},
["rax"] = {"Rang"},
["ray"] = {"Rapa"},
["raz"] = {"Rahambuu"},
["rbb"] = {"Rumai Palaung"},
["rbk"] = {"Bontok Hwoaie"},
["rbl"] = {"Miraya Bikol"},
["rbp"] = {"Barababaraba"},
["rcf"] = {"Creeole Frangish Réunion"},
["rdb"] = {"Rudbari"},
["rea"] = {"Rerau"},
["reb"] = {"Rembong"},
["ree"] = {"Rejang Kayan"},
["reg"] = {"Kara (Tanzania)"},
["rei"] = {"Reli"},
["rej"] = {"Rejang"},
["rel"] = {"Rendille"},
["rem"] = {"Remo"},
["ren"] = {"Rengao"},
["rer"] = {"Rer Bare"},
["res"] = {"Reshe"},
["ret"] = {"Retta"},
["rey"] = {"Reyesano"},
["rga"] = {"Roria"},
["rge"] = {"Greagish Romanagh"},
["rgk"] = {"Rangkas"},
["rgn"] = {"Romagnolish"},
["rgr"] = {"Resígaro"},
["rgs"] = {"Roglai Yiass"},
["rgu"] = {"Ringgou"},
["rhg"] = {"Rohingya"},
["rhp"] = {"Yahang"},
["ria"] = {"Riang (yn Injey)"},
["rib"] = {"Çhengey Chowree Bribri"},
["rif"] = {"Tarifit"},
["ril"] = {"Riang Lang", "Riang (Myanmar)"},
["rim"] = {"Nyaturu"},
["rin"] = {"Nungu"},
["rir"] = {"Ribun"},
["rit"] = {"Ritharrngu"},
["riu"] = {"Riung"},
["rjg"] = {"Rajong"},
["rji"] = {"Raji"},
["rjs"] = {"Rajbanshi"},
["rka"] = {"Kraol"},
["rkb"] = {"Rikbaktsa"},
["rkh"] = {"Rakahanga-Manihiki"},
["rki"] = {"Rakhine"},
["rkm"] = {"Marka"},
["rkt"] = {"Rangpuri", "Kamta"},
["rkw"] = {"Arakwal"},
["rma"] = {"Rama"},
["rmb"] = {"Rembarrnga"},
["rmc"] = {"Romanish Charpathagh"},
["rmd"] = {"Danvargish Romanagh"},
["rme"] = {"Baarle Romanagh"},
["rmf"] = {"Kaloromanish Innlynnagh"},
["rmg"] = {"Norlynnish Romanagh"},
["rmh"] = {"Murkim"},
["rmi"] = {"Lomavren"},
["rmk"] = {"Romkun"},
["rml"] = {"Romanish Valtagh"},
["rmm"] = {"Romanish"},
["rmn"] = {"Romanish Valkanagh"},
["rmo"] = {"Romanish Sinte"},
["rmp"] = {"Rempi"},
["rmq"] = {"Caló"},
["rms"] = {"Çhengey Chowree Romaanagh"},
["rmt"] = {"Domari"},
["rmu"] = {"Romanish Tavringagh"},
["rmv"] = {"Romanova"},
["rmw"] = {"Romanish Vretnagh"},
["rmx"] = {"Romam"},
["rmy"] = {"Romanish Vlax"},
["rmz"] = {"Marma"},
["rnb"] = {"Çhengey Chowree Brunca"},
["rnd"] = {"Ruund"},
["rng"] = {"Ronga"},
["rnl"] = {"Ranglong"},
["rnn"] = {"Roon"},
["rnp"] = {"Rongpo"},
["rnr"] = {"Nari Nari"},
["rnw"] = {"Rungwa"},
["roa"] = {"çhengaghyn Romansagh"},
["rob"] = {"Tae'"},
["roc"] = {"Cacgia Roglai"},
["rod"] = {"Rogo"},
["roe"] = {"Ronji"},
["rof"] = {"Rombo"},
["rog"] = {"Roglai Hwoaie"},
["rol"] = {"Romblomanon"},
["rom"] = {"Romanish"},
["roo"] = {"Rotokas"},
["rop"] = {"Kriol"},
["ror"] = {"Rongga"},
["rou"] = {"Runga"},
["row"] = {"Dela-Oenale"},
["rpn"] = {"Repanbitip"},
["rpt"] = {"Rapting"},
["rri"] = {"Ririo"},
["rro"] = {"Waima"},
["rrt"] = {"Arritinngithigh"},
["rsb"] = {"Serbish Romanagh"},
["rsk"] = {"Ruthenish", "Rusnak"},
["rsl"] = {"Çhengey Chowree Rooshagh"},
["rsm"] = {"Çhengey Chowree Miriwoong"},
["rsn"] = {"Çhengey Chowree Rooandagh"},
["rsw"] = {"Rishiwa"},
["rtc"] = {"Rungtu Chin"},
["rth"] = {"Ratahan"},
["rtm"] = {"Rotuman"},
["rts"] = {"Yuratsish"},
["rtw"] = {"Rathawi"},
["rub"] = {"Gungu"},
["ruc"] = {"Ruuli"},
["rue"] = {"Rusynish"},
["ruf"] = {"Luguru"},
["rug"] = {"Roviana"},
["ruh"] = {"Ruga"},
["rui"] = {"Rufiji"},
["ruk"] = {"Che"},
["ruo"] = {"Istro-Romaanish"},
["rup"] = {"Massado-Romaanish", "Aromaanish", "Arumaanish"},
["ruq"] = {"Megleno-Romaanish"},
["rut"] = {"Rutulish"},
["ruu"] = {"Lanas Lobu"},
["ruy"] = {"Mala (y Naigeer)"},
["ruz"] = {"Ruma"},
["rwa"] = {"Rawo"},
["rwk"] = {"Rwa"},
["rwl"] = {"Ruwila"},
["rwm"] = {"Amba (Oogandey)"},
["rwo"] = {"Rawa"},
["rwr"] = {"Marwari (yn Injey)"},
["rxd"] = {"Ngardi"},
["rxw"] = {"Karuwali", "Garuwali"},
["ryn"] = {"Amami-Oshima Hwoaie"},
["rys"] = {"Yaeyama"},
["ryu"] = {"Okinawish Veanagh"},
["rzh"] = {"Rāziḥī"},
["saa"] = {"Saba"},
["sab"] = {"Buglere"},
["sac"] = {"Meskwaki"},
["sad"] = {"Sandawe"},
["sae"] = {"Sabanê"},
["saf"] = {"Safaliba"},
["sah"] = {"Yakutish"},
["sai"] = {"çhengaghyn Injinagh Americaanagh Yiass"},
["saj"] = {"Sahu"},
["sak"] = {"Sake"},
["sal"] = {"çhengaghyn Salishanagh"},
["sam"] = {"Aramaaish Hamaaragh"},
["sao"] = {"Sause"},
["saq"] = {"Samburu"},
["sar"] = {"Saraveca"},
["sas"] = {"Sasak"},
["sat"] = {"Santali"},
["sau"] = {"Saleman"},
["sav"] = {"Saafi-Saafi"},
["saw"] = {"Sawi"},
["sax"] = {"Sa"},
["say"] = {"Saya"},
["saz"] = {"Saurashtra"},
["sba"] = {"Ngambay"},
["sbb"] = {"Simbo"},
["sbc"] = {"Kele (Papooey Guinea Noa)"},
["sbd"] = {"Samo Yiass"},
["sbe"] = {"Saliba"},
["sbf"] = {"Chabu", "Shabo"},
["sbg"] = {"Seget"},
["sbh"] = {"Sori-Harengan"},
["sbi"] = {"Seti"},
["sbj"] = {"Surbakhal"},
["sbk"] = {"Safwa"},
["sbl"] = {"Botolan Sambal"},
["sbm"] = {"Sagala"},
["sbn"] = {"Sindhi Bhil"},
["sbo"] = {"Sabüm"},
["sbp"] = {"Sangu (Tanzania)"},
["sbq"] = {"Sileibi"},
["sbr"] = {"Sembakung Murut"},
["sbs"] = {"Subiya"},
["sbt"] = {"Kimki"},
["sbu"] = {"Stod Bhoti"},
["sbv"] = {"Sabine"},
["sbw"] = {"Simba"},
["sbx"] = {"Seberuang"},
["sby"] = {"Soli"},
["sbz"] = {"Sara Kaba"},
["scb"] = {"Chut"},
["sce"] = {"Dongxiang"},
["scf"] = {"Creeole Frangish San Miguel"},
["scg"] = {"Sanggau"},
["sch"] = {"Sakachep"},
["sci"] = {"Creeole Malayish Sri Lanka"},
["sck"] = {"Sadri"},
["scl"] = {"Shina"},
["scn"] = {"Shisslish"},
["sco"] = {"Baarle Albinagh"},
["scp"] = {"Hyolmo", "Helambu Sherpa"},
["scq"] = {"Sa'och"},
["scs"] = {"Slavish Hwoaie"},
["sct"] = {"Katang Yiass"},
["scu"] = {"Shumcho"},
["scv"] = {"Sheni"},
["scw"] = {"Sha"},
["scx"] = {"Sicel"},
["sda"] = {"Toraja-Sa'dan"},
["sdb"] = {"Shabak"},
["sdc"] = {"Sardeenish Hassaragh"},
["sde"] = {"Surubu"},
["sdf"] = {"Sarli"},
["sdg"] = {"Savi"},
["sdh"] = {"Kurdish Yiass"},
["sdj"] = {"Suundi"},
["sdk"] = {"Sos Kundi"},
["sdl"] = {"Çhengey Chowree Arabagh Saudi"},
["sdn"] = {"Sardeenish Ghalluragh"},
["sdo"] = {"Bukar-Sadung Bidayuh"},
["sdp"] = {"Sherdukpen"},
["sdq"] = {"Semandang"},
["sdr"] = {"Oraon Sadri"},
["sds"] = {"Sened"},
["sdt"] = {"Shuadit"},
["sdu"] = {"Sarudu"},
["sdv"] = {"çhengaghyn Soodaanagh Hiar"},
["sdx"] = {"Sibu Melanau"},
["sdz"] = {"Sallands"},
["sea"] = {"Semai"},
["seb"] = {"Shempire Senoufo"},
["sec"] = {"Sechelt"},
["sed"] = {"Sedang"},
["see"] = {"Seneca"},
["sef"] = {"Cebaara Senoufo"},
["seg"] = {"Segeju"},
["seh"] = {"Sena"},
["sei"] = {"Seri"},
["sej"] = {"Sene"},
["sek"] = {"Sekani"},
["sel"] = {"Selkup"},
["sem"] = {"çhengaghyn Shemmagh"},
["sen"] = {"Nanerigé Sénoufo"},
["seo"] = {"Suarmin"},
["sep"] = {"Sìcìté Sénoufo"},
["seq"] = {"Senara Sénoufo"},
["ser"] = {"Serrano"},
["ses"] = {"Koyraboro Senni Songhai"},
["set"] = {"Sentani"},
["seu"] = {"Serui-Laut"},
["sev"] = {"Nyarafolo Senoufo"},
["sew"] = {"Sewa Bay"},
["sey"] = {"Secoya"},
["sez"] = {"Senthang Chin"},
["sfb"] = {"Langue des signes de Belgique Francophone", "Çhengey Chowree Rangee yn Velg"},
["sfe"] = {"Subanen Hiar"},
["sfm"] = {"Miaoish Veg-ornaidagh"},
["sfs"] = {"Çhengey Chowree yn Affrick Yiass"},
["sfw"] = {"Sehwi"},
["sga"] = {"Shenn Yernish (derrey 900)"},
["sgb"] = {"Mag-antsi Ayta"},
["sgc"] = {"Kipsigis"},
["sgd"] = {"Surigaonon"},
["sge"] = {"Segai"},
["sgg"] = {"Çhengey Chowree Ghermaanagh Elveeishagh"},
["sgh"] = {"Shughni"},
["sgi"] = {"Suga"},
["sgj"] = {"Surgujia"},
["sgk"] = {"Sangkong"},
["sgm"] = {"Singa"},
["sgn"] = {"Çhengaghyn cowree"},
["sgp"] = {"Singpho"},
["sgr"] = {"Sangisari"},
["sgs"] = {"Samogitish"},
["sgt"] = {"Brokpake"},
["sgu"] = {"Salas"},
["sgw"] = {"Sebat Bet Gurage"},
["sgx"] = {"Çhengey Chowree Sierra Leone"},
["sgy"] = {"Sanglechi"},
["sgz"] = {"Sursurunga"},
["sha"] = {"Shall-Zwall"},
["shb"] = {"Ninam"},
["shc"] = {"Sonde"},
["shd"] = {"Kundal Shahi"},
["she"] = {"Sheko"},
["shg"] = {"Shua"},
["shh"] = {"Shoshoni"},
["shi"] = {"Tachelhit"},
["shj"] = {"Shatt"},
["shk"] = {"Shilluk"},
["shl"] = {"Shendu"},
["shm"] = {"Shahrudi"},
["shn"] = {"Shan"},
["sho"] = {"Shanga"},
["shp"] = {"Shipibo-Conibo"},
["shq"] = {"Sala"},
["shr"] = {"Shi"},
["shs"] = {"Shuswap"},
["sht"] = {"Shasta"},
["shu"] = {"Arabish Hadagh"},
["shv"] = {"Shehri"},
["shw"] = {"Shwai"},
["shx"] = {"She"},
["shy"] = {"Tachawit"},
["shz"] = {"Syenara Senoufo"},
["sia"] = {"Saamish Akkala"},
["sib"] = {"Sebop"},
["sid"] = {"Sidamo"},
["sie"] = {"Simaa"},
["sif"] = {"Siamou"},
["sig"] = {"Paasaal"},
["sih"] = {"Zire", "Sîshëë"},
["sii"] = {"Shom Peng"},
["sij"] = {"Numbami"},
["sik"] = {"Sikiana"},
["sil"] = {"Tumulung Sisaala"},
["sim"] = {"Mende (Papooey Guinea Noa)"},
["sio"] = {"çhengaghyn Siouagh"},
["sip"] = {"Sikkimish"},
["siq"] = {"Sonia"},
["sir"] = {"Siri"},
["sis"] = {"Siuslaw"},
["sit"] = {"çhengaghyn Sheen-Tibetagh"},
["siu"] = {"Sinagen"},
["siv"] = {"Sumariup"},
["siw"] = {"Siwai"},
["six"] = {"Sumau"},
["siy"] = {"Sivandi"},
["siz"] = {"Siwi"},
["sja"] = {"Epena"},
["sjb"] = {"Sajau Basap"},
["sjd"] = {"Saamish Kildin"},
["sje"] = {"Saamish Pite"},
["sjg"] = {"Assangori"},
["sjk"] = {"Saamish Kemi"},
["sjl"] = {"Sajalong", "Miji"},
["sjm"] = {"Mapun"},
["sjn"] = {"Sindarin"},
["sjo"] = {"Xibe"},
["sjp"] = {"Surjapuri"},
["sjr"] = {"Siar-Lak"},
["sjs"] = {"Senhaja De Srair"},
["sjt"] = {"Saamish Ter"},
["sju"] = {"Saamish Ume"},
["sjw"] = {"Shawneeish"},
["ska"] = {"Skagit"},
["skb"] = {"Saek"},
["skc"] = {"Ma Manda"},
["skd"] = {"Miwokish Sierra Yiass"},
["ske"] = {"Seke (Vanuatu)"},
["skf"] = {"Sakirabiá"},
["skg"] = {"Malagasish Sakalava"},
["skh"] = {"Sikule"},
["ski"] = {"Sika"},
["skj"] = {"Seke (Nepaal)"},
["skm"] = {"Kutong"},
["skn"] = {"Kolibugan Subanon"},
["sko"] = {"Seko Tengah"},
["skp"] = {"Sekapan"},
["skq"] = {"Sininkere"},
["skr"] = {"Saraiki", "Seraiki"},
["sks"] = {"Maia"},
["skt"] = {"Sakata"},
["sku"] = {"Sakao"},
["skv"] = {"Skou"},
["skw"] = {"Creeole Ollanish Skepi"},
["skx"] = {"Seko Padang"},
["sky"] = {"Sikaiana"},
["skz"] = {"Sekar"},
["sla"] = {"çhengaghyn Slavagh"},
["slc"] = {"Sáliba"},
["sld"] = {"Sissala"},
["sle"] = {"Sholaga"},
["slf"] = {"Çhengey Chowree Iddaalagh Elveeishagh"},
["slg"] = {"Selungai Murut"},
["slh"] = {"Salish Yiass Puget Sound"},
["sli"] = {"Sileeshish Eeghtyragh"},
["slj"] = {"Salumá"},
["sll"] = {"Salt-Yui"},
["slm"] = {"Pangutaran Sama"},
["sln"] = {"Salinan"},
["slp"] = {"Lamaholot"},
["slr"] = {"Salar"},
["sls"] = {"Çhengey Chowree Singapore"},
["slt"] = {"Sila"},
["slu"] = {"Selaru"},
["slw"] = {"Sialum"},
["slx"] = {"Salampasu"},
["sly"] = {"Selayar"},
["slz"] = {"Ma'ya"},
["sma"] = {"Saamish Yiass"},
["smb"] = {"Simbari"},
["smc"] = {"Som"},
["smf"] = {"Auwe"},
["smg"] = {"Simbali"},
["smh"] = {"Samei"},
["smi"] = {"çhengaghyn Saamagh"},
["smj"] = {"Saamish Lule"},
["smk"] = {"Bolinao"},
["sml"] = {"Sama Veanagh"},
["smm"] = {"Musasa"},
["smn"] = {"Saamish Inari"},
["smp"] = {"Samaarish"},
["smq"] = {"Samo"},
["smr"] = {"Simeulue"},
["sms"] = {"Saamish Skolt"},
["smt"] = {"Simte"},
["smu"] = {"Somray"},
["smv"] = {"Samvedi"},
["smw"] = {"Sumbawa"},
["smx"] = {"Samba"},
["smy"] = {"Semnani"},
["smz"] = {"Simeku"},
["snc"] = {"Sinaugoro"},
["sne"] = {"Bau Bidayuh"},
["snf"] = {"Noon"},
["sng"] = {"Sanga (Pobblaght Gheynlagh y Chongo)"},
["sni"] = {"Sensi"},
["snj"] = {"Riverain Sango"},
["snk"] = {"Soninke"},
["snl"] = {"Sangil"},
["snm"] = {"Ma'di Yiass"},
["snn"] = {"Siona"},
["sno"] = {"Snohomish"},
["snp"] = {"Siane"},
["snq"] = {"Sangu (Gabon)"},
["snr"] = {"Sihan"},
["sns"] = {"South West Bay", "Nahavaq"},
["snu"] = {"Senggi", "Viid"},
["snv"] = {"Sa'ban"},
["snw"] = {"Selee"},
["snx"] = {"Sam"},
["sny"] = {"Saniyo-Hiyewe"},
["snz"] = {"Kou"},
["soa"] = {"Song Thai"},
["sob"] = {"Sobei"},
["soc"] = {"So (Pobblaght Gheynlagh y Chongo)"},
["sod"] = {"Songoora"},
["soe"] = {"Songomeno"},
["sog"] = {"Sogdish"},
["soh"] = {"Aka"},
["soi"] = {"Sonha"},
["soj"] = {"Soi"},
["sok"] = {"Sokoro"},
["sol"] = {"Solos"},
["son"] = {"çhengaghyn Songhai"},
["soo"] = {"Songo"},
["sop"] = {"Songe"},
["soq"] = {"Kanasi"},
["sor"] = {"Somrai"},
["sos"] = {"Seeku"},
["sou"] = {"Thai Yiass"},
["sov"] = {"Sonsorol"},
["sow"] = {"Sowanda"},
["sox"] = {"Swo"},
["soy"] = {"Miyobe"},
["soz"] = {"Temi"},
["spb"] = {"Sepa (yn Indoneesh)"},
["spc"] = {"Sapé"},
["spd"] = {"Saep"},
["spe"] = {"Sepa (Papooey Guinea Noa)"},
["spg"] = {"Sian"},
["spi"] = {"Saponi"},
["spk"] = {"Sengo"},
["spl"] = {"Selepet"},
["spm"] = {"Akukem"},
["spn"] = {"Sanapaná"},
["spo"] = {"Spokane"},
["spp"] = {"Supyire Senoufo"},
["spq"] = {"Spaainish Loreto-Ucayali"},
["spr"] = {"Saparua"},
["sps"] = {"Saposa"},
["spt"] = {"Spiti Bhoti"},
["spu"] = {"Sapuan"},
["spv"] = {"Sambalpuri", "Kosli"},
["spx"] = {"Picenish Yiass"},
["spy"] = {"Sabaot"},
["sqa"] = {"Shama-Sambuga"},
["sqh"] = {"Shau"},
["sqj"] = {"çhengaghyn Albaanagh"},
["sqk"] = {"Çhengey Chowree Albaanagh"},
["sqm"] = {"Suma"},
["sqn"] = {"Susquehannock"},
["sqo"] = {"Sorkhei"},
["sqq"] = {"Sou"},
["sqr"] = {"Arabish Hisslagh"},
["sqs"] = {"Çhengey Chowree Sri Lanka"},
["sqt"] = {"Soqotri"},
["squ"] = {"Squamish"},
["sqx"] = {"Çhengey Chowree Kufr Qassem (KQSL)"},
["sra"] = {"Saruga"},
["srb"] = {"Sora"},
["src"] = {"Sardeenish Logudoragh"},
["sre"] = {"Sara"},
["srf"] = {"Nafi"},
["srg"] = {"Sulod"},
["srh"] = {"Sarikoli"},
["sri"] = {"Siriano"},
["srk"] = {"Serudung Murut"},
["srl"] = {"Isirawa"},
["srm"] = {"Saramaccan"},
["srn"] = {"Sranan Tongo"},
["sro"] = {"Sardeenish Campidanagh"},
["srq"] = {"Sirionó"},
["srr"] = {"Serer"},
["srs"] = {"Sarsi"},
["srt"] = {"Sauri"},
["sru"] = {"Suruí"},
["srv"] = {"Sorsoganon Yiass"},
["srw"] = {"Serua"},
["srx"] = {"Sirmauri"},
["sry"] = {"Sera"},
["srz"] = {"Shahmirzadi"},
["ssa"] = {"çhengaghyn Neelagh-Saharagh"},
["ssb"] = {"Sama Yiass"},
["ssc"] = {"Suba-Simbiti"},
["ssd"] = {"Siroi"},
["sse"] = {"Balangingi", "Bangingih Sama"},
["ssf"] = {"Thao"},
["ssg"] = {"Seimat"},
["ssh"] = {"Arabish Shihhi"},
["ssi"] = {"Sansi"},
["ssj"] = {"Sausi"},
["ssk"] = {"Sunam"},
["ssl"] = {"Sisaala Heear"},
["ssm"] = {"Semnam"},
["ssn"] = {"Waata"},
["sso"] = {"Sissano"},
["ssp"] = {"Çhengey Chowree Spaainagh"},
["ssq"] = {"So'a"},
["ssr"] = {"Çhengey Chowree Rangagh Elveeishagh"},
["sss"] = {"Sô"},
["sst"] = {"Sinasina"},
["ssu"] = {"Susuami"},
["ssv"] = {"Shark Bay"},
["ssx"] = {"Samberigi"},
["ssy"] = {"Saho"},
["ssz"] = {"Sengseng"},
["sta"] = {"Settla"},
["stb"] = {"Subanen Hwoaie"},
["std"] = {"Sentinel"},
["ste"] = {"Liana-Seti"},
["stf"] = {"Seta"},
["stg"] = {"Trieng"},
["sth"] = {"Shelta"},
["sti"] = {"Bulo Stieng"},
["stj"] = {"Matya Samo"},
["stk"] = {"Arammba"},
["stl"] = {"Stellingwerfs"},
["stm"] = {"Setaman"},
["stn"] = {"Owa"},
["sto"] = {"Stonish"},
["stp"] = {"Tepehuan Hiar Yiass"},
["stq"] = {"Saterfriesisch"},
["str"] = {"Salish ny Keyllyssyn"},
["sts"] = {"Shumashti"},
["stt"] = {"Budeh Stieng"},
["stu"] = {"Samtao"},
["stv"] = {"Silt'e"},
["stw"] = {"Satawalish"},
["sty"] = {"Tatarish Hibbeyragh"},
["sua"] = {"Sulka"},
["sub"] = {"Suku"},
["suc"] = {"Subanon Heear"},
["sue"] = {"Suena"},
["sug"] = {"Suganga"},
["sui"] = {"Suki"},
["suj"] = {"Shubi"},
["suk"] = {"Sukuma"},
["suo"] = {"Bouni"},
["suq"] = {"Tirmaga-Chai Suri", "Suri"},
["sur"] = {"Mwaghavul"},
["sus"] = {"Susu"},
["sut"] = {"Subtiaba"},
["suv"] = {"Puroik"},
["suw"] = {"Sumbwa"},
["sux"] = {"Sumerish"},
["suy"] = {"Suyá"},
["suz"] = {"Sunwar"},
["sva"] = {"Svan"},
["svb"] = {"Ulau-Suain"},
["svc"] = {"Creeole Baarle Winsenagh"},
["sve"] = {"Serili"},
["svk"] = {"Çhengey Chowree Slovackagh"},
["svm"] = {"Slavomolisano"},
["svs"] = {"Savosavo"},
["svx"] = {"Skalvish"},
["swb"] = {"Comoroish Maore"},
["swc"] = {"Swahili yn Chongo"},
["swf"] = {"Sere"},
["swg"] = {"Swabish"},
["swh"] = {"Swahili (çhengey er lheh)", "Kiswahili"},
["swi"] = {"Sui"},
["swj"] = {"Sira"},
["swk"] = {"Malawi Sena"},
["swl"] = {"Çhengey Chowree Hoolynnagh"},
["swm"] = {"Samosa"},
["swn"] = {"Sawknah"},
["swo"] = {"Shanenawa"},
["swp"] = {"Suau"},
["swq"] = {"Sharwa"},
["swr"] = {"Saweru"},
["sws"] = {"Seluwasan"},
["swt"] = {"Sawila"},
["swu"] = {"Suwawa"},
["swv"] = {"Shekhawati"},
["sww"] = {"Sowa"},
["swx"] = {"Suruahá"},
["swy"] = {"Sarua"},
["sxb"] = {"Suba"},
["sxc"] = {"Sicanish"},
["sxe"] = {"Sighu"},
["sxg"] = {"Shuhi", "Shixing"},
["sxk"] = {"Kalapuya Yiass"},
["sxl"] = {"Selian"},
["sxm"] = {"Samre"},
["sxn"] = {"Sangir"},
["sxo"] = {"Sorothaptish"},
["sxr"] = {"Saaroa"},
["sxs"] = {"Sasaru"},
["sxu"] = {"Saxonish Eaghtyragh"},
["sxw"] = {"Saxwe Gbe"},
["sya"] = {"Siang"},
["syb"] = {"Subanen Veanagh"},
["syc"] = {"Seerish Chlassicagh"},
["syd"] = {"çhengaghyn Samoyedagh"},
["syi"] = {"Seki"},
["syk"] = {"Sukur"},
["syl"] = {"Sylheti"},
["sym"] = {"Maya Samo"},
["syn"] = {"Senaya"},
["syo"] = {"Suoy"},
["syr"] = {"Seerish"},
["sys"] = {"Sinyar"},
["syw"] = {"Kagate"},
["syx"] = {"Samay"},
["syy"] = {"Çhengey Chowree ny Bedouin Al-Sayyid"},
["sza"] = {"Semelai"},
["szb"] = {"Ngalum"},
["szc"] = {"Semaq Beri"},
["sze"] = {"Seze"},
["szg"] = {"Sengele"},
["szl"] = {"Sileeshish"},
["szn"] = {"Sula"},
["szp"] = {"Suabo"},
["szs"] = {"Çhengey Chowree Ellanyn Solomon"},
["szv"] = {"Isu (Rheynn Fako)"},
["szw"] = {"Sawai"},
["szy"] = {"Sakizaya"},
["taa"] = {"Tanana Eeghtyragh"},
["tab"] = {"Tabassaranish"},
["tac"] = {"Tarahumara Injil"},
["tad"] = {"Tause"},
["tae"] = {"Tariana"},
["taf"] = {"Tapirapé"},
["tag"] = {"Tagoi"},
["tai"] = {"çhengaghyn Tai"},
["taj"] = {"Tamang Hiar"},
["tak"] = {"Tala"},
["tal"] = {"Tal"},
["tan"] = {"Tangale"},
["tao"] = {"Yami"},
["tap"] = {"Taabwa"},
["taq"] = {"Tamasheq"},
["tar"] = {"Tarahumara Veanagh"},
["tas"] = {"Tay Boi"},
["tau"] = {"Tanana Eaghtyragh"},
["tav"] = {"Tatuyo"},
["taw"] = {"Tai"},
["tax"] = {"Tamki"},
["tay"] = {"Atayal"},
["taz"] = {"Tocho"},
["tba"] = {"Aikanã"},
["tbc"] = {"Takia"},
["tbd"] = {"Kaki Ae"},
["tbe"] = {"Tanimbili"},
["tbf"] = {"Mandara"},
["tbg"] = {"Tairora Hwoaie"},
["tbh"] = {"Dharawal", "Thurawal"},
["tbi"] = {"Gaam"},
["tbj"] = {"Tiang"},
["tbk"] = {"Calamian Tagbanwa"},
["tbl"] = {"Tboli"},
["tbm"] = {"Tagbu"},
["tbn"] = {"Barro Negro Tunebo"},
["tbo"] = {"Tawala"},
["tbp"] = {"Taworta", "Diebroud"},
["tbq"] = {"çhengaghyn Tibetagh-Burmagh"},
["tbr"] = {"Tumtum"},
["tbs"] = {"Tanguat"},
["tbt"] = {"Tembo (Kitembo)"},
["tbu"] = {"Tubar"},
["tbv"] = {"Tobo"},
["tbw"] = {"Tagbanwa"},
["tbx"] = {"Kapin"},
["tby"] = {"Tabaru"},
["tbz"] = {"Ditammari"},
["tca"] = {"Ticuna"},
["tcb"] = {"Tanacross"},
["tcc"] = {"Datooga"},
["tcd"] = {"Tafi"},
["tce"] = {"Tutchone Yiass"},
["tcf"] = {"Malinaltepec Me'phaa", "Malinaltepec Tlapanec"},
["tcg"] = {"Tamagario"},
["tch"] = {"Creeole Baarle ny Turkee as Caicos"},
["tci"] = {"Wára"},
["tck"] = {"Tchitchege"},
["tcl"] = {"Taman (Myanmar)"},
["tcm"] = {"Tanahmerah"},
["tcn"] = {"Tichurong"},
["tco"] = {"Taungyo"},
["tcp"] = {"Tawr Chin"},
["tcq"] = {"Kaiy"},
["tcs"] = {"Creeole Keyllys Torres", "Yumplatok"},
["tct"] = {"T'en"},
["tcu"] = {"Tarahumara Hiar Yiass"},
["tcw"] = {"Totonac Tecpatlán"},
["tcx"] = {"Toda"},
["tcy"] = {"Tulu"},
["tcz"] = {"Chinish Thado"},
["tda"] = {"Tagdal"},
["tdb"] = {"Panchpargania"},
["tdc"] = {"Emberá-Tadó"},
["tdd"] = {"Tai Nüa"},
["tde"] = {"Tiranige Diga Dogon"},
["tdf"] = {"Talieng"},
["tdg"] = {"Tamang Heear"},
["tdh"] = {"Thulung"},
["tdi"] = {"Tomadino"},
["tdj"] = {"Tajio"},
["tdk"] = {"Tambas"},
["tdl"] = {"Sur"},
["tdm"] = {"Taruma"},
["tdn"] = {"Tondano"},
["tdo"] = {"Teme"},
["tdq"] = {"Tita"},
["tdr"] = {"Todrah"},
["tds"] = {"Doutai"},
["tdt"] = {"Tetun Dili"},
["tdv"] = {"Toro"},
["tdx"] = {"Malagasish Tandroy-Mahafaly"},
["tdy"] = {"Tadyawan"},
["tea"] = {"Temiar"},
["teb"] = {"Tetete"},
["tec"] = {"Terik"},
["ted"] = {"Tepo Krumen"},
["tee"] = {"Huehuetla Tepehua"},
["tef"] = {"Teressa"},
["teg"] = {"Teke-Tege"},
["teh"] = {"Tehuelçhish"},
["tei"] = {"Torricelli"},
["tek"] = {"Ibali Teke"},
["tem"] = {"Timne"},
["ten"] = {"Tama (y Cholombey)"},
["teo"] = {"Teso"},
["tep"] = {"Tepecano"},
["teq"] = {"Temein"},
["ter"] = {"Tereno"},
["tes"] = {"Tengger"},
["tet"] = {"Tetunish"},
["teu"] = {"Soo"},
["tev"] = {"Teor"},
["tew"] = {"Tewa (SUA)"},
["tex"] = {"Tennet"},
["tey"] = {"Tulishi"},
["tez"] = {"Tetserret"},
["tfi"] = {"Tofin Gbe"},
["tfn"] = {"Tanaina"},
["tfo"] = {"Tefaro"},
["tfr"] = {"Teribe"},
["tft"] = {"Ternate"},
["tga"] = {"Sagalla"},
["tgb"] = {"Tobilung"},
["tgc"] = {"Tigak"},
["tgd"] = {"Ciwogai"},
["tge"] = {"Tamang Hiar Gorkha"},
["tgf"] = {"Chalikha"},
["tgh"] = {"Creeole Baarle Tobago"},
["tgi"] = {"Lawunuia"},
["tgj"] = {"Tagin"},
["tgn"] = {"Tandaganon"},
["tgo"] = {"Sudest"},
["tgp"] = {"Tangoa"},
["tgq"] = {"Tring"},
["tgr"] = {"Tareng"},
["tgs"] = {"Nume"},
["tgt"] = {"Tagbanwa Veanagh"},
["tgu"] = {"Tanggu"},
["tgv"] = {"Tingui-Boto"},
["tgw"] = {"Tagwana Senoufo"},
["tgx"] = {"Tagish"},
["tgy"] = {"Togoyo"},
["tgz"] = {"Tagalaka"},
["thd"] = {"Kuuk Thaayorre", "Thayore"},
["the"] = {"Chitwania Tharu"},
["thf"] = {"Thangmi"},
["thh"] = {"Tarahumara Hwoaie"},
["thi"] = {"Tai Long"},
["thk"] = {"Tharaka", "Kitharaka"},
["thl"] = {"Dangaura Tharu"},
["thm"] = {"Aheu"},
["thn"] = {"Thachanadan"},
["thp"] = {"Thompson"},
["thq"] = {"Kochila Tharu"},
["thr"] = {"Rana Tharu"},
["ths"] = {"Thakali"},
["tht"] = {"Tahltan"},
["thu"] = {"Thuri"},
["thv"] = {"Tahaggart Tamahaq"},
["thy"] = {"Tha"},
["thz"] = {"Tayart Tamajeq"},
["tia"] = {"Tamazight Tidikelt"},
["tic"] = {"Tira"},
["tif"] = {"Tifal"},
["tig"] = {"Tigre"},
["tih"] = {"Timugon Murut"},
["tii"] = {"Tiene"},
["tij"] = {"Tilung"},
["tik"] = {"Tikar"},
["til"] = {"Tillamook"},
["tim"] = {"Timbe"},
["tin"] = {"Tindi"},
["tio"] = {"Teop"},
["tip"] = {"Trimuris"},
["tiq"] = {"Tiéfo"},
["tis"] = {"Masadiit Itneg"},
["tit"] = {"Tinigua"},
["tiu"] = {"Adasen"},
["tiv"] = {"Tiv"},
["tiw"] = {"Tiwi"},
["tix"] = {"Tiwa Yiass"},
["tiy"] = {"Tiruray"},
["tiz"] = {"Tai Hongjin"},
["tja"] = {"Tajuasohn"},
["tjg"] = {"Tunjung"},
["tji"] = {"Tujia Hwoaie"},
["tjj"] = {"Tjungundji"},
["tjl"] = {"Tai Laing"},
["tjm"] = {"Timucua"},
["tjn"] = {"Tonjon"},
["tjo"] = {"Tamazight Témacine"},
["tjp"] = {"Tjupany"},
["tjs"] = {"Tujia Yiass"},
["tju"] = {"Tjurruru"},
["tjw"] = {"Djabwurrung"},
["tka"] = {"Truká"},
["tkb"] = {"Buksa"},
["tkd"] = {"Tukudede"},
["tke"] = {"Takwane"},
["tkf"] = {"Tukumanféd"},
["tkg"] = {"Malagasish Tesaka"},
["tkl"] = {"Tokelauish"},
["tkm"] = {"Takelma"},
["tkn"] = {"Toku-No-Shima"},
["tkp"] = {"Tikopia"},
["tkq"] = {"Tee"},
["tkr"] = {"Tsakhurish"},
["tks"] = {"Takestaanish"},
["tkt"] = {"Kathoriya Tharu"},
["tku"] = {"Totonac Necaxa Heose"},
["tkv"] = {"Mur Pano"},
["tkw"] = {"Teanu"},
["tkx"] = {"Tangko"},
["tkz"] = {"Takua"},
["tla"] = {"Tepehuan Heear Yiass"},
["tlb"] = {"Tobelo"},
["tlc"] = {"Totonac Yecuatla"},
["tld"] = {"Talaud"},
["tlf"] = {"Telefol"},
["tlg"] = {"Tofanma"},
["tlh"] = {"Klingon", "tlhIngan Hol"},
["tli"] = {"Tlingit"},
["tlj"] = {"Talinga-Bwisi"},
["tlk"] = {"Taloki"},
["tll"] = {"Tetela"},
["tlm"] = {"Tolomako"},
["tln"] = {"Talondo'"},
["tlo"] = {"Talodi"},
["tlp"] = {"Totonac Filomena Mata-Coahuitlán"},
["tlq"] = {"Tai Loi"},
["tlr"] = {"Talise"},
["tls"] = {"Tambotalo"},
["tlt"] = {"Sou Nama", "Teluti"},
["tlu"] = {"Tulehu"},
["tlv"] = {"Taliabu"},
["tlx"] = {"Khehek"},
["tly"] = {"Talysh"},
["tma"] = {"Tama (Shad)"},
["tmb"] = {"Katbol", "Avava"},
["tmc"] = {"Tumak"},
["tmd"] = {"Haruai"},
["tme"] = {"Tremembé"},
["tmf"] = {"Toba-Maskoy"},
["tmg"] = {"Ternateño"},
["tmh"] = {"Tamashek"},
["tmi"] = {"Tutuba"},
["tmj"] = {"Samarokena"},
["tml"] = {"Tamnim Citak"},
["tmm"] = {"Tai Thanh"},
["tmn"] = {"Taman (yn Indoneesh)"},
["tmo"] = {"Temoq"},
["tmq"] = {"Tumleo"},
["tmr"] = {"Aramaaish Vabylonagh Ewagh (ca. 200-1200 BNJ)"},
["tms"] = {"Tima"},
["tmt"] = {"Tasmate"},
["tmu"] = {"Iau"},
["tmv"] = {"Tembo (Motembo)"},
["tmw"] = {"Temuan"},
["tmy"] = {"Tami"},
["tmz"] = {"Tamanaku"},
["tna"] = {"Tacana"},
["tnb"] = {"Tunebo Heear"},
["tnc"] = {"Tanimuca-Retuarã"},
["tnd"] = {"Angosturas Tunebo"},
["tng"] = {"Tobanga"},
["tnh"] = {"Maiani"},
["tni"] = {"Tandia"},
["tnk"] = {"Kwamera"},
["tnl"] = {"Lenakel"},
["tnm"] = {"Tabla"},
["tnn"] = {"Tanna Hwoaie"},
["tno"] = {"Toromono"},
["tnp"] = {"Whitesands"},
["tnq"] = {"Taino"},
["tnr"] = {"Ménik"},
["tns"] = {"Tenis"},
["tnt"] = {"Tontemboan"},
["tnu"] = {"Tay Khang"},
["tnv"] = {"Tangchangya"},
["tnw"] = {"Tonsawang"},
["tnx"] = {"Tanema"},
["tny"] = {"Tongwe"},
["tnz"] = {"Ten'edn"},
["tob"] = {"Toba"},
["toc"] = {"Totonac Coyutla"},
["tod"] = {"Toma"},
["tof"] = {"Gizrra"},
["tog"] = {"Tonga (Nyasa)"},
["toh"] = {"Gitonga"},
["toi"] = {"Tonga (y Tambia)"},
["toj"] = {"Tojolabal"},
["tok"] = {"Toki Pona"},
["tol"] = {"Tolowa"},
["tom"] = {"Tombulu"},
["too"] = {"Totonac Xicotepec De Juárez"},
["top"] = {"Totonac Papantla"},
["toq"] = {"Toposa"},
["tor"] = {"Togbo-Vara Banda"},
["tos"] = {"Totonac Sleitoil"},
["tou"] = {"Tho"},
["tov"] = {"Taromi Eaghtyragh"},
["tow"] = {"Jemez"},
["tox"] = {"Tobian"},
["toy"] = {"Topoiyo"},
["toz"] = {"To"},
["tpa"] = {"Taupota"},
["tpc"] = {"Me'phaa Azoyú", "Tlapanec Azoyú"},
["tpe"] = {"Tippera"},
["tpf"] = {"Tarpia"},
["tpg"] = {"Kula"},
["tpi"] = {"Tok Pisin"},
["tpj"] = {"Tapieté"},
["tpk"] = {"Tupinikin"},
["tpl"] = {"Me'phaa Tlacoapa", "Tlapanec Tlacoapa"},
["tpm"] = {"Tampulma"},
["tpn"] = {"Tupinambá"},
["tpo"] = {"Tai Pao"},
["tpp"] = {"Tepehua Pisaflores"},
["tpq"] = {"Tukpa"},
["tpr"] = {"Tuparí"},
["tpt"] = {"Tepehua Tlachichilco"},
["tpu"] = {"Tampuan"},
["tpv"] = {"Tanapag"},
["tpx"] = {"Me'phaa Acatepec", "Tlapanec Acatepec"},
["tpy"] = {"Trumai"},
["tpz"] = {"Tinputz"},
["tqb"] = {"Tembé"},
["tql"] = {"Lehali"},
["tqm"] = {"Turumsa"},
["tqn"] = {"Tenino"},
["tqo"] = {"Toaripi"},
["tqp"] = {"Tomoip"},
["tqq"] = {"Tunni"},
["tqr"] = {"Torona"},
["tqt"] = {"Totonac Heear"},
["tqu"] = {"Touo"},
["tqw"] = {"Tonkawa"},
["tra"] = {"Tirahi"},
["trb"] = {"Terebu"},
["trc"] = {"Copala Triqui"},
["trd"] = {"Turi"},
["tre"] = {"Tarangan Hiar"},
["trf"] = {"Creeole Baarle Trinaidagh"},
["trg"] = {"Lishán Didán"},
["trh"] = {"Turaka"},
["tri"] = {"Trió"},
["trj"] = {"Toram"},
["trk"] = {"çhengaghyn Turkagh"},
["trl"] = {"Albinish Romanagh"},
["trm"] = {"Tregami"},
["trn"] = {"Trinitario"},
["tro"] = {"Tarao Naga"},
["trp"] = {"Kok Borok"},
["trq"] = {"Triqui San Martín Itunyoso"},
["trr"] = {"Taushiro"},
["trs"] = {"Triqui Chicahuaxtla"},
["trt"] = {"Tunggare"},
["tru"] = {"Turoyo", "Surayt"},
["trv"] = {"Sediq", "Seediq", "Taroko"},
["trw"] = {"Torwali"},
["trx"] = {"Bidayuh Tringgus-Sembaan"},
["try"] = {"Turung"},
["trz"] = {"Torá"},
["tsa"] = {"Tsaangi"},
["tsb"] = {"Tsamai"},
["tsc"] = {"Tswa"},
["tsd"] = {"Tsakonish"},
["tse"] = {"Çhengey Chowree Hooneeshagh"},
["tsg"] = {"Tausug"},
["tsh"] = {"Tsuvan"},
["tsi"] = {"Tsimshian"},
["tsj"] = {"Tshangla"},
["tsk"] = {"Tseku"},
["tsl"] = {"Ts'ün-Lao"},
["tsm"] = {"Çhengey Chowree Hurkagh", "Türk İşaret Dili"},
["tsp"] = {"Tusya Hwoaie"},
["tsq"] = {"Çhengey Chowree Thai"},
["tsr"] = {"Akei"},
["tss"] = {"Çhengey Chowree Haiwaanagh"},
["tst"] = {"Tondi Songway Kiini"},
["tsu"] = {"Tsou"},
["tsv"] = {"Tsogo"},
["tsw"] = {"Tsishingini"},
["tsx"] = {"Mubami"},
["tsy"] = {"Çhengey Chowree Tebul"},
["tsz"] = {"Purepecha"},
["tta"] = {"Tutelo"},
["ttb"] = {"Gaa"},
["ttc"] = {"Tektiteko"},
["ttd"] = {"Tauade"},
["tte"] = {"Bwanabwana"},
["ttf"] = {"Tuotomb"},
["ttg"] = {"Tutong"},
["tth"] = {"Ta'oih Heose"},
["tti"] = {"Tobati"},
["ttj"] = {"Tooro"},
["ttk"] = {"Totoro"},
["ttl"] = {"Totela"},
["ttm"] = {"Tutchone Hwoaie"},
["ttn"] = {"Towei"},
["tto"] = {"Ta'oih Injil"},
["ttp"] = {"Tombelala"},
["ttq"] = {"Tamajaq Tawallammat"},
["ttr"] = {"Tera"},
["tts"] = {"Thai Hiar Hwoaie"},
["ttt"] = {"Tatish Voslymagh"},
["ttu"] = {"Torau"},
["ttv"] = {"Titan"},
["ttw"] = {"Long Wat"},
["tty"] = {"Sikaritai"},
["ttz"] = {"Tsum"},
["tua"] = {"Wiarumus"},
["tub"] = {"Tübatulabal"},
["tuc"] = {"Mutu"},
["tud"] = {"Tuxá"},
["tue"] = {"Tuyuca"},
["tuf"] = {"Tunebo Veanagh"},
["tug"] = {"Tunia"},
["tuh"] = {"Taulil"},
["tui"] = {"Tupuri"},
["tuj"] = {"Tugutil"},
["tul"] = {"Tula"},
["tum"] = {"Tumbukish"},
["tun"] = {"Tunica"},
["tuo"] = {"Tucano"},
["tup"] = {"çhengaghyn Tupi"},
["tuq"] = {"Tedaga"},
["tus"] = {"Tuscarora"},
["tut"] = {"çhengaghyn Altaiagh"},
["tuu"] = {"Tututni"},
["tuv"] = {"Turkana"},
["tuw"] = {"çhengaghyn Tungusagh"},
["tux"] = {"Tuxináwa"},
["tuy"] = {"Tugen"},
["tuz"] = {"Turka"},
["tva"] = {"Vaghua"},
["tvd"] = {"Tsuvadi"},
["tve"] = {"Te'un"},
["tvi"] = {"Tulai"},
["tvk"] = {"Ambrym Hiar Yiass"},
["tvl"] = {"Tuvalu"},
["tvm"] = {"Tela-Masbuar"},
["tvn"] = {"Tavoyan"},
["tvo"] = {"Tidore"},
["tvs"] = {"Taveta"},
["tvt"] = {"Naga Tutsa"},
["tvu"] = {"Tunen"},
["tvw"] = {"Sedoa"},
["tvx"] = {"Taivoan"},
["tvy"] = {"Timorish Vrisht"},
["twa"] = {"Twana"},
["twb"] = {"Tawbuid Heear"},
["twc"] = {"Teshenawa"},
["twd"] = {"Twents"},
["twe"] = {"Tewa (yn Indoneesh)"},
["twf"] = {"Tiwa Hwoaie"},
["twg"] = {"Tereweng"},
["twh"] = {"Tai Dón"},
["twl"] = {"Tawara"},
["twm"] = {"Tawang Monpa"},
["twn"] = {"Twendi"},
["two"] = {"Tswapong"},
["twp"] = {"Ere"},
["twq"] = {"Tasawaq"},
["twr"] = {"Tarahumara Heear Yiass"},
["twt"] = {"Turiwára"},
["twu"] = {"Termanu"},
["tww"] = {"Tuwari"},
["twx"] = {"Tewe"},
["twy"] = {"Tawoyan"},
["txa"] = {"Tombonuo"},
["txb"] = {"Tokharish B"},
["txc"] = {"Tsetsaut"},
["txe"] = {"Totoli"},
["txg"] = {"Tangut"},
["txh"] = {"Thrackish"},
["txi"] = {"Ikpeng"},
["txj"] = {"Tarjumo"},
["txm"] = {"Tomini"},
["txn"] = {"Tarangan Heear"},
["txo"] = {"Toto"},
["txq"] = {"Tii"},
["txr"] = {"Tartessish"},
["txs"] = {"Tonsea"},
["txt"] = {"Citak"},
["txu"] = {"Kayapó"},
["txx"] = {"Tatana"},
["txy"] = {"Malagasish Tanosy"},
["tya"] = {"Tauya"},
["tye"] = {"Kyanga"},
["tyh"] = {"O'du"},
["tyi"] = {"Teke-Tsaayi"},
["tyj"] = {"Tai Do", "Tai Yo"},
["tyl"] = {"Thu Lao"},
["tyn"] = {"Kombai"},
["typ"] = {"Thaypan"},
["tyr"] = {"Tai Daeng"},
["tys"] = {"Tày Sa Pa"},
["tyt"] = {"Tày Tac"},
["tyu"] = {"Kua"},
["tyv"] = {"Tuvish"},
["tyx"] = {"Teke-Tyee"},
["tyy"] = {"Tiyaa"},
["tyz"] = {"Tày"},
["tza"] = {"Çhengey Chowree Tanzania"},
["tzh"] = {"Tzeltal"},
["tzj"] = {"Tz'utujil"},
["tzl"] = {"Talossan"},
["tzm"] = {"Tamazight Atlas Veanagh"},
["tzn"] = {"Tugun"},
["tzo"] = {"Tzotzil"},
["tzx"] = {"Tabriak"},
["uam"] = {"Uamué"},
["uan"] = {"Kuan"},
["uar"] = {"Tairuma"},
["uba"] = {"Ubang"},
["ubi"] = {"Ubi"},
["ubl"] = {"Buhi'non Bikol"},
["ubr"] = {"Ubir"},
["ubu"] = {"Umbu-Ungu"},
["uby"] = {"Ubykhish"},
["uda"] = {"Uda"},
["ude"] = {"Udihe"},
["udg"] = {"Muduga"},
["udi"] = {"Udi"},
["udj"] = {"Ujir"},
["udl"] = {"Wuzlam"},
["udm"] = {"Udmurtish"},
["udu"] = {"Uduk"},
["ues"] = {"Kioko"},
["ufi"] = {"Ufim"},
["uga"] = {"Oogaritish"},
["ugb"] = {"Kuku-Ugbanh"},
["uge"] = {"Ughele"},
["ugh"] = {"Kubachi"},
["ugn"] = {"Çhengey Chowree Oogandagh"},
["ugo"] = {"Ugong"},
["ugy"] = {"Çhengey Chowree Ooraguayagh"},
["uha"] = {"Uhami"},
["uhn"] = {"Damal"},
["uis"] = {"Uisai"},
["uiv"] = {"Iyive"},
["uji"] = {"Tanjijili"},
["uka"] = {"Kaburi"},
["ukg"] = {"Ukuriguma"},
["ukh"] = {"Ukhwejo"},
["uki"] = {"Kui (yn Injey)"},
["ukk"] = {"Muak Sa-aak"},
["ukl"] = {"Çhengey Chowree Ookraanagh"},
["ukp"] = {"Ukpe-Bayobiri"},
["ukq"] = {"Ukwa"},
["uks"] = {"Çhengey Chowree Urubú-Kaapor", "Çhengey Chowree Kaapor"},
["uku"] = {"Ukue"},
["ukv"] = {"Kuku"},
["ukw"] = {"Ukwuani-Aboh-Ndoni"},
["uky"] = {"Kuuk-Yak"},
["ula"] = {"Fungwa"},
["ulb"] = {"Ulukwumi"},
["ulc"] = {"Ulch"},
["ule"] = {"Lule"},
["ulf"] = {"Usku", "Afra"},
["uli"] = {"Ulithish"},
["ulk"] = {"Meriam Mir"},
["ull"] = {"Ullatan"},
["ulm"] = {"Ulumanda'"},
["uln"] = {"Unserdeutsch"},
["ulu"] = {"Uma' Lung"},
["ulw"] = {"Ulwa"},
["uly"] = {"Buli"},
["uma"] = {"Umatilla"},
["umb"] = {"Umbundu"},
["umc"] = {"Marrucinish"},
["umd"] = {"Umbindhamu"},
["umg"] = {"Morrobalama", "Umbuygamu"},
["umi"] = {"Ukit"},
["umm"] = {"Umon"},
["umn"] = {"Makyan Naga"},
["umo"] = {"Umotína"},
["ump"] = {"Umpila"},
["umr"] = {"Umbugarla"},
["ums"] = {"Pendau"},
["umu"] = {"Munsee"},
["una"] = {"Watut Hwoaie"},
["und"] = {"Neuoolit"},
["une"] = {"Uneme"},
["ung"] = {"Ngarinyin"},
["uni"] = {"Uni"},
["unk"] = {"Enawené-Nawé"},
["unm"] = {"Unami"},
["unn"] = {"Kurnai"},
["unr"] = {"Mundari"},
["unu"] = {"Unubahe"},
["unx"] = {"Munda"},
["unz"] = {"Unde Kaili"},
["uon"] = {"Kulon"},
["upi"] = {"Umeda"},
["upv"] = {"Uripiv-Wala-Rano-Atchin"},
["ura"] = {"Urarina"},
["urb"] = {"Urubú-Kaapor", "Kaapor"},
["urc"] = {"Urningangg"},
["ure"] = {"Uru"},
["urf"] = {"Uradhi"},
["urg"] = {"Urigina"},
["urh"] = {"Urhobo"},
["uri"] = {"Urim"},
["urj"] = {"çhengaghyn Ooralagh"},
["urk"] = {"Urak Lawoi'"},
["url"] = {"Urali"},
["urm"] = {"Urapmin"},
["urn"] = {"Uruangnirin"},
["uro"] = {"Ura (Papooey Guinea Noa)"},
["urp"] = {"Uru-Pa-In"},
["urr"] = {"Lehalurup", "Löyöp"},
["urt"] = {"Urat"},
["uru"] = {"Urumi"},
["urv"] = {"Uruava"},
["urw"] = {"Sop"},
["urx"] = {"Urimo"},
["ury"] = {"Orya"},
["urz"] = {"Uru-Eu-Wau-Wau"},
["usa"] = {"Usarufa"},
["ush"] = {"Ushojo"},
["usi"] = {"Usui"},
["usk"] = {"Usaghade"},
["usp"] = {"Uspanteco"},
["uss"] = {"us-Saare"},
["usu"] = {"Uya"},
["uta"] = {"Otank"},
["ute"] = {"Ute-Paiute Yiass"},
["uth"] = {"ut-Hun"},
["utp"] = {"Amba (Ellanyn Solomon)"},
["utr"] = {"Etulo"},
["utu"] = {"Utu"},
["uum"] = {"Urum"},
["uur"] = {"Ura (Vanuatu)"},
["uuu"] = {"U"},
["uve"] = {"Uveish Heear", "Fagauvea"},
["uvh"] = {"Uri"},
["uvl"] = {"Lote"},
["uwa"] = {"Kuku-Uwanh"},
["uya"] = {"Doko-Uyanga"},
["uzn"] = {"Oosbeckish Hwoaie"},
["uzs"] = {"Oosbeckish Yiass"},
["vaa"] = {"Vaagri Booli"},
["vae"] = {"Vale"},
["vaf"] = {"Vafsi"},
["vag"] = {"Vagla"},
["vah"] = {"Varhadi-Nagpuri"},
["vai"] = {"Vai"},
["vaj"] = {"Sekele", "ǃKung Heear Hwoaie", "Vasekele"},
["val"] = {"Vehes"},
["vam"] = {"Vanimo"},
["van"] = {"Valman"},
["vao"] = {"Vao"},
["vap"] = {"Vaiphei"},
["var"] = {"Huarijio"},
["vas"] = {"Vasavi"},
["vau"] = {"Vanuma"},
["vav"] = {"Varli"},
["vay"] = {"Wayu"},
["vbb"] = {"Babar Hiar Yiass"},
["vbk"] = {"Bontok Heear Yiass"},
["vec"] = {"Veneeshish"},
["ved"] = {"Veddah"},
["vel"] = {"Veluws"},
["vem"] = {"Vemgo-Mabas"},
["veo"] = {"Ventureño"},
["vep"] = {"Vepsish"},
["ver"] = {"Mom Jango"},
["vgr"] = {"Vaghri"},
["vgt"] = {"Vlaamse Gebarentaal", "Çhengey Chowree Landrynagh"},
["vic"] = {"Creeole Baarle Ellanyn y Voidyn"},
["vid"] = {"Vidunda"},
["vif"] = {"Vili"},
["vig"] = {"Viemo"},
["vil"] = {"Vilela"},
["vin"] = {"Vinza"},
["vis"] = {"Vishavan"},
["vit"] = {"Viti"},
["viv"] = {"Iduna"},
["vjk"] = {"Bajjika"},
["vka"] = {"Kariyarra"},
["vkj"] = {"Kujarge"},
["vkk"] = {"Kaur"},
["vkl"] = {"Kulisusu"},
["vkm"] = {"Kamakan"},
["vkn"] = {"Koro Nulu"},
["vko"] = {"Kodeoha"},
["vkp"] = {"Creeole Portiugish Korlai"},
["vkt"] = {"Malayish Tenggarong Kutai"},
["vku"] = {"Kurrama"},
["vkz"] = {"Koro Zuba"},
["vlp"] = {"Valpei"},
["vls"] = {"Vlaams"},
["vma"] = {"Martuyhunira"},
["vmb"] = {"Barbaram"},
["vmc"] = {"Mixtecish Juxtlahuaca"},
["vmd"] = {"Mudu Koraga"},
["vme"] = {"Masela Hiar"},
["vmf"] = {"Mainfränkisch"},
["vmg"] = {"Lungalunga"},
["vmh"] = {"Maraghei"},
["vmi"] = {"Miwa"},
["vmj"] = {"Mixtecish Ixtayutla"},
["vmk"] = {"Makhuwa-Shirima"},
["vml"] = {"Malgana"},
["vmm"] = {"Mixtecish Mitlatongo"},
["vmp"] = {"Mazatec Soyaltepec"},
["vmq"] = {"Mixtecish Soyaltepec"},
["vmr"] = {"Marenje"},
["vms"] = {"Moksela"},
["vmu"] = {"Muluridyi"},
["vmv"] = {"Maidu Ghlionney"},
["vmw"] = {"Makhuwa"},
["vmx"] = {"Mixtecish Tamazola"},
["vmy"] = {"Mazatec Ayautla"},
["vmz"] = {"Mazatec Mazatlán"},
["vnk"] = {"Vano", "Lovono"},
["vnm"] = {"Vinmavis", "Neve'ei"},
["vnp"] = {"Vunapu"},
["vor"] = {"Voroish"},
["vot"] = {"Votish"},
["vra"] = {"Vera'a"},
["vro"] = {"Võro"},
["vrs"] = {"Varisi"},
["vrt"] = {"Burmbar", "Banam Bay"},
["vsi"] = {"Çhengey Chowree Voldovagh"},
["vsl"] = {"Çhengey Chowree Veneswaalagh"},
["vsv"] = {"Çhengey Chowree Valensianagh", "Llengua de signes valenciana"},
["vto"] = {"Vitou"},
["vum"] = {"Vumbu"},
["vun"] = {"Vunjo"},
["vut"] = {"Vute"},
["vwa"] = {"Awa (y Çheen)"},
["waa"] = {"Walla Walla"},
["wab"] = {"Wab"},
["wac"] = {"Wasco-Wishram"},
["wad"] = {"Wamesa", "Wondama"},
["wae"] = {"Walser"},
["waf"] = {"Wakoná"},
["wag"] = {"Wa'ema"},
["wah"] = {"Watubela"},
["wai"] = {"Wares"},
["waj"] = {"Waffa"},
["wak"] = {"çhengaghyn Wakashagh"},
["wal"] = {"Wolaytta", "Wolaitta"},
["wam"] = {"Wampanoag"},
["wan"] = {"Wan"},
["wao"] = {"Wappo"},
["wap"] = {"Wapishana"},
["waq"] = {"Wagiman"},
["war"] = {"Waray (ny h-Ellanyn Philippeenagh)"},
["was"] = {"Washo"},
["wat"] = {"Kaninuwa"},
["wau"] = {"Waurá"},
["wav"] = {"Waka"},
["waw"] = {"Waiwai"},
["wax"] = {"Watam", "Marangis"},
["way"] = {"Wayana"},
["waz"] = {"Wampur"},
["wba"] = {"Warao"},
["wbb"] = {"Wabo"},
["wbe"] = {"Waritai"},
["wbf"] = {"Wara"},
["wbh"] = {"Wanda"},
["wbi"] = {"Vwanji"},
["wbj"] = {"Alagwa"},
["wbk"] = {"Waigali"},
["wbl"] = {"Wakhi"},
["wbm"] = {"Wa"},
["wbp"] = {"Warlpiri"},
["wbq"] = {"Waddar"},
["wbr"] = {"Wagdi"},
["wbs"] = {"Çhengey Chowree y Vengaal Heear"},
["wbt"] = {"Warnman"},
["wbv"] = {"Wajarri"},
["wbw"] = {"Woi"},
["wca"] = {"Yanomámi"},
["wci"] = {"Waci Gbe"},
["wdd"] = {"Wandji"},
["wdg"] = {"Wadaginam"},
["wdj"] = {"Wadjiginy"},
["wdk"] = {"Wadikali"},
["wdt"] = {"Wendat"},
["wdu"] = {"Wadjigu"},
["wdy"] = {"Wadjabangayi"},
["wea"] = {"Wewaw"},
["wec"] = {"Wè Heear"},
["wed"] = {"Wedau"},
["weg"] = {"Wergaia"},
["weh"] = {"Weh"},
["wei"] = {"Kiunum"},
["wem"] = {"Weme Gbe"},
["wen"] = {"çhengaghyn Sorbagh"},
["weo"] = {"Wemale"},
["wep"] = {"Westphalien"},
["wer"] = {"Weri"},
["wes"] = {"Cameroonish Vrisht"},
["wet"] = {"Perai"},
["weu"] = {"Rawngtu Chin"},
["wew"] = {"Wejewa"},
["wfg"] = {"Yafi", "Zorop"},
["wga"] = {"Wagaya"},
["wgb"] = {"Wagawaga"},
["wgg"] = {"Wangkangurru", "Wangganguru"},
["wgi"] = {"Wahgi"},
["wgo"] = {"Waigeo"},
["wgu"] = {"Wirangu"},
["wgy"] = {"Warrgamay"},
["wha"] = {"Sou Upaa", "Manusela"},
["whg"] = {"Wahgi Hwoaie"},
["whk"] = {"Wahau Kenyah"},
["whu"] = {"Wahau Kayan"},
["wib"] = {"Tusya Yiass"},
["wic"] = {"Wichita"},
["wie"] = {"Wik-Epa"},
["wif"] = {"Wik-Keyangan"},
["wig"] = {"Wik Ngathan"},
["wih"] = {"Wik-Me'anha"},
["wii"] = {"Minidien"},
["wij"] = {"Wik-Iiyanh"},
["wik"] = {"Wikalkan"},
["wil"] = {"Wilawila"},
["wim"] = {"Wik-Mungkan"},
["win"] = {"Ho-Chunk"},
["wir"] = {"Wiraféd"},
["wiu"] = {"Wiru"},
["wiv"] = {"Vitu"},
["wiy"] = {"Wiyot"},
["wja"] = {"Waja"},
["wji"] = {"Warji"},
["wka"] = {"Kw'adza"},
["wkb"] = {"Kumbaran"},
["wkd"] = {"Wakde", "Mo"},
["wkl"] = {"Kalanadi"},
["wkr"] = {"Keerray-Woorroong"},
["wku"] = {"Kunduvadi"},
["wkw"] = {"Wakawaka"},
["wky"] = {"Wangkayutyuru"},
["wla"] = {"Walio"},
["wlc"] = {"Comoroish Mwali"},
["wle"] = {"Wolane"},
["wlg"] = {"Kunbarlang"},
["wlh"] = {"Welaun"},
["wli"] = {"Waioli"},
["wlk"] = {"Wailaki"},
["wll"] = {"Wali (y Toodaan)"},
["wlm"] = {"Bretnish Veanagh"},
["wlo"] = {"Wolio"},
["wlr"] = {"Wailapa"},
["wls"] = {"Wallisish"},
["wlu"] = {"Wuliwuli"},
["wlv"] = {"Wichí Lhamtés Vejoz"},
["wlw"] = {"Walak"},
["wlx"] = {"Wali (y Ghaney)"},
["wly"] = {"Waling"},
["wma"] = {"Mawa (y Naigeer)"},
["wmb"] = {"Wambaya"},
["wmc"] = {"Wamas"},
["wmd"] = {"Mamaindé"},
["wme"] = {"Wambule"},
["wmg"] = {"Minyag Heear"},
["wmh"] = {"Waima'a"},
["wmi"] = {"Wamin"},
["wmm"] = {"Maiwa (yn Indoneesh)"},
["wmn"] = {"Waamwang"},
["wmo"] = {"Wom (Papooey Guinea Noa)"},
["wms"] = {"Wambon"},
["wmt"] = {"Walmajarri"},
["wmw"] = {"Mwani"},
["wmx"] = {"Womo"},
["wnb"] = {"Mokati"},
["wnc"] = {"Wantoat"},
["wnd"] = {"Wandarang"},
["wne"] = {"Waneci"},
["wng"] = {"Wanggom"},
["wni"] = {"Comoroish Ndzwani"},
["wnk"] = {"Wanukaka"},
["wnm"] = {"Wanggamala"},
["wnn"] = {"Wunumara"},
["wno"] = {"Wano"},
["wnp"] = {"Wanap"},
["wnu"] = {"Usan"},
["wnw"] = {"Wintu"},
["wny"] = {"Wanyi", "Waanyi"},
["woa"] = {"Kuwema", "Tyaraity"},
["wob"] = {"Wè Hwoaie"},
["woc"] = {"Wogeo"},
["wod"] = {"Wolani"},
["woe"] = {"Woleaish"},
["wof"] = {"Wolofish Ghambiagh"},
["wog"] = {"Wogamusin"},
["woi"] = {"Kamang"},
["wok"] = {"Longto"},
["wom"] = {"Wom (y Naigeer)"},
["won"] = {"Wongo"},
["woo"] = {"Manombai"},
["wor"] = {"Woria"},
["wos"] = {"Hundish Hanga"},
["wow"] = {"Wawonii"},
["woy"] = {"Weyto"},
["wpc"] = {"Maco"},
["wrb"] = {"Waluwarra", "Warluwara"},
["wrg"] = {"Warungu", "Gudjal"},
["wrh"] = {"Wiradjuri"},
["wri"] = {"Wariyangga"},
["wrk"] = {"Garrwa"},
["wrl"] = {"Warlmanpa"},
["wrm"] = {"Warumungu"},
["wrn"] = {"Warnang"},
["wro"] = {"Worrorra"},
["wrp"] = {"Waropen"},
["wrr"] = {"Wardaman"},
["wrs"] = {"Waris"},
["wru"] = {"Waru"},
["wrv"] = {"Waruna"},
["wrw"] = {"Gugu Warra"},
["wrx"] = {"Wae Rana"},
["wry"] = {"Merwari"},
["wrz"] = {"Waray (yn Austrail)"},
["wsa"] = {"Warembori"},
["wsg"] = {"Adilabad Gondi"},
["wsi"] = {"Wusi"},
["wsk"] = {"Waskia"},
["wsr"] = {"Owenia"},
["wss"] = {"Wasa"},
["wsu"] = {"Wasu"},
["wsv"] = {"Wotapuri-Katarqalai"},
["wtb"] = {"Matambwe"},
["wtf"] = {"Watiwa"},
["wth"] = {"Wathawurrung"},
["wti"] = {"Berta"},
["wtk"] = {"Watakataui"},
["wtm"] = {"Mewati"},
["wtw"] = {"Wotu"},
["wua"] = {"Wikngenchera"},
["wub"] = {"Wunambal"},
["wud"] = {"Wudu"},
["wuh"] = {"Wutunhua"},
["wul"] = {"Silimo"},
["wum"] = {"Wumbvu"},
["wun"] = {"Bungu"},
["wur"] = {"Wurrugu"},
["wut"] = {"Wutung"},
["wuu"] = {"Sheenish Wu"},
["wuv"] = {"Wuvulu-Aua"},
["wux"] = {"Wulna"},
["wuy"] = {"Wauyai"},
["wwa"] = {"Waama"},
["wwb"] = {"Wakabunga"},
["wwo"] = {"Wetamut", "Dorig"},
["wwr"] = {"Warrwa"},
["www"] = {"Wawa"},
["wxa"] = {"Waxianghua"},
["wxw"] = {"Wardandi"},
["wyb"] = {"Wangaaybuwan-Ngiyambaa"},
["wyi"] = {"Woiwurrung"},
["wym"] = {"Wymysorys"},
["wyn"] = {"Wyandot"},
["wyr"] = {"Wayoró"},
["wyy"] = {"Fijish Heear"},
["xaa"] = {"Arabish Andaloosagh"},
["xab"] = {"Sambe"},
["xac"] = {"Kachari"},
["xad"] = {"Adai"},
["xae"] = {"Aequish"},
["xag"] = {"Aghwan"},
["xai"] = {"Kaimbé"},
["xaj"] = {"Ararandewára"},
["xak"] = {"Máku"},
["xal"] = {"Kalmykish", "Oiratish"},
["xam"] = {"ǀXam"},
["xan"] = {"Xamtanga"},
["xao"] = {"Khao"},
["xap"] = {"Apalaçheeish"},
["xaq"] = {"Ackitaanish"},
["xar"] = {"Karami"},
["xas"] = {"Kamas"},
["xat"] = {"Katawixi"},
["xau"] = {"Kauwera"},
["xav"] = {"Xavánte"},
["xaw"] = {"Kawaiisu"},
["xay"] = {"Kayan Mahakam"},
["xbb"] = {"Burdekin Injil"},
["xbc"] = {"Bactrish"},
["xbd"] = {"Bindal"},
["xbe"] = {"Bigambal"},
["xbg"] = {"Bunganditj"},
["xbi"] = {"Kombio"},
["xbj"] = {"Birrpayi"},
["xbm"] = {"Britaanish Veanagh"},
["xbn"] = {"Kenaboi"},
["xbo"] = {"Bolgarish"},
["xbp"] = {"Bibbulman"},
["xbr"] = {"Kambera"},
["xbw"] = {"Kambiwá"},
["xby"] = {"Batjala", "Batyala"},
["xcb"] = {"Cumbrish"},
["xcc"] = {"Camunish"},
["xce"] = {"Celtibeirish"},
["xcg"] = {"Goalish Chisalpagh"},
["xch"] = {"Chemakum", "Chimakum"},
["xcl"] = {"Armeanish Chlassicagh"},
["xcm"] = {"Comecrudo"},
["xcn"] = {"Cotoname"},
["xco"] = {"Chorasmish"},
["xcr"] = {"Carian"},
["xct"] = {"Tibetish Chlassicagh"},
["xcu"] = {"Curonish"},
["xcv"] = {"Chuvantsy"},
["xcw"] = {"Coahuilteco"},
["xcy"] = {"Cayuse"},
["xda"] = {"Darkinyung"},
["xdc"] = {"Dackish"},
["xdk"] = {"Dharuk"},
["xdm"] = {"Edomish"},
["xdo"] = {"Kwandu"},
["xdq"] = {"Kaitag"},
["xdy"] = {"Dayak Valayagh"},
["xeb"] = {"Eblan"},
["xed"] = {"Hdi"},
["xeg"] = {"ǁXegwi"},
["xel"] = {"Kelo"},
["xem"] = {"Kembayan"},
["xep"] = {"Epi-Olmec"},
["xer"] = {"Xerénte"},
["xes"] = {"Kesawai"},
["xet"] = {"Xetá"},
["xeu"] = {"Keoru-Ahia"},
["xfa"] = {"Faliscish"},
["xga"] = {"Galaatish"},
["xgb"] = {"Gbin"},
["xgd"] = {"Gudang"},
["xgf"] = {"Gabrielino-Fernandeño"},
["xgg"] = {"Goreng"},
["xgi"] = {"Garingbal"},
["xgl"] = {"Galindan"},
["xgm"] = {"Dharumbal", "Guwinmal"},
["xgn"] = {"çhengaghyn Mongoilagh"},
["xgr"] = {"Garza"},
["xgu"] = {"Unggumi"},
["xgw"] = {"Guwa"},
["xha"] = {"Haramish"},
["xhc"] = {"Hunnish"},
["xhd"] = {"Hadrami"},
["xhe"] = {"Khetrani"},
["xhm"] = {"Khmerish Veanagh (1400 derrey 1850 BNJ)"},
["xhr"] = {"Hernicish"},
["xht"] = {"Hattish"},
["xhu"] = {"Hurrish"},
["xhv"] = {"Khua"},
["xib"] = {"Ibeirish"},
["xii"] = {"Xiri"},
["xil"] = {"Illyrish"},
["xin"] = {"Xinca"},
["xir"] = {"Xiriâna"},
["xis"] = {"Kisan"},
["xiv"] = {"Çhengey Ghlion yn Indus"},
["xiy"] = {"Xipaya"},
["xjb"] = {"Minjungbal"},
["xjt"] = {"Jaitmatang"},
["xka"] = {"Kalkoti"},
["xkb"] = {"Nago Hwoaie"},
["xkc"] = {"Kho'ini"},
["xkd"] = {"Kayan Mendalam"},
["xke"] = {"Kereho"},
["xkf"] = {"Khengkha"},
["xkg"] = {"Kagoro"},
["xki"] = {"Çhengey Chowree Cheinnagh"},
["xkj"] = {"Kajali"},
["xkk"] = {"Kachok", "Kaco'"},
["xkl"] = {"Kenyah Chadjin"},
["xkn"] = {"Kayan yn Awin Kayan"},
["xko"] = {"Kiorr"},
["xkp"] = {"Kabatei"},
["xkq"] = {"Koroni"},
["xkr"] = {"Xakriabá"},
["xks"] = {"Kumbewaha"},
["xkt"] = {"Kantosi"},
["xku"] = {"Kaamba"},
["xkv"] = {"Kgalagadi"},
["xkw"] = {"Kembra"},
["xkx"] = {"Karore"},
["xky"] = {"Uma' Lasan"},
["xkz"] = {"Kurtokha"},
["xla"] = {"Kamula"},
["xlb"] = {"Loup B"},
["xlc"] = {"Lyckish"},
["xld"] = {"Lydish"},
["xle"] = {"Lemnish"},
["xlg"] = {"Ligoorish (Henndeeagh)"},
["xli"] = {"Liburnish"},
["xln"] = {"Alanish"},
["xlo"] = {"Loup A"},
["xlp"] = {"Lepontish"},
["xls"] = {"Lusitaanish"},
["xlu"] = {"Luwish Yeenysagh"},
["xly"] = {"Elymish"},
["xma"] = {"Mushungulu"},
["xmb"] = {"Mbonga"},
["xmc"] = {"Makhuwa-Marrevone"},
["xmd"] = {"Mbudum"},
["xme"] = {"Medish"},
["xmf"] = {"Mingrelish"},
["xmg"] = {"Mengaka"},
["xmh"] = {"Kugu-Muminh"},
["xmj"] = {"Majera"},
["xmk"] = {"Massadoanish Henndeeagh"},
["xml"] = {"Çhengey Chowree Valaysiagh"},
["xmm"] = {"Malayish Manado"},
["xmn"] = {"Pershish Veanagh Vanichaeagh"},
["xmo"] = {"Morerebi"},
["xmp"] = {"Kuku-Mu'inh"},
["xmq"] = {"Kuku-Mangk"},
["xmr"] = {"Meroitish"},
["xms"] = {"Çhengey Chowree Varocagh"},
["xmt"] = {"Matbat"},
["xmu"] = {"Kamu"},
["xmv"] = {"Malagasish Antankarana", "Malagasish Tankarana"},
["xmw"] = {"Malagasish Tsimihety"},
["xmx"] = {"Salawati", "Maden"},
["xmy"] = {"Mayaguduna"},
["xmz"] = {"Mori Bawah"},
["xna"] = {"Arabish Hwoaie Henndeeagh"},
["xnb"] = {"Kanakanabu"},
["xnd"] = {"çhengaghyn Na-Dene"},
["xng"] = {"Mongoilish Veanagh"},
["xnh"] = {"Kuanhua"},
["xni"] = {"Ngarigu"},
["xnj"] = {"Ngoni (Tanzania)"},
["xnk"] = {"Nganakarti"},
["xnm"] = {"Ngumbarl"},
["xnn"] = {"Kankanay Hwoaie"},
["xno"] = {"Anglo-Normanish"},
["xnq"] = {"Ngoni (y Vosambeeck)"},
["xnr"] = {"Kangri"},
["xns"] = {"Kanashi"},
["xnt"] = {"Narragansett"},
["xnu"] = {"Nukunul"},
["xny"] = {"Nyiyaparli"},
["xnz"] = {"Kenzi", "Mattoki"},
["xoc"] = {"O'chi'chi'"},
["xod"] = {"Kokoda"},
["xog"] = {"Soga"},
["xoi"] = {"Kominimung"},
["xok"] = {"Xokleng"},
["xom"] = {"Komo (y Toodaan)"},
["xon"] = {"Konkomba"},
["xoo"] = {"Xukurú"},
["xop"] = {"Kopar"},
["xor"] = {"Korubo"},
["xow"] = {"Kowaki"},
["xpa"] = {"Pirriya"},
["xpb"] = {"Tasmanian Hiar Hwoaie", "Pyemmairrener"},
["xpc"] = {"Pecheneg"},
["xpd"] = {"Tasmaanish Oyster Bay"},
["xpe"] = {"Kpelle yn Laibeer"},
["xpf"] = {"Tasmaanish Hiar Yiass", "Nuenonne"},
["xpg"] = {"Phrygish"},
["xph"] = {"Tasmaanish Vean-çheerey Hwoaie", "Tyerrenoterpanner"},
["xpi"] = {"Pictish"},
["xpj"] = {"Mpalitjanh"},
["xpk"] = {"Kulina Pano"},
["xpl"] = {"Tasmaanish Port Sorell"},
["xpm"] = {"Pumpokol"},
["xpn"] = {"Kapinawá"},
["xpo"] = {"Pochutec"},
["xpp"] = {"Puyo-Paekche"},
["xpq"] = {"Moheganish-Pequot"},
["xpr"] = {"Parthish"},
["xps"] = {"Pisidish"},
["xpt"] = {"Punthamara"},
["xpu"] = {"Punish"},
["xpv"] = {"Tasmaanish Hwoaie", "Tommeginne"},
["xpw"] = {"Tasmaanish Heear Hwoaie", "Peerapper"},
["xpx"] = {"Tasmaanish Heear Yiass", "Toogee"},
["xpy"] = {"Puyo"},
["xpz"] = {"Tasmaanish Ellan Bruny"},
["xqa"] = {"Karakhanid"},
["xqt"] = {"Qatabanian"},
["xra"] = {"Krahô"},
["xrb"] = {"Karaboro Hiar"},
["xrd"] = {"Gundungurra"},
["xre"] = {"Kreye"},
["xrg"] = {"Minang"},
["xri"] = {"Krikati-Timbira"},
["xrm"] = {"Armazish"},
["xrn"] = {"Arin"},
["xrr"] = {"Raetish"},
["xrt"] = {"Aranama-Tamique"},
["xru"] = {"Marriammu"},
["xrw"] = {"Karawa"},
["xsa"] = {"Sabaean"},
["xsb"] = {"Sambal"},
["xsc"] = {"Scythish"},
["xsd"] = {"Sidetish"},
["xse"] = {"Sempan"},
["xsh"] = {"Shamang"},
["xsi"] = {"Sio"},
["xsj"] = {"Subi"},
["xsl"] = {"Slavish Yiass"},
["xsm"] = {"Kasem"},
["xsn"] = {"Sanga (y Naigeer)"},
["xso"] = {"Solano"},
["xsp"] = {"Silopi"},
["xsq"] = {"Makhuwa-Saka"},
["xsr"] = {"Sherpa"},
["xsu"] = {"Sanumá"},
["xsv"] = {"Sudovish"},
["xsy"] = {"Saisiyat"},
["xta"] = {"Mixtecish Alcozauca"},
["xtb"] = {"Mixtecish Chazumba"},
["xtc"] = {"Katcha-Kadugli-Miri"},
["xtd"] = {"Mixtecish Diuxi-Tilantongo"},
["xte"] = {"Ketengban"},
["xtg"] = {"Goalish Hessenalpagh"},
["xth"] = {"Yitha Yitha"},
["xti"] = {"Mixtecish Sinicahua"},
["xtj"] = {"Mixtecish San Juan Teita"},
["xtl"] = {"Mixtecish Tijaltepec"},
["xtm"] = {"Mixtecish Magdalena Peñasco"},
["xtn"] = {"Mixtecish Tlaxiaco Hwoaie"},
["xto"] = {"Tokharish A"},
["xtp"] = {"Mixtecish San Miguel Piedras"},
["xtq"] = {"Tumshuqese"},
["xtr"] = {"Tripoorish Leah"},
["xts"] = {"Mixtecish Sindihui"},
["xtt"] = {"Mixtecish Tacahua"},
["xtu"] = {"Mixtecish Cuyamecalco"},
["xtv"] = {"Thawa"},
["xtw"] = {"Tawandê"},
["xty"] = {"Mixtecish Yoloxochitl"},
["xua"] = {"Alu Kurumba"},
["xub"] = {"Betta Kurumba"},
["xud"] = {"Umiida"},
["xug"] = {"Kunigami"},
["xuj"] = {"Jennu Kurumba"},
["xul"] = {"Ngunawal", "Nunukul"},
["xum"] = {"Umbrish"},
["xun"] = {"Unggaranggu"},
["xuo"] = {"Kuo"},
["xup"] = {"Umpqua Heose"},
["xur"] = {"Urartish"},
["xut"] = {"Kuthant"},
["xuu"] = {"Kxoe", "Khwedam"},
["xve"] = {"Venetish"},
["xvi"] = {"Kamviri"},
["xvn"] = {"Vandalish"},
["xvo"] = {"Volscish"},
["xvs"] = {"Vestinish"},
["xwa"] = {"Kwaza"},
["xwc"] = {"Woccon"},
["xwd"] = {"Wadi Wadi"},
["xwe"] = {"Xwela Gbe"},
["xwg"] = {"Kwegu"},
["xwj"] = {"Wajuk"},
["xwk"] = {"Wangkumara"},
["xwl"] = {"Xwla Gbe Heear"},
["xwo"] = {"Oiratish Screeuit"},
["xwr"] = {"Kwerba Mamberamo"},
["xwt"] = {"Wotjobaluk"},
["xww"] = {"Wemba Wemba"},
["xxb"] = {"Boro (y Ghaney)"},
["xxk"] = {"Ke'o"},
["xxm"] = {"Minkin"},
["xxr"] = {"Koropó"},
["xxt"] = {"Tambora"},
["xya"] = {"Yaygir"},
["xyb"] = {"Yandjibara"},
["xyj"] = {"Mayi-Yapi"},
["xyk"] = {"Mayi-Kulan"},
["xyl"] = {"Yalakalore"},
["xyt"] = {"Mayi-Thakurti"},
["xyy"] = {"Yorta Yorta"},
["xzh"] = {"Zhang-Zhung"},
["xzm"] = {"Zemgalish"},
["xzp"] = {"Zapotecish Henndeeagh"},
["yaa"] = {"Yaminahua"},
["yab"] = {"Yuhup"},
["yac"] = {"Yali Pass Valley"},
["yad"] = {"Yagua"},
["yae"] = {"Pumé"},
["yaf"] = {"Yaka (Pobblaght Gheynlagh y Chongo)"},
["yag"] = {"Yámana"},
["yah"] = {"Yazgulyam"},
["yai"] = {"Yagnobi"},
["yaj"] = {"Banda-Yangere"},
["yak"] = {"Yakama"},
["yal"] = {"Yalunka"},
["yam"] = {"Yamba"},
["yan"] = {"Mayangna"},
["yao"] = {"Yao"},
["yap"] = {"Yapish"},
["yaq"] = {"Yaqui"},
["yar"] = {"Yabarana"},
["yas"] = {"Nugunu (Cameroon)"},
["yat"] = {"Yambeta"},
["yau"] = {"Yuwana"},
["yav"] = {"Yangben"},
["yaw"] = {"Yawalapití"},
["yax"] = {"Yauma"},
["yay"] = {"Agwagwune"},
["yaz"] = {"Lokaa"},
["yba"] = {"Yala"},
["ybb"] = {"Yemba"},
["ybe"] = {"Yugur Heear"},
["ybh"] = {"Yakha"},
["ybi"] = {"Yamphu"},
["ybj"] = {"Hasha"},
["ybk"] = {"Bokha"},
["ybl"] = {"Yukuben"},
["ybm"] = {"Yaben"},
["ybn"] = {"Yabaâna"},
["ybo"] = {"Yabong"},
["ybx"] = {"Yawiyo"},
["yby"] = {"Yaweyuha"},
["ych"] = {"Chesu"},
["ycl"] = {"Lolopo"},
["ycn"] = {"Yucuna"},
["ycp"] = {"Chepya"},
["ycr"] = {"Creeole Yilan"},
["yda"] = {"Yanda"},
["ydd"] = {"Ewdish Hiar"},
["yde"] = {"Yangum Dey"},
["ydg"] = {"Yidgha"},
["ydk"] = {"Yoidik"},
["yea"] = {"Ravula"},
["yec"] = {"Yeniche"},
["yee"] = {"Yimas"},
["yei"] = {"Yeni"},
["yej"] = {"Yevanish"},
["yel"] = {"Yela"},
["yer"] = {"Tarok"},
["yes"] = {"Nyankpa"},
["yet"] = {"Yetfa"},
["yeu"] = {"Yerukula"},
["yev"] = {"Yapunda"},
["yey"] = {"Yeyi"},
["yga"] = {"Malyangapa"},
["ygi"] = {"Yiningayi"},
["ygl"] = {"Yangum Gel"},
["ygm"] = {"Yagomi"},
["ygp"] = {"Gepo"},
["ygr"] = {"Yagaria"},
["ygs"] = {"Çhengey Chowree Yolŋu"},
["ygu"] = {"Yugul"},
["ygw"] = {"Yagwoia"},
["yha"] = {"Baha Buyang"},
["yhd"] = {"Arabish Earackagh Ewagh"},
["yhl"] = {"Hlepho Phowa"},
["yhs"] = {"Çhengey Chowree Yan-nhaŋu"},
["yia"] = {"Yinggarda"},
["yif"] = {"Ache"},
["yig"] = {"Wusa Nasu"},
["yih"] = {"Ewdish Heear"},
["yii"] = {"Yidiny"},
["yij"] = {"Yindjibarndi"},
["yik"] = {"Dongshanba Lalo"},
["yil"] = {"Yindjilandji"},
["yim"] = {"Naga Yimchungru"},
["yin"] = {"Riang Lai", "Yinchia"},
["yip"] = {"Pholo"},
["yiq"] = {"Miqie"},
["yir"] = {"Awyu Hwoaie"},
["yis"] = {"Yis"},
["yit"] = {"Lalu Hiar"},
["yiu"] = {"Awu"},
["yiv"] = {"Nisu Hwoaie"},
["yix"] = {"Axi Yi"},
["yiz"] = {"Azhe"},
["yka"] = {"Yakan"},
["ykg"] = {"Yukaghirish Hwoaie"},
["ykh"] = {"Mongoilish Khamnigan"},
["yki"] = {"Yoke"},
["ykk"] = {"Yakaikeke"},
["ykl"] = {"Khlula"},
["ykm"] = {"Kap"},
["ykn"] = {"Kua-nsi"},
["yko"] = {"Yasa"},
["ykr"] = {"Yekora"},
["ykt"] = {"Kathu"},
["yku"] = {"Kuamasi"},
["yky"] = {"Yakoma"},
["yla"] = {"Yaul"},
["ylb"] = {"Yaleba"},
["yle"] = {"Yele"},
["ylg"] = {"Yelogu"},
["yli"] = {"Yali Angguruk"},
["yll"] = {"Yil"},
["ylm"] = {"Limi"},
["yln"] = {"Langnian Buyang"},
["ylo"] = {"Naluo Yi"},
["ylr"] = {"Yalarnnga"},
["ylu"] = {"Aribwaung"},
["yly"] = {"Nyâlayu", "Nyelâyu"},
["ymb"] = {"Yambes"},
["ymc"] = {"Muji Yiass"},
["ymd"] = {"Muda"},
["yme"] = {"Yameo"},
["ymg"] = {"Yamongeri"},
["ymh"] = {"Mili"},
["ymi"] = {"Moji"},
["ymk"] = {"Makwe"},
["yml"] = {"Iamalele"},
["ymm"] = {"Maay"},
["ymn"] = {"Yamna", "Sunum"},
["ymo"] = {"Yangum Mon"},
["ymp"] = {"Yamap"},
["ymq"] = {"Qila Muji"},
["ymr"] = {"Malasar"},
["yms"] = {"Mysish"},
["ymx"] = {"Muji Hwoaie"},
["ymz"] = {"Muzi"},
["yna"] = {"Aluo"},
["ynd"] = {"Yandruwandha"},
["yne"] = {"Lang'e"},
["yng"] = {"Yango"},
["ynk"] = {"Yupikish Naukan"},
["ynl"] = {"Yangulam"},
["ynn"] = {"Yana"},
["yno"] = {"Yong"},
["ynq"] = {"Yendang"},
["yns"] = {"Yansi"},
["ynu"] = {"Yahuna"},
["yob"] = {"Yoba"},
["yog"] = {"Yogad"},
["yoi"] = {"Yonaguni"},
["yok"] = {"Yokuts"},
["yol"] = {"Yola"},
["yom"] = {"Yombe"},
["yon"] = {"Yongkom"},
["yot"] = {"Yotti"},
["yox"] = {"Yoron"},
["yoy"] = {"Yoy"},
["ypa"] = {"Phala"},
["ypb"] = {"Labo Phowa"},
["ypg"] = {"Phola"},
["yph"] = {"Phupha"},
["ypk"] = {"çhengaghyn Yupikagh"},
["ypm"] = {"Phuma"},
["ypn"] = {"Ani Phowa"},
["ypo"] = {"Alo Phola"},
["ypp"] = {"Phupa"},
["ypz"] = {"Phuza"},
["yra"] = {"Yerakai"},
["yrb"] = {"Yareba"},
["yre"] = {"Yaouré"},
["yrk"] = {"Nenetsish"},
["yrl"] = {"Nhengatu"},
["yrm"] = {"Yirrk-Mel"},
["yrn"] = {"Yerong"},
["yro"] = {"Yaroamë"},
["yrs"] = {"Yarsun"},
["yrw"] = {"Yarawata"},
["yry"] = {"Yarluyandi"},
["ysc"] = {"Yassish"},
["ysd"] = {"Samatao"},
["ysg"] = {"Sonaga"},
["ysl"] = {"Çhengey Chowree Yugoslaavagh"},
["ysm"] = {"Çhengey Chowree Myanmar"},
["ysn"] = {"Sani"},
["yso"] = {"Nisi (y Çheen)"},
["ysp"] = {"Lolopo Yiass"},
["ysr"] = {"Yupikish Sirenik"},
["yss"] = {"Yessan-Mayo"},
["ysy"] = {"Sanie"},
["yta"] = {"Talu"},
["ytl"] = {"Tanglang"},
["ytp"] = {"Thopho"},
["ytw"] = {"Yout Wam"},
["yty"] = {"Yatay"},
["yua"] = {"Yucateco", "Mayish Yucatec"},
["yub"] = {"Yugambal"},
["yuc"] = {"Yuchi"},
["yud"] = {"Arabish Hripolitaanagh Ewagh"},
["yue"] = {"Sheenish Yue", "Cantoanish", "Yueish"},
["yuf"] = {"Havasupai-Walapai-Yavapai"},
["yug"] = {"Yug"},
["yui"] = {"Yurutí"},
["yuj"] = {"Karkar-Yuri"},
["yuk"] = {"Yuki"},
["yul"] = {"Yulu"},
["yum"] = {"Quechan"},
["yun"] = {"Bena (y Naigeer)"},
["yup"] = {"Yukpa"},
["yuq"] = {"Yuqui"},
["yur"] = {"Yurok"},
["yut"] = {"Yopno"},
["yuw"] = {"Yau (Queiggey Morobe)"},
["yux"] = {"Yukaghirish Yiass"},
["yuy"] = {"Yugur Hiar"},
["yuz"] = {"Yuracare"},
["yva"] = {"Yawa"},
["yvt"] = {"Yavitero"},
["ywa"] = {"Kalou"},
["ywg"] = {"Yinhawangka"},
["ywl"] = {"Lalu Heear"},
["ywn"] = {"Yawanawa"},
["ywq"] = {"Wuding-Luquan Yi"},
["ywr"] = {"Yawuru"},
["ywt"] = {"Xishanba Lalo", "Lalo Veanagh"},
["ywu"] = {"Wumeng Nasu"},
["yww"] = {"Yawarawarga"},
["yxa"] = {"Mayawali"},
["yxg"] = {"Yagara"},
["yxl"] = {"Yardliyawarra"},
["yxm"] = {"Yinwum"},
["yxu"] = {"Yuyu"},
["yxy"] = {"Yabula Yabula"},
["yyr"] = {"Yir Yoront"},
["yyu"] = {"Yau (Queiggey Sandaun)"},
["yyz"] = {"Ayizi"},
["yzg"] = {"E'ma Buyang"},
["yzk"] = {"Zokhuo"},
["zaa"] = {"Zapotecish Sierra de Juárez"},
["zab"] = {"Zapotecish Ghlion Tlacolula Heear", "Zapotecish San Juan Guelavía"},
["zac"] = {"Zapotecish Ocotlán"},
["zad"] = {"Zapotecish Cajonos"},
["zae"] = {"Zapotecish Yareni"},
["zaf"] = {"Zapotecish Ayoquesco"},
["zag"] = {"Zaghawa"},
["zah"] = {"Zangwal"},
["zai"] = {"Zapotecish Whing Hallooin"},
["zaj"] = {"Zaramo"},
["zak"] = {"Zanaki"},
["zal"] = {"Zauzou"},
["zam"] = {"Zapotecish Miahuatlán"},
["zao"] = {"Zapotecish Ozolotepec"},
["zap"] = {"Zapotecish"},
["zaq"] = {"Zapotecish Aloápam"},
["zar"] = {"Zapotecish Rincón"},
["zas"] = {"Zapotecish Santo Domingo Albarradas"},
["zat"] = {"Zapotecish Tabaa"},
["zau"] = {"Zangskari"},
["zav"] = {"Zapotecish Yatzachi"},
["zaw"] = {"Zapotecish Mitla"},
["zax"] = {"Zapotecish Xadani"},
["zay"] = {"Zayse-Zergulla", "Zaysete"},
["zaz"] = {"Zari"},
["zba"] = {"Balaibalan"},
["zbc"] = {"Berawan Veanagh"},
["zbe"] = {"Berawan Hiar"},
["zbl"] = {"Blissymbols", "Bliss", "Blissymbolics"},
["zbt"] = {"Batui"},
["zbu"] = {"Bu (Steat Bauchi)"},
["zbw"] = {"Berawan Heear"},
["zca"] = {"Zapotecish Coatecas Altas"},
["zcd"] = {"Zapotecish Las Delicias"},
["zch"] = {"Zhang Hongshuihe Veanagh"},
["zdj"] = {"Comoroish Ngazidja"},
["zea"] = {"Zeeuws"},
["zeg"] = {"Zenag"},
["zeh"] = {"Zhuang Hongshuihe Hiar"},
["zem"] = {"Zeem"},
["zen"] = {"Zenaga"},
["zga"] = {"Kinga"},
["zgb"] = {"Zhuang Guibei"},
["zgh"] = {"Tamazightish Varocagh Stundayrtit"},
["zgm"] = {"Zhuang Minz"},
["zgn"] = {"Zhuang Guibian"},
["zgr"] = {"Magori"},
["zhb"] = {"Zhaba"},
["zhd"] = {"Zhuang Dai"},
["zhi"] = {"Zhire"},
["zhn"] = {"Zhuang Nong"},
["zhw"] = {"Zhoa"},
["zhx"] = {"Sheenagh (kynney)"},
["zia"] = {"Zia"},
["zib"] = {"Çhengey Chowree Himbabweagh"},
["zik"] = {"Zimakani"},
["zil"] = {"Zialo"},
["zim"] = {"Mesme"},
["zin"] = {"Zinza"},
["ziw"] = {"Zigula"},
["ziz"] = {"Zizilivakan"},
["zka"] = {"Kaimbulawa"},
["zkd"] = {"Kadu"},
["zkg"] = {"Koguryo"},
["zkh"] = {"Khorezmish"},
["zkk"] = {"Karankawa"},
["zkn"] = {"Kanan"},
["zko"] = {"Kott"},
["zkp"] = {"Kaingáng São Paulo"},
["zkr"] = {"Zakhring"},
["zkt"] = {"Kitan"},
["zku"] = {"Kaurna"},
["zkv"] = {"Krevinish"},
["zkz"] = {"Khazarish"},
["zla"] = {"Zula"},
["zle"] = {"çhengaghyn Slavagh Hiar"},
["zlj"] = {"Zhuang Liujiang"},
["zlm"] = {"Malayish (çhengey er lheh)"},
["zln"] = {"Zhuang Lianshan"},
["zlq"] = {"Zhuang Liuqian"},
["zls"] = {"çhengaghyn Slavagh Yiass"},
["zlu"] = {"Zul"},
["zlw"] = {"çhengaghyn Slavagh Heear"},
["zma"] = {"Manda (yn Austrail)"},
["zmb"] = {"Zimba"},
["zmc"] = {"Margany"},
["zmd"] = {"Maridan"},
["zme"] = {"Mangerr"},
["zmf"] = {"Mfinu"},
["zmg"] = {"Marti Ke"},
["zmh"] = {"Makolkol"},
["zmi"] = {"Malayish Negeri Sembilan"},
["zmj"] = {"Maridjabin"},
["zmk"] = {"Mandandanyi"},
["zml"] = {"Matngala"},
["zmm"] = {"Marimanindji", "Marramaninyshi"},
["zmn"] = {"Mbangwe"},
["zmo"] = {"Molo"},
["zmp"] = {"Mpuono"},
["zmq"] = {"Mituku"},
["zmr"] = {"Maranunggu"},
["zms"] = {"Mbesa"},
["zmt"] = {"Maringarr"},
["zmu"] = {"Muruwari"},
["zmv"] = {"Mbariman-Gudhinma"},
["zmw"] = {"Mbo (Pobblaght Gheynlagh y Chongo)"},
["zmx"] = {"Bomitaba"},
["zmy"] = {"Mariyedi"},
["zmz"] = {"Mbandja"},
["zna"] = {"Zan Gula"},
["znd"] = {"çhengaghyn Zande"},
["zne"] = {"Zande (çhengey er lheh)"},
["zng"] = {"Mang"},
["znk"] = {"Manangkari"},
["zns"] = {"Mangas"},
["zoc"] = {"Zoque Copainalá"},
["zoh"] = {"Zoque Chimalapa"},
["zom"] = {"Zou"},
["zoo"] = {"Zapotecish Mixtepec Asunción"},
["zoq"] = {"Zoque Tabasco"},
["zor"] = {"Zoque Rayón"},
["zos"] = {"Zoque Francisco León"},
["zpa"] = {"Zapotecish Lachiguiri"},
["zpb"] = {"Zapotecish Yautepec"},
["zpc"] = {"Zapotecish Choapan"},
["zpd"] = {"Zapotecish Ixtlán Hiar Yiass"},
["zpe"] = {"Zapotecish Petapa"},
["zpf"] = {"Zapotecish San Pedro Quiatoni"},
["zpg"] = {"Zapotecish Guevea De Humboldt"},
["zph"] = {"Zapotecish Totomachapan"},
["zpi"] = {"Zapotecish Santa María Quiegolani"},
["zpj"] = {"Zapotecish Quiavicuzas"},
["zpk"] = {"Zapotecish Tlacolulita"},
["zpl"] = {"Zapotecish Lachixío"},
["zpm"] = {"Zapotecish Mixtepec"},
["zpn"] = {"Zapotecish Santa Inés Yatzechi"},
["zpo"] = {"Zapotecish Amatlán"},
["zpp"] = {"Zapotecish El Alto"},
["zpq"] = {"Zapotecish Zoogocho"},
["zpr"] = {"Zapotecish Santiago Xanica"},
["zps"] = {"Zapotecish Coatlán"},
["zpt"] = {"Zapotecish San Vicente Coatlán"},
["zpu"] = {"Zapotecish Yalálag"},
["zpv"] = {"Zapotecish Chichicapan"},
["zpw"] = {"Zapotecish Zaniza"},
["zpx"] = {"Zapotecish San Baltazar Loxicha"},
["zpy"] = {"Zapotecish Mazaltepec"},
["zpz"] = {"Zapotecish Texmelucan"},
["zqe"] = {"Zhuang Qiubei"},
["zra"] = {"Kara (y Chorea)"},
["zrg"] = {"Mirgan"},
["zrn"] = {"Zerenkel"},
["zro"] = {"Záparo"},
["zrp"] = {"Zarphatish"},
["zrs"] = {"Mairasi"},
["zsa"] = {"Sarasira"},
["zsk"] = {"Kaskeish"},
["zsl"] = {"Çhengey Chowree Hambagh"},
["zsm"] = {"Malayish Stundayrtit"},
["zsr"] = {"Zapotecish Rincon Yiass"},
["zsu"] = {"Sukurum"},
["zte"] = {"Zapotecish Elotepec"},
["ztg"] = {"Zapotecish Xanaguía"},
["ztl"] = {"Zapotecish Lapaguía-Guivini"},
["ztm"] = {"Zapotecish Mixtepec San Agustín"},
["ztn"] = {"Zapotecish Santa Catarina Albarradas"},
["ztp"] = {"Zapotecish Loxicha"},
["ztq"] = {"Zapotecish Quioquitani-Quierí"},
["zts"] = {"Zapotecish Tilquiapan"},
["ztt"] = {"Zapotecish Tejalapan"},
["ztu"] = {"Zapotecish Güilá"},
["ztx"] = {"Zapotecish Zaachila"},
["zty"] = {"Zapotecish Yatee"},
["zuh"] = {"Tokano"},
["zum"] = {"Kumzarish"},
["zun"] = {"Zuni"},
["zuy"] = {"Zumaya"},
["zwa"] = {"Zay"},
["zxx"] = {"Gyn stoo çhengoaylleeagh", "Neuchooie"},
["zyb"] = {"Zhuang Yongbei"},
["zyg"] = {"Zhuang Yang"},
["zyj"] = {"Zhuang Youjiang"},
["zyn"] = {"Zhuang Yongnan"},
["zyp"] = {"Chinish Zyphe"},
["zza"] = {"Zaza", "Dimili", "Dimli (mooar-hengey)", "Kirdki", "Kirmanjki (mooar-hengey)", "Zazakish"},
["zzj"] = {"Zhuang Zuojiang"}
}
local deprecated = {
["in"] = {"Indoneeshish"},
["iw"] = {"Ewnish"},
["ji"] = {"Ewdish"},
["jw"] = {"Javish", "Basa Jawa"},
["mo"] = {"Moldaavish", "Moldovish"},
["aam"] = {"Aramanik"},
["adp"] = {"Adap"},
["agp"] = {"Paranan"},
["ais"] = {"Nataoran Amis"},
["ajp"] = {"Arabish Levaantagh Yiass"},
["ajt"] = {"Arabish Hooneeshagh Ewagh"},
["aoh"] = {"Arma"},
["asd"] = {"Asas"},
["aue"] = {"ǂKxʼauǁʼein"},
["ayx"] = {"Ayi (y Çheen)"},
["ayy"] = {"Tayabas Ayta"},
["baz"] = {"Tunen"},
["bbz"] = {"Creeole Arabish Babalia"},
["bgm"] = {"Baga Mboteni"},
["bhk"] = {"Albay Bicolano"},
["bic"] = {"Bikaru"},
["bij"] = {"Vaghat-Ya-Bijim-Legeri"},
["bjd"] = {"Bandjigali"},
["bjq"] = {"Malagasish Betsimisaraka Yiass"},
["bkb"] = {"Finallig"},
["blg"] = {"Balau"},
["bmy"] = {"Bemba (Pobblaght Gheynlagh y Chongo)"},
["bpb"] = {"Barbacoas"},
["btb"] = {"Beti (Cameroon)"},
["btl"] = {"Bhatola"},
["bxx"] = {"Borna (Pobblaght Gheynlagh y Chongo)"},
["byy"] = {"Buya"},
["cbe"] = {"Chipiajes"},
["cbh"] = {"Cagua"},
["cca"] = {"Cauca"},
["ccq"] = {"Chaungtha"},
["cdg"] = {"Chamari"},
["cjr"] = {"Chorotega"},
["cka"] = {"Khumi Awa Chin"},
["cmk"] = {"Chimakum"},
["coy"] = {"Coyaima"},
["cqu"] = {"Quechua yn Çhillee"},
["cug"] = {"Chungmboko", "Cung"},
["cum"] = {"Cumeral"},
["daf"] = {"Dan"},
["dap"] = {"Nisi (yn Injey)"},
["dgu"] = {"Degaru"},
["dha"] = {"Dhanwar (yn Injey)"},
["dit"] = {"Dirari"},
["djl"] = {"Djiwarli"},
["dkl"] = {"Kolum So Dogon"},
["drh"] = {"Darkhat"},
["drr"] = {"Dororo"},
["drw"] = {"Darwazi"},
["dud"] = {"Hun-Saare"},
["duj"] = {"Dhuwal"},
["dwl"] = {"Walo Kumbe Dogon"},
["ekc"] = {"Karnish Hiar"},
["elp"] = {"Elpaputih"},
["emo"] = {"Emok"},
["gav"] = {"Gabutamon"},
["gbc"] = {"Garawa"},
["gfx"] = {"Mangetti Dune ǃXung"},
["ggn"] = {"Gurung Hiar"},
["ggo"] = {"Gondi Yiass"},
["ggr"] = {"Aghu Tharnggalu"},
["gio"] = {"Gelao"},
["gji"] = {"Geji"},
["gli"] = {"Guliguli"},
["gti"] = {"Gbati-ri"},
["guv"] = {"Gey"},
["hrr"] = {"Horuru"},
["iap"] = {"Iapama"},
["ibi"] = {"Ibilo"},
["ill"] = {"Iranun"},
["ilw"] = {"Talur"},
["ime"] = {"Imeraguen"},
["izi"] = {"Izi-Ezaa-Ikwo-Mgbo"},
["jar"] = {"Jarawa (y Naigeer)"},
["jeg"] = {"Jeng"},
["kbf"] = {"Kakauhua"},
["kdv"] = {"Kado"},
["kgc"] = {"Kasseng"},
["kgd"] = {"Kataang"},
["kgh"] = {"Tanudan Kalinga Heose"},
["kgm"] = {"Karipúna"},
["kjf"] = {"Khalaj [Ind-Eeraanagh]"},
["koj"] = {"Sara Dunjo"},
["kox"] = {"Coxima"},
["kpp"] = {"Karenish Paku"},
["krm"] = {"Krim"},
["ksa"] = {"Shuwa-Zamani"},
["ktr"] = {"Kota Marudu Tinagas"},
["kvs"] = {"Kunggara"},
["kwq"] = {"Kwak"},
["kxe"] = {"Kakihum"},
["kxl"] = {"Kurux Nepaalagh"},
["kxu"] = {"Kui (yn Injey)"},
["kzh"] = {"Kenuzi-Dongola"},
["kzj"] = {"Coastal Kadazan"},
["kzt"] = {"Tambunan Dusun"},
["lak"] = {"Laka (y Naigeer)"},
["lba"] = {"Lui"},
["leg"] = {"Lengua"},
["lii"] = {"Lingkhim"},
["llo"] = {"Khlor"},
["lmm"] = {"Lamam"},
["lmz"] = {"Lumbee"},
["lno"] = {"Lango (y Toodaan Yiass)"},
["lsg"] = {"Çhengey Chowree Lyons"},
["meg"] = {"Mea"},
["mgx"] = {"Omati"},
["mhh"] = {"Maskoy Vrisht"},
["mja"] = {"Mahei"},
["mld"] = {"Malakhel"},
["mnt"] = {"Maykulan"},
["mof"] = {"Mohegan-Montauk-Narragansett"},
["mst"] = {"Cataelano Mandaya"},
["mvm"] = {"Muya"},
["mwd"] = {"Mudbura"},
["mwj"] = {"Maligo"},
["mwx"] = {"Mediak"},
["mwy"] = {"Mosiro"},
["myd"] = {"Maramba"},
["myi"] = {"Mina (yn Injey)"},
["myq"] = {"Maninkish Cheylley"},
["myt"] = {"Sangab Mandaya"},
["nad"] = {"Nijadali"},
["nbf"] = {"Naxi"},
["nbx"] = {"Ngura"},
["ncp"] = {"Ndaktup"},
["ngo"] = {"Ngoni"},
["nln"] = {"Nahuatl Durango"},
["nlr"] = {"Ngarla"},
["nns"] = {"Ningye"},
["nnx"] = {"Ngong"},
["nom"] = {"Nocamán"},
["noo"] = {"Nootka"},
["nts"] = {"Natagaimas"},
["nxu"] = {"Narau"},
["ome"] = {"Omejes"},
["oun"] = {"ǃOǃung"},
["pat"] = {"Papitalai"},
["pbz"] = {"Palu"},
["pcr"] = {"Panang"},
["pgy"] = {"Pongyong"},
["pii"] = {"Pini"},
["plj"] = {"Polci"},
["plp"] = {"Palpa"},
["pmc"] = {"Palumata"},
["pmk"] = {"Pamlico"},
["pmu"] = {"Panjabish Mirpur"},
["pod"] = {"Ponares"},
["ppa"] = {"Pao"},
["ppr"] = {"Piru"},
["prb"] = {"Lua'"},
["prp"] = {"Parsi"},
["pry"] = {"Pray 3"},
["puk"] = {"Pu Ko"},
["puz"] = {"Purum Naga"},
["rie"] = {"Rien"},
["rmr"] = {"Caló"},
["rna"] = {"Runa"},
["rsi"] = {"Çhengey Chowree Rennellagh"},
["sap"] = {"Sanapaná"},
["sca"] = {"Sansu"},
["sdm"] = {"Semandang"},
["sgl"] = {"Sanglechi-Ishkashimi"},
["sgo"] = {"Songa"},
["skk"] = {"Sok"},
["slq"] = {"Salchuq"},
["smd"] = {"Sama"},
["snb"] = {"Sebuyau"},
["snh"] = {"Shinabo"},
["sul"] = {"Surigaonon"},
["sum"] = {"Sumo-Mayangna"},
["svr"] = {"Savara"},
["szd"] = {"Seru"},
["tbb"] = {"Tapeba"},
["tdu"] = {"Tempasuk Dusun"},
["tgg"] = {"Tangga"},
["thc"] = {"Tai Hang Tong"},
["thw"] = {"Thudam"},
["thx"] = {"The"},
["tid"] = {"Tidong"},
["tie"] = {"Tingal"},
["tkk"] = {"Takpa"},
["tlw"] = {"Wemale Yiass"},
["tmk"] = {"Tamang Heear Hwoaie"},
["tmp"] = {"Tai Mène"},
["tne"] = {"Tinoc Kallahan"},
["tnf"] = {"Tangshewi"},
["toe"] = {"Tomedes"},
["tpw"] = {"Tupí"},
["tsf"] = {"Tamang Heear Yiass"},
["unp"] = {"Worora"},
["uok"] = {"Uokha"},
["uun"] = {"Kulon-Pazeh"},
["vki"] = {"Ija-Zuba"},
["wgw"] = {"Wagawaga"},
["wit"] = {"Wintu"},
["wiw"] = {"Wirangu"},
["wra"] = {"Warapu"},
["wrd"] = {"Warduji"},
["wya"] = {"Wyandot"},
["xba"] = {"Kamba (y Vrasseel)"},
["xbx"] = {"Kabixí"},
["xia"] = {"Xiandao"},
["xip"] = {"Xipináwa"},
["xkh"] = {"Karahawyana"},
["xrq"] = {"Karranga"},
["xss"] = {"Assan"},
["xtz"] = {"Tasmaanish"},
["ybd"] = {"Yangbye"},
["yds"] = {"Çhengey Chowree Ewdagh"},
["yen"] = {"Yendang"},
["yiy"] = {"Yir Yoront"},
["yma"] = {"Yamphe"},
["ymt"] = {"Mator-Taygi-Karagas"},
["ynh"] = {"Yangho"},
["yos"] = {"Yos"},
["yri"] = {"Yarí"},
["yuu"] = {"Yugh"},
["zir"] = {"Ziriya"},
["zkb"] = {"Koibal"},
["zua"] = {"Zeem"}
}
return {
active = active,
deprecated = deprecated,
}
ozihivt6wjah0nzv1bub4efk6tpmybm
Victoria Kaspi
0
32073
395396
391099
2026-10-27T00:18:48Z
InternetArchiveBot
16702
Rescuing 1 sources and tagging 0 as dead. #IABot (v2.0.9.6)
395396
wikitext
text/x-wiki
{{WD Kishtey Fys Dooinney
| ennym = Vicky Kaspi
| jalloo = Victoria M Kaspi, recipient of the 2021 Shaw Prize in Astronomy (iau2104a).jpg
| ennym_ruggyr = Victoria Michelle Kaspi
| date_ruggyr = {{date_ruggyr|df=y|1967|06|30}}
| boayl_ruggyr = [[Austin, Texas|Austin]], [[Texas]], ny Steatyn Unnaneysit
}}
She [[fishig rollageagh|fishigagh rollageagh]] Canadagh as olloo ec [[Ollooscoill McGill]] ee '''Victoria Michelle Kaspi''' (ruggit er 30 Mean Souree 1967). Ta e ronsaghey jeerit er y chooid smoo er [[rollage naeearaneagh|rollageyn naeearaneagh]] as [[pulsar]]yn.<ref name="pmv">[http://www.prixduquebec.gouv.qc.ca/recherche/desclaureat.asp?noLaureat=391 Les Prix du Québec – la lauréate Victoria Kaspi]. {{fr jalloo}}</ref>
==Coorse as ronsaghey==
Lurg currymyn ec [[California Institute of Technology]], y [[Jet Propulsion Laboratory]], as [[Massachusetts Institute of Technology]], ghow ee ynnyd olloo-rheynn ec McGill ayns 1999.<ref name="pmv"/> Ayns McGill, ghow ee shelloo er nane jeh ny chied [[Caairliagh Ronsee yn Chanadey|Chaairliee Ronsee 'sy Chanadey]],<ref name="bc">[https://www.mcgill.ca/reporter/33/09/additions/kaspi/ Victoria Kaspi], liorish Bronwyn Chester, ''McGill Reporter'', 25 Jerrey Geuree 2001.</ref> as ayns 2006 v'ee enmyssit Olloo [[Lorne Trottier]] yn Ishig Rollageagh.<ref name="gazette">[http://www.canada.com/montrealgazette/news/story.html?id=0fdc401c-e705-4583-8429-40fe2ac1c573 Reaching for stars: juggling ambition, angst] {{Webarchive|url=https://web.archive.org/web/20110604114559/http://www.canada.com/montrealgazette/news/story.html?id=0fdc401c-e705-4583-8429-40fe2ac1c573 |date=2011-06-04 }}, ''[[Montreal Gazette]]'', 6 Toshiaght Arree 2007.</ref> Chammah's shen, she Oltey Sheshey ee ayns [[Canadian Institute for Advanced Research]].<ref name="cap">[http://www.cap.ca/awards/press/2004-Kaspi.html 2004 CAP Herzberg Medal will be awarded to Dr. Victoria Kaspi] {{Webarchive|url=https://web.archive.org/web/20110716022723/http://www.cap.ca/awards/press/2004-Kaspi.html |date=2011-07-16 }}, [[Canadian Association of Physicists]], feddynit magh er 2010-01-24.</ref>
Ren baghtyn Kaspi er y phulsar ta kianglt rish [[remlad yn ard-rollage noa]] G11.2–0.3 ayns co-hollys y [[Yn Tideyr (co-hollys rollageagh)|Tideyr]], lesh ymmyd [[Reayrtlann Scell-X Chandra X-ray]], taishbyney dy row yn pulsar soit dy jeeragh ec çheshvean cruinn yn ard-rollage noa, [[Shennaghys baghtyn ard-rollageyn noa#Shennaghys leah|chur ny Sheenee shilley er cha foddey sheear as ayns 386 BNJ]]. Va'n pulsar shoh ny nah phulsar ennit ve kianglt rish remlad ard-rollage noa, lurg y chied phulsar ayns [[Neeal y Phartan]], as chur e studeyryssyn dy mooar rish y vooinjerys sheiltynit eddyr pulsaryn as [[ard-rollage noa|ard-rollageyn noa]]. Chammah's shen, chur y baght shen scaa doo er saaseyn dateaghey pulsaryn hie roish (cormid chassee); hug ny saaseyn shen fys dooin dy row yn pulsar 12 cheayrt ro henn dy ve piyrit rish yn ard-rollage noa.<ref>[https://www.nytimes.com/2001/01/11/us/scientists-find-second-pulsar-and-link-it-to-ancient-supernova.html Scientists Find Second Pulsar and Link It to Ancient Supernova], John Noble Wilford, ''[[New York Times]]'', 11 Jerrey Geuree 2001.</ref>
Hug ronsaghey Kaspi lesh y [[Rossi X-ray Timing Explorer]] fys dooin dy row shin jargal cur sheese er [[aavuilleyder gamma bog|aavuilleyderyn gamma boggey]], mmoiraghyn rollageagh dy scoltaghyn meereiltagh jeh [[scell gamma|scellyn gamma]], as [[pulsar scell-X amreiltagh|pulsaryn scell-X amreiltagh]], ppulsaryn lesh [[magher magnaidagh|magheryn magnaidagh]] ta çhyndaa dy moal, myr [[magnetar]]yn.<ref name="cap"/><ref>[http://www.space.com/scienceastronomy/magnetars_020911.html Evidence Helps Confirm Existence of Powerful Magnetars], Robert Roy Britt, space.com, 11 Mean Fouyir 2002.</ref>
Chur ee cooney rish feddynys y phulsar lesh y chormid çhyndaaee s'tappee, [[PSR J1748-2446ad]],<ref name="kqth">[http://reporter.mcgill.ca/2009/10/kaspi-earns-quebecs-top-honour/ Kaspi earns Quebec’s top honour], McGill Reporter, 24 Jerrey Geuree 2010.</ref> dhossanyn rollageagh lesh ard-ghlooaght dy phulsaryn,<ref name="kqth"/> as (gymmydey [[Fodreayrtan Green Bank]]) "aa-choorsal tuinnagh" jeh pulsar moal-hyndaaee gys [[pulsar millitootçhey]] ny s'tappee.<ref>[https://web.archive.org/web/20110813125012/http://www.adelaidenow.com.au/news/breaking-news/scientists-witness-cosmic-recycling-first/story-e6frea73-1225714642221 Scientists witness cosmic recycling first], ''AdelaideNow'', 22 Boaldyn 2009.</ref><ref>[http://www.spacedaily.com/reports/Researchers_Catch_Nature_In_The_Act_Of_Recycling_A_Star_999.html Researchers catch nature in the act of "recycling" a star], Space Daily, 22 Boaldyn 2009.</ref>
==Imraaghyn==
{{Reflist}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Kaspi, Victoria Michelle}}
[[Ronney:Ruggyryn 'sy vlein 1967]]
[[Ronney:Feallee vio]]
[[Ronney:Fishigee rollageagh Chanadagh]]
[[Ronney:Caairliee Ronsee yn Chanadey]]
[[Ronney:Rollageyderyn Ewagh]]
[[Ronney:Sheanseyryn Canadagh Ewagh]]
[[Ronney:Sheshaghyn-oltey yn Çheshaght Reeoil]]
[[Ronney:Sheshaghyn-oltey Heshaght Reeoil y Chanadey]]
[[Ronney:Rollageyderyn bwoirrin Canadagh]]
[[Ronney:Fishigee woirrin Chanadagh]]
[[Ronney:Fishigee rollageagh woirrin]]
[[Ronney:Feallee ass Austin, Texas]]
r5tsvtd0ovoznlohpwb5858ua7thdkb
Ekaterina Ryabova (arraneyder)
0
46628
395361
372668
2026-10-26T20:54:05Z
InternetArchiveBot
16702
Rescuing 1 sources and tagging 0 as dead. #IABot (v2.0.9.6)
395361
wikitext
text/x-wiki
{{WD Kishtey Fys Dooinney
| ennym = Ekaterina Ryabova
| jalloo = Katya Rybova at JESC 2011.jpg
| fo-heidyl = Ekaterina Ryabova ec Cohirrey Arrane Eurovision yn Aegid, 2011
| date_ruggyr = {{date_ruggyr|1997|8|4|df=y}}
| boayl_ruggyr = [[Shchyolkovo]], y Roosh
}}
She arraneyder Rooshagh ee '''Ekaterina Dmitrievna "Katya" Ryabova''' ({{lang-ru|Екатерина Дмитриевна "Катя" Рябова}} ''Ekaterina Dmitrievna "Katya" Ryabova'', ruggit er 4 Luanistyn 1997). V'ee ruggit as troggit ayns [[Shchyolkovo]], agh nish t'ee beaghey ayns [[Yubileyny, Queiggey Moscow|Yubileyny]] (ayrn jeh [[Korolyov, Queiggey Moscow|Korolyov]] nish), [[Queiggey Moscow]].
==Coorse bea==
Va Ryabova reiht dy ghoaill arrane er sone çheer ayns [[Cohirrey Arrane Eurovision yn Aegid, 2009]], lesh yn arrane ''Malenkiy Prints'' (''y Prinse Beg''). Ec y chohirrey er 21 Mee Houney ayns [[Kyiv]], haink ee stiagh 'sy trass ynnyd er-yn-oyr dy daink [[Luara Hayrapetyan]] ass yn Armeain stiagh 'sy nah ynnyd tra hooar yn Armeain 3 scoaryn er daa-yeig raad nagh dooar y Roosh agh daa scoar er daa-yeig.<ref>{{cite news|url=http://bsanna-news.ukrinform.ua/actual-topic.php?id=0428&lang=en |title=Dutch singer Ralf Mackenbach wins Junior Eurovision Song Contest 2009 |date=23 Mee Houney 2009 |publisher=BSANNA |accessdate=30 Boaldyn 2010 |lang=Baarle||archivedate=4 Jerrey Fouyir 2011 |archiveurl=https://web.archive.org/web/20111004081159/http://bsanna-news.ukrinform.ua/actual-topic.php?id=0428&lang=en |url-status=dead }}</ref> 'Sy vlein 2011 haink ee dy ve ny chied ellyneyr rieau ayns shennaghys Euovision yn Aegid ren filley er-ash dys y chohirrey lesh yn arrane ''Kak Romeo i Dzhulyetta'' (''Gollrish Romeo as Juliet''), raad haink ee stiagh 'sy chiarroo ynnyd.<ref>{{cite web|title=Junior Eurovision Song Contest 2011 Results|url=http://www.junioreurovision.tv/page/yerevan-2011/our-stars|publisher=yn Unnaneys Scaalheaney Oarpagh|accessdate=14 Averil 2012|author=Jarmo|date=3 Mee ny Nollick 2011|lang=Baarle}}</ref>
==Imraaghyn==
{{Reflist}}
==Kianglaghyn magh==
*[https://web.archive.org/web/20120320074624/http://esckaz.com/jesc/2009/rus.htm Yn Roosh ec Eurovision yn Aegid, 2009]
*[http://esckaz.com/jesc/2011/rus.htm Yn Roosh ec Eurovision yn Aegid, 2011]
{{s-start}}
{{s-ach}}
{{succession box
| before = Mikhail Puntov<br>lesh "Spit angel"
| title = [[Yn Roosh ayns Cohirrey Arrane Eurovision yn Aegid]]
| years = [[Cohirrey Arrane Eurovision yn Aegid, 2009|2009]]
| after = Liza Drozd as Sasha Lazin<br> lesh "Boy and girl"
}} {{succession box
| before = Liza Drozd as Sasha Lazin<br>lesh "Boy and Girl"
| title = [[Yn roosh ayns Cohirrey Arrane Eurovision yn Aegid]]
| years = [[Cohirrey Arrane Eurovision yn Aegid, 2011|2011]]
| after = [[Lerika]]<br> lesh "Sensation"
}}
{{s-end}}
{{Gurneil eaghtyrys}}
{{DEFAULTSORT:Ryabova, Ekaterina}}
[[Ronney:Ruggyryn 'sy vlein 1997]]
[[Ronney:Feallee vio]]
[[Ronney:Arraneyderyn craa-chiaull bwoirrin Rooshagh]]
[[Ronney:Arraneyderyn pop-chiaull chraaee]]
[[Ronney:Arraneyderyn pop-chiaull bwoirrin Rooshagh]]
[[Ronney:Screeudeyryn arrane bwoirrin Rooshagh]]
[[Ronney:Feallee ass Shchyolkovo]]
[[Ronney:Feallee ass Korolyov, Queiggey Moscow]]
9b4pevfbc7x3zxitczvzg371e7i2sml
Module:ISO 639 name/ISO 639-3
828
47029
395410
395190
2026-10-27T01:02:28Z
MacTire02
219
++
395410
Scribunto
text/plain
-- File-Date: 2025-10-15
return {
["aaa"] = {"Ghotuo"},
["aab"] = {"Alumu-Tesu"},
["aac"] = {"Ari"},
["aad"] = {"Amal"},
["aae"] = {"Albaanish Arbëreshë"},
["aaf"] = {"Aranadan"},
["aag"] = {"Ambrak"},
["aah"] = {"Abu' Arapesh"},
["aai"] = {"Arifama-Miniafia"},
["aak"] = {"Ankave"},
["aal"] = {"Afade"},
["aan"] = {"Anambé"},
["aao"] = {"Algerian Saharan Arabic"},
["aap"] = {"Pará Arára"},
["aaq"] = {"Eastern Abnaki"},
["aar"] = {"Afar"},
["aas"] = {"Aasáx"},
["aat"] = {"Arvanitika Albanian"},
["aau"] = {"Abau"},
["aaw"] = {"Solong"},
["aax"] = {"Mandobo Atas"},
["aaz"] = {"Amarasi"},
["aba"] = {"Abé"},
["abb"] = {"Bankon"},
["abc"] = {"Ambala Ayta"},
["abd"] = {"Manide"},
["abe"] = {"Western Abnaki"},
["abf"] = {"Abai Sungai"},
["abg"] = {"Abaga"},
["abh"] = {"Tajiki Arabic"},
["abi"] = {"Abidji"},
["abj"] = {"Aka-Bea"},
["abk"] = {"Abcaashish"},
["abl"] = {"Lampung Nyo"},
["abm"] = {"Abanyom"},
["abn"] = {"Abua"},
["abo"] = {"Abon"},
["abp"] = {"Abellen Ayta"},
["abq"] = {"Abaza"},
["abr"] = {"Abron"},
["abs"] = {"Ambonese Malay"},
["abt"] = {"Ambulas"},
["abu"] = {"Abure"},
["abv"] = {"Baharna Arabic"},
["abw"] = {"Pal"},
["abx"] = {"Inabaknon"},
["aby"] = {"Aneme Wake"},
["abz"] = {"Abui"},
["aca"] = {"Achagua"},
["acb"] = {"Áncá"},
["acd"] = {"Gikyode"},
["ace"] = {"Achinese"},
["acf"] = {"Saint Lucian Creole French"},
["ach"] = {"Acoli"},
["aci"] = {"Aka-Cari"},
["ack"] = {"Aka-Kora"},
["acl"] = {"Akar-Bale"},
["acm"] = {"Mesopotamian Arabic"},
["acn"] = {"Achang"},
["acp"] = {"Eastern Acipa"},
["acq"] = {"Ta'izzi-Adeni Arabic"},
["acr"] = {"Achi"},
["acs"] = {"Acroá"},
["act"] = {"Achterhoeks"},
["acu"] = {"Achuar-Shiwiar"},
["acv"] = {"Achumawi"},
["acw"] = {"Hijazi Arabic"},
["acx"] = {"Omani Arabic"},
["acy"] = {"Cypriot Arabic"},
["acz"] = {"Acheron"},
["ada"] = {"Adangme"},
["adb"] = {"Atauran"},
["add"] = {"Dzodinka", "Lidzonka"},
["ade"] = {"Adele"},
["adf"] = {"Dhofari Arabic"},
["adg"] = {"Andegerebinha"},
["adh"] = {"Adhola"},
["adi"] = {"Adi"},
["adj"] = {"Adioukrou"},
["adl"] = {"Galo"},
["adn"] = {"Adang"},
["ado"] = {"Abu"},
["adq"] = {"Adangbe"},
["adr"] = {"Adonara"},
["ads"] = {"Adamorobe Sign Language"},
["adt"] = {"Adnyamathanha"},
["adu"] = {"Aduge"},
["adw"] = {"Amundava"},
["adx"] = {"Amdo Tibetan"},
["ady"] = {"Adygei", "Adyghe"},
["adz"] = {"Adzera"},
["aea"] = {"Areba"},
["aeb"] = {"Tunisian Arabic"},
["aec"] = {"Saidi Arabic"},
["aed"] = {"Argentine Sign Language"},
["aee"] = {"Northeast Pashai", "Northeast Pashayi"},
["aek"] = {"Haeke"},
["ael"] = {"Ambele"},
["aem"] = {"Arem"},
["aen"] = {"Armenian Sign Language"},
["aeq"] = {"Aer"},
["aer"] = {"Eastern Arrernte"},
["aes"] = {"Alsea"},
["aeu"] = {"Akeu"},
["aew"] = {"Ambakich"},
["aey"] = {"Amele"},
["aez"] = {"Aeka"},
["afb"] = {"Gulf Arabic"},
["afd"] = {"Andai"},
["afe"] = {"Putukwam"},
["afg"] = {"Afghan Sign Language"},
["afh"] = {"Afrihili"},
["afi"] = {"Akrukay", "Chini"},
["afk"] = {"Nanubae"},
["afn"] = {"Defaka"},
["afo"] = {"Eloyi"},
["afp"] = {"Tapei"},
["afr"] = {"Afrikaans"},
["afs"] = {"Afro-Seminole Creole"},
["aft"] = {"Afitti"},
["afu"] = {"Awutu"},
["afz"] = {"Obokuitai"},
["aga"] = {"Aguano"},
["agb"] = {"Legbo"},
["agc"] = {"Agatu"},
["agd"] = {"Agarabi"},
["age"] = {"Angal"},
["agf"] = {"Arguni"},
["agg"] = {"Angor"},
["agh"] = {"Ngelima"},
["agi"] = {"Agariya"},
["agj"] = {"Argobba"},
["agk"] = {"Isarog Agta"},
["agl"] = {"Fembe"},
["agm"] = {"Angaataha"},
["agn"] = {"Agutaynen"},
["ago"] = {"Tainae"},
["agq"] = {"Aghem"},
["agr"] = {"Aguaruna"},
["ags"] = {"Esimbi"},
["agt"] = {"Central Cagayan Agta"},
["agu"] = {"Aguacateco"},
["agv"] = {"Remontado Dumagat"},
["agw"] = {"Kahua"},
["agx"] = {"Aghul"},
["agy"] = {"Southern Alta"},
["agz"] = {"Mt. Iriga Agta"},
["aha"] = {"Ahanta"},
["ahb"] = {"Axamb"},
["ahg"] = {"Qimant"},
["ahh"] = {"Aghu"},
["ahi"] = {"Tiagbamrin Aizi"},
["ahk"] = {"Akha"},
["ahl"] = {"Igo"},
["ahm"] = {"Mobumrin Aizi"},
["ahn"] = {"Àhàn"},
["aho"] = {"Ahom"},
["ahp"] = {"Aproumu Aizi"},
["ahr"] = {"Ahirani"},
["ahs"] = {"Ashe"},
["aht"] = {"Ahtena"},
["aia"] = {"Arosi"},
["aib"] = {"Ainu (China)"},
["aic"] = {"Ainbai"},
["aid"] = {"Alngith"},
["aie"] = {"Amara"},
["aif"] = {"Agi"},
["aig"] = {"Antigua and Barbuda Creole English"},
["aih"] = {"Ai-Cham"},
["aii"] = {"Assyrian Neo-Aramaic"},
["aij"] = {"Lishanid Noshan"},
["aik"] = {"Ake"},
["ail"] = {"Aimele"},
["aim"] = {"Aimol"},
["ain"] = {"Ainu (Japan)"},
["aio"] = {"Aiton"},
["aip"] = {"Burumakok"},
["aiq"] = {"Aimaq"},
["air"] = {"Airoran"},
["ait"] = {"Arikem"},
["aiw"] = {"Aari"},
["aix"] = {"Aighon"},
["aiy"] = {"Ali"},
["aja"] = {"Aja (South Sudan)"},
["ajg"] = {"Aja (Benin)"},
["aji"] = {"Ajië"},
["ajn"] = {"Andajin"},
["ajs"] = {"Algerian Jewish Sign Language"},
["aju"] = {"Judeo-Moroccan Arabic"},
["ajw"] = {"Ajawa"},
["ajz"] = {"Amri Karbi"},
["aka"] = {"Akan"},
["akb"] = {"Batak Angkola"},
["akc"] = {"Mpur"},
["akd"] = {"Ukpet-Ehom"},
["ake"] = {"Akawaio"},
["akf"] = {"Akpa"},
["akg"] = {"Anakalangu"},
["akh"] = {"Angal Heneng"},
["aki"] = {"Aiome"},
["akj"] = {"Aka-Jeru"},
["akk"] = {"Akkadian"},
["akl"] = {"Aklanon"},
["akm"] = {"Aka-Bo"},
["ako"] = {"Akurio"},
["akp"] = {"Siwu"},
["akq"] = {"Ak"},
["akr"] = {"Araki"},
["aks"] = {"Akaselem"},
["akt"] = {"Akolet"},
["aku"] = {"Akum"},
["akv"] = {"Akhvakh"},
["akw"] = {"Akwa"},
["akx"] = {"Aka-Kede"},
["aky"] = {"Aka-Kol"},
["akz"] = {"Alabama"},
["ala"] = {"Alago"},
["alc"] = {"Qawasqar"},
["ald"] = {"Alladian"},
["ale"] = {"Aleut"},
["alf"] = {"Alege"},
["alh"] = {"Alawa"},
["ali"] = {"Amaimon"},
["alj"] = {"Alangan"},
["alk"] = {"Alak"},
["all"] = {"Allar"},
["alm"] = {"Amblong"},
["aln"] = {"Gheg Albanian"},
["alo"] = {"Larike-Wakasihu"},
["alp"] = {"Alune"},
["alq"] = {"Algonquin"},
["alr"] = {"Alutor"},
["als"] = {"Tosk Albanian"},
["alt"] = {"Southern Altai"},
["alu"] = {"'Are'are"},
["alw"] = {"Alaba-K’abeena", "Wanbasana"},
["alx"] = {"Amol"},
["aly"] = {"Alyawarr"},
["alz"] = {"Alur"},
["ama"] = {"Amanayé"},
["amb"] = {"Ambo"},
["amc"] = {"Amahuaca"},
["ame"] = {"Yanesha'"},
["amf"] = {"Hamer-Banna"},
["amg"] = {"Amurdak"},
["amh"] = {"Amharic"},
["ami"] = {"Amis"},
["amj"] = {"Amdang"},
["amk"] = {"Ambai"},
["aml"] = {"War-Jaintia"},
["amm"] = {"Ama (Papua New Guinea)"},
["amn"] = {"Amanab"},
["amo"] = {"Amo"},
["amp"] = {"Alamblak"},
["amq"] = {"Amahai"},
["amr"] = {"Amarakaeri"},
["ams"] = {"Southern Amami-Oshima"},
["amt"] = {"Amto"},
["amu"] = {"Guerrero Amuzgo"},
["amv"] = {"Ambelau"},
["amw"] = {"Western Neo-Aramaic"},
["amx"] = {"Anmatyerre"},
["amy"] = {"Ami"},
["amz"] = {"Atampaya"},
["ana"] = {"Andaqui"},
["anb"] = {"Andoa"},
["anc"] = {"Ngas"},
["and"] = {"Ansus"},
["ane"] = {"Xârâcùù"},
["anf"] = {"Animere"},
["ang"] = {"Old English (ca. 450-1100)"},
["anh"] = {"Nend"},
["ani"] = {"Andi"},
["anj"] = {"Anor"},
["ank"] = {"Goemai"},
["anl"] = {"Anu-Hkongso Chin"},
["anm"] = {"Anal"},
["ann"] = {"Obolo"},
["ano"] = {"Andoque"},
["anp"] = {"Angika"},
["anq"] = {"Jarawa (India)"},
["anr"] = {"Andh"},
["ans"] = {"Anserma"},
["ant"] = {"Antakarinya", "Antikarinya"},
["anu"] = {"Anuak"},
["anv"] = {"Denya"},
["anw"] = {"Anaang"},
["anx"] = {"Andra-Hus"},
["any"] = {"Anyin"},
["anz"] = {"Anem"},
["aoa"] = {"Angolar"},
["aob"] = {"Abom"},
["aoc"] = {"Pemon"},
["aod"] = {"Andarum"},
["aoe"] = {"Angal Enen"},
["aof"] = {"Bragat"},
["aog"] = {"Angoram"},
["aoi"] = {"Anindilyakwa"},
["aoj"] = {"Mufian"},
["aok"] = {"Arhö"},
["aol"] = {"Alor"},
["aom"] = {"Ömie"},
["aon"] = {"Bumbita Arapesh"},
["aor"] = {"Aore"},
["aos"] = {"Taikat"},
["aot"] = {"A'tong", "Atong (India)"},
["aou"] = {"A'ou"},
["aox"] = {"Atorada"},
["aoz"] = {"Uab Meto"},
["apb"] = {"Sa'a"},
["apc"] = {"Levantine Arabic"},
["apd"] = {"Sudanese Arabic"},
["ape"] = {"Bukiyip"},
["apf"] = {"Pahanan Agta"},
["apg"] = {"Ampanang"},
["aph"] = {"Athpariya"},
["api"] = {"Apiaká"},
["apj"] = {"Jicarilla Apache"},
["apk"] = {"Kiowa Apache"},
["apl"] = {"Lipan Apache"},
["apm"] = {"Mescalero-Chiricahua Apache"},
["apn"] = {"Apinayé"},
["apo"] = {"Ambul"},
["app"] = {"Apma"},
["apq"] = {"A-Pucikwar"},
["apr"] = {"Arop-Lokep"},
["aps"] = {"Arop-Sissano"},
["apt"] = {"Apatani"},
["apu"] = {"Apurinã"},
["apv"] = {"Alapmunte"},
["apw"] = {"Western Apache"},
["apx"] = {"Aputai"},
["apy"] = {"Apalaí"},
["apz"] = {"Safeyoka"},
["aqc"] = {"Archi"},
["aqd"] = {"Ampari Dogon"},
["aqg"] = {"Arigidi"},
["aqk"] = {"Aninka"},
["aqm"] = {"Atohwaim"},
["aqn"] = {"Northern Alta"},
["aqp"] = {"Atakapa"},
["aqr"] = {"Arhâ"},
["aqt"] = {"Angaité"},
["aqz"] = {"Akuntsu"},
["ara"] = {"Arabic"},
["arb"] = {"Standard Arabic"},
["arc"] = {"Imperial Aramaic (700-300 BCE)", "Official Aramaic (700-300 BCE)"},
["ard"] = {"Arabana"},
["are"] = {"Western Arrarnta"},
["arg"] = {"Aragonese"},
["arh"] = {"Arhuaco"},
["ari"] = {"Arikara"},
["arj"] = {"Arapaso"},
["ark"] = {"Arikapú"},
["arl"] = {"Arabela"},
["arn"] = {"Mapuche", "Mapudungun"},
["aro"] = {"Araona"},
["arp"] = {"Arapaho"},
["arq"] = {"Algerian Arabic"},
["arr"] = {"Karo (Brazil)"},
["ars"] = {"Najdi Arabic"},
["aru"] = {"Arawá", "Aruá (Amazonas State)"},
["arv"] = {"Arbore"},
["arw"] = {"Arawak"},
["arx"] = {"Aruá (Rodonia State)"},
["ary"] = {"Moroccan Arabic"},
["arz"] = {"Egyptian Arabic"},
["asa"] = {"Asu (Tanzania)"},
["asb"] = {"Assiniboine", "Nakoda Assiniboine"},
["asc"] = {"Casuarina Coast Asmat"},
["ase"] = {"American Sign Language"},
["asf"] = {"Auslan", "Australian Sign Language"},
["asg"] = {"Cishingini"},
["ash"] = {"Abishira"},
["asi"] = {"Buruwai"},
["asj"] = {"Sari"},
["ask"] = {"Ashkun"},
["asl"] = {"Asilulu"},
["asm"] = {"Assamese"},
["asn"] = {"Xingú Asuriní"},
["aso"] = {"Dano"},
["asp"] = {"Algerian Sign Language"},
["asq"] = {"Austrian Sign Language"},
["asr"] = {"Asuri"},
["ass"] = {"Ipulo"},
["ast"] = {"Asturian", "Asturleonese", "Bable", "Leonese"},
["asu"] = {"Tocantins Asurini"},
["asv"] = {"Asoa"},
["asw"] = {"Australian Aborigines Sign Language"},
["asx"] = {"Muratayak"},
["asy"] = {"Yaosakor Asmat"},
["asz"] = {"As"},
["ata"] = {"Pele-Ata"},
["atb"] = {"Zaiwa"},
["atc"] = {"Atsahuaca"},
["atd"] = {"Ata Manobo"},
["ate"] = {"Atemble"},
["atg"] = {"Ivbie North-Okpela-Arhe"},
["ati"] = {"Attié"},
["atj"] = {"Atikamekw", "Nehirowimowin"},
["atk"] = {"Ati"},
["atl"] = {"Mt. Iraya Agta"},
["atm"] = {"Ata"},
["atn"] = {"Ashtiani"},
["ato"] = {"Atong (Cameroon)"},
["atp"] = {"Pudtol Atta"},
["atq"] = {"Aralle-Tabulahan"},
["atr"] = {"Waimiri-Atroari"},
["ats"] = {"Gros Ventre"},
["att"] = {"Pamplona Atta"},
["atu"] = {"Reel"},
["atv"] = {"Northern Altai"},
["atw"] = {"Atsugewi"},
["atx"] = {"Arutani"},
["aty"] = {"Aneityum"},
["atz"] = {"Arta"},
["aua"] = {"Asumboa"},
["aub"] = {"Alugu"},
["auc"] = {"Waorani"},
["aud"] = {"Anuta"},
["aug"] = {"Aguna"},
["auh"] = {"Aushi"},
["aui"] = {"Anuki"},
["auj"] = {"Awjilah"},
["auk"] = {"Heyo"},
["aul"] = {"Aulua"},
["aum"] = {"Asu (Nigeria)"},
["aun"] = {"Molmo One"},
["auo"] = {"Auyokawa"},
["aup"] = {"Makayam"},
["auq"] = {"Anus", "Korur"},
["aur"] = {"Aruek"},
["aut"] = {"Austral"},
["auu"] = {"Auye"},
["auw"] = {"Awyi"},
["aux"] = {"Aurá"},
["auy"] = {"Awiyaana"},
["auz"] = {"Uzbeki Arabic"},
["ava"] = {"Avaric"},
["avb"] = {"Avau"},
["avd"] = {"Alviri-Vidari"},
["ave"] = {"Avestan"},
["avi"] = {"Avikam"},
["avk"] = {"Kotava"},
["avl"] = {"Eastern Egyptian Bedawi Arabic"},
["avm"] = {"Angkamuthi"},
["avn"] = {"Avatime"},
["avo"] = {"Agavotaguerra"},
["avs"] = {"Aushiri"},
["avt"] = {"Au"},
["avu"] = {"Avokaya"},
["avv"] = {"Avá-Canoeiro"},
["awa"] = {"Awadhi"},
["awb"] = {"Awa (Papua New Guinea)"},
["awc"] = {"Cicipu"},
["awe"] = {"Awetí"},
["awg"] = {"Anguthimri"},
["awh"] = {"Awbono"},
["awi"] = {"Aekyom"},
["awk"] = {"Awabakal"},
["awm"] = {"Arawum"},
["awn"] = {"Awngi"},
["awo"] = {"Awak"},
["awr"] = {"Awera"},
["aws"] = {"South Awyu"},
["awt"] = {"Araweté"},
["awu"] = {"Central Awyu"},
["awv"] = {"Jair Awyu"},
["aww"] = {"Awun"},
["awx"] = {"Awara"},
["awy"] = {"Edera Awyu"},
["axb"] = {"Abipon"},
["axe"] = {"Ayerrerenge"},
["axg"] = {"Mato Grosso Arára"},
["axk"] = {"Yaka (Central African Republic)"},
["axl"] = {"Lower Southern Aranda"},
["axm"] = {"Middle Armenian"},
["axx"] = {"Xârâgurè"},
["aya"] = {"Awar"},
["ayb"] = {"Ayizo Gbe"},
["ayc"] = {"Southern Aymara"},
["ayd"] = {"Ayabadhu"},
["aye"] = {"Ayere"},
["ayg"] = {"Ginyanga"},
["ayh"] = {"Hadrami Arabic"},
["ayi"] = {"Leyigha"},
["ayk"] = {"Akuku"},
["ayl"] = {"Libyan Arabic"},
["aym"] = {"Aymara"},
["ayn"] = {"Sanaani Arabic"},
["ayo"] = {"Ayoreo"},
["ayp"] = {"North Mesopotamian Arabic"},
["ayq"] = {"Ayi (Papua New Guinea)"},
["ayr"] = {"Central Aymara"},
["ays"] = {"Sorsogon Ayta"},
["ayt"] = {"Magbukun Ayta"},
["ayu"] = {"Ayu"},
["ayz"] = {"Mai Brat"},
["aza"] = {"Azha"},
["azb"] = {"South Azerbaijani"},
["azd"] = {"Eastern Durango Nahuatl"},
["aze"] = {"Azerbaijani"},
["azg"] = {"San Pedro Amuzgos Amuzgo"},
["azj"] = {"North Azerbaijani"},
["azm"] = {"Ipalapa Amuzgo"},
["azn"] = {"Western Durango Nahuatl"},
["azo"] = {"Awing"},
["azt"] = {"Faire Atta"},
["azz"] = {"Highland Puebla Nahuatl"},
["baa"] = {"Babatana"},
["bab"] = {"Bainouk-Gunyuño"},
["bac"] = {"Badui"},
["bae"] = {"Baré"},
["baf"] = {"Nubaca"},
["bag"] = {"Tuki"},
["bah"] = {"Bahamas Creole English"},
["baj"] = {"Barakai"},
["bak"] = {"Bashkir"},
["bal"] = {"Baluchi"},
["bam"] = {"Bambara"},
["ban"] = {"Balinese"},
["bao"] = {"Waimaha"},
["bap"] = {"Bantawa"},
["bar"] = {"Bavarian"},
["bas"] = {"Basa (Cameroon)"},
["bau"] = {"Bada (Nigeria)"},
["bav"] = {"Vengo"},
["baw"] = {"Bambili-Bambui"},
["bax"] = {"Bamun"},
["bay"] = {"Batuley"},
["bba"] = {"Baatonum"},
["bbb"] = {"Barai"},
["bbc"] = {"Batak Toba"},
["bbd"] = {"Bau"},
["bbe"] = {"Bangba"},
["bbf"] = {"Baibai"},
["bbg"] = {"Barama"},
["bbh"] = {"Bugan"},
["bbi"] = {"Barombi"},
["bbj"] = {"Ghomálá'"},
["bbk"] = {"Babanki"},
["bbl"] = {"Bats"},
["bbm"] = {"Babango"},
["bbn"] = {"Uneapa"},
["bbo"] = {"Konabéré", "Northern Bobo Madaré"},
["bbp"] = {"West Central Banda"},
["bbq"] = {"Bamali"},
["bbr"] = {"Girawa"},
["bbs"] = {"Bakpinka"},
["bbt"] = {"Mburku"},
["bbu"] = {"Kulung (Nigeria)"},
["bbv"] = {"Karnai"},
["bbw"] = {"Baba"},
["bbx"] = {"Bubia"},
["bby"] = {"Befang"},
["bca"] = {"Central Bai"},
["bcb"] = {"Bainouk-Samik"},
["bcc"] = {"Southern Balochi"},
["bcd"] = {"North Babar"},
["bce"] = {"Bamenyam"},
["bcf"] = {"Bamu"},
["bcg"] = {"Baga Pokur"},
["bch"] = {"Bariai"},
["bci"] = {"Baoulé"},
["bcj"] = {"Bardi"},
["bck"] = {"Bunuba"},
["bcl"] = {"Central Bikol"},
["bcm"] = {"Bannoni"},
["bcn"] = {"Bali (Nigeria)"},
["bco"] = {"Kaluli"},
["bcp"] = {"Bali (Democratic Republic of Congo)"},
["bcq"] = {"Bench"},
["bcr"] = {"Babine"},
["bcs"] = {"Kohumono"},
["bct"] = {"Bendi"},
["bcu"] = {"Awad Bing"},
["bcv"] = {"Shoo-Minda-Nye"},
["bcw"] = {"Bana"},
["bcy"] = {"Bacama"},
["bcz"] = {"Bainouk-Gunyaamolo"},
["bda"] = {"Bayot"},
["bdb"] = {"Basap"},
["bdc"] = {"Emberá-Baudó"},
["bdd"] = {"Bunama"},
["bde"] = {"Bade"},
["bdf"] = {"Biage"},
["bdg"] = {"Bonggi"},
["bdh"] = {"Baka (South Sudan)"},
["bdi"] = {"Burun"},
["bdj"] = {"Bai", "Bai (South Sudan)"},
["bdk"] = {"Budukh"},
["bdl"] = {"Indonesian Bajau"},
["bdm"] = {"Buduma"},
["bdn"] = {"Baldemu"},
["bdo"] = {"Morom"},
["bdp"] = {"Bende"},
["bdq"] = {"Bahnar"},
["bdr"] = {"West Coast Bajau"},
["bds"] = {"Burunge"},
["bdt"] = {"Bokoto"},
["bdu"] = {"Oroko"},
["bdv"] = {"Bodo Parja"},
["bdw"] = {"Baham"},
["bdx"] = {"Budong-Budong"},
["bdy"] = {"Bandjalang"},
["bdz"] = {"Badeshi"},
["bea"] = {"Beaver"},
["beb"] = {"Bebele"},
["bec"] = {"Iceve-Maci"},
["bed"] = {"Bedoanas"},
["bee"] = {"Byangsi"},
["bef"] = {"Benabena"},
["beg"] = {"Belait"},
["beh"] = {"Biali"},
["bei"] = {"Bekati'"},
["bej"] = {"Bedawiyet", "Beja"},
["bek"] = {"Bebeli"},
["bel"] = {"Belarusian"},
["bem"] = {"Bemba (Zambia)"},
["ben"] = {"Bengali"},
["beo"] = {"Beami"},
["bep"] = {"Besoa"},
["beq"] = {"Beembe"},
["bes"] = {"Besme"},
["bet"] = {"Guiberoua Béte"},
["beu"] = {"Blagar"},
["bev"] = {"Daloa Bété"},
["bew"] = {"Betawi"},
["bex"] = {"Jur Modo"},
["bey"] = {"Beli (Papua New Guinea)"},
["bez"] = {"Bena (Tanzania)"},
["bfa"] = {"Bari"},
["bfb"] = {"Pauri Bareli"},
["bfc"] = {"Northern Bai", "Panyi Bai"},
["bfd"] = {"Bafut"},
["bfe"] = {"Betaf", "Tena"},
["bff"] = {"Bofi"},
["bfg"] = {"Busang Kayan"},
["bfh"] = {"Blafe"},
["bfi"] = {"British Sign Language"},
["bfj"] = {"Bafanji"},
["bfk"] = {"Ban Khor Sign Language"},
["bfl"] = {"Banda-Ndélé"},
["bfm"] = {"Mmen"},
["bfn"] = {"Bunak"},
["bfo"] = {"Malba Birifor"},
["bfp"] = {"Beba"},
["bfq"] = {"Badaga"},
["bfr"] = {"Bazigar"},
["bfs"] = {"Southern Bai"},
["bft"] = {"Balti"},
["bfu"] = {"Gahri"},
["bfw"] = {"Bondo"},
["bfx"] = {"Bantayanon"},
["bfy"] = {"Bagheli"},
["bfz"] = {"Mahasu Pahari"},
["bga"] = {"Gwamhi-Wuri"},
["bgb"] = {"Bobongko"},
["bgc"] = {"Haryanvi"},
["bgd"] = {"Rathwi Bareli"},
["bge"] = {"Bauria"},
["bgf"] = {"Bangandu"},
["bgg"] = {"Bugun"},
["bgi"] = {"Giangan"},
["bgj"] = {"Bangolan"},
["bgk"] = {"Bit", "Buxinhua"},
["bgl"] = {"Bo (Laos)"},
["bgn"] = {"Western Balochi"},
["bgo"] = {"Baga Koga"},
["bgp"] = {"Eastern Balochi"},
["bgq"] = {"Bagri"},
["bgr"] = {"Bawm Chin"},
["bgs"] = {"Tagabawa"},
["bgt"] = {"Bughotu"},
["bgu"] = {"Mbongno"},
["bgv"] = {"Warkay-Bipim"},
["bgw"] = {"Bhatri"},
["bgx"] = {"Balkan Gagauz Turkish"},
["bgy"] = {"Benggoi"},
["bgz"] = {"Banggai"},
["bha"] = {"Bharia"},
["bhb"] = {"Bhili"},
["bhc"] = {"Biga"},
["bhd"] = {"Bhadrawahi"},
["bhe"] = {"Bhaya"},
["bhf"] = {"Odiai"},
["bhg"] = {"Binandere"},
["bhh"] = {"Bukharic"},
["bhi"] = {"Bhilali"},
["bhj"] = {"Bahing"},
["bhl"] = {"Bimin"},
["bhm"] = {"Bathari"},
["bhn"] = {"Bohtan Neo-Aramaic"},
["bho"] = {"Bhojpuri"},
["bhp"] = {"Bima"},
["bhq"] = {"Tukang Besi South"},
["bhr"] = {"Bara Malagasy"},
["bhs"] = {"Buwal"},
["bht"] = {"Bhattiyali"},
["bhu"] = {"Bhunjia"},
["bhv"] = {"Bahau"},
["bhw"] = {"Biak"},
["bhx"] = {"Bhalay"},
["bhy"] = {"Bhele"},
["bhz"] = {"Bada (Indonesia)"},
["bia"] = {"Badimaya"},
["bib"] = {"Bisa", "Bissa"},
["bid"] = {"Bidiyo"},
["bie"] = {"Bepour"},
["bif"] = {"Biafada"},
["big"] = {"Biangai"},
["bik"] = {"Bikol"},
["bil"] = {"Bile"},
["bim"] = {"Bimoba"},
["bin"] = {"Bini", "Edo"},
["bio"] = {"Nai"},
["bip"] = {"Bila"},
["biq"] = {"Bipi"},
["bir"] = {"Bisorio"},
["bis"] = {"Bislamish"},
["bit"] = {"Berinomo"},
["biu"] = {"Biete"},
["biv"] = {"Southern Birifor"},
["biw"] = {"Kol (Cameroon)"},
["bix"] = {"Bijori"},
["biy"] = {"Birhor"},
["biz"] = {"Baloi"},
["bja"] = {"Budza"},
["bjb"] = {"Banggarla"},
["bjc"] = {"Bariji"},
["bje"] = {"Biao-Jiao Mien"},
["bjf"] = {"Barzani Jewish Neo-Aramaic"},
["bjg"] = {"Bidyogo"},
["bjh"] = {"Bahinemo"},
["bji"] = {"Burji"},
["bjj"] = {"Kanauji"},
["bjk"] = {"Barok"},
["bjl"] = {"Bulu (Papua New Guinea)"},
["bjm"] = {"Bajelani"},
["bjn"] = {"Banjar"},
["bjo"] = {"Mid-Southern Banda"},
["bjp"] = {"Fanamaket"},
["bjr"] = {"Binumarien"},
["bjs"] = {"Bajan"},
["bjt"] = {"Balanta-Ganja"},
["bju"] = {"Busuu"},
["bjv"] = {"Bedjond"},
["bjw"] = {"Bakwé"},
["bjx"] = {"Banao Itneg"},
["bjy"] = {"Bayali"},
["bjz"] = {"Baruga"},
["bka"] = {"Kyak"},
["bkc"] = {"Baka (Cameroon)"},
["bkd"] = {"Binukid", "Talaandig"},
["bkf"] = {"Beeke"},
["bkg"] = {"Buraka"},
["bkh"] = {"Bakoko"},
["bki"] = {"Baki"},
["bkj"] = {"Pande"},
["bkk"] = {"Brokskat"},
["bkl"] = {"Berik"},
["bkm"] = {"Kom (Cameroon)"},
["bkn"] = {"Bukitan"},
["bko"] = {"Kwa'"},
["bkp"] = {"Boko (Democratic Republic of Congo)"},
["bkq"] = {"Bakairí"},
["bkr"] = {"Bakumpai"},
["bks"] = {"Northern Sorsoganon"},
["bkt"] = {"Boloki"},
["bku"] = {"Buhid"},
["bkv"] = {"Bekwarra"},
["bkw"] = {"Bekwel"},
["bkx"] = {"Baikeno"},
["bky"] = {"Bokyi"},
["bkz"] = {"Bungku"},
["bla"] = {"Siksika"},
["blb"] = {"Bilua"},
["blc"] = {"Bella Coola"},
["bld"] = {"Bolango"},
["ble"] = {"Balanta-Kentohe"},
["blf"] = {"Buol"},
["blh"] = {"Kuwaa"},
["bli"] = {"Bolia"},
["blj"] = {"Bolongan"},
["blk"] = {"Pa'O", "Pa'o Karen"},
["bll"] = {"Biloxi"},
["blm"] = {"Beli (South Sudan)"},
["bln"] = {"Southern Catanduanes Bikol"},
["blo"] = {"Anii"},
["blp"] = {"Blablanga"},
["blq"] = {"Baluan-Pam"},
["blr"] = {"Blang"},
["bls"] = {"Balaesang"},
["blt"] = {"Tai Dam"},
["blv"] = {"Bolo", "Kibala"},
["blw"] = {"Balangao"},
["blx"] = {"Mag-Indi Ayta"},
["bly"] = {"Notre"},
["blz"] = {"Balantak"},
["bma"] = {"Lame"},
["bmb"] = {"Bembe"},
["bmc"] = {"Biem"},
["bmd"] = {"Baga Manduri"},
["bme"] = {"Limassa"},
["bmf"] = {"Bom-Kim"},
["bmg"] = {"Bamwe"},
["bmh"] = {"Kein"},
["bmi"] = {"Bagirmi"},
["bmj"] = {"Bote-Majhi"},
["bmk"] = {"Ghayavi"},
["bml"] = {"Bomboli"},
["bmm"] = {"Northern Betsimisaraka Malagasy"},
["bmn"] = {"Bina (Papua New Guinea)"},
["bmo"] = {"Bambalang"},
["bmp"] = {"Bulgebi"},
["bmq"] = {"Bomu"},
["bmr"] = {"Muinane"},
["bms"] = {"Bilma Kanuri"},
["bmt"] = {"Biao Mon"},
["bmu"] = {"Somba-Siawari"},
["bmv"] = {"Bum"},
["bmw"] = {"Bomwali"},
["bmx"] = {"Baimak"},
["bmz"] = {"Baramu"},
["bna"] = {"Bonerate"},
["bnb"] = {"Bookan"},
["bnc"] = {"Bontok"},
["bnd"] = {"Banda (Indonesia)"},
["bne"] = {"Bintauna"},
["bnf"] = {"Masiwang"},
["bng"] = {"Benga"},
["bni"] = {"Bangi"},
["bnj"] = {"Eastern Tawbuid"},
["bnk"] = {"Bierebo"},
["bnl"] = {"Boon"},
["bnm"] = {"Batanga"},
["bnn"] = {"Bunun"},
["bno"] = {"Bantoanon"},
["bnp"] = {"Bola"},
["bnq"] = {"Bantik"},
["bnr"] = {"Butmas-Tur"},
["bns"] = {"Bundeli"},
["bnu"] = {"Bentong"},
["bnv"] = {"Beneraf", "Bonerif", "Edwas"},
["bnw"] = {"Bisis"},
["bnx"] = {"Bangubangu"},
["bny"] = {"Bintulu"},
["bnz"] = {"Beezen"},
["boa"] = {"Bora"},
["bob"] = {"Aweer"},
["bod"] = {"Tibetan"},
["boe"] = {"Mundabli"},
["bof"] = {"Bolon"},
["bog"] = {"Bamako Sign Language"},
["boh"] = {"Boma"},
["boi"] = {"Barbareño"},
["boj"] = {"Anjam"},
["bok"] = {"Bonjo"},
["bol"] = {"Bole"},
["bom"] = {"Berom"},
["bon"] = {"Bine"},
["boo"] = {"Tiemacèwè Bozo"},
["bop"] = {"Bonkiman"},
["boq"] = {"Bogaya"},
["bor"] = {"Borôro"},
["bos"] = {"Bosnian"},
["bot"] = {"Bongo"},
["bou"] = {"Bondei"},
["bov"] = {"Tuwuli"},
["bow"] = {"Rema"},
["box"] = {"Buamu"},
["boy"] = {"Bodo (Central African Republic)"},
["boz"] = {"Tiéyaxo Bozo"},
["bpa"] = {"Daakaka"},
["bpc"] = {"Mbuk"},
["bpd"] = {"Banda-Banda"},
["bpe"] = {"Bauni"},
["bpg"] = {"Bonggo"},
["bph"] = {"Botlikh"},
["bpi"] = {"Bagupi"},
["bpj"] = {"Binji"},
["bpk"] = {"'Ôrôê", "Orowe"},
["bpl"] = {"Broome Pearling Lugger Pidgin"},
["bpm"] = {"Biyom"},
["bpn"] = {"Dzao Min"},
["bpo"] = {"Anasi"},
["bpp"] = {"Kaure"},
["bpq"] = {"Banda Malay"},
["bpr"] = {"Koronadal Blaan"},
["bps"] = {"Sarangani Blaan"},
["bpt"] = {"Barrow Point"},
["bpu"] = {"Bongu"},
["bpv"] = {"Bian Marind"},
["bpw"] = {"Bo (Papua New Guinea)"},
["bpx"] = {"Palya Bareli"},
["bpy"] = {"Bishnupriya"},
["bpz"] = {"Bilba"},
["bqa"] = {"Tchumbuli"},
["bqb"] = {"Bagusa"},
["bqc"] = {"Boko (Benin)", "Boo"},
["bqd"] = {"Bung"},
["bqf"] = {"Baga Kaloum"},
["bqg"] = {"Bago-Kusuntu"},
["bqh"] = {"Baima"},
["bqi"] = {"Bakhtiari"},
["bqj"] = {"Bandial"},
["bqk"] = {"Banda-Mbrès"},
["bql"] = {"Bilakura", "Karian"},
["bqm"] = {"Wumboko"},
["bqn"] = {"Bulgarian Sign Language"},
["bqo"] = {"Balo"},
["bqp"] = {"Busa"},
["bqq"] = {"Biritai"},
["bqr"] = {"Burusu"},
["bqs"] = {"Bosngun"},
["bqt"] = {"Bamukumbit"},
["bqu"] = {"Boguru"},
["bqv"] = {"Begbere-Ejar", "Koro Wachi"},
["bqw"] = {"Buru (Nigeria)"},
["bqx"] = {"Baangi"},
["bqy"] = {"Bengkala Sign Language"},
["bqz"] = {"Bakaka"},
["bra"] = {"Braj"},
["brb"] = {"Brao", "Lave"},
["brc"] = {"Berbice Creole Dutch"},
["brd"] = {"Baraamu"},
["bre"] = {"Breton"},
["brf"] = {"Bira"},
["brg"] = {"Baure"},
["brh"] = {"Brahui"},
["bri"] = {"Mokpwe"},
["brj"] = {"Bieria"},
["brk"] = {"Birked"},
["brl"] = {"Birwa"},
["brm"] = {"Barambu"},
["brn"] = {"Boruca"},
["bro"] = {"Brokkat"},
["brp"] = {"Barapasi"},
["brq"] = {"Breri"},
["brr"] = {"Birao"},
["brs"] = {"Baras"},
["brt"] = {"Bitare"},
["bru"] = {"Eastern Bru"},
["brv"] = {"Western Bru"},
["brw"] = {"Bellari"},
["brx"] = {"Bodo (India)"},
["bry"] = {"Burui"},
["brz"] = {"Bilbil"},
["bsa"] = {"Abinomn"},
["bsb"] = {"Brunei Bisaya"},
["bsc"] = {"Bassari", "Oniyan"},
["bse"] = {"Wushi"},
["bsf"] = {"Bauchi"},
["bsg"] = {"Bashkardi"},
["bsh"] = {"Kati"},
["bsi"] = {"Bassossi"},
["bsj"] = {"Bangwinji"},
["bsk"] = {"Burushaski"},
["bsl"] = {"Basa-Gumna"},
["bsm"] = {"Busami"},
["bsn"] = {"Barasana-Eduria"},
["bso"] = {"Buso"},
["bsp"] = {"Baga Sitemu"},
["bsq"] = {"Bassa"},
["bsr"] = {"Bassa-Kontagora"},
["bss"] = {"Akoose"},
["bst"] = {"Basketo"},
["bsu"] = {"Bahonsuai"},
["bsv"] = {"Baga Sobané"},
["bsw"] = {"Baiso"},
["bsx"] = {"Yangkam"},
["bsy"] = {"Sabah Bisaya"},
["bta"] = {"Bata"},
["btc"] = {"Bati (Cameroon)"},
["btd"] = {"Batak Dairi"},
["bte"] = {"Gamo-Ningi"},
["btf"] = {"Birgit"},
["btg"] = {"Gagnoa Bété"},
["bth"] = {"Biatah Bidayuh"},
["bti"] = {"Burate"},
["btj"] = {"Bacanese Malay"},
["btm"] = {"Batak Mandailing"},
["btn"] = {"Ratagnon"},
["bto"] = {"Rinconada Bikol"},
["btp"] = {"Budibud"},
["btq"] = {"Batek"},
["btr"] = {"Baetora"},
["bts"] = {"Batak Simalungun"},
["btt"] = {"Bete-Bendi"},
["btu"] = {"Batu"},
["btv"] = {"Bateri"},
["btw"] = {"Butuanon"},
["btx"] = {"Batak Karo"},
["bty"] = {"Bobot"},
["btz"] = {"Batak Alas-Kluet"},
["bua"] = {"Buriat"},
["bub"] = {"Bua"},
["buc"] = {"Bushi"},
["bud"] = {"Ntcham"},
["bue"] = {"Beothuk"},
["buf"] = {"Bushoong"},
["bug"] = {"Buginese"},
["buh"] = {"Younuo Bunu"},
["bui"] = {"Bongili"},
["buj"] = {"Basa-Gurmana"},
["buk"] = {"Bugawac"},
["bul"] = {"Bulgarian"},
["bum"] = {"Bulu (Cameroon)"},
["bun"] = {"Sherbro"},
["buo"] = {"Terei"},
["bup"] = {"Busoa"},
["buq"] = {"Brem"},
["bus"] = {"Bokobaru"},
["but"] = {"Bungain"},
["buu"] = {"Budu"},
["buv"] = {"Bun"},
["buw"] = {"Bubi"},
["bux"] = {"Boghom"},
["buy"] = {"Bullom So"},
["buz"] = {"Bukwen"},
["bva"] = {"Barein"},
["bvb"] = {"Bube"},
["bvc"] = {"Baelelea"},
["bvd"] = {"Baeggu"},
["bve"] = {"Berau Malay"},
["bvf"] = {"Boor"},
["bvg"] = {"Bonkeng"},
["bvh"] = {"Bure"},
["bvi"] = {"Belanda Viri"},
["bvj"] = {"Baan"},
["bvk"] = {"Bukat"},
["bvl"] = {"Bolivian Sign Language"},
["bvm"] = {"Bamunka"},
["bvn"] = {"Buna"},
["bvo"] = {"Bolgo"},
["bvp"] = {"Bumang"},
["bvq"] = {"Birri"},
["bvr"] = {"Burarra"},
["bvt"] = {"Bati (Indonesia)"},
["bvu"] = {"Bukit Malay"},
["bvv"] = {"Baniva"},
["bvw"] = {"Boga"},
["bvx"] = {"Dibole"},
["bvy"] = {"Baybayanon"},
["bvz"] = {"Bauzi"},
["bwa"] = {"Bwatoo"},
["bwb"] = {"Namosi-Naitasiri-Serua"},
["bwc"] = {"Bwile"},
["bwd"] = {"Bwaidoka"},
["bwe"] = {"Bwe Karen"},
["bwf"] = {"Boselewa"},
["bwg"] = {"Barwe"},
["bwh"] = {"Bishuo"},
["bwi"] = {"Baniwa"},
["bwj"] = {"Láá Láá Bwamu"},
["bwk"] = {"Bauwaki"},
["bwl"] = {"Bwela"},
["bwm"] = {"Biwat"},
["bwn"] = {"Wunai Bunu"},
["bwo"] = {"Borna (Ethiopia)", "Boro (Ethiopia)"},
["bwp"] = {"Mandobo Bawah"},
["bwq"] = {"Southern Bobo Madaré"},
["bwr"] = {"Bura-Pabir"},
["bws"] = {"Bomboma"},
["bwt"] = {"Bafaw-Balong"},
["bwu"] = {"Buli (Ghana)"},
["bww"] = {"Bwa"},
["bwx"] = {"Bu-Nao Bunu"},
["bwy"] = {"Cwi Bwamu"},
["bwz"] = {"Bwisi"},
["bxa"] = {"Tairaha"},
["bxb"] = {"Belanda Bor"},
["bxc"] = {"Molengue"},
["bxd"] = {"Pela"},
["bxe"] = {"Birale"},
["bxf"] = {"Bilur", "Minigir"},
["bxg"] = {"Bangala"},
["bxh"] = {"Buhutu"},
["bxi"] = {"Pirlatapa"},
["bxj"] = {"Bayungu"},
["bxk"] = {"Bukusu", "Lubukusu"},
["bxl"] = {"Jalkunan"},
["bxm"] = {"Mongolia Buriat"},
["bxn"] = {"Burduna"},
["bxo"] = {"Barikanchi"},
["bxp"] = {"Bebil"},
["bxq"] = {"Beele"},
["bxr"] = {"Russia Buriat"},
["bxs"] = {"Busam"},
["bxu"] = {"China Buriat"},
["bxv"] = {"Berakou"},
["bxw"] = {"Bankagooma"},
["bxz"] = {"Binahari"},
["bya"] = {"Batak"},
["byb"] = {"Bikya"},
["byc"] = {"Ubaghara"},
["byd"] = {"Benyadu'"},
["bye"] = {"Pouye"},
["byf"] = {"Bete"},
["byg"] = {"Baygo"},
["byh"] = {"Bhujel"},
["byi"] = {"Buyu"},
["byj"] = {"Bina (Nigeria)"},
["byk"] = {"Biao"},
["byl"] = {"Bayono"},
["bym"] = {"Bidjara"},
["byn"] = {"Bilin", "Blin"},
["byo"] = {"Biyo"},
["byp"] = {"Bumaji"},
["byq"] = {"Basay"},
["byr"] = {"Baruya", "Yipma"},
["bys"] = {"Burak"},
["byt"] = {"Berti"},
["byv"] = {"Medumba"},
["byw"] = {"Belhariya"},
["byx"] = {"Qaqet"},
["byz"] = {"Banaro"},
["bza"] = {"Bandi"},
["bzb"] = {"Andio"},
["bzc"] = {"Southern Betsimisaraka Malagasy"},
["bzd"] = {"Bribri"},
["bze"] = {"Jenaama Bozo"},
["bzf"] = {"Boikin"},
["bzg"] = {"Babuza"},
["bzh"] = {"Mapos Buang"},
["bzi"] = {"Bisu"},
["bzj"] = {"Belize Kriol English"},
["bzk"] = {"Nicaragua Creole English"},
["bzl"] = {"Boano (Sulawesi)"},
["bzm"] = {"Bolondo"},
["bzn"] = {"Boano (Maluku)"},
["bzo"] = {"Bozaba"},
["bzp"] = {"Kemberano"},
["bzq"] = {"Buli (Indonesia)"},
["bzr"] = {"Biri"},
["bzs"] = {"Brazilian Sign Language"},
["bzt"] = {"Brithenig"},
["bzu"] = {"Burmeso"},
["bzv"] = {"Naami"},
["bzw"] = {"Basa (Nigeria)"},
["bzx"] = {"Kɛlɛngaxo Bozo"},
["bzy"] = {"Obanliku"},
["bzz"] = {"Evant"},
["caa"] = {"Chortí"},
["cab"] = {"Garifuna"},
["cac"] = {"Chuj"},
["cad"] = {"Caddo"},
["cae"] = {"Laalaa", "Lehar"},
["caf"] = {"Southern Carrier"},
["cag"] = {"Nivaclé"},
["cah"] = {"Cahuarano"},
["caj"] = {"Chané"},
["cak"] = {"Cakchiquel", "Kaqchikel"},
["cal"] = {"Carolinian"},
["cam"] = {"Cemuhî"},
["can"] = {"Chambri"},
["cao"] = {"Chácobo"},
["cap"] = {"Chipaya"},
["caq"] = {"Car Nicobarese"},
["car"] = {"Galibi Carib"},
["cas"] = {"Tsimané"},
["cat"] = {"Catalan", "Valencian"},
["cav"] = {"Cavineña"},
["caw"] = {"Callawalla"},
["cax"] = {"Chiquitano"},
["cay"] = {"Cayuga"},
["caz"] = {"Canichana"},
["cbb"] = {"Cabiyarí"},
["cbc"] = {"Carapana"},
["cbd"] = {"Carijona"},
["cbg"] = {"Chimila"},
["cbi"] = {"Chachi"},
["cbj"] = {"Ede Cabe"},
["cbk"] = {"Chavacano"},
["cbl"] = {"Bualkhaw Chin"},
["cbn"] = {"Nyahkur"},
["cbo"] = {"Izora"},
["cbq"] = {"Cuba", "Tsucuba"},
["cbr"] = {"Cashibo-Cacataibo"},
["cbs"] = {"Cashinahua"},
["cbt"] = {"Chayahuita"},
["cbu"] = {"Candoshi-Shapra"},
["cbv"] = {"Cacua"},
["cbw"] = {"Kinabalian"},
["cby"] = {"Carabayo"},
["ccc"] = {"Chamicuro"},
["ccd"] = {"Cafundo Creole"},
["cce"] = {"Chopi"},
["ccg"] = {"Samba Daka"},
["cch"] = {"Atsam"},
["ccj"] = {"Kasanga"},
["ccl"] = {"Cutchi-Swahili"},
["ccm"] = {"Malaccan Creole Malay"},
["cco"] = {"Comaltepec Chinantec"},
["ccp"] = {"Chakma"},
["ccr"] = {"Cacaopera"},
["cda"] = {"Choni"},
["cde"] = {"Chenchu"},
["cdf"] = {"Chiru"},
["cdh"] = {"Chambeali"},
["cdi"] = {"Chodri"},
["cdj"] = {"Churahi"},
["cdm"] = {"Chepang"},
["cdn"] = {"Chaudangsi"},
["cdo"] = {"Min Dong Chinese"},
["cdr"] = {"Cinda-Regi-Tiyal"},
["cds"] = {"Chadian Sign Language"},
["cdy"] = {"Chadong"},
["cdz"] = {"Koda"},
["cea"] = {"Lower Chehalis"},
["ceb"] = {"Cebuano"},
["ceg"] = {"Chamacoco"},
["cek"] = {"Eastern Khumi Chin"},
["cen"] = {"Cen"},
["ces"] = {"Czech"},
["cet"] = {"Centúúm"},
["cey"] = {"Ekai Chin"},
["cfa"] = {"Dijim-Bwilim"},
["cfd"] = {"Cara"},
["cfg"] = {"Como Karim"},
["cfm"] = {"Falam Chin"},
["cga"] = {"Changriwa"},
["cgc"] = {"Kagayanen"},
["cgg"] = {"Chiga"},
["cgk"] = {"Chocangacakha"},
["cha"] = {"Chamorro"},
["chb"] = {"Chibcha"},
["chc"] = {"Catawba"},
["chd"] = {"Highland Oaxaca Chontal"},
["che"] = {"Chechen"},
["chf"] = {"Tabasco Chontal"},
["chg"] = {"Chagatai"},
["chh"] = {"Chinook"},
["chj"] = {"Ojitlán Chinantec"},
["chk"] = {"Chuukese"},
["chl"] = {"Cahuilla"},
["chm"] = {"Mari (Russia)"},
["chn"] = {"Chinook jargon"},
["cho"] = {"Choctaw"},
["chp"] = {"Chipewyan", "Dene Suline"},
["chq"] = {"Quiotepec Chinantec"},
["chr"] = {"Cherokee"},
["cht"] = {"Cholón"},
["chu"] = {"Church Slavic", "Church Slavonic", "Old Bulgarian", "Old Church Slavonic", "Old Slavonic"},
["chv"] = {"Chuvash"},
["chw"] = {"Chuwabu"},
["chx"] = {"Chantyal"},
["chy"] = {"Cheyenne"},
["chz"] = {"Ozumacín Chinantec"},
["cia"] = {"Cia-Cia"},
["cib"] = {"Ci Gbe"},
["cic"] = {"Chickasaw"},
["cid"] = {"Chimariko"},
["cie"] = {"Cineni"},
["cih"] = {"Chinali"},
["cik"] = {"Chitkuli Kinnauri"},
["cim"] = {"Cimbrian"},
["cin"] = {"Cinta Larga"},
["cip"] = {"Chiapanec"},
["cir"] = {"Haméa", "Méa", "Tiri"},
["ciw"] = {"Chippewa"},
["ciy"] = {"Chaima"},
["cja"] = {"Western Cham"},
["cje"] = {"Chru"},
["cjh"] = {"Upper Chehalis"},
["cji"] = {"Chamalal"},
["cjk"] = {"Chokwe"},
["cjm"] = {"Eastern Cham"},
["cjn"] = {"Chenapian"},
["cjo"] = {"Ashéninka Pajonal"},
["cjp"] = {"Cabécar"},
["cjs"] = {"Shor"},
["cjv"] = {"Chuave"},
["cjy"] = {"Jinyu Chinese"},
["ckb"] = {"Central Kurdish"},
["ckh"] = {"Chak"},
["ckl"] = {"Cibak"},
["ckm"] = {"Chakavian"},
["ckn"] = {"Kaang Chin"},
["cko"] = {"Anufo"},
["ckq"] = {"Kajakse"},
["ckr"] = {"Kairak"},
["cks"] = {"Tayo"},
["ckt"] = {"Chukot"},
["cku"] = {"Koasati"},
["ckv"] = {"Kavalan"},
["ckx"] = {"Caka"},
["cky"] = {"Cakfem-Mushere"},
["ckz"] = {"Cakchiquel-Quiché Mixed Language"},
["cla"] = {"Ron"},
["clc"] = {"Chilcotin", "Tsilhqot’in"},
["cld"] = {"Chaldean Neo-Aramaic"},
["cle"] = {"Lealao Chinantec"},
["clh"] = {"Chilisso"},
["cli"] = {"Chakali"},
["clj"] = {"Laitu Chin"},
["clk"] = {"Idu-Mishmi"},
["cll"] = {"Chala"},
["clm"] = {"Clallam", "Klallam"},
["clo"] = {"Lowland Oaxaca Chontal"},
["cls"] = {"Classical Sanskrit"},
["clt"] = {"Lautu Chin"},
["clu"] = {"Caluyanun"},
["clw"] = {"Chulym"},
["cly"] = {"Eastern Highland Chatino"},
["cma"] = {"Maa"},
["cme"] = {"Cerma"},
["cmg"] = {"Classical Mongolian"},
["cmi"] = {"Emberá-Chamí"},
["cml"] = {"Campalagian"},
["cmm"] = {"Michigamea"},
["cmn"] = {"Mandarin Chinese"},
["cmo"] = {"Central Mnong"},
["cmr"] = {"Mro-Khimi Chin"},
["cms"] = {"Messapic"},
["cmt"] = {"Camtho"},
["cna"] = {"Changthang"},
["cnb"] = {"Chinbon Chin"},
["cnc"] = {"Côông"},
["cng"] = {"Northern Qiang"},
["cnh"] = {"Haka Chin", "Hakha Chin"},
["cni"] = {"Asháninka"},
["cnk"] = {"Khumi Chin"},
["cnl"] = {"Lalana Chinantec"},
["cno"] = {"Con"},
["cnp"] = {"Northern Ping Chinese", "Northern Pinghua"},
["cnq"] = {"Chung"},
["cnr"] = {"Montenegrin"},
["cns"] = {"Central Asmat"},
["cnt"] = {"Tepetotutla Chinantec"},
["cnu"] = {"Chenoua"},
["cnw"] = {"Ngawn Chin"},
["cnx"] = {"Middle Cornish"},
["coa"] = {"Cocos Islands Malay"},
["cob"] = {"Chicomuceltec"},
["coc"] = {"Cocopa"},
["cod"] = {"Cocama-Cocamilla"},
["coe"] = {"Koreguaje"},
["cof"] = {"Colorado"},
["cog"] = {"Chong"},
["coh"] = {"Chichonyi-Chidzihana-Chikauma", "Chonyi-Dzihana-Kauma"},
["coj"] = {"Cochimi"},
["cok"] = {"Santa Teresa Cora"},
["col"] = {"Columbia-Wenatchi"},
["com"] = {"Comanche"},
["con"] = {"Cofán"},
["coo"] = {"Comox"},
["cop"] = {"Coptic"},
["coq"] = {"Coquille"},
["cor"] = {"Cornish"},
["cos"] = {"Corsican"},
["cot"] = {"Caquinte"},
["cou"] = {"Wamey"},
["cov"] = {"Cao Miao"},
["cow"] = {"Cowlitz"},
["cox"] = {"Nanti"},
["coz"] = {"Chochotec"},
["cpa"] = {"Palantla Chinantec"},
["cpb"] = {"Ucayali-Yurúa Ashéninka"},
["cpc"] = {"Ajyíninka Apurucayali"},
["cpg"] = {"Cappadocian Greek"},
["cpi"] = {"Chinese Pidgin English"},
["cpn"] = {"Cherepon"},
["cpo"] = {"Kpeego"},
["cps"] = {"Capiznon"},
["cpu"] = {"Pichis Ashéninka"},
["cpx"] = {"Pu-Xian Chinese"},
["cpy"] = {"South Ucayali Ashéninka"},
["cqd"] = {"Chuanqiandian Cluster Miao"},
["cra"] = {"Chara"},
["crb"] = {"Island Carib"},
["crc"] = {"Lonwolwol"},
["crd"] = {"Coeur d'Alene"},
["cre"] = {"Cree"},
["crf"] = {"Caramanta"},
["crg"] = {"Michif"},
["crh"] = {"Crimean Tatar", "Crimean Turkish"},
["cri"] = {"Sãotomense"},
["crj"] = {"Southern East Cree"},
["crk"] = {"Plains Cree"},
["crl"] = {"Northern East Cree"},
["crm"] = {"Moose Cree"},
["crn"] = {"El Nayar Cora"},
["cro"] = {"Crow"},
["crq"] = {"Iyo'wujwa Chorote"},
["crr"] = {"Carolina Algonquian"},
["crs"] = {"Seselwa Creole French"},
["crt"] = {"Iyojwa'ja Chorote"},
["crv"] = {"Chaura"},
["crw"] = {"Chrau"},
["crx"] = {"Carrier"},
["cry"] = {"Cori"},
["crz"] = {"Cruzeño"},
["csa"] = {"Chiltepec Chinantec"},
["csb"] = {"Kashubian"},
["csc"] = {"Catalan Sign Language", "Lengua de señas catalana", "Llengua de Signes Catalana"},
["csd"] = {"Chiangmai Sign Language"},
["cse"] = {"Czech Sign Language"},
["csf"] = {"Cuba Sign Language"},
["csg"] = {"Chilean Sign Language"},
["csh"] = {"Asho Chin"},
["csi"] = {"Coast Miwok"},
["csj"] = {"Songlai Chin"},
["csk"] = {"Jola-Kasa"},
["csl"] = {"Chinese Sign Language"},
["csm"] = {"Central Sierra Miwok"},
["csn"] = {"Colombian Sign Language"},
["cso"] = {"Sochiapam Chinantec", "Sochiapan Chinantec"},
["csp"] = {"Southern Ping Chinese", "Southern Pinghua"},
["csq"] = {"Croatia Sign Language"},
["csr"] = {"Costa Rican Sign Language"},
["css"] = {"Southern Ohlone"},
["cst"] = {"Northern Ohlone"},
["csv"] = {"Sumtu Chin"},
["csw"] = {"Swampy Cree"},
["csx"] = {"Cambodian Sign Language"},
["csy"] = {"Siyin Chin"},
["csz"] = {"Coos"},
["cta"] = {"Tataltepec Chatino"},
["ctc"] = {"Chetco"},
["ctd"] = {"Tedim Chin"},
["cte"] = {"Tepinapa Chinantec"},
["ctg"] = {"Chittagonian"},
["cth"] = {"Thaiphum Chin"},
["ctl"] = {"Tlacoatzintepec Chinantec"},
["ctm"] = {"Chitimacha"},
["ctn"] = {"Chhintange"},
["cto"] = {"Emberá-Catío"},
["ctp"] = {"Western Highland Chatino"},
["cts"] = {"Northern Catanduanes Bikol"},
["ctt"] = {"Wayanad Chetti"},
["ctu"] = {"Chol"},
["cty"] = {"Moundadan Chetty"},
["ctz"] = {"Zacatepec Chatino"},
["cua"] = {"Cua"},
["cub"] = {"Cubeo"},
["cuc"] = {"Usila Chinantec"},
["cuh"] = {"Chuka", "Gichuka"},
["cui"] = {"Cuiba"},
["cuj"] = {"Mashco Piro"},
["cuk"] = {"San Blas Kuna"},
["cul"] = {"Culina", "Kulina"},
["cuo"] = {"Cumanagoto"},
["cup"] = {"Cupeño"},
["cuq"] = {"Cun"},
["cur"] = {"Chhulung"},
["cut"] = {"Teutila Cuicatec"},
["cuu"] = {"Tai Ya"},
["cuv"] = {"Cuvok"},
["cuw"] = {"Chukwa"},
["cux"] = {"Tepeuxila Cuicatec"},
["cuy"] = {"Cuitlatec"},
["cvg"] = {"Chug"},
["cvn"] = {"Valle Nacional Chinantec"},
["cwa"] = {"Kabwa"},
["cwb"] = {"Maindo"},
["cwd"] = {"Woods Cree"},
["cwe"] = {"Kwere"},
["cwg"] = {"Cheq Wong", "Chewong"},
["cwt"] = {"Kuwaataay"},
["cxh"] = {"Cha'ari"},
["cya"] = {"Nopala Chatino"},
["cyb"] = {"Cayubaba"},
["cym"] = {"Welsh"},
["cyo"] = {"Cuyonon"},
["czh"] = {"Huizhou Chinese"},
["czk"] = {"Knaanic"},
["czn"] = {"Zenzontepec Chatino"},
["czo"] = {"Min Zhong Chinese"},
["czt"] = {"Zotung Chin"},
["daa"] = {"Dangaléat"},
["dac"] = {"Dambi"},
["dad"] = {"Marik"},
["dae"] = {"Duupa"},
["dag"] = {"Dagbani"},
["dah"] = {"Gwahatike"},
["dai"] = {"Day"},
["daj"] = {"Dar Fur Daju"},
["dak"] = {"Dakota"},
["dal"] = {"Dahalo"},
["dam"] = {"Damakawa"},
["dan"] = {"Danish"},
["dao"] = {"Daai Chin"},
["daq"] = {"Dandami Maria"},
["dar"] = {"Dargwa"},
["das"] = {"Daho-Doo"},
["dau"] = {"Dar Sila Daju"},
["dav"] = {"Dawida", "Taita"},
["daw"] = {"Davawenyo"},
["dax"] = {"Dayi"},
["daz"] = {"Dao", "Moi-Wadea"},
["dba"] = {"Bangime"},
["dbb"] = {"Deno"},
["dbd"] = {"Dadiya"},
["dbe"] = {"Dabe"},
["dbf"] = {"Edopi"},
["dbg"] = {"Dogul Dom Dogon"},
["dbi"] = {"Doka"},
["dbj"] = {"Ida'an"},
["dbl"] = {"Dyirbal"},
["dbm"] = {"Duguri"},
["dbn"] = {"Duriankere"},
["dbo"] = {"Dulbu"},
["dbp"] = {"Duwai"},
["dbq"] = {"Daba"},
["dbr"] = {"Dabarre"},
["dbt"] = {"Ben Tey Dogon"},
["dbu"] = {"Bondum Dom Dogon"},
["dbv"] = {"Dungu"},
["dbw"] = {"Bankan Tey Dogon"},
["dby"] = {"Dibiyaso"},
["dcc"] = {"Deccan"},
["dcr"] = {"Negerhollands"},
["dda"] = {"Dadi Dadi"},
["ddd"] = {"Dongotono"},
["dde"] = {"Doondo"},
["ddg"] = {"Fataluku"},
["ddi"] = {"West Goodenough"},
["ddj"] = {"Jaru"},
["ddn"] = {"Dendi (Benin)"},
["ddo"] = {"Dido"},
["ddr"] = {"Dhudhuroa"},
["dds"] = {"Donno So Dogon"},
["ddw"] = {"Dawera-Daweloor"},
["dec"] = {"Dagik"},
["ded"] = {"Dedua"},
["dee"] = {"Dewoin"},
["def"] = {"Dezfuli"},
["deg"] = {"Degema"},
["deh"] = {"Dehwari"},
["dei"] = {"Demisa"},
["del"] = {"Delaware"},
["dem"] = {"Dem"},
["den"] = {"Slave (Athapascan)"},
["dep"] = {"Pidgin Delaware"},
["deq"] = {"Dendi (Central African Republic)"},
["der"] = {"Deori"},
["des"] = {"Desano"},
["deu"] = {"German"},
["dev"] = {"Domung"},
["dez"] = {"Dengese"},
["dga"] = {"Southern Dagaare"},
["dgb"] = {"Bunoge Dogon"},
["dgc"] = {"Casiguran Dumagat Agta"},
["dgd"] = {"Dagaari Dioula"},
["dge"] = {"Degenan"},
["dgg"] = {"Doga"},
["dgh"] = {"Dghwede"},
["dgi"] = {"Northern Dagara"},
["dgk"] = {"Dagba"},
["dgl"] = {"Andaandi", "Dongolawi"},
["dgn"] = {"Dagoman"},
["dgo"] = {"Dogri (individual language)"},
["dgr"] = {"Dogrib", "Tlicho"},
["dgs"] = {"Dogoso"},
["dgt"] = {"Ndra'ngith"},
["dgw"] = {"Daungwurrung"},
["dgx"] = {"Doghoro"},
["dgz"] = {"Daga"},
["dhd"] = {"Dhundari"},
["dhg"] = {"Dhangu", "Dhangu-Djangu", "Djangu"},
["dhi"] = {"Dhimal"},
["dhl"] = {"Dhalandji"},
["dhm"] = {"Zemba"},
["dhn"] = {"Dhanki"},
["dho"] = {"Dhodia"},
["dhr"] = {"Dhargari"},
["dhs"] = {"Dhaiso"},
["dhu"] = {"Dhurga"},
["dhv"] = {"Dehu", "Drehu"},
["dhw"] = {"Dhanwar (Nepal)"},
["dhx"] = {"Dhungaloo"},
["dia"] = {"Dia"},
["dib"] = {"South Central Dinka"},
["dic"] = {"Lakota Dida"},
["did"] = {"Didinga"},
["dif"] = {"Dieri", "Diyari"},
["dig"] = {"Chidigo", "Digo"},
["dih"] = {"Kumiai"},
["dii"] = {"Dimbong"},
["dij"] = {"Dai"},
["dik"] = {"Southwestern Dinka"},
["dil"] = {"Dilling"},
["dim"] = {"Dime"},
["din"] = {"Dinka"},
["dio"] = {"Dibo"},
["dip"] = {"Northeastern Dinka"},
["diq"] = {"Dimli (individual language)"},
["dir"] = {"Dirim"},
["dis"] = {"Dimasa"},
["diu"] = {"Diriku"},
["div"] = {"Maldeevish", "Dhivehi", "Divehi"},
["diw"] = {"Northwestern Dinka"},
["dix"] = {"Dixon Reef"},
["diy"] = {"Diuwe"},
["diz"] = {"Ding"},
["dja"] = {"Djadjawurrung"},
["djb"] = {"Djinba"},
["djc"] = {"Dar Daju Daju"},
["djd"] = {"Djamindjung", "Ngaliwurru"},
["dje"] = {"Zarma"},
["djf"] = {"Djangun"},
["dji"] = {"Djinang"},
["djj"] = {"Djeebbana"},
["djk"] = {"Businenge Tongo", "Eastern Maroon Creole", "Nenge"},
["djm"] = {"Jamsay Dogon"},
["djn"] = {"Djauan", "Jawoyn"},
["djo"] = {"Jangkang"},
["djr"] = {"Djambarrpuyngu"},
["dju"] = {"Kapriman"},
["djw"] = {"Djawi"},
["dka"] = {"Dakpakha"},
["dkg"] = {"Kadung"},
["dkk"] = {"Dakka"},
["dkr"] = {"Kuijau"},
["dks"] = {"Southeastern Dinka"},
["dkx"] = {"Mazagway"},
["dlg"] = {"Dolgan"},
["dlk"] = {"Dahalik"},
["dlm"] = {"Dalmatian"},
["dln"] = {"Darlong"},
["dma"] = {"Duma"},
["dmb"] = {"Mombo Dogon"},
["dmc"] = {"Gavak"},
["dmd"] = {"Madhi Madhi"},
["dme"] = {"Dugwor"},
["dmf"] = {"Medefaidrin"},
["dmg"] = {"Upper Kinabatangan"},
["dmk"] = {"Domaaki"},
["dml"] = {"Dameli"},
["dmm"] = {"Dama"},
["dmo"] = {"Kemedzung"},
["dmr"] = {"East Damar"},
["dms"] = {"Dampelas"},
["dmu"] = {"Dubu", "Tebi"},
["dmv"] = {"Dumpas"},
["dmw"] = {"Mudburra"},
["dmx"] = {"Dema"},
["dmy"] = {"Demta", "Sowari"},
["dna"] = {"Upper Grand Valley Dani"},
["dnd"] = {"Daonda"},
["dne"] = {"Ndendeule"},
["dng"] = {"Dungan"},
["dni"] = {"Lower Grand Valley Dani"},
["dnj"] = {"Dan"},
["dnk"] = {"Dengka"},
["dnn"] = {"Dzùùngoo"},
["dno"] = {"Ndrulo", "Northern Lendu"},
["dnr"] = {"Danaru"},
["dnt"] = {"Mid Grand Valley Dani"},
["dnu"] = {"Danau"},
["dnv"] = {"Danu"},
["dnw"] = {"Western Dani"},
["dny"] = {"Dení"},
["doa"] = {"Dom"},
["dob"] = {"Dobu"},
["doc"] = {"Northern Dong"},
["doe"] = {"Doe"},
["dof"] = {"Domu"},
["doh"] = {"Dong"},
["doi"] = {"Dogri (macrolanguage)"},
["dok"] = {"Dondo"},
["dol"] = {"Doso"},
["don"] = {"Toura (Papua New Guinea)"},
["doo"] = {"Dongo"},
["dop"] = {"Lukpa"},
["doq"] = {"Dominican Sign Language"},
["dor"] = {"Dori'o"},
["dos"] = {"Dogosé"},
["dot"] = {"Dass"},
["dov"] = {"Dombe"},
["dow"] = {"Doyayo"},
["dox"] = {"Bussa"},
["doy"] = {"Dompo"},
["doz"] = {"Dorze"},
["dpp"] = {"Papar"},
["drb"] = {"Dair"},
["drc"] = {"Minderico"},
["drd"] = {"Darmiya"},
["dre"] = {"Dolpo"},
["drg"] = {"Rungus"},
["dri"] = {"C'Lela"},
["drl"] = {"Paakantyi"},
["drn"] = {"West Damar"},
["dro"] = {"Daro-Matu Melanau"},
["drq"] = {"Dura"},
["drs"] = {"Gedeo"},
["drt"] = {"Drents"},
["dru"] = {"Rukai"},
["dry"] = {"Darai"},
["dsb"] = {"Lower Sorbian"},
["dse"] = {"Dutch Sign Language"},
["dsh"] = {"Daasanach"},
["dsi"] = {"Disa"},
["dsk"] = {"Dokshi"},
["dsl"] = {"Danish Sign Language"},
["dsn"] = {"Dusner"},
["dso"] = {"Desiya"},
["dsq"] = {"Tadaksahak"},
["dsz"] = {"Mardin Sign Language"},
["dta"] = {"Daur"},
["dtb"] = {"Labuk-Kinabatangan Kadazan"},
["dtd"] = {"Ditidaht"},
["dth"] = {"Adithinngithigh"},
["dti"] = {"Ana Tinga Dogon"},
["dtk"] = {"Tene Kan Dogon"},
["dtm"] = {"Tomo Kan Dogon"},
["dtn"] = {"Daatsʼíin"},
["dto"] = {"Tommo So Dogon"},
["dtp"] = {"Central Dusun", "Kadazan Dusun"},
["dtr"] = {"Lotud"},
["dts"] = {"Toro So Dogon"},
["dtt"] = {"Toro Tegu Dogon"},
["dtu"] = {"Tebul Ure Dogon"},
["dty"] = {"Dotyali"},
["dua"] = {"Duala"},
["dub"] = {"Dubli"},
["duc"] = {"Duna"},
["due"] = {"Umiray Dumaget Agta"},
["duf"] = {"Drubea", "Dumbea"},
["dug"] = {"Chiduruma", "Duruma"},
["duh"] = {"Dungra Bhil"},
["dui"] = {"Dumun"},
["duk"] = {"Uyajitaya"},
["dul"] = {"Alabat Island Agta"},
["dum"] = {"Middle Dutch (ca. 1050-1350)"},
["dun"] = {"Dusun Deyah"},
["duo"] = {"Dupaninan Agta"},
["dup"] = {"Duano"},
["duq"] = {"Dusun Malang"},
["dur"] = {"Dii"},
["dus"] = {"Dumi"},
["duu"] = {"Drung"},
["duv"] = {"Duvle"},
["duw"] = {"Dusun Witu"},
["dux"] = {"Duungooma"},
["duy"] = {"Dicamay Agta"},
["duz"] = {"Duli-Gey"},
["dva"] = {"Duau"},
["dwa"] = {"Diri"},
["dwk"] = {"Dawik Kui"},
["dwr"] = {"Dawro"},
["dws"] = {"Dutton World Speedwords"},
["dwu"] = {"Dhuwal"},
["dww"] = {"Dawawa"},
["dwy"] = {"Dhuwaya"},
["dwz"] = {"Dewas Rai"},
["dya"] = {"Dyan"},
["dyb"] = {"Dyaberdyaber"},
["dyd"] = {"Dyugun"},
["dyg"] = {"Villa Viciosa Agta"},
["dyi"] = {"Djimini Senoufo"},
["dym"] = {"Yanda Dom Dogon"},
["dyn"] = {"Dhanggatti", "Dyangadi"},
["dyo"] = {"Jola-Fonyi"},
["dyr"] = {"Dyarim"},
["dyu"] = {"Dyula"},
["dyy"] = {"Djabugay", "Dyaabugay"},
["dza"] = {"Tunzu"},
["dzd"] = {"Daza"},
["dze"] = {"Djiwarli"},
["dzg"] = {"Dazaga"},
["dzl"] = {"Dzalakha"},
["dzn"] = {"Dzando"},
["dzo"] = {"Dzongkha"},
["eaa"] = {"Karenggapa"},
["ebc"] = {"Beginci"},
["ebg"] = {"Ebughu"},
["ebk"] = {"Eastern Bontok"},
["ebo"] = {"Teke-Ebo"},
["ebr"] = {"Ebrié"},
["ebu"] = {"Embu", "Kiembu"},
["ecr"] = {"Eteocretan"},
["ecs"] = {"Ecuadorian Sign Language"},
["ecy"] = {"Eteocypriot"},
["eee"] = {"E"},
["efa"] = {"Efai"},
["efe"] = {"Efe"},
["efi"] = {"Efik"},
["ega"] = {"Ega"},
["egl"] = {"Emilian"},
["egm"] = {"Benamanga"},
["ego"] = {"Eggon"},
["egy"] = {"Egyptian (Ancient)"},
["ehs"] = {"Miyakubo Sign Language"},
["ehu"] = {"Ehueun"},
["eip"] = {"Eipomek"},
["eit"] = {"Eitiep"},
["eiv"] = {"Askopan"},
["eja"] = {"Ejamat"},
["eka"] = {"Ekajuk"},
["eke"] = {"Ekit"},
["ekg"] = {"Ekari"},
["eki"] = {"Eki"},
["ekk"] = {"Standard Estonian"},
["ekl"] = {"Kol", "Kol (Bangladesh)"},
["ekm"] = {"Elip"},
["eko"] = {"Koti"},
["ekp"] = {"Ekpeye"},
["ekr"] = {"Yace"},
["eky"] = {"Eastern Kayah"},
["ele"] = {"Elepi"},
["elh"] = {"El Hugeirat"},
["eli"] = {"Nding"},
["elk"] = {"Elkei"},
["ell"] = {"Modern Greek (1453-)"},
["elm"] = {"Eleme"},
["elo"] = {"El Molo"},
["elu"] = {"Elu"},
["elx"] = {"Elamite"},
["ema"] = {"Emai-Iuleha-Ora"},
["emb"] = {"Embaloh"},
["eme"] = {"Emerillon"},
["emg"] = {"Eastern Meohang"},
["emi"] = {"Mussau-Emira"},
["emk"] = {"Eastern Maninkakan"},
["emm"] = {"Mamulique"},
["emn"] = {"Eman"},
["emp"] = {"Northern Emberá"},
["emq"] = {"Eastern Minyag"},
["ems"] = {"Pacific Gulf Yupik"},
["emu"] = {"Eastern Muria"},
["emw"] = {"Emplawas"},
["emx"] = {"Erromintxela"},
["emy"] = {"Epigraphic Mayan"},
["emz"] = {"Mbessa"},
["ena"] = {"Apali"},
["enb"] = {"Markweeta"},
["enc"] = {"En"},
["end"] = {"Ende"},
["enf"] = {"Forest Enets"},
["eng"] = {"English"},
["enh"] = {"Tundra Enets"},
["enl"] = {"Enlhet"},
["enm"] = {"Middle English (1100-1500)"},
["enn"] = {"Engenni"},
["eno"] = {"Enggano"},
["enq"] = {"Enga"},
["enr"] = {"Emem", "Emumu"},
["enu"] = {"Enu"},
["env"] = {"Enwan (Edo State)"},
["enw"] = {"Enwan (Akwa Ibom State)"},
["enx"] = {"Enxet"},
["eot"] = {"Beti (Côte d'Ivoire)"},
["epi"] = {"Epie"},
["epo"] = {"Esperanto"},
["era"] = {"Eravallan"},
["erg"] = {"Sie"},
["erh"] = {"Eruwa"},
["eri"] = {"Ogea"},
["erk"] = {"South Efate"},
["ero"] = {"Horpa"},
["err"] = {"Erre"},
["ers"] = {"Ersu"},
["ert"] = {"Eritai"},
["erw"] = {"Erokwanas"},
["ese"] = {"Ese Ejja"},
["esg"] = {"Aheri Gondi"},
["esh"] = {"Eshtehardi"},
["esi"] = {"North Alaskan Inupiatun"},
["esk"] = {"Northwest Alaska Inupiatun"},
["esl"] = {"Egypt Sign Language"},
["esm"] = {"Esuma"},
["esn"] = {"Salvadoran Sign Language"},
["eso"] = {"Estonian Sign Language"},
["esq"] = {"Esselen"},
["ess"] = {"Central Siberian Yupik"},
["est"] = {"Estonian"},
["esu"] = {"Central Yupik"},
["esy"] = {"Eskayan"},
["etb"] = {"Etebi"},
["etc"] = {"Etchemin"},
["eth"] = {"Ethiopian Sign Language"},
["etn"] = {"Eton (Vanuatu)"},
["eto"] = {"Eton (Cameroon)"},
["etr"] = {"Edolo"},
["ets"] = {"Yekhee"},
["ett"] = {"Etruscan"},
["etu"] = {"Ejagham"},
["etx"] = {"Eten"},
["etz"] = {"Semimi"},
["eud"] = {"Eudeve"},
["eus"] = {"Basque"},
["eve"] = {"Even"},
["evh"] = {"Uvbie"},
["evn"] = {"Evenki"},
["ewe"] = {"Ewe"},
["ewo"] = {"Ewondo"},
["ext"] = {"Extremaduran"},
["eya"] = {"Eyak"},
["eyo"] = {"Keiyo"},
["eza"] = {"Ezaa"},
["eze"] = {"Uzekwe"},
["faa"] = {"Fasu"},
["fab"] = {"Fa d'Ambu"},
["fad"] = {"Wagi"},
["faf"] = {"Fagani"},
["fag"] = {"Finongan"},
["fah"] = {"Baissa Fali"},
["fai"] = {"Faiwol"},
["faj"] = {"Faita"},
["fak"] = {"Fang (Cameroon)"},
["fal"] = {"South Fali"},
["fam"] = {"Fam"},
["fan"] = {"Fang (Equatorial Guinea)"},
["fao"] = {"Faroese"},
["fap"] = {"Paloor"},
["far"] = {"Fataleka"},
["fas"] = {"Persian"},
["fat"] = {"Fanti"},
["fau"] = {"Fayu"},
["fax"] = {"Fala"},
["fay"] = {"Southwestern Fars"},
["faz"] = {"Northwestern Fars"},
["fbl"] = {"West Albay Bikol"},
["fcs"] = {"Quebec Sign Language"},
["fer"] = {"Feroge"},
["ffi"] = {"Foia Foia"},
["ffm"] = {"Maasina Fulfulde"},
["fgr"] = {"Fongoro"},
["fia"] = {"Nobiin"},
["fie"] = {"Fyer"},
["fif"] = {"Faifi"},
["fij"] = {"Fijiish"},
["fil"] = {"Fijiish", "Filipino", "Pilipino"},
["fin"] = {"Finnish"},
["fip"] = {"Fipa"},
["fir"] = {"Firan"},
["fit"] = {"Meänkieli", "Tornedalen Finnish"},
["fiw"] = {"Fiwaga"},
["fkk"] = {"Kirya-Konzəl"},
["fkv"] = {"Kven Finnish"},
["fla"] = {"Kalispel-Pend d'Oreille"},
["flh"] = {"Foau"},
["fli"] = {"Fali"},
["fll"] = {"North Fali"},
["fln"] = {"Flinders Island"},
["flr"] = {"Fuliiru"},
["fly"] = {"Flaaitaal", "Tsotsitaal"},
["fmp"] = {"Fe'fe'"},
["fmu"] = {"Far Western Muria"},
["fnb"] = {"Fanbak"},
["fng"] = {"Fanagalo"},
["fni"] = {"Fania"},
["fod"] = {"Foodo"},
["foi"] = {"Foi"},
["fom"] = {"Foma"},
["fon"] = {"Fon"},
["for"] = {"Fore"},
["fos"] = {"Siraya"},
["fpe"] = {"Fernando Po Creole English"},
["fqs"] = {"Fas"},
["fra"] = {"French"},
["frc"] = {"Cajun French"},
["frd"] = {"Fordata"},
["frk"] = {"Frankish"},
["frm"] = {"Middle French (ca. 1400-1600)"},
["fro"] = {"Old French (842-ca. 1400)"},
["frp"] = {"Arpitan", "Francoprovençal"},
["frq"] = {"Forak"},
["frr"] = {"Northern Frisian"},
["frs"] = {"Eastern Frisian"},
["frt"] = {"Fortsenal"},
["fry"] = {"Western Frisian"},
["fse"] = {"Finnish Sign Language"},
["fsl"] = {"French Sign Language"},
["fss"] = {"finlandssvenskt teckenspråk", "Finland-Swedish Sign Language", "suomenruotsalainen viittomakieli"},
["fub"] = {"Adamawa Fulfulde"},
["fuc"] = {"Pulaar"},
["fud"] = {"East Futuna"},
["fue"] = {"Borgu Fulfulde"},
["fuf"] = {"Pular"},
["fuh"] = {"Western Niger Fulfulde"},
["fui"] = {"Bagirmi Fulfulde"},
["fuj"] = {"Ko"},
["ful"] = {"Fulah"},
["fum"] = {"Fum"},
["fun"] = {"Fulniô"},
["fuq"] = {"Central-Eastern Niger Fulfulde"},
["fur"] = {"Friulian"},
["fut"] = {"Futuna-Aniwa"},
["fuu"] = {"Furu"},
["fuv"] = {"Nigerian Fulfulde"},
["fuy"] = {"Fuyug"},
["fvr"] = {"Fur"},
["fwa"] = {"Fwâi"},
["fwe"] = {"Fwe"},
["gaa"] = {"Ga"},
["gab"] = {"Gabri"},
["gac"] = {"Mixed Great Andamanese"},
["gad"] = {"Gaddang"},
["gae"] = {"Guarequena"},
["gaf"] = {"Gende"},
["gag"] = {"Gagauz"},
["gah"] = {"Alekano"},
["gai"] = {"Borei"},
["gaj"] = {"Gadsup"},
["gak"] = {"Gamkonora"},
["gal"] = {"Galolen"},
["gam"] = {"Kandawo"},
["gan"] = {"Gan Chinese"},
["gao"] = {"Gants"},
["gap"] = {"Gal"},
["gaq"] = {"Gata'"},
["gar"] = {"Galeya"},
["gas"] = {"Adiwasi Garasia"},
["gat"] = {"Kenati"},
["gau"] = {"Mudhili Gadaba"},
["gaw"] = {"Nobonob"},
["gax"] = {"Borana-Arsi-Guji Oromo"},
["gay"] = {"Gayo"},
["gaz"] = {"West Central Oromo"},
["gba"] = {"Gbaya (Central African Republic)"},
["gbb"] = {"Kaytetye"},
["gbd"] = {"Karajarri"},
["gbe"] = {"Niksek"},
["gbf"] = {"Gaikundi"},
["gbg"] = {"Gbanziri"},
["gbh"] = {"Defi Gbe"},
["gbi"] = {"Galela"},
["gbj"] = {"Bodo Gadaba"},
["gbk"] = {"Gaddi"},
["gbl"] = {"Gamit"},
["gbm"] = {"Garhwali"},
["gbn"] = {"Mo'da"},
["gbo"] = {"Northern Grebo"},
["gbp"] = {"Gbaya-Bossangoa"},
["gbq"] = {"Gbaya-Bozoum"},
["gbr"] = {"Gbagyi"},
["gbs"] = {"Gbesi Gbe"},
["gbu"] = {"Gagadu"},
["gbv"] = {"Gbanu"},
["gbw"] = {"Gabi-Gabi"},
["gbx"] = {"Eastern Xwla Gbe"},
["gby"] = {"Gbari"},
["gbz"] = {"Zoroastrian Dari"},
["gcc"] = {"Mali"},
["gcd"] = {"Ganggalida"},
["gce"] = {"Galice"},
["gcf"] = {"Guadeloupean Creole French"},
["gcl"] = {"Grenadian Creole English"},
["gcn"] = {"Gaina"},
["gcr"] = {"Guianese Creole French"},
["gct"] = {"Colonia Tovar German"},
["gda"] = {"Gade Lohar"},
["gdb"] = {"Pottangi Ollar Gadaba"},
["gdc"] = {"Gugu Badhun"},
["gdd"] = {"Gedaged"},
["gde"] = {"Gude"},
["gdf"] = {"Guduf-Gava"},
["gdg"] = {"Ga'dang"},
["gdh"] = {"Gadjerawang", "Gajirrabeng"},
["gdi"] = {"Gundi"},
["gdj"] = {"Gurdjar"},
["gdk"] = {"Gadang"},
["gdl"] = {"Dirasha"},
["gdm"] = {"Laal"},
["gdn"] = {"Umanakaina"},
["gdo"] = {"Ghodoberi"},
["gdq"] = {"Mehri"},
["gdr"] = {"Wipi"},
["gds"] = {"Ghandruk Sign Language"},
["gdt"] = {"Kungardutyi"},
["gdu"] = {"Gudu"},
["gdx"] = {"Godwari"},
["gea"] = {"Geruma"},
["geb"] = {"Kire"},
["gec"] = {"Gboloo Grebo"},
["ged"] = {"Gade"},
["gef"] = {"Gerai"},
["geg"] = {"Gengle"},
["geh"] = {"Hutterisch", "Hutterite German"},
["gei"] = {"Gebe"},
["gej"] = {"Gen"},
["gek"] = {"Ywom"},
["gel"] = {"ut-Ma'in"},
["geq"] = {"Geme"},
["ges"] = {"Geser-Gorom"},
["gev"] = {"Eviya"},
["gew"] = {"Gera"},
["gex"] = {"Garre"},
["gey"] = {"Enya"},
["gez"] = {"Geez"},
["gfk"] = {"Patpatar"},
["gft"] = {"Gafat"},
["gga"] = {"Gao"},
["ggb"] = {"Gbii"},
["ggd"] = {"Gugadj"},
["gge"] = {"Gurr-goni"},
["ggg"] = {"Gurgula"},
["ggk"] = {"Kungarakany"},
["ggl"] = {"Ganglau"},
["ggt"] = {"Gitua"},
["ggu"] = {"Gagu", "Gban"},
["ggw"] = {"Gogodala"},
["gha"] = {"Ghadamès"},
["ghc"] = {"Hiberno-Scottish Gaelic"},
["ghe"] = {"Southern Ghale"},
["ghh"] = {"Northern Ghale"},
["ghk"] = {"Geko Karen"},
["ghl"] = {"Ghulfan"},
["ghn"] = {"Ghanongga"},
["gho"] = {"Ghomara"},
["ghr"] = {"Ghera"},
["ghs"] = {"Guhu-Samane"},
["ght"] = {"Kuke", "Kutang Ghale"},
["gia"] = {"Kija"},
["gib"] = {"Gibanawa"},
["gic"] = {"Gail"},
["gid"] = {"Gidar"},
["gie"] = {"Gaɓogbo", "Guébie"},
["gig"] = {"Goaria"},
["gih"] = {"Githabul"},
["gii"] = {"Girirra"},
["gil"] = {"Gilbertese"},
["gim"] = {"Gimi (Eastern Highlands)"},
["gin"] = {"Hinukh"},
["gip"] = {"Gimi (West New Britain)"},
["giq"] = {"Green Gelao"},
["gir"] = {"Red Gelao"},
["gis"] = {"North Giziga"},
["git"] = {"Gitxsan"},
["giu"] = {"Mulao"},
["giw"] = {"White Gelao"},
["gix"] = {"Gilima"},
["giy"] = {"Giyug"},
["giz"] = {"South Giziga"},
["gjk"] = {"Kachi Koli"},
["gjm"] = {"Gunditjmara"},
["gjn"] = {"Gonja"},
["gjr"] = {"Gurindji Kriol"},
["gju"] = {"Gujari"},
["gka"] = {"Guya"},
["gkd"] = {"Magɨ (Madang Province)"},
["gke"] = {"Ndai"},
["gkn"] = {"Gokana"},
["gko"] = {"Kok-Nar"},
["gkp"] = {"Guinea Kpelle"},
["gku"] = {"ǂUngkue"},
["gla"] = {"Gaelic", "Scottish Gaelic"},
["glb"] = {"Belning"},
["glc"] = {"Bon Gula"},
["gld"] = {"Nanai"},
["gle"] = {"Irish"},
["glg"] = {"Galician"},
["glh"] = {"Northwest Pashai", "Northwest Pashayi"},
["glj"] = {"Gula Iro"},
["glk"] = {"Gilaki"},
["gll"] = {"Garlali"},
["glo"] = {"Galambu"},
["glr"] = {"Glaro-Twabo"},
["glu"] = {"Gula (Chad)"},
["glv"] = {"Manx"},
["glw"] = {"Glavda"},
["gly"] = {"Gule"},
["gma"] = {"Gambera"},
["gmb"] = {"Gula'alaa"},
["gmd"] = {"Mághdì"},
["gmg"] = {"Magɨyi"},
["gmh"] = {"Middle High German (ca. 1050-1500)"},
["gml"] = {"Middle Low German"},
["gmm"] = {"Gbaya-Mbodomo"},
["gmn"] = {"Gimnime"},
["gmr"] = {"Mirning", "Mirniny"},
["gmu"] = {"Gumalu"},
["gmv"] = {"Gamo"},
["gmx"] = {"Magoma"},
["gmy"] = {"Mycenaean Greek"},
["gmz"] = {"Mgbolizhia"},
["gna"] = {"Kaansa"},
["gnb"] = {"Gangte"},
["gnc"] = {"Guanche"},
["gnd"] = {"Zulgo-Gemzek"},
["gne"] = {"Ganang"},
["gng"] = {"Ngangam"},
["gnh"] = {"Lere"},
["gni"] = {"Gooniyandi"},
["gnj"] = {"Ngen"},
["gnk"] = {"ǁGana"},
["gnl"] = {"Gangulu"},
["gnm"] = {"Ginuman"},
["gnn"] = {"Gumatj"},
["gno"] = {"Northern Gondi"},
["gnq"] = {"Gana"},
["gnr"] = {"Gureng Gureng"},
["gnt"] = {"Guntai"},
["gnu"] = {"Gnau"},
["gnw"] = {"Western Bolivian Guaraní"},
["gnz"] = {"Ganzi"},
["goa"] = {"Guro"},
["gob"] = {"Playero"},
["goc"] = {"Gorakor"},
["god"] = {"Godié"},
["goe"] = {"Gongduk"},
["gof"] = {"Gofa"},
["gog"] = {"Gogo"},
["goh"] = {"Old High German (ca. 750-1050)"},
["goi"] = {"Gobasi"},
["goj"] = {"Gowlan"},
["gok"] = {"Gowli"},
["gol"] = {"Gola"},
["gom"] = {"Goan Konkani"},
["gon"] = {"Gondi"},
["goo"] = {"Gone Dau"},
["gop"] = {"Yeretuar"},
["goq"] = {"Gorap"},
["gor"] = {"Gorontalo"},
["gos"] = {"Gronings"},
["got"] = {"Gothic"},
["gou"] = {"Gavar"},
["gov"] = {"Goo"},
["gow"] = {"Gorowa"},
["gox"] = {"Gobu"},
["goy"] = {"Goundo"},
["goz"] = {"Gozarkhani"},
["gpa"] = {"Gupa-Abawa"},
["gpe"] = {"Ghanaian Pidgin English"},
["gpn"] = {"Taiap"},
["gqa"] = {"Ga'anda"},
["gqi"] = {"Guiqiong"},
["gqn"] = {"Guana (Brazil)"},
["gqr"] = {"Gor"},
["gqu"] = {"Qau"},
["gra"] = {"Rajput Garasia"},
["grb"] = {"Grebo"},
["grc"] = {"Ancient Greek (to 1453)"},
["grd"] = {"Guruntum-Mbaaru"},
["grg"] = {"Madi"},
["grh"] = {"Gbiri-Niragu"},
["gri"] = {"Ghari"},
["grj"] = {"Southern Grebo"},
["grm"] = {"Kota Marudu Talantang"},
["grn"] = {"Guarani"},
["gro"] = {"Groma"},
["grq"] = {"Gorovu"},
["grr"] = {"Taznatit"},
["grs"] = {"Gresi"},
["grt"] = {"Garo"},
["gru"] = {"Kistane"},
["grv"] = {"Central Grebo"},
["grw"] = {"Gweda"},
["grx"] = {"Guriaso"},
["gry"] = {"Barclayville Grebo"},
["grz"] = {"Guramalum"},
["gse"] = {"Ghanaian Sign Language"},
["gsg"] = {"German Sign Language"},
["gsl"] = {"Gusilay"},
["gsm"] = {"Guatemalan Sign Language"},
["gsn"] = {"Gusan", "Nema"},
["gso"] = {"Southwest Gbaya"},
["gsp"] = {"Wasembo"},
["gss"] = {"Greek Sign Language"},
["gsw"] = {"Alemannic", "Alsatian", "Swiss German"},
["gta"] = {"Guató"},
["gtu"] = {"Aghu-Tharnggala"},
["gua"] = {"Shiki"},
["gub"] = {"Guajajára"},
["guc"] = {"Wayuu"},
["gud"] = {"Yocoboué Dida"},
["gue"] = {"Gurindji"},
["guf"] = {"Gupapuyngu"},
["gug"] = {"Paraguayan Guaraní"},
["guh"] = {"Guahibo"},
["gui"] = {"Eastern Bolivian Guaraní"},
["guj"] = {"Gujarati"},
["guk"] = {"Gumuz"},
["gul"] = {"Sea Island Creole English"},
["gum"] = {"Guambiano"},
["gun"] = {"Mbyá Guaraní"},
["guo"] = {"Guayabero"},
["gup"] = {"Gunwinggu"},
["guq"] = {"Aché"},
["gur"] = {"Farefare"},
["gus"] = {"Guinean Sign Language"},
["gut"] = {"Maléku Jaíka"},
["guu"] = {"Yanomamö"},
["guw"] = {"Gun"},
["gux"] = {"Gourmanchéma"},
["guz"] = {"Ekegusii", "Gusii"},
["gva"] = {"Guana (Paraguay)"},
["gvc"] = {"Guanano"},
["gve"] = {"Duwet"},
["gvf"] = {"Golin"},
["gvj"] = {"Guajá"},
["gvl"] = {"Gulay"},
["gvm"] = {"Gurmana"},
["gvn"] = {"Kuku-Yalanji"},
["gvo"] = {"Gavião Do Jiparaná"},
["gvp"] = {"Pará Gavião"},
["gvr"] = {"Gurung"},
["gvs"] = {"Gumawana"},
["gvy"] = {"Guyani"},
["gwa"] = {"Mbato"},
["gwb"] = {"Gwa"},
["gwc"] = {"Gawri", "Kalami"},
["gwd"] = {"Gawwada"},
["gwe"] = {"Gweno"},
["gwf"] = {"Gowro"},
["gwg"] = {"Moo"},
["gwi"] = {"Gwichʼin"},
["gwj"] = {"ǀGwi"},
["gwm"] = {"Awngthim"},
["gwn"] = {"Gwandara"},
["gwr"] = {"Gwere"},
["gwt"] = {"Gawar-Bati"},
["gwu"] = {"Guwamu"},
["gww"] = {"Kwini"},
["gwx"] = {"Gua"},
["gxx"] = {"Wè Southern"},
["gya"] = {"Northwest Gbaya"},
["gyb"] = {"Garus"},
["gyd"] = {"Kayardild"},
["gye"] = {"Gyem"},
["gyf"] = {"Gungabula"},
["gyg"] = {"Gbayi"},
["gyi"] = {"Gyele"},
["gyl"] = {"Gayil"},
["gym"] = {"Ngäbere"},
["gyn"] = {"Guyanese Creole English"},
["gyo"] = {"Gyalsumdo"},
["gyr"] = {"Guarayu"},
["gyy"] = {"Gunya"},
["gyz"] = {"Geji", "Gyaazi"},
["gza"] = {"Ganza"},
["gzi"] = {"Gazi"},
["gzn"] = {"Gane"},
["haa"] = {"Hän"},
["hab"] = {"Hanoi Sign Language"},
["hac"] = {"Gurani"},
["had"] = {"Hatam"},
["hae"] = {"Eastern Oromo"},
["haf"] = {"Haiphong Sign Language"},
["hag"] = {"Hanga"},
["hah"] = {"Hahon"},
["hai"] = {"Haida"},
["haj"] = {"Hajong"},
["hak"] = {"Hakka Chinese"},
["hal"] = {"Halang"},
["ham"] = {"Hewa"},
["han"] = {"Hangaza"},
["hao"] = {"Hakö"},
["hap"] = {"Hupla"},
["haq"] = {"Ha"},
["har"] = {"Harari"},
["has"] = {"Haisla"},
["hat"] = {"Haitian", "Haitian Creole"},
["hau"] = {"Hausa"},
["hav"] = {"Havu"},
["haw"] = {"Hawaiian"},
["hax"] = {"Southern Haida"},
["hay"] = {"Haya"},
["haz"] = {"Hazaragi"},
["hba"] = {"Hamba"},
["hbb"] = {"Huba"},
["hbn"] = {"Heiban"},
["hbo"] = {"Ancient Hebrew"},
["hbs"] = {"Serbo-Croatian"},
["hbu"] = {"Habu"},
["hca"] = {"Andaman Creole Hindi"},
["hch"] = {"Huichol"},
["hdn"] = {"Northern Haida"},
["hds"] = {"Honduras Sign Language"},
["hdy"] = {"Hadiyya"},
["hea"] = {"Northern Qiandong Miao"},
["heb"] = {"Hebrew"},
["hed"] = {"Herdé"},
["heg"] = {"Helong"},
["heh"] = {"Hehe"},
["hei"] = {"Heiltsuk"},
["hem"] = {"Hemba"},
["her"] = {"Herero"},
["hgm"] = {"Haiǁom"},
["hgw"] = {"Haigwai"},
["hhi"] = {"Hoia Hoia"},
["hhr"] = {"Kerak"},
["hhy"] = {"Hoyahoya"},
["hia"] = {"Lamang"},
["hib"] = {"Hibito"},
["hid"] = {"Hidatsa"},
["hif"] = {"Fiji Hindi"},
["hig"] = {"Kamwe"},
["hih"] = {"Pamosu"},
["hii"] = {"Hinduri"},
["hij"] = {"Hijuk"},
["hik"] = {"Seit-Kaitetu"},
["hil"] = {"Hiligaynon"},
["hin"] = {"Hindi"},
["hio"] = {"Tsoa"},
["hir"] = {"Himarimã"},
["hit"] = {"Hittite"},
["hiw"] = {"Hiw"},
["hix"] = {"Hixkaryána"},
["hji"] = {"Haji"},
["hka"] = {"Kahe"},
["hke"] = {"Hunde"},
["hkh"] = {"Khah", "Poguli"},
["hkk"] = {"Hunjara-Kaina Ke"},
["hkn"] = {"Mel-Khaonh"},
["hks"] = {"Heung Kong Sau Yue", "Hong Kong Sign Language"},
["hla"] = {"Halia"},
["hlb"] = {"Halbi"},
["hld"] = {"Halang Doan"},
["hle"] = {"Hlersu"},
["hlt"] = {"Matu Chin"},
["hlu"] = {"Hieroglyphic Luwian"},
["hma"] = {"Southern Mashan Hmong", "Southern Mashan Miao"},
["hmb"] = {"Humburi Senni Songhay"},
["hmc"] = {"Central Huishui Hmong", "Central Huishui Miao"},
["hmd"] = {"A-hmaos", "Da-Hua Miao", "Large Flowery Miao"},
["hme"] = {"Eastern Huishui Hmong", "Eastern Huishui Miao"},
["hmf"] = {"Hmong Don"},
["hmg"] = {"Southwestern Guiyang Hmong"},
["hmh"] = {"Southwestern Huishui Hmong", "Southwestern Huishui Miao"},
["hmi"] = {"Northern Huishui Hmong", "Northern Huishui Miao"},
["hmj"] = {"Ge", "Gejia"},
["hmk"] = {"Maek"},
["hml"] = {"Luopohe Hmong", "Luopohe Miao"},
["hmm"] = {"Central Mashan Hmong", "Central Mashan Miao"},
["hmn"] = {"Hmong", "Mong"},
["hmo"] = {"Hiri Motu"},
["hmp"] = {"Northern Mashan Hmong", "Northern Mashan Miao"},
["hmq"] = {"Eastern Qiandong Miao"},
["hmr"] = {"Hmar"},
["hms"] = {"Southern Qiandong Miao"},
["hmt"] = {"Hamtai"},
["hmu"] = {"Hamap"},
["hmv"] = {"Hmong Dô"},
["hmw"] = {"Western Mashan Hmong", "Western Mashan Miao"},
["hmy"] = {"Southern Guiyang Hmong", "Southern Guiyang Miao"},
["hmz"] = {"Hmong Shua", "Sinicized Miao"},
["hna"] = {"Mina (Cameroon)"},
["hnd"] = {"Southern Hindko"},
["hne"] = {"Chhattisgarhi"},
["hng"] = {"Hungu"},
["hnh"] = {"ǁAni"},
["hni"] = {"Hani"},
["hnj"] = {"Hmong Njua", "Mong Leng", "Mong Njua"},
["hnm"] = {"Hainanese"},
["hnn"] = {"Hanunoo"},
["hno"] = {"Northern Hindko"},
["hns"] = {"Caribbean Hindustani"},
["hnu"] = {"Hung"},
["hoa"] = {"Hoava"},
["hob"] = {"Mari (Madang Province)"},
["hoc"] = {"Ho"},
["hod"] = {"Holma"},
["hoe"] = {"Horom"},
["hoh"] = {"Hobyót"},
["hoi"] = {"Holikachuk"},
["hoj"] = {"Hadothi", "Haroti"},
["hol"] = {"Holu"},
["hom"] = {"Homa"},
["hoo"] = {"Holoholo"},
["hop"] = {"Hopi"},
["hor"] = {"Horo"},
["hos"] = {"Ho Chi Minh City Sign Language"},
["hot"] = {"Hote", "Malê"},
["hov"] = {"Hovongan"},
["how"] = {"Honi"},
["hoy"] = {"Holiya"},
["hoz"] = {"Hozo"},
["hpo"] = {"Hpon"},
["hps"] = {"Hawai'i Pidgin Sign Language", "Hawai'i Sign Language (HSL)"},
["hra"] = {"Hrangkhol"},
["hrc"] = {"Niwer Mil"},
["hre"] = {"Hre"},
["hrk"] = {"Haruku"},
["hrm"] = {"Horned Miao"},
["hro"] = {"Haroi"},
["hrp"] = {"Nhirrpi"},
["hrt"] = {"Hértevin"},
["hru"] = {"Hruso"},
["hrv"] = {"Croatian"},
["hrw"] = {"Warwar Feni"},
["hrx"] = {"Hunsrik"},
["hrz"] = {"Harzani"},
["hsb"] = {"Upper Sorbian"},
["hsh"] = {"Hungarian Sign Language"},
["hsl"] = {"Hausa Sign Language"},
["hsn"] = {"Xiang Chinese"},
["hss"] = {"Harsusi"},
["hti"] = {"Hoti"},
["hto"] = {"Minica Huitoto"},
["hts"] = {"Hadza"},
["htu"] = {"Hitu"},
["htx"] = {"Middle Hittite"},
["hub"] = {"Huambisa"},
["huc"] = {"ǂ'Amkhoe", "ǂHua"},
["hud"] = {"Huaulu"},
["hue"] = {"San Francisco Del Mar Huave"},
["huf"] = {"Humene"},
["hug"] = {"Huachipaeri"},
["huh"] = {"Huilliche"},
["hui"] = {"Huli"},
["huj"] = {"Northern Guiyang Hmong", "Northern Guiyang Miao"},
["huk"] = {"Hulung"},
["hul"] = {"Hula"},
["hum"] = {"Hungana"},
["hun"] = {"Hungarian"},
["huo"] = {"Hu"},
["hup"] = {"Hupa"},
["huq"] = {"Tsat"},
["hur"] = {"Halkomelem"},
["hus"] = {"Huastec"},
["hut"] = {"Humla"},
["huu"] = {"Murui Huitoto"},
["huv"] = {"San Mateo Del Mar Huave"},
["huw"] = {"Hukumina"},
["hux"] = {"Nüpode Huitoto"},
["huy"] = {"Hulaulá"},
["huz"] = {"Hunzib"},
["hvc"] = {"Haitian Vodoun Culture Language"},
["hve"] = {"San Dionisio Del Mar Huave"},
["hvk"] = {"Haveke"},
["hvn"] = {"Sabu"},
["hvv"] = {"Santa María Del Mar Huave"},
["hwa"] = {"Wané"},
["hwc"] = {"Hawai'i Creole English", "Hawai'i Pidgin"},
["hwo"] = {"Hwana"},
["hya"] = {"Hya"},
["hye"] = {"Armenian"},
["hyw"] = {"Western Armenian"},
["iai"] = {"Iaai"},
["ian"] = {"Iatmul"},
["iar"] = {"Purari"},
["iba"] = {"Iban"},
["ibb"] = {"Ibibio"},
["ibd"] = {"Iwaidja"},
["ibe"] = {"Akpes"},
["ibg"] = {"Ibanag"},
["ibh"] = {"Bih"},
["ibl"] = {"Ibaloi"},
["ibm"] = {"Agoi"},
["ibn"] = {"Ibino"},
["ibo"] = {"Igbo"},
["ibr"] = {"Ibuoro"},
["ibu"] = {"Ibu"},
["iby"] = {"Ibani"},
["ica"] = {"Ede Ica"},
["ich"] = {"Etkywan"},
["icl"] = {"Icelandic Sign Language"},
["icr"] = {"Islander Creole English"},
["ida"] = {"Idakho-Isukha-Tiriki", "Luidakho-Luisukha-Lutirichi"},
["idb"] = {"Indo-Portuguese"},
["idc"] = {"Ajiya", "Idon"},
["idd"] = {"Ede Idaca"},
["ide"] = {"Idere"},
["idi"] = {"Idi"},
["ido"] = {"Ido"},
["idr"] = {"Indri"},
["ids"] = {"Idesa"},
["idt"] = {"Idaté"},
["idu"] = {"Idoma"},
["ifa"] = {"Amganad Ifugao"},
["ifb"] = {"Ayangan Ifugao", "Batad Ifugao"},
["ife"] = {"Ifè"},
["iff"] = {"Ifo"},
["ifk"] = {"Tuwali Ifugao"},
["ifm"] = {"Teke-Fuumu"},
["ifu"] = {"Mayoyao Ifugao"},
["ify"] = {"Keley-I Kallahan"},
["igb"] = {"Ebira"},
["ige"] = {"Igede"},
["igg"] = {"Igana"},
["igl"] = {"Igala"},
["igm"] = {"Kanggape"},
["ign"] = {"Ignaciano"},
["igo"] = {"Isebe"},
["igs"] = {"Interglossa"},
["igw"] = {"Igwe"},
["ihb"] = {"Iha Based Pidgin"},
["ihi"] = {"Ihievbe"},
["ihp"] = {"Iha"},
["ihw"] = {"Bidhawal"},
["iii"] = {"Nuosu", "Sichuan Yi"},
["iin"] = {"Thiin"},
["ijc"] = {"Izon"},
["ije"] = {"Biseni"},
["ijj"] = {"Ede Ije"},
["ijn"] = {"Kalabari"},
["ijs"] = {"Southeast Ijo"},
["ike"] = {"Eastern Canadian Inuktitut"},
["ikh"] = {"Ikhin-Arokho"},
["iki"] = {"Iko"},
["ikk"] = {"Ika"},
["ikl"] = {"Ikulu"},
["iko"] = {"Olulumo-Ikom"},
["ikp"] = {"Ikpeshi"},
["ikr"] = {"Ikaranggal"},
["iks"] = {"Inuit Sign Language"},
["ikt"] = {"Inuinnaqtun", "Western Canadian Inuktitut"},
["iku"] = {"Inuktitut"},
["ikv"] = {"Iku-Gora-Ankwa"},
["ikw"] = {"Ikwere"},
["ikx"] = {"Ik"},
["ikz"] = {"Ikizu"},
["ila"] = {"Ile Ape"},
["ilb"] = {"Ila"},
["ile"] = {"Interlingue", "Occidental"},
["ilg"] = {"Garig-Ilgar"},
["ili"] = {"Ili Turki"},
["ilk"] = {"Ilongot"},
["ilm"] = {"Iranun (Malaysia)"},
["ilo"] = {"Iloko"},
["ilp"] = {"Iranun (Philippines)"},
["ils"] = {"International Sign"},
["ilu"] = {"Ili'uun"},
["ilv"] = {"Ilue"},
["ima"] = {"Mala Malasar"},
["imi"] = {"Anamgura"},
["iml"] = {"Miluk"},
["imn"] = {"Imonda"},
["imo"] = {"Imbongu"},
["imr"] = {"Imroing"},
["ims"] = {"Marsian"},
["imt"] = {"Imotong"},
["imy"] = {"Milyan"},
["ina"] = {"Interlingua (International Auxiliary Language Association)"},
["inb"] = {"Inga"},
["ind"] = {"Indonesian"},
["ing"] = {"Degexit'an"},
["inh"] = {"Ingush"},
["inj"] = {"Jungle Inga"},
["inl"] = {"Indonesian Sign Language"},
["inm"] = {"Minaean"},
["inn"] = {"Isinai"},
["ino"] = {"Inoke-Yate"},
["inp"] = {"Iñapari"},
["ins"] = {"Indian Sign Language"},
["int"] = {"Intha"},
["inz"] = {"Ineseño"},
["ior"] = {"Inor"},
["iou"] = {"Tuma-Irumu"},
["iow"] = {"Iowa-Oto"},
["ipi"] = {"Ipili"},
["ipk"] = {"Inupiaq"},
["ipo"] = {"Ipiko"},
["iqu"] = {"Iquito"},
["iqw"] = {"Ikwo"},
["ire"] = {"Iresim"},
["irh"] = {"Irarutu"},
["iri"] = {"Irigwe", "Rigwe"},
["irk"] = {"Iraqw"},
["irn"] = {"Irántxe"},
["irr"] = {"Ir"},
["iru"] = {"Irula"},
["irx"] = {"Kamberau"},
["iry"] = {"Iraya"},
["isa"] = {"Isabi"},
["isc"] = {"Isconahua"},
["isd"] = {"Isnag"},
["ise"] = {"Italian Sign Language"},
["isg"] = {"Irish Sign Language"},
["ish"] = {"Esan"},
["isi"] = {"Nkem-Nkum"},
["isk"] = {"Ishkashimi"},
["isl"] = {"Icelandic"},
["ism"] = {"Masimasi"},
["isn"] = {"Isanzu"},
["iso"] = {"Isoko"},
["isr"] = {"Israeli Sign Language"},
["ist"] = {"Istriot"},
["isu"] = {"Isu (Menchum Division)"},
["isv"] = {"Interslavic"},
["ita"] = {"Italian"},
["itb"] = {"Binongan Itneg"},
["itd"] = {"Southern Tidung"},
["ite"] = {"Itene"},
["iti"] = {"Inlaod Itneg"},
["itk"] = {"Judeo-Italian"},
["itl"] = {"Itelmen"},
["itm"] = {"Itu Mbon Uzo"},
["ito"] = {"Itonama"},
["itr"] = {"Iteri"},
["its"] = {"Isekiri"},
["itt"] = {"Maeng Itneg"},
["itv"] = {"Itawit"},
["itw"] = {"Ito"},
["itx"] = {"Itik"},
["ity"] = {"Moyadan Itneg"},
["itz"] = {"Itzá"},
["ium"] = {"Iu Mien"},
["ivb"] = {"Ibatan"},
["ivv"] = {"Ivatan"},
["iwk"] = {"I-Wak"},
["iwm"] = {"Iwam"},
["iwo"] = {"Iwur"},
["iws"] = {"Sepik Iwam"},
["ixc"] = {"Ixcatec"},
["ixl"] = {"Ixil"},
["iya"] = {"Iyayu"},
["iyo"] = {"Mesaka"},
["iyx"] = {"Yaka (Congo)"},
["izh"] = {"Ingrian"},
["izm"] = {"Kizamani"},
["izr"] = {"Izere"},
["izz"] = {"Izii"},
["jaa"] = {"Jamamadí"},
["jab"] = {"Hyam"},
["jac"] = {"Jakalteko", "Popti'"},
["jad"] = {"Jahanka"},
["jae"] = {"Yabem"},
["jaf"] = {"Jara"},
["jah"] = {"Jah Hut"},
["jaj"] = {"Zazao"},
["jak"] = {"Jakun"},
["jal"] = {"Yalahatan"},
["jam"] = {"Jamaican Creole English"},
["jan"] = {"Jandai"},
["jao"] = {"Yanyuwa"},
["jaq"] = {"Yaqay"},
["jas"] = {"New Caledonian Javanese"},
["jat"] = {"Jakati"},
["jau"] = {"Yaur"},
["jav"] = {"Javanese"},
["jax"] = {"Jambi Malay"},
["jay"] = {"Nhangu", "Yan-nhangu"},
["jaz"] = {"Jawe"},
["jbe"] = {"Judeo-Berber"},
["jbi"] = {"Badjiri"},
["jbj"] = {"Arandai"},
["jbk"] = {"Barikewa"},
["jbm"] = {"Bijim"},
["jbn"] = {"Nafusi"},
["jbo"] = {"Lojban"},
["jbr"] = {"Jofotek-Bromnya"},
["jbt"] = {"Jabutí"},
["jbu"] = {"Jukun Takum"},
["jbw"] = {"Yawijibaya"},
["jcs"] = {"Jamaican Country Sign Language"},
["jct"] = {"Krymchak"},
["jda"] = {"Jad"},
["jdg"] = {"Jadgali"},
["jdt"] = {"Judeo-Tat"},
["jeb"] = {"Jebero"},
["jee"] = {"Jerung"},
["jeh"] = {"Jeh"},
["jei"] = {"Yei"},
["jek"] = {"Jeri Kuo"},
["jel"] = {"Yelmek"},
["jen"] = {"Dza"},
["jer"] = {"Jere"},
["jet"] = {"Manem"},
["jeu"] = {"Jonkor Bourmataguil"},
["jgb"] = {"Ngbee"},
["jge"] = {"Judeo-Georgian"},
["jgk"] = {"Gwak"},
["jgo"] = {"Ngomba"},
["jhi"] = {"Jehai"},
["jhs"] = {"Jhankot Sign Language"},
["jia"] = {"Jina"},
["jib"] = {"Jibu"},
["jic"] = {"Tol"},
["jid"] = {"Bu (Kaduna State)"},
["jie"] = {"Jilbe"},
["jig"] = {"Djingili", "Jingulu"},
["jih"] = {"Shangzhai", "sTodsde"},
["jii"] = {"Jiiddu"},
["jil"] = {"Jilim"},
["jim"] = {"Jimi (Cameroon)"},
["jio"] = {"Jiamao"},
["jiq"] = {"Guanyinqiao", "Lavrung"},
["jit"] = {"Jita"},
["jiu"] = {"Youle Jinuo"},
["jiv"] = {"Shuar"},
["jiy"] = {"Buyuan Jinuo"},
["jje"] = {"Jejueo"},
["jjr"] = {"Bankal"},
["jka"] = {"Kaera"},
["jkm"] = {"Mobwa Karen"},
["jko"] = {"Kubo"},
["jkp"] = {"Paku Karen"},
["jkr"] = {"Koro (India)"},
["jks"] = {"Amami Koniya Sign Language"},
["jku"] = {"Labir"},
["jle"] = {"Ngile"},
["jls"] = {"Jamaican Sign Language"},
["jma"] = {"Dima"},
["jmb"] = {"Zumbun"},
["jmc"] = {"Machame"},
["jmd"] = {"Yamdena"},
["jmi"] = {"Jimi (Nigeria)"},
["jml"] = {"Jumli"},
["jmn"] = {"Makuri Naga"},
["jmr"] = {"Kamara"},
["jms"] = {"Mashi (Nigeria)"},
["jmw"] = {"Mouwase"},
["jmx"] = {"Western Juxtlahuaca Mixtec"},
["jna"] = {"Jangshung"},
["jnd"] = {"Jandavra"},
["jng"] = {"Yangman"},
["jni"] = {"Janji"},
["jnj"] = {"Yemsa"},
["jnl"] = {"Rawat"},
["jns"] = {"Jaunsari"},
["job"] = {"Joba"},
["jod"] = {"Wojenaka"},
["jog"] = {"Jogi"},
["jor"] = {"Jorá"},
["jos"] = {"Jordanian Sign Language"},
["jow"] = {"Jowulu"},
["jpa"] = {"Jewish Palestinian Aramaic"},
["jpn"] = {"Japanese"},
["jpr"] = {"Judeo-Persian"},
["jqr"] = {"Jaqaru"},
["jra"] = {"Jarai"},
["jrb"] = {"Judeo-Arabic"},
["jrr"] = {"Jiru"},
["jrt"] = {"Jakattoe"},
["jru"] = {"Japrería"},
["jsl"] = {"Japanese Sign Language"},
["jua"] = {"Júma"},
["jub"] = {"Wannu"},
["juc"] = {"Jurchen"},
["jud"] = {"Worodougou"},
["juh"] = {"Hõne"},
["jui"] = {"Ngadjuri"},
["juk"] = {"Wapan"},
["jul"] = {"Jirel"},
["jum"] = {"Jumjum"},
["jun"] = {"Juang"},
["juo"] = {"Jiba"},
["jup"] = {"Hupdë"},
["jur"] = {"Jurúna"},
["jus"] = {"Jumla Sign Language"},
["jut"] = {"Jutish"},
["juu"] = {"Ju"},
["juw"] = {"Wãpha"},
["juy"] = {"Juray"},
["jvd"] = {"Javindo"},
["jvn"] = {"Caribbean Javanese"},
["jwi"] = {"Jwira-Pepesa"},
["jya"] = {"Jiarong"},
["jye"] = {"Judeo-Yemeni Arabic"},
["jyy"] = {"Jaya"},
["kaa"] = {"Karakalpak", "Kara-Kalpak"},
["kab"] = {"Kabyle"},
["kac"] = {"Jingpho", "Kachin"},
["kad"] = {"Adara"},
["kae"] = {"Ketangalan"},
["kaf"] = {"Katso"},
["kag"] = {"Kajaman"},
["kah"] = {"Kara (Central African Republic)"},
["kai"] = {"Karekare"},
["kaj"] = {"Jju"},
["kak"] = {"Kalanguya", "Kayapa Kallahan"},
["kal"] = {"Greenlandic", "Kalaallisut"},
["kam"] = {"Kamba (Kenya)"},
["kan"] = {"Kannada"},
["kao"] = {"Xaasongaxango"},
["kap"] = {"Bezhta"},
["kaq"] = {"Capanahua"},
["kas"] = {"Kashmiri"},
["kat"] = {"Georgian"},
["kau"] = {"Kanuri"},
["kav"] = {"Katukína"},
["kaw"] = {"Kawi"},
["kax"] = {"Kao"},
["kay"] = {"Kamayurá"},
["kaz"] = {"Kazakh"},
["kba"] = {"Kalarko"},
["kbb"] = {"Kaxuiâna"},
["kbc"] = {"Kadiwéu"},
["kbd"] = {"Kabardian"},
["kbe"] = {"Kanju"},
["kbg"] = {"Khamba"},
["kbh"] = {"Camsá"},
["kbi"] = {"Kaptiau"},
["kbj"] = {"Kari"},
["kbk"] = {"Grass Koiari"},
["kbl"] = {"Kanembu"},
["kbm"] = {"Iwal"},
["kbn"] = {"Kare (Central African Republic)"},
["kbo"] = {"Keliko"},
["kbp"] = {"Kabiyè"},
["kbq"] = {"Kamano"},
["kbr"] = {"Kafa"},
["kbs"] = {"Kande"},
["kbt"] = {"Abadi"},
["kbu"] = {"Kabutra"},
["kbv"] = {"Dera (Indonesia)"},
["kbw"] = {"Kaiep"},
["kbx"] = {"Ap Ma"},
["kby"] = {"Manga Kanuri"},
["kbz"] = {"Duhwa"},
["kca"] = {"Khanty"},
["kcb"] = {"Kawacha"},
["kcc"] = {"Lubila"},
["kcd"] = {"Ngkâlmpw Kanum"},
["kce"] = {"Kaivi"},
["kcf"] = {"Ukaan"},
["kcg"] = {"Tyap"},
["kch"] = {"Vono"},
["kci"] = {"Kamantan", "Ngyian"},
["kcj"] = {"Kobiana"},
["kck"] = {"Kalanga"},
["kcl"] = {"Kala", "Kela (Papua New Guinea)"},
["kcm"] = {"Gula (Central African Republic)"},
["kcn"] = {"Nubi"},
["kco"] = {"Kinalakna"},
["kcp"] = {"Kanga"},
["kcq"] = {"Kamo"},
["kcr"] = {"Katla"},
["kcs"] = {"Koenoem"},
["kct"] = {"Kaian"},
["kcu"] = {"Kami (Tanzania)"},
["kcv"] = {"Kete"},
["kcw"] = {"Kabwari"},
["kcx"] = {"Kachama-Ganjule"},
["kcy"] = {"Korandje"},
["kcz"] = {"Konongo"},
["kda"] = {"Worimi"},
["kdc"] = {"Kutu"},
["kdd"] = {"Yankunytjatjara"},
["kde"] = {"Makonde"},
["kdf"] = {"Mamusi"},
["kdg"] = {"Seba"},
["kdh"] = {"Tem"},
["kdi"] = {"Kumam"},
["kdj"] = {"Karamojong"},
["kdk"] = {"Kwényi", "Numèè"},
["kdl"] = {"Tsikimba"},
["kdm"] = {"Kagoma"},
["kdn"] = {"Kunda"},
["kdp"] = {"Kaningdon-Nindem"},
["kdq"] = {"Koch"},
["kdr"] = {"Karaim"},
["kdt"] = {"Kuy"},
["kdu"] = {"Kadaru"},
["kdw"] = {"Koneraw"},
["kdx"] = {"Kam"},
["kdy"] = {"Keder", "Keijar"},
["kdz"] = {"Kwaja"},
["kea"] = {"Kabuverdianu"},
["keb"] = {"Kélé"},
["kec"] = {"Keiga"},
["ked"] = {"Kerewe"},
["kee"] = {"Eastern Keres"},
["kef"] = {"Kpessi"},
["keg"] = {"Tese"},
["keh"] = {"Keak"},
["kei"] = {"Kei"},
["kej"] = {"Kadar"},
["kek"] = {"Kekchí"},
["kel"] = {"Kela (Democratic Republic of Congo)"},
["kem"] = {"Kemak"},
["ken"] = {"Kenyang"},
["keo"] = {"Kakwa"},
["kep"] = {"Kaikadi"},
["keq"] = {"Kamar"},
["ker"] = {"Kera"},
["kes"] = {"Kugbo"},
["ket"] = {"Ket"},
["keu"] = {"Akebu"},
["kev"] = {"Kanikkaran"},
["kew"] = {"West Kewa"},
["kex"] = {"Kukna"},
["key"] = {"Kupia"},
["kez"] = {"Kukele"},
["kfa"] = {"Kodava"},
["kfb"] = {"Northwestern Kolami"},
["kfc"] = {"Konda-Dora"},
["kfd"] = {"Korra Koraga"},
["kfe"] = {"Kota (India)"},
["kff"] = {"Koya"},
["kfg"] = {"Kudiya"},
["kfh"] = {"Kurichiya"},
["kfi"] = {"Kannada Kurumba"},
["kfj"] = {"Kemiehua"},
["kfk"] = {"Kinnauri"},
["kfl"] = {"Kung"},
["kfm"] = {"Khunsari"},
["kfn"] = {"Kuk"},
["kfo"] = {"Koro (Côte d'Ivoire)"},
["kfp"] = {"Korwa"},
["kfq"] = {"Korku"},
["kfr"] = {"Kachhi", "Kutchi"},
["kfs"] = {"Bilaspuri"},
["kft"] = {"Kanjari"},
["kfu"] = {"Katkari"},
["kfv"] = {"Kurmukar"},
["kfw"] = {"Kharam Naga"},
["kfx"] = {"Kullu Pahari"},
["kfy"] = {"Kumaoni"},
["kfz"] = {"Koromfé"},
["kga"] = {"Koyaga"},
["kgb"] = {"Kawe"},
["kge"] = {"Komering"},
["kgf"] = {"Kube"},
["kgg"] = {"Kusunda"},
["kgi"] = {"Selangor Sign Language"},
["kgj"] = {"Gamale Kham"},
["kgk"] = {"Kaiwá"},
["kgl"] = {"Kunggari"},
["kgn"] = {"Karingani"},
["kgo"] = {"Krongo"},
["kgp"] = {"Kaingang"},
["kgq"] = {"Kamoro"},
["kgr"] = {"Abun"},
["kgs"] = {"Kumbainggar"},
["kgt"] = {"Somyev"},
["kgu"] = {"Kobol"},
["kgv"] = {"Karas"},
["kgw"] = {"Karon Dori"},
["kgx"] = {"Kamaru"},
["kgy"] = {"Kyerung"},
["kha"] = {"Khasi"},
["khb"] = {"Lü"},
["khc"] = {"Tukang Besi North"},
["khd"] = {"Bädi Kanum"},
["khe"] = {"Korowai"},
["khf"] = {"Khuen"},
["khg"] = {"Khams Tibetan"},
["khh"] = {"Kehu"},
["khj"] = {"Kuturmi"},
["khk"] = {"Halh Mongolian"},
["khl"] = {"Lusi"},
["khm"] = {"Central Khmer", "Khmer"},
["khn"] = {"Khandesi"},
["kho"] = {"Khotanese", "Sakan"},
["khp"] = {"Kapauri", "Kapori"},
["khq"] = {"Koyra Chiini Songhay"},
["khr"] = {"Kharia"},
["khs"] = {"Kasua"},
["kht"] = {"Khamti"},
["khu"] = {"Nkhumbi"},
["khv"] = {"Khvarshi"},
["khw"] = {"Khowar"},
["khx"] = {"Kanu"},
["khy"] = {"Kele (Democratic Republic of Congo)"},
["khz"] = {"Keapara"},
["kia"] = {"Kim"},
["kib"] = {"Koalib"},
["kic"] = {"Kickapoo"},
["kid"] = {"Koshin"},
["kie"] = {"Kibet"},
["kif"] = {"Eastern Parbate Kham"},
["kig"] = {"Kimaama", "Kimaghima"},
["kih"] = {"Kilmeri"},
["kii"] = {"Kitsai"},
["kij"] = {"Kilivila"},
["kik"] = {"Gikuyu", "Kikuyu"},
["kil"] = {"Kariya"},
["kim"] = {"Karagas"},
["kin"] = {"Kinyarwanda"},
["kio"] = {"Kiowa"},
["kip"] = {"Sheshi Kham"},
["kiq"] = {"Kosadle", "Kosare"},
["kir"] = {"Kirghiz", "Kyrgyz"},
["kis"] = {"Kis"},
["kit"] = {"Agob"},
["kiu"] = {"Kirmanjki (individual language)"},
["kiv"] = {"Kimbu"},
["kiw"] = {"Northeast Kiwai"},
["kix"] = {"Khiamniungan Naga"},
["kiy"] = {"Kirikiri"},
["kiz"] = {"Kisi"},
["kja"] = {"Mlap"},
["kjb"] = {"Kanjobal", "Q'anjob'al"},
["kjc"] = {"Coastal Konjo"},
["kjd"] = {"Southern Kiwai"},
["kje"] = {"Kisar"},
["kjg"] = {"Khmu"},
["kjh"] = {"Khakas"},
["kji"] = {"Zabana"},
["kjj"] = {"Khinalugh"},
["kjk"] = {"Highland Konjo"},
["kjl"] = {"Western Parbate Kham"},
["kjm"] = {"Kháng"},
["kjn"] = {"Kunjen"},
["kjo"] = {"Harijan Kinnauri"},
["kjp"] = {"Pwo Eastern Karen"},
["kjq"] = {"Western Keres"},
["kjr"] = {"Kurudu"},
["kjs"] = {"East Kewa"},
["kjt"] = {"Phrae Pwo Karen"},
["kju"] = {"Kashaya"},
["kjv"] = {"Kaikavian Literary Language"},
["kjx"] = {"Ramopa"},
["kjy"] = {"Erave"},
["kjz"] = {"Bumthangkha"},
["kka"] = {"Kakanda"},
["kkb"] = {"Kwerisa"},
["kkc"] = {"Odoodee"},
["kkd"] = {"Kinuku"},
["kke"] = {"Kakabe"},
["kkf"] = {"Kalaktang Monpa"},
["kkg"] = {"Mabaka Valley Kalinga"},
["kkh"] = {"Khün"},
["kki"] = {"Kagulu"},
["kkj"] = {"Kako"},
["kkk"] = {"Kokota"},
["kkl"] = {"Kosarek Yale"},
["kkm"] = {"Kiong"},
["kkn"] = {"Kon Keu"},
["kko"] = {"Karko"},
["kkp"] = {"Gugubera", "Koko-Bera"},
["kkq"] = {"Kaeku"},
["kkr"] = {"Kir-Balar"},
["kks"] = {"Giiwo"},
["kkt"] = {"Koi"},
["kku"] = {"Tumi"},
["kkv"] = {"Kangean"},
["kkw"] = {"Teke-Kukuya"},
["kkx"] = {"Kohin"},
["kky"] = {"Guguyimidjir", "Guugu Yimidhirr"},
["kkz"] = {"Kaska"},
["kla"] = {"Klamath-Modoc"},
["klb"] = {"Kiliwa"},
["klc"] = {"Kolbila"},
["kld"] = {"Gamilaraay"},
["kle"] = {"Kulung (Nepal)"},
["klf"] = {"Kendeje"},
["klg"] = {"Tagakaulo"},
["klh"] = {"Weliki"},
["kli"] = {"Kalumpang"},
["klj"] = {"Khalaj"},
["klk"] = {"Kono (Nigeria)"},
["kll"] = {"Kagan Kalagan"},
["klm"] = {"Migum"},
["kln"] = {"Kalenjin"},
["klo"] = {"Kapya"},
["klp"] = {"Kamasa"},
["klq"] = {"Rumu"},
["klr"] = {"Khaling"},
["kls"] = {"Kalasha"},
["klt"] = {"Nukna"},
["klu"] = {"Klao"},
["klv"] = {"Maskelynes"},
["klw"] = {"Lindu", "Tado"},
["klx"] = {"Koluwawa"},
["kly"] = {"Kalao"},
["klz"] = {"Kabola"},
["kma"] = {"Konni"},
["kmb"] = {"Kimbundu"},
["kmc"] = {"Southern Dong"},
["kmd"] = {"Majukayang Kalinga"},
["kme"] = {"Bakole"},
["kmf"] = {"Kare (Papua New Guinea)"},
["kmg"] = {"Kâte"},
["kmh"] = {"Kalam"},
["kmi"] = {"Kami (Nigeria)"},
["kmj"] = {"Kumarbhag Paharia"},
["kmk"] = {"Limos Kalinga"},
["kml"] = {"Tanudan Kalinga"},
["kmm"] = {"Kom (India)"},
["kmn"] = {"Awtuw"},
["kmo"] = {"Kwoma"},
["kmp"] = {"Gimme"},
["kmq"] = {"Kwama"},
["kmr"] = {"Northern Kurdish"},
["kms"] = {"Kamasau"},
["kmt"] = {"Kemtuik"},
["kmu"] = {"Kanite"},
["kmv"] = {"Karipúna Creole French"},
["kmw"] = {"Komo (Democratic Republic of Congo)"},
["kmx"] = {"Waboda"},
["kmy"] = {"Koma"},
["kmz"] = {"Khorasani Turkish"},
["kna"] = {"Dera (Nigeria)"},
["knb"] = {"Lubuagan Kalinga"},
["knc"] = {"Central Kanuri"},
["knd"] = {"Konda"},
["kne"] = {"Kankanaey"},
["knf"] = {"Mankanya"},
["kng"] = {"Koongo"},
["kni"] = {"Kanufi"},
["knj"] = {"Western Kanjobal"},
["knk"] = {"Kuranko"},
["knl"] = {"Keninjal"},
["knm"] = {"Kanamarí"},
["knn"] = {"Konkani (individual language)"},
["kno"] = {"Kono (Sierra Leone)"},
["knp"] = {"Kwanja"},
["knq"] = {"Kintaq"},
["knr"] = {"Kaningra"},
["kns"] = {"Kensiu"},
["knt"] = {"Panoan Katukína"},
["knu"] = {"Kono (Guinea)"},
["knv"] = {"Tabo"},
["knw"] = {"Kung-Ekoka"},
["knx"] = {"Kendayan", "Salako"},
["kny"] = {"Kanyok"},
["knz"] = {"Kalamsé"},
["koa"] = {"Konomala"},
["koc"] = {"Kpati"},
["kod"] = {"Kodi"},
["koe"] = {"Kacipo-Bale Suri"},
["kof"] = {"Kubi"},
["kog"] = {"Cogui", "Kogi"},
["koh"] = {"Koyo"},
["koi"] = {"Komi-Permyak"},
["kok"] = {"Konkani (macrolanguage)"},
["kol"] = {"Kol (Papua New Guinea)"},
["kom"] = {"Komi"},
["kon"] = {"Kongoish"},
["koo"] = {"Konzo"},
["kop"] = {"Waube"},
["koq"] = {"Kota (Gabon)"},
["kor"] = {"Korean"},
["kos"] = {"Kosraean"},
["kot"] = {"Lagwan"},
["kou"] = {"Koke"},
["kov"] = {"Kudu-Camo"},
["kow"] = {"Kugama"},
["koy"] = {"Koyukon"},
["koz"] = {"Korak"},
["kpa"] = {"Kutto"},
["kpb"] = {"Mullu Kurumba"},
["kpc"] = {"Curripaco"},
["kpd"] = {"Koba"},
["kpe"] = {"Kpelle"},
["kpf"] = {"Komba"},
["kpg"] = {"Kapingamarangi"},
["kph"] = {"Kplang"},
["kpi"] = {"Kofei"},
["kpj"] = {"Karajá"},
["kpk"] = {"Kpan"},
["kpl"] = {"Kpala"},
["kpm"] = {"Koho"},
["kpn"] = {"Kepkiriwát"},
["kpo"] = {"Ikposo"},
["kpq"] = {"Korupun-Sela"},
["kpr"] = {"Korafe-Yegha"},
["kps"] = {"Tehit"},
["kpt"] = {"Karata"},
["kpu"] = {"Kafoa"},
["kpv"] = {"Komi-Zyrian"},
["kpw"] = {"Kobon"},
["kpx"] = {"Mountain Koiali"},
["kpy"] = {"Koryak"},
["kpz"] = {"Kupsabiny"},
["kqa"] = {"Mum"},
["kqb"] = {"Kovai"},
["kqc"] = {"Doromu-Koki"},
["kqd"] = {"Koy Sanjaq Surat"},
["kqe"] = {"Kalagan"},
["kqf"] = {"Kakabai"},
["kqg"] = {"Khe"},
["kqh"] = {"Kisankasa"},
["kqi"] = {"Koitabu"},
["kqj"] = {"Koromira"},
["kqk"] = {"Kotafon Gbe"},
["kql"] = {"Kyenele"},
["kqm"] = {"Khisa"},
["kqn"] = {"Kaonde"},
["kqo"] = {"Eastern Krahn"},
["kqp"] = {"Kimré"},
["kqq"] = {"Krenak"},
["kqr"] = {"Kimaragang"},
["kqs"] = {"Northern Kissi"},
["kqt"] = {"Klias River Kadazan"},
["kqu"] = {"Seroa"},
["kqv"] = {"Okolod"},
["kqw"] = {"Kandas"},
["kqx"] = {"Mser"},
["kqy"] = {"Koorete"},
["kqz"] = {"Korana"},
["kra"] = {"Kumhali"},
["krb"] = {"Karkin"},
["krc"] = {"Karachay-Balkar"},
["krd"] = {"Kairui-Midiki"},
["kre"] = {"Panará"},
["krf"] = {"Koro (Vanuatu)"},
["krh"] = {"Kurama"},
["kri"] = {"Krio"},
["krj"] = {"Kinaray-A"},
["krk"] = {"Kerek"},
["krl"] = {"Karelian"},
["krn"] = {"Sapo"},
["krp"] = {"Durop"},
["krr"] = {"Krung"},
["krs"] = {"Gbaya (Sudan)"},
["krt"] = {"Tumari Kanuri"},
["kru"] = {"Kurukh"},
["krv"] = {"Kavet"},
["krw"] = {"Western Krahn"},
["krx"] = {"Karon"},
["kry"] = {"Kryts"},
["krz"] = {"Sota Kanum"},
["ksb"] = {"Shambala"},
["ksc"] = {"Southern Kalinga"},
["ksd"] = {"Kuanua"},
["kse"] = {"Kuni"},
["ksf"] = {"Bafia"},
["ksg"] = {"Kusaghe"},
["ksh"] = {"Kölsch"},
["ksi"] = {"I'saka", "Krisa"},
["ksj"] = {"Uare"},
["ksk"] = {"Kansa"},
["ksl"] = {"Kumalu"},
["ksm"] = {"Kumba"},
["ksn"] = {"Kasiguranin"},
["kso"] = {"Kofa"},
["ksp"] = {"Kaba"},
["ksq"] = {"Kwaami"},
["ksr"] = {"Borong"},
["kss"] = {"Southern Kisi"},
["kst"] = {"Winyé"},
["ksu"] = {"Khamyang"},
["ksv"] = {"Kusu"},
["ksw"] = {"S'gaw Karen"},
["ksx"] = {"Kedang"},
["ksy"] = {"Kharia Thar"},
["ksz"] = {"Kodaku"},
["kta"] = {"Katua"},
["ktb"] = {"Kambaata"},
["ktc"] = {"Kholok"},
["ktd"] = {"Kokata", "Kukatha"},
["kte"] = {"Nubri"},
["ktf"] = {"Kwami"},
["ktg"] = {"Kalkutung"},
["kth"] = {"Karanga"},
["kti"] = {"North Muyu"},
["ktj"] = {"Plapo Krumen"},
["ktk"] = {"Kaniet"},
["ktl"] = {"Koroshi"},
["ktm"] = {"Kurti"},
["ktn"] = {"Karitiâna"},
["kto"] = {"Kuot"},
["ktp"] = {"Kaduo"},
["ktq"] = {"Katabaga"},
["kts"] = {"South Muyu"},
["ktt"] = {"Ketum"},
["ktu"] = {"Kitubish (Pobblaght Gheynlagh y Chongo)"},
["ktv"] = {"Eastern Katu"},
["ktw"] = {"Kato"},
["ktx"] = {"Kaxararí"},
["kty"] = {"Kango (Bas-Uélé District)"},
["ktz"] = {"Juǀʼhoan", "Juǀʼhoansi"},
["kua"] = {"Kuanyama", "Kwanyama"},
["kub"] = {"Kutep"},
["kuc"] = {"Kwinsu"},
["kud"] = {"'Auhelawa"},
["kue"] = {"Kuman (Papua New Guinea)"},
["kuf"] = {"Western Katu"},
["kug"] = {"Kupa"},
["kuh"] = {"Kushi"},
["kui"] = {"Kalapalo", "Kuikúro-Kalapálo"},
["kuj"] = {"Kuria"},
["kuk"] = {"Kepo'"},
["kul"] = {"Kulere"},
["kum"] = {"Kumyk"},
["kun"] = {"Kunama"},
["kuo"] = {"Kumukio"},
["kup"] = {"Kunimaipa"},
["kuq"] = {"Karipuna"},
["kur"] = {"Kurdish"},
["kus"] = {"Kusaal"},
["kut"] = {"Kutenai"},
["kuu"] = {"Upper Kuskokwim"},
["kuv"] = {"Kur"},
["kuw"] = {"Kpagua"},
["kux"] = {"Kukatja"},
["kuy"] = {"Kuuku-Ya'u"},
["kuz"] = {"Kunza"},
["kva"] = {"Bagvalal"},
["kvb"] = {"Kubu"},
["kvc"] = {"Kove"},
["kvd"] = {"Kui (Indonesia)"},
["kve"] = {"Kalabakan"},
["kvf"] = {"Kabalai"},
["kvg"] = {"Kuni-Boazi"},
["kvh"] = {"Komodo"},
["kvi"] = {"Kwang"},
["kvj"] = {"Psikye"},
["kvk"] = {"Korean Sign Language"},
["kvl"] = {"Kayaw"},
["kvm"] = {"Kendem"},
["kvn"] = {"Border Kuna"},
["kvo"] = {"Dobel"},
["kvp"] = {"Kompane"},
["kvq"] = {"Geba Karen"},
["kvr"] = {"Kerinci"},
["kvt"] = {"Lahta", "Lahta Karen"},
["kvu"] = {"Yinbaw Karen"},
["kvv"] = {"Kola"},
["kvw"] = {"Wersing"},
["kvx"] = {"Parkari Koli"},
["kvy"] = {"Yintale", "Yintale Karen"},
["kvz"] = {"Tsakwambo", "Tsaukambo"},
["kwa"] = {"Dâw"},
["kwb"] = {"Kwa"},
["kwc"] = {"Likwala"},
["kwd"] = {"Kwaio"},
["kwe"] = {"Kwerba"},
["kwf"] = {"Kwara'ae"},
["kwg"] = {"Sara Kaba Deme"},
["kwh"] = {"Kowiai"},
["kwi"] = {"Awa-Cuaiquer"},
["kwj"] = {"Kwanga"},
["kwk"] = {"Kwakiutl", "Kwak'wala"},
["kwl"] = {"Kofyar"},
["kwm"] = {"Kwambi"},
["kwn"] = {"Kwangali"},
["kwo"] = {"Kwomtari"},
["kwp"] = {"Kodia"},
["kwr"] = {"Kwer"},
["kws"] = {"Kwese"},
["kwt"] = {"Kwesten"},
["kwu"] = {"Kwakum"},
["kwv"] = {"Sara Kaba Náà"},
["kww"] = {"Kwinti"},
["kwx"] = {"Khirwar"},
["kwy"] = {"San Salvador Kongo"},
["kwz"] = {"Kwadi"},
["kxa"] = {"Kairiru"},
["kxb"] = {"Krobu"},
["kxc"] = {"Khonso", "Konso"},
["kxd"] = {"Brunei"},
["kxf"] = {"Manumanaw", "Manumanaw Karen"},
["kxh"] = {"Karo (Ethiopia)"},
["kxi"] = {"Keningau Murut"},
["kxj"] = {"Kulfa"},
["kxk"] = {"Zayein Karen"},
["kxm"] = {"Northern Khmer"},
["kxn"] = {"Kanowit-Tanjong Melanau"},
["kxo"] = {"Kanoé"},
["kxp"] = {"Wadiyara Koli"},
["kxq"] = {"Smärky Kanum"},
["kxr"] = {"Koro (Papua New Guinea)"},
["kxs"] = {"Kangjia"},
["kxt"] = {"Koiwat"},
["kxv"] = {"Kuvi"},
["kxw"] = {"Konai"},
["kxx"] = {"Likuba"},
["kxy"] = {"Kayong"},
["kxz"] = {"Kerewo"},
["kya"] = {"Kwaya"},
["kyb"] = {"Butbut Kalinga"},
["kyc"] = {"Kyaka"},
["kyd"] = {"Karey"},
["kye"] = {"Krache"},
["kyf"] = {"Kouya"},
["kyg"] = {"Keyagana"},
["kyh"] = {"Karok"},
["kyi"] = {"Kiput"},
["kyj"] = {"Karao"},
["kyk"] = {"Kamayo"},
["kyl"] = {"Kalapuya"},
["kym"] = {"Kpatili"},
["kyn"] = {"Northern Binukidnon"},
["kyo"] = {"Kelon"},
["kyp"] = {"Kang"},
["kyq"] = {"Kenga"},
["kyr"] = {"Kuruáya"},
["kys"] = {"Baram Kayan"},
["kyt"] = {"Kayagar"},
["kyu"] = {"Western Kayah"},
["kyv"] = {"Kayort"},
["kyw"] = {"Kudmali"},
["kyx"] = {"Rapoisi"},
["kyy"] = {"Kambaira"},
["kyz"] = {"Kayabí"},
["kza"] = {"Western Karaboro"},
["kzb"] = {"Kaibobo"},
["kzc"] = {"Bondoukou Kulango"},
["kzd"] = {"Kadai"},
["kze"] = {"Kosena"},
["kzf"] = {"Da'a Kaili"},
["kzg"] = {"Kikai"},
["kzi"] = {"Kelabit"},
["kzk"] = {"Kazukuru"},
["kzl"] = {"Kayeli"},
["kzm"] = {"Kais"},
["kzn"] = {"Kokola"},
["kzo"] = {"Kaningi"},
["kzp"] = {"Kaidipang"},
["kzq"] = {"Kaike"},
["kzr"] = {"Karang"},
["kzs"] = {"Sugut Dusun"},
["kzu"] = {"Kayupulau"},
["kzv"] = {"Komyandaret"},
["kzw"] = {"Karirí-Xocó"},
["kzx"] = {"Kamarian"},
["kzy"] = {"Kango (Tshopo District)"},
["kzz"] = {"Kalabra"},
["laa"] = {"Southern Subanen"},
["lab"] = {"Linear A"},
["lac"] = {"Lacandon"},
["lad"] = {"Ladinoish"},
["lae"] = {"Pattani"},
["laf"] = {"Lafofa"},
["lag"] = {"Rangi"},
["lah"] = {"Lahnda"},
["lai"] = {"Lambya"},
["laj"] = {"Lango (Uganda)"},
["lal"] = {"Lalia"},
["lam"] = {"Lamba"},
["lan"] = {"Laru"},
["lao"] = {"Lao"},
["lap"] = {"Laka (Chad)"},
["laq"] = {"Qabiao"},
["lar"] = {"Larteh"},
["las"] = {"Lama (Togo)"},
["lat"] = {"Latin"},
["lau"] = {"Laba"},
["lav"] = {"Latvian"},
["law"] = {"Lauje"},
["lax"] = {"Tiwa"},
["lay"] = {"Lama Bai"},
["laz"] = {"Aribwatsa"},
["lbb"] = {"Label"},
["lbc"] = {"Lakkia"},
["lbe"] = {"Lak"},
["lbf"] = {"Tinani"},
["lbg"] = {"Laopang"},
["lbi"] = {"La'bi"},
["lbj"] = {"Ladakhi"},
["lbk"] = {"Central Bontok"},
["lbl"] = {"Libon Bikol"},
["lbm"] = {"Lodhi"},
["lbn"] = {"Rmeet"},
["lbo"] = {"Laven"},
["lbq"] = {"Wampar"},
["lbr"] = {"Lohorung"},
["lbs"] = {"Libyan Sign Language"},
["lbt"] = {"Lachi"},
["lbu"] = {"Labu"},
["lbv"] = {"Lavatbura-Lamusong"},
["lbw"] = {"Tolaki"},
["lbx"] = {"Lawangan"},
["lby"] = {"Lamalama", "Lamu-Lamu"},
["lbz"] = {"Lardil"},
["lcc"] = {"Legenyem"},
["lcd"] = {"Lola"},
["lce"] = {"Loncong", "Sekak"},
["lcf"] = {"Lubu"},
["lch"] = {"Luchazi"},
["lcl"] = {"Lisela"},
["lcm"] = {"Tungag"},
["lcp"] = {"Western Lawa"},
["lcq"] = {"Luhu"},
["lcs"] = {"Lisabata-Nuniali"},
["lda"] = {"Kla-Dan"},
["ldb"] = {"Dũya"},
["ldd"] = {"Luri"},
["ldg"] = {"Lenyima"},
["ldh"] = {"Lamja-Dengsa-Tola"},
["ldi"] = {"Laari"},
["ldj"] = {"Lemoro"},
["ldk"] = {"Leelau"},
["ldl"] = {"Kaan"},
["ldm"] = {"Landoma"},
["ldn"] = {"Láadan"},
["ldo"] = {"Loo"},
["ldp"] = {"Tso"},
["ldq"] = {"Lufu"},
["lea"] = {"Lega-Shabunda"},
["leb"] = {"Lala-Bisa"},
["lec"] = {"Leco"},
["led"] = {"Lendu"},
["lee"] = {"Lyélé"},
["lef"] = {"Lelemi"},
["leh"] = {"Lenje"},
["lei"] = {"Lemio"},
["lej"] = {"Lengola"},
["lek"] = {"Leipon"},
["lel"] = {"Lele (Democratic Republic of Congo)"},
["lem"] = {"Nomaande"},
["len"] = {"Lenca"},
["leo"] = {"Leti (Cameroon)"},
["lep"] = {"Lepcha"},
["leq"] = {"Lembena"},
["ler"] = {"Lenkau"},
["les"] = {"Lese"},
["let"] = {"Amio-Gelimi", "Lesing-Gelimi"},
["leu"] = {"Kara (Papua New Guinea)"},
["lev"] = {"Lamma"},
["lew"] = {"Ledo Kaili"},
["lex"] = {"Luang"},
["ley"] = {"Lemolang"},
["lez"] = {"Lezghian"},
["lfa"] = {"Lefa"},
["lfn"] = {"Lingua Franca Nova"},
["lga"] = {"Lungga"},
["lgb"] = {"Laghu"},
["lgg"] = {"Lugbara"},
["lgh"] = {"Laghuu"},
["lgi"] = {"Lengilu"},
["lgk"] = {"Lingarak", "Neverver"},
["lgl"] = {"Wala"},
["lgm"] = {"Lega-Mwenga"},
["lgn"] = {"Opuuo", "T'apo"},
["lgo"] = {"Lango (South Sudan)"},
["lgq"] = {"Logba"},
["lgr"] = {"Lengo"},
["lgs"] = {"Guinea-Bissau Sign Language", "Língua Gestual Guineense"},
["lgt"] = {"Pahi"},
["lgu"] = {"Longgu"},
["lgz"] = {"Ligenza"},
["lha"] = {"Laha (Viet Nam)"},
["lhh"] = {"Laha (Indonesia)"},
["lhi"] = {"Lahu Shi"},
["lhl"] = {"Lahul Lohar"},
["lhm"] = {"Lhomi"},
["lhn"] = {"Lahanan"},
["lhp"] = {"Lhokpu"},
["lhs"] = {"Mlahsö"},
["lht"] = {"Lo-Toga"},
["lhu"] = {"Lahu"},
["lia"] = {"West-Central Limba"},
["lib"] = {"Likum"},
["lic"] = {"Hlai"},
["lid"] = {"Nyindrou"},
["lie"] = {"Likila"},
["lif"] = {"Limbu"},
["lig"] = {"Ligbi"},
["lih"] = {"Lihir"},
["lij"] = {"Ligurian"},
["lik"] = {"Lika"},
["lil"] = {"Lillooet"},
["lim"] = {"Limburgan", "Limburger", "Limburgish"},
["lin"] = {"Lingalish"},
["lio"] = {"Liki"},
["lip"] = {"Sekpele"},
["liq"] = {"Libido"},
["lir"] = {"Liberian English"},
["lis"] = {"Lisu"},
["lit"] = {"Lithuanian"},
["liu"] = {"Logorik"},
["liv"] = {"Liv"},
["liw"] = {"Col"},
["lix"] = {"Liabuku"},
["liy"] = {"Banda-Bambari"},
["liz"] = {"Libinza"},
["lja"] = {"Golpa"},
["lje"] = {"Rampi"},
["lji"] = {"Laiyolo"},
["ljl"] = {"Li'o"},
["ljp"] = {"Lampung Api"},
["ljw"] = {"Yirandali"},
["ljx"] = {"Yuru"},
["lka"] = {"Lakalei"},
["lkb"] = {"Kabras", "Lukabaras"},
["lkc"] = {"Kucong"},
["lkd"] = {"Lakondê"},
["lke"] = {"Kenyi"},
["lkh"] = {"Lakha"},
["lki"] = {"Laki"},
["lkj"] = {"Remun"},
["lkl"] = {"Laeko-Libuat"},
["lkm"] = {"Kalaamaya"},
["lkn"] = {"Lakon", "Vure"},
["lko"] = {"Khayo", "Olukhayo"},
["lkr"] = {"Päri"},
["lks"] = {"Kisa", "Olushisa"},
["lkt"] = {"Lakota"},
["lku"] = {"Kungkari"},
["lky"] = {"Lokoya"},
["lla"] = {"Lala-Roba"},
["llb"] = {"Lolo"},
["llc"] = {"Lele (Guinea)"},
["lld"] = {"Ladinish"},
["lle"] = {"Lele (Papua New Guinea)"},
["llf"] = {"Hermit"},
["llg"] = {"Lole"},
["llh"] = {"Lamu"},
["lli"] = {"Teke-Laali"},
["llj"] = {"Ladji Ladji"},
["llk"] = {"Lelak"},
["lll"] = {"Lilau"},
["llm"] = {"Lasalimu"},
["lln"] = {"Lele (Chad)"},
["llp"] = {"North Efate"},
["llq"] = {"Lolak"},
["lls"] = {"Glare Chowree Litaanagh"},
["llu"] = {"Lau"},
["llx"] = {"Lauan"},
["lma"] = {"East Limba"},
["lmb"] = {"Merei"},
["lmc"] = {"Limilngan"},
["lmd"] = {"Lumun"},
["lme"] = {"Pévé"},
["lmf"] = {"South Lembata"},
["lmg"] = {"Lamogai"},
["lmh"] = {"Lambichhong"},
["lmi"] = {"Lombi"},
["lmj"] = {"West Lembata"},
["lmk"] = {"Lamkang"},
["lml"] = {"Hano"},
["lmn"] = {"Lambadi"},
["lmo"] = {"Lombard"},
["lmp"] = {"Limbum"},
["lmq"] = {"Lamatuka"},
["lmr"] = {"Lamalera"},
["lmu"] = {"Lamenu"},
["lmv"] = {"Lomaiviti"},
["lmw"] = {"Lake Miwok"},
["lmx"] = {"Laimbue"},
["lmy"] = {"Lamboya"},
["lna"] = {"Langbashe"},
["lnb"] = {"Mbalanhu"},
["lnd"] = {"Lun Bawang", "Lundayeh"},
["lng"] = {"Langobardic"},
["lnh"] = {"Lanoh"},
["lni"] = {"Daantanai'"},
["lnj"] = {"Leningitij"},
["lnl"] = {"South Central Banda"},
["lnm"] = {"Langam"},
["lnn"] = {"Lorediakarkar"},
["lns"] = {"Lamnso'"},
["lnu"] = {"Longuda"},
["lnw"] = {"Lanima"},
["lnz"] = {"Lonzo"},
["loa"] = {"Loloda"},
["lob"] = {"Lobi"},
["loc"] = {"Inonhan"},
["loe"] = {"Saluan"},
["lof"] = {"Logol"},
["log"] = {"Logo"},
["loh"] = {"Laarim", "Narim"},
["loi"] = {"Loma (Côte d'Ivoire)"},
["loj"] = {"Lou"},
["lok"] = {"Loko"},
["lol"] = {"Mongo"},
["lom"] = {"Loma (Liberia)"},
["lon"] = {"Malawi Lomwe"},
["loo"] = {"Lombo"},
["lop"] = {"Lopa"},
["loq"] = {"Lobala"},
["lor"] = {"Téén"},
["los"] = {"Loniu"},
["lot"] = {"Otuho"},
["lou"] = {"Louisiana Creole"},
["lov"] = {"Lopi"},
["low"] = {"Tampias Lobu"},
["lox"] = {"Loun"},
["loy"] = {"Loke"},
["loz"] = {"Lozi"},
["lpa"] = {"Lelepa"},
["lpe"] = {"Lepki"},
["lpn"] = {"Long Phuri Naga"},
["lpo"] = {"Lipo"},
["lpx"] = {"Lopit"},
["lqr"] = {"Logir"},
["lra"] = {"Rara Bakati'"},
["lrc"] = {"Northern Luri"},
["lre"] = {"Laurentian"},
["lrg"] = {"Laragia"},
["lri"] = {"Marachi", "Olumarachi"},
["lrk"] = {"Loarki"},
["lrl"] = {"Lari"},
["lrm"] = {"Marama", "Olumarama"},
["lrn"] = {"Lorang"},
["lro"] = {"Laro"},
["lrr"] = {"Southern Yamphu"},
["lrt"] = {"Larantuka Malay"},
["lrv"] = {"Larevat"},
["lrz"] = {"Lemerig"},
["lsa"] = {"Lasgerdi"},
["lsb"] = {"Burundian Sign Language", "Langue des Signes Burundaise"},
["lsc"] = {"Albarradas Sign Language", "Lengua de señas Albarradas"},
["lsd"] = {"Lishana Deni"},
["lse"] = {"Lusengo"},
["lsh"] = {"Lish"},
["lsi"] = {"Lashi"},
["lsl"] = {"Latvian Sign Language"},
["lsm"] = {"Olusamia", "Saamia"},
["lsn"] = {"Tibetan Sign Language"},
["lso"] = {"Laos Sign Language"},
["lsp"] = {"Lengua de Señas Panameñas", "Panamanian Sign Language"},
["lsr"] = {"Aruop"},
["lss"] = {"Lasi"},
["lst"] = {"Trinidad and Tobago Sign Language"},
["lsv"] = {"Sivia Sign Language"},
["lsw"] = {"Lalang Siny Seselwa", "Langue des Signes Seychelloise", "Seychelles Sign Language"},
["lsy"] = {"Mauritian Sign Language"},
["ltc"] = {"Late Middle Chinese"},
["ltg"] = {"Latgalian"},
["lth"] = {"Thur"},
["lti"] = {"Leti (Indonesia)"},
["ltn"] = {"Latundê"},
["lto"] = {"Olutsotso", "Tsotso"},
["lts"] = {"Lutachoni", "Tachoni"},
["ltu"] = {"Latu"},
["ltz"] = {"Letzeburgesch", "Luxembourgish"},
["lua"] = {"Luba-Lulua"},
["lub"] = {"Luba-Katanga"},
["luc"] = {"Aringa"},
["lud"] = {"Ludian"},
["lue"] = {"Luvale"},
["luf"] = {"Laua"},
["lug"] = {"Ganda"},
["luh"] = {"Leizhou Chinese"},
["lui"] = {"Luiseno"},
["luj"] = {"Luna"},
["luk"] = {"Lunanakha"},
["lul"] = {"Olu'bo"},
["lum"] = {"Luimbi"},
["lun"] = {"Lunda"},
["luo"] = {"Dholuo", "Luo (Kenya and Tanzania)"},
["lup"] = {"Lumbu"},
["luq"] = {"Lucumi"},
["lur"] = {"Laura"},
["lus"] = {"Lushai"},
["lut"] = {"Lushootseed"},
["luu"] = {"Lumba-Yakkha"},
["luv"] = {"Luwati"},
["luw"] = {"Luo (Cameroon)"},
["luy"] = {"Luyia", "Oluluyia"},
["luz"] = {"Southern Luri"},
["lva"] = {"Maku'a"},
["lvi"] = {"Lavi"},
["lvk"] = {"Lavukaleve"},
["lvl"] = {"Lwel"},
["lvs"] = {"Standard Latvian"},
["lvu"] = {"Levuka"},
["lwa"] = {"Lwalu"},
["lwe"] = {"Lewo Eleng"},
["lwg"] = {"Oluwanga", "Wanga"},
["lwh"] = {"White Lachi"},
["lwl"] = {"Eastern Lawa"},
["lwm"] = {"Laomian"},
["lwo"] = {"Luwo"},
["lws"] = {"Malawian Sign Language"},
["lwt"] = {"Lewotobi"},
["lwu"] = {"Lawu"},
["lww"] = {"Lewo"},
["lxm"] = {"Lakurumau"},
["lya"] = {"Layakha"},
["lyg"] = {"Lyngngam"},
["lyn"] = {"Luyana"},
["lzh"] = {"Literary Chinese"},
["lzl"] = {"Litzlitz"},
["lzn"] = {"Leinong Naga"},
["lzz"] = {"Laz"},
["maa"] = {"San Jerónimo Tecóatl Mazatec"},
["mab"] = {"Yutanduchi Mixtec"},
["mad"] = {"Madurese"},
["mae"] = {"Bo-Rukul"},
["maf"] = {"Mafa"},
["mag"] = {"Magahi"},
["mah"] = {"Marshallese"},
["mai"] = {"Maithili"},
["maj"] = {"Jalapa De Díaz Mazatec"},
["mak"] = {"Makasar"},
["mal"] = {"Malayalam"},
["mam"] = {"Mam"},
["man"] = {"Manding", "Mandingo"},
["maq"] = {"Chiquihuitlán Mazatec"},
["mar"] = {"Marathi"},
["mas"] = {"Masai"},
["mat"] = {"San Francisco Matlatzinca"},
["mau"] = {"Huautla Mazatec"},
["mav"] = {"Sateré-Mawé"},
["maw"] = {"Mampruli"},
["max"] = {"North Moluccan Malay"},
["maz"] = {"Central Mazahua"},
["mba"] = {"Higaonon"},
["mbb"] = {"Western Bukidnon Manobo"},
["mbc"] = {"Macushi"},
["mbd"] = {"Dibabawon Manobo"},
["mbe"] = {"Molale"},
["mbf"] = {"Baba Malay"},
["mbh"] = {"Mangseng"},
["mbi"] = {"Ilianen Manobo"},
["mbj"] = {"Nadëb"},
["mbk"] = {"Malol"},
["mbl"] = {"Maxakalí"},
["mbm"] = {"Ombamba"},
["mbn"] = {"Macaguán"},
["mbo"] = {"Mbo (Cameroon)"},
["mbp"] = {"Malayo"},
["mbq"] = {"Maisin"},
["mbr"] = {"Nukak Makú"},
["mbs"] = {"Sarangani Manobo"},
["mbt"] = {"Matigsalug Manobo"},
["mbu"] = {"Mbula-Bwazza"},
["mbv"] = {"Mbulungish"},
["mbw"] = {"Maring"},
["mbx"] = {"Mari (East Sepik Province)"},
["mby"] = {"Memoni"},
["mbz"] = {"Amoltepec Mixtec"},
["mca"] = {"Maca"},
["mcb"] = {"Machiguenga"},
["mcc"] = {"Bitur"},
["mcd"] = {"Sharanahua"},
["mce"] = {"Itundujia Mixtec"},
["mcf"] = {"Matsés"},
["mcg"] = {"Mapoyo"},
["mch"] = {"Maquiritari"},
["mci"] = {"Mese"},
["mcj"] = {"Mvanip"},
["mck"] = {"Mbunda"},
["mcl"] = {"Macaguaje"},
["mcm"] = {"Malaccan Creole Portuguese"},
["mcn"] = {"Masana"},
["mco"] = {"Coatlán Mixe"},
["mcp"] = {"Makaa"},
["mcq"] = {"Ese"},
["mcr"] = {"Menya"},
["mcs"] = {"Mambai"},
["mct"] = {"Mengisa"},
["mcu"] = {"Cameroon Mambila"},
["mcv"] = {"Minanibai"},
["mcw"] = {"Mawa (Chad)"},
["mcx"] = {"Mpiemo"},
["mcy"] = {"South Watut"},
["mcz"] = {"Mawan"},
["mda"] = {"Mada (Nigeria)"},
["mdb"] = {"Morigi"},
["mdc"] = {"Male (Papua New Guinea)"},
["mdd"] = {"Mbum"},
["mde"] = {"Maba (Chad)"},
["mdf"] = {"Moksha"},
["mdg"] = {"Massalat"},
["mdh"] = {"Maguindanaon"},
["mdi"] = {"Mamvu"},
["mdj"] = {"Mangbetu"},
["mdk"] = {"Mangbutu"},
["mdl"] = {"Maltese Sign Language"},
["mdm"] = {"Mayogo"},
["mdn"] = {"Mbati"},
["mdp"] = {"Mbala"},
["mdq"] = {"Mbole"},
["mdr"] = {"Mandar"},
["mds"] = {"Maria (Papua New Guinea)"},
["mdt"] = {"Mbere"},
["mdu"] = {"Mboko"},
["mdv"] = {"Santa Lucía Monteverde Mixtec"},
["mdw"] = {"Mbosi"},
["mdx"] = {"Dizin"},
["mdy"] = {"Male (Ethiopia)"},
["mdz"] = {"Suruí Do Pará"},
["mea"] = {"Menka"},
["meb"] = {"Ikobi"},
["mec"] = {"Marra"},
["med"] = {"Melpa"},
["mee"] = {"Mengen"},
["mef"] = {"Megam"},
["meh"] = {"Southwestern Tlaxiaco Mixtec"},
["mei"] = {"Midob"},
["mej"] = {"Meyah"},
["mek"] = {"Mekeo"},
["mel"] = {"Central Melanau"},
["mem"] = {"Mangala"},
["men"] = {"Mende (Sierra Leone)"},
["meo"] = {"Kedah Malay"},
["mep"] = {"Miriwoong"},
["meq"] = {"Merey"},
["mer"] = {"Meru"},
["mes"] = {"Masmaje"},
["met"] = {"Mato"},
["meu"] = {"Motu"},
["mev"] = {"Mano"},
["mew"] = {"Maaka"},
["mey"] = {"Hassaniyya"},
["mez"] = {"Menominee"},
["mfa"] = {"Pattani Malay"},
["mfb"] = {"Bangka"},
["mfc"] = {"Mba"},
["mfd"] = {"Mendankwe-Nkwen"},
["mfe"] = {"Morisyen"},
["mff"] = {"Naki"},
["mfg"] = {"Mogofin"},
["mfh"] = {"Matal"},
["mfi"] = {"Wandala"},
["mfj"] = {"Mefele"},
["mfk"] = {"North Mofu"},
["mfl"] = {"Putai"},
["mfm"] = {"Marghi South"},
["mfn"] = {"Cross River Mbembe"},
["mfo"] = {"Mbe"},
["mfp"] = {"Makassar Malay"},
["mfq"] = {"Moba"},
["mfr"] = {"Marrithiyel"},
["mfs"] = {"Mexican Sign Language"},
["mft"] = {"Mokerang"},
["mfu"] = {"Mbwela"},
["mfv"] = {"Mandjak"},
["mfw"] = {"Mulaha"},
["mfx"] = {"Melo"},
["mfy"] = {"Mayo"},
["mfz"] = {"Mabaan"},
["mga"] = {"Middle Irish (900-1200)"},
["mgb"] = {"Mararit"},
["mgc"] = {"Morokodo"},
["mgd"] = {"Moru"},
["mge"] = {"Mango"},
["mgf"] = {"Maklew"},
["mgg"] = {"Mpumpong"},
["mgh"] = {"Makhuwa-Meetto"},
["mgi"] = {"Lijili"},
["mgj"] = {"Abureni"},
["mgk"] = {"Mawes"},
["mgl"] = {"Maleu-Kilenge"},
["mgm"] = {"Mambae"},
["mgn"] = {"Mbangi"},
["mgo"] = {"Meta'"},
["mgp"] = {"Eastern Magar"},
["mgq"] = {"Malila"},
["mgr"] = {"Mambwe-Lungu"},
["mgs"] = {"Manda (Tanzania)"},
["mgt"] = {"Mongol"},
["mgu"] = {"Mailu"},
["mgv"] = {"Matengo"},
["mgw"] = {"Matumbi"},
["mgy"] = {"Mbunga"},
["mgz"] = {"Mbugwe"},
["mha"] = {"Manda (India)"},
["mhb"] = {"Mahongwe"},
["mhc"] = {"Mocho"},
["mhd"] = {"Mbugu"},
["mhe"] = {"Besisi", "Mah Meri"},
["mhf"] = {"Mamaa"},
["mhg"] = {"Margu"},
["mhi"] = {"Ma'di"},
["mhj"] = {"Mogholi"},
["mhk"] = {"Mungaka"},
["mhl"] = {"Mauwake"},
["mhm"] = {"Makhuwa-Moniga"},
["mhn"] = {"Mòcheno"},
["mho"] = {"Mashi (Zambia)"},
["mhp"] = {"Balinese Malay"},
["mhq"] = {"Mandan"},
["mhr"] = {"Eastern Mari"},
["mhs"] = {"Buru (Indonesia)"},
["mht"] = {"Mandahuaca"},
["mhu"] = {"Darang Deng", "Digaro-Mishmi"},
["mhw"] = {"Mbukushu"},
["mhx"] = {"Lhaovo", "Maru"},
["mhy"] = {"Ma'anyan"},
["mhz"] = {"Mor (Mor Islands)"},
["mia"] = {"Miami"},
["mib"] = {"Atatláhuca Mixtec"},
["mic"] = {"Micmac", "Mi'kmaq"},
["mid"] = {"Mandaic"},
["mie"] = {"Ocotepec Mixtec"},
["mif"] = {"Mofu-Gudur"},
["mig"] = {"San Miguel El Grande Mixtec"},
["mih"] = {"Chayuco Mixtec"},
["mii"] = {"Chigmecatitlán Mixtec"},
["mij"] = {"Abar", "Mungbam"},
["mik"] = {"Mikasuki"},
["mil"] = {"Peñoles Mixtec"},
["mim"] = {"Alacatlatzala Mixtec"},
["min"] = {"Minangkabau"},
["mio"] = {"Pinotepa Nacional Mixtec"},
["mip"] = {"Apasco-Apoala Mixtec"},
["miq"] = {"Mískito"},
["mir"] = {"Isthmus Mixe"},
["mis"] = {"Uncoded languages"},
["mit"] = {"Southern Puebla Mixtec"},
["miu"] = {"Cacaloxtepec Mixtec"},
["miw"] = {"Akoye"},
["mix"] = {"Mixtepec Mixtec"},
["miy"] = {"Ayutla Mixtec"},
["miz"] = {"Coatzospan Mixtec"},
["mjb"] = {"Makalero"},
["mjc"] = {"San Juan Colorado Mixtec"},
["mjd"] = {"Northwest Maidu"},
["mje"] = {"Muskum"},
["mjg"] = {"Tu"},
["mjh"] = {"Mwera (Nyasa)"},
["mji"] = {"Kim Mun"},
["mjj"] = {"Mawak"},
["mjk"] = {"Matukar"},
["mjl"] = {"Mandeali"},
["mjm"] = {"Medebur"},
["mjn"] = {"Ma (Papua New Guinea)"},
["mjo"] = {"Malankuravan"},
["mjp"] = {"Malapandaram"},
["mjq"] = {"Malaryan"},
["mjr"] = {"Malavedan"},
["mjs"] = {"Miship"},
["mjt"] = {"Sauria Paharia"},
["mju"] = {"Manna-Dora"},
["mjv"] = {"Mannan"},
["mjw"] = {"Karbi"},
["mjx"] = {"Mahali"},
["mjy"] = {"Mahican"},
["mjz"] = {"Majhi"},
["mka"] = {"Mbre"},
["mkb"] = {"Mal Paharia"},
["mkc"] = {"Siliput"},
["mkd"] = {"Macedonian"},
["mke"] = {"Mawchi"},
["mkf"] = {"Miya"},
["mkg"] = {"Mak (China)"},
["mki"] = {"Dhatki"},
["mkj"] = {"Mokilese"},
["mkk"] = {"Byep"},
["mkl"] = {"Mokole"},
["mkm"] = {"Moklen"},
["mkn"] = {"Kupang Malay"},
["mko"] = {"Mingang Doso"},
["mkp"] = {"Moikodi"},
["mkq"] = {"Bay Miwok"},
["mkr"] = {"Malas"},
["mks"] = {"Silacayoapan Mixtec"},
["mkt"] = {"Vamale"},
["mku"] = {"Konyanka Maninka"},
["mkv"] = {"Mafea"},
["mkw"] = {"Kitubish (y Congo)"},
["mkx"] = {"Kinamiging Manobo"},
["mky"] = {"East Makian"},
["mkz"] = {"Makasae"},
["mla"] = {"Malo"},
["mlb"] = {"Mbule"},
["mlc"] = {"Cao Lan"},
["mle"] = {"Manambu"},
["mlf"] = {"Mal"},
["mlg"] = {"Malagasy"},
["mlh"] = {"Mape"},
["mli"] = {"Malimpung"},
["mlj"] = {"Miltu"},
["mlk"] = {"Ilwana", "Kiwilwana"},
["mll"] = {"Malua Bay"},
["mlm"] = {"Mulam"},
["mln"] = {"Malango"},
["mlo"] = {"Mlomp"},
["mlp"] = {"Bargam"},
["mlq"] = {"Western Maninkakan"},
["mlr"] = {"Vame"},
["mls"] = {"Masalit"},
["mlt"] = {"Maltese"},
["mlu"] = {"To'abaita"},
["mlv"] = {"Motlav", "Mwotlap"},
["mlw"] = {"Moloko"},
["mlx"] = {"Malfaxal", "Naha'ai"},
["mlz"] = {"Malaynon"},
["mma"] = {"Mama"},
["mmb"] = {"Momina"},
["mmc"] = {"Michoacán Mazahua"},
["mmd"] = {"Maonan"},
["mme"] = {"Mae"},
["mmf"] = {"Mundat"},
["mmg"] = {"North Ambrym"},
["mmh"] = {"Mehináku"},
["mmi"] = {"Amben", "Hember Avu", "Musar"},
["mmj"] = {"Majhwar"},
["mmk"] = {"Mukha-Dora"},
["mml"] = {"Man Met"},
["mmm"] = {"Maii"},
["mmn"] = {"Mamanwa"},
["mmo"] = {"Mangga Buang"},
["mmp"] = {"Siawi"},
["mmq"] = {"Musak"},
["mmr"] = {"Western Xiangxi Miao"},
["mmt"] = {"Malalamai"},
["mmu"] = {"Mmaala"},
["mmv"] = {"Miriti"},
["mmw"] = {"Emae"},
["mmx"] = {"Madak"},
["mmy"] = {"Migaama"},
["mmz"] = {"Mabaale"},
["mna"] = {"Mbula"},
["mnb"] = {"Muna"},
["mnc"] = {"Manchu"},
["mnd"] = {"Mondé"},
["mne"] = {"Naba"},
["mnf"] = {"Mundani"},
["mng"] = {"Eastern Mnong"},
["mnh"] = {"Mono (Democratic Republic of Congo)"},
["mni"] = {"Manipuri"},
["mnj"] = {"Munji"},
["mnk"] = {"Mandinka"},
["mnl"] = {"Tiale"},
["mnm"] = {"Mapena"},
["mnn"] = {"Southern Mnong"},
["mnp"] = {"Min Bei Chinese"},
["mnq"] = {"Minriq"},
["mnr"] = {"Mono (USA)"},
["mns"] = {"Mansi"},
["mnu"] = {"Mer"},
["mnv"] = {"Rennell-Bellona"},
["mnw"] = {"Mon"},
["mnx"] = {"Manikion"},
["mny"] = {"Manyawa"},
["mnz"] = {"Moni"},
["moa"] = {"Mwan"},
["moc"] = {"Mocoví"},
["mod"] = {"Mobilian"},
["moe"] = {"Innu", "Montagnais"},
["mog"] = {"Mongondow"},
["moh"] = {"Mohawk"},
["moi"] = {"Mboi"},
["moj"] = {"Monzombo"},
["mok"] = {"Morori"},
["mom"] = {"Mangue"},
["mon"] = {"Mongolian"},
["moo"] = {"Monom"},
["mop"] = {"Mopán Maya"},
["moq"] = {"Mor (Bomberai Peninsula)"},
["mor"] = {"Moro"},
["mos"] = {"Mossi"},
["mot"] = {"Barí"},
["mou"] = {"Mogum"},
["mov"] = {"Mohave"},
["mow"] = {"Moi (Congo)"},
["mox"] = {"Molima"},
["moy"] = {"Shekkacho"},
["moz"] = {"Gergiko", "Mukulu"},
["mpa"] = {"Mpoto"},
["mpb"] = {"Malak Malak", "Mullukmulluk"},
["mpc"] = {"Mangarrayi"},
["mpd"] = {"Machinere"},
["mpe"] = {"Majang"},
["mpg"] = {"Marba"},
["mph"] = {"Maung"},
["mpi"] = {"Mpade"},
["mpj"] = {"Martu Wangka", "Wangkajunga"},
["mpk"] = {"Mbara (Chad)"},
["mpl"] = {"Middle Watut"},
["mpm"] = {"Yosondúa Mixtec"},
["mpn"] = {"Mindiri"},
["mpo"] = {"Miu"},
["mpp"] = {"Migabac"},
["mpq"] = {"Matís"},
["mpr"] = {"Vangunu"},
["mps"] = {"Dadibi"},
["mpt"] = {"Mian"},
["mpu"] = {"Makuráp"},
["mpv"] = {"Mungkip"},
["mpw"] = {"Mapidian"},
["mpx"] = {"Misima-Panaeati"},
["mpy"] = {"Mapia"},
["mpz"] = {"Mpi"},
["mqa"] = {"Maba (Indonesia)"},
["mqb"] = {"Mbuko"},
["mqc"] = {"Mangole"},
["mqe"] = {"Matepi"},
["mqf"] = {"Momuna"},
["mqg"] = {"Kota Bangun Kutai Malay"},
["mqh"] = {"Tlazoyaltepec Mixtec"},
["mqi"] = {"Mariri"},
["mqj"] = {"Mamasa"},
["mqk"] = {"Rajah Kabunsuwan Manobo"},
["mql"] = {"Mbelime"},
["mqm"] = {"South Marquesan"},
["mqn"] = {"Moronene"},
["mqo"] = {"Modole"},
["mqp"] = {"Manipa"},
["mqq"] = {"Minokok"},
["mqr"] = {"Mander"},
["mqs"] = {"West Makian"},
["mqt"] = {"Mok"},
["mqu"] = {"Mandari"},
["mqv"] = {"Mosimo"},
["mqw"] = {"Murupi"},
["mqx"] = {"Mamuju"},
["mqy"] = {"Manggarai"},
["mqz"] = {"Pano"},
["mra"] = {"Mlabri"},
["mrb"] = {"Marino"},
["mrc"] = {"Maricopa"},
["mrd"] = {"Western Magar"},
["mre"] = {"Martha's Vineyard Sign Language"},
["mrf"] = {"Elseng"},
["mrg"] = {"Mising"},
["mrh"] = {"Mara Chin"},
["mri"] = {"Maori"},
["mrj"] = {"Western Mari"},
["mrk"] = {"Hmwaveke"},
["mrl"] = {"Mortlockese"},
["mrm"] = {"Merlav", "Mwerlap"},
["mrn"] = {"Cheke Holo"},
["mro"] = {"Mru"},
["mrp"] = {"Morouas"},
["mrq"] = {"North Marquesan"},
["mrr"] = {"Maria (India)"},
["mrs"] = {"Maragus"},
["mrt"] = {"Marghi Central"},
["mru"] = {"Mono (Cameroon)"},
["mrv"] = {"Mangareva"},
["mrw"] = {"Maranao"},
["mrx"] = {"Dineor", "Maremgi"},
["mry"] = {"Mandaya"},
["mrz"] = {"Marind"},
["msa"] = {"Malay (macrolanguage)"},
["msb"] = {"Masbatenyo"},
["msc"] = {"Sankaran Maninka"},
["msd"] = {"Yucatec Maya Sign Language"},
["mse"] = {"Musey"},
["msf"] = {"Mekwei"},
["msg"] = {"Moraid"},
["msh"] = {"Masikoro Malagasy"},
["msi"] = {"Sabah Malay"},
["msj"] = {"Ma (Democratic Republic of Congo)"},
["msk"] = {"Mansaka"},
["msl"] = {"Molof", "Poule"},
["msm"] = {"Agusan Manobo"},
["msn"] = {"Vurës"},
["mso"] = {"Mombum"},
["msp"] = {"Maritsauá"},
["msq"] = {"Caac"},
["msr"] = {"Mongolian Sign Language"},
["mss"] = {"West Masela"},
["msu"] = {"Musom"},
["msv"] = {"Maslam"},
["msw"] = {"Mansoanka"},
["msx"] = {"Moresada"},
["msy"] = {"Aruamu"},
["msz"] = {"Momare"},
["mta"] = {"Cotabato Manobo"},
["mtb"] = {"Anyin Morofo"},
["mtc"] = {"Munit"},
["mtd"] = {"Mualang"},
["mte"] = {"Mono (Solomon Islands)"},
["mtf"] = {"Murik (Papua New Guinea)"},
["mtg"] = {"Una"},
["mth"] = {"Munggui"},
["mti"] = {"Maiwa (Papua New Guinea)"},
["mtj"] = {"Moskona"},
["mtk"] = {"Mbe'"},
["mtl"] = {"Montol"},
["mtm"] = {"Mator"},
["mtn"] = {"Matagalpa"},
["mto"] = {"Totontepec Mixe"},
["mtp"] = {"Wichí Lhamtés Nocten"},
["mtq"] = {"Muong"},
["mtr"] = {"Mewari"},
["mts"] = {"Yora"},
["mtt"] = {"Mota"},
["mtu"] = {"Tututepec Mixtec"},
["mtv"] = {"Asaro'o"},
["mtw"] = {"Southern Binukidnon"},
["mtx"] = {"Tidaá Mixtec"},
["mty"] = {"Nabi"},
["mua"] = {"Mundang"},
["mub"] = {"Mubi"},
["muc"] = {"Ajumbu"},
["mud"] = {"Mednyj Aleut"},
["mue"] = {"Media Lengua"},
["mug"] = {"Musgu"},
["muh"] = {"Mündü"},
["mui"] = {"Musi"},
["muj"] = {"Mabire"},
["muk"] = {"Mugom"},
["mul"] = {"Multiple languages"},
["mum"] = {"Maiwala"},
["muo"] = {"Nyong"},
["mup"] = {"Malvi"},
["muq"] = {"Eastern Xiangxi Miao"},
["mur"] = {"Murle"},
["mus"] = {"Creek"},
["mut"] = {"Western Muria"},
["muu"] = {"Yaaku"},
["muv"] = {"Muthuvan"},
["mux"] = {"Bo-Ung"},
["muy"] = {"Muyang"},
["muz"] = {"Mursi"},
["mva"] = {"Manam"},
["mvb"] = {"Mattole"},
["mvd"] = {"Mamboru"},
["mve"] = {"Marwari (Pakistan)"},
["mvf"] = {"Peripheral Mongolian"},
["mvg"] = {"Yucuañe Mixtec"},
["mvh"] = {"Mulgi"},
["mvi"] = {"Miyako"},
["mvk"] = {"Mekmek"},
["mvl"] = {"Mbara (Australia)"},
["mvn"] = {"Minaveha"},
["mvo"] = {"Marovo"},
["mvp"] = {"Duri"},
["mvq"] = {"Moere"},
["mvr"] = {"Marau"},
["mvs"] = {"Massep"},
["mvt"] = {"Mpotovoro"},
["mvu"] = {"Marfa"},
["mvv"] = {"Tagal Murut"},
["mvw"] = {"Machinga"},
["mvx"] = {"Meoswar"},
["mvy"] = {"Indus Kohistani"},
["mvz"] = {"Mesqan"},
["mwa"] = {"Mwatebu"},
["mwb"] = {"Juwal"},
["mwc"] = {"Are"},
["mwe"] = {"Mwera (Chimwera)"},
["mwf"] = {"Murrinh-Patha"},
["mwg"] = {"Aiklep"},
["mwh"] = {"Mouk-Aria"},
["mwi"] = {"Labo", "Ninde"},
["mwk"] = {"Kita Maninkakan"},
["mwl"] = {"Mirandese"},
["mwm"] = {"Sar"},
["mwn"] = {"Nyamwanga"},
["mwo"] = {"Central Maewo"},
["mwp"] = {"Kala Lagaw Ya"},
["mwq"] = {"Mün Chin"},
["mwr"] = {"Marwari"},
["mws"] = {"Mwimbi-Muthambi"},
["mwt"] = {"Moken"},
["mwu"] = {"Mittu"},
["mwv"] = {"Mentawai"},
["mww"] = {"Hmong Daw"},
["mwz"] = {"Moingi"},
["mxa"] = {"Northwest Oaxaca Mixtec"},
["mxb"] = {"Tezoatlán Mixtec"},
["mxc"] = {"Manyika"},
["mxd"] = {"Modang"},
["mxe"] = {"Mele-Fila"},
["mxf"] = {"Malgbe"},
["mxg"] = {"Mbangala"},
["mxh"] = {"Mvuba"},
["mxi"] = {"Mozarabic"},
["mxj"] = {"Geman Deng", "Miju-Mishmi"},
["mxk"] = {"Monumbo"},
["mxl"] = {"Maxi Gbe"},
["mxm"] = {"Meramera"},
["mxn"] = {"Moi (Indonesia)"},
["mxo"] = {"Mbowe"},
["mxp"] = {"Tlahuitoltepec Mixe"},
["mxq"] = {"Juquila Mixe"},
["mxr"] = {"Murik (Malaysia)"},
["mxs"] = {"Huitepec Mixtec"},
["mxt"] = {"Jamiltepec Mixtec"},
["mxu"] = {"Mada (Cameroon)"},
["mxv"] = {"Metlatónoc Mixtec"},
["mxw"] = {"Namo"},
["mxx"] = {"Mahou", "Mawukakan"},
["mxy"] = {"Southeastern Nochixtlán Mixtec"},
["mxz"] = {"Central Masela"},
["mya"] = {"Burmese"},
["myb"] = {"Mbay"},
["myc"] = {"Mayeka"},
["mye"] = {"Myene"},
["myf"] = {"Bambassi"},
["myg"] = {"Manta"},
["myh"] = {"Makah"},
["myj"] = {"Mangayat"},
["myk"] = {"Mamara Senoufo"},
["myl"] = {"Moma"},
["mym"] = {"Me'en"},
["myo"] = {"Anfillo"},
["myp"] = {"Pirahã"},
["myr"] = {"Muniche"},
["mys"] = {"Mesmes"},
["myu"] = {"Mundurukú"},
["myv"] = {"Erzya"},
["myw"] = {"Muyuw"},
["myx"] = {"Masaaba"},
["myy"] = {"Macuna"},
["myz"] = {"Classical Mandaic"},
["mza"] = {"Santa María Zacatepec Mixtec"},
["mzb"] = {"Tumzabt"},
["mzc"] = {"Madagascar Sign Language"},
["mzd"] = {"Malimba"},
["mze"] = {"Morawa"},
["mzg"] = {"Monastic Sign Language"},
["mzh"] = {"Wichí Lhamtés Güisnay"},
["mzi"] = {"Ixcatlán Mazatec"},
["mzj"] = {"Manya"},
["mzk"] = {"Nigeria Mambila"},
["mzl"] = {"Mazatlán Mixe"},
["mzm"] = {"Mumuye"},
["mzn"] = {"Mazanderani"},
["mzo"] = {"Matipuhy"},
["mzp"] = {"Movima"},
["mzq"] = {"Mori Atas"},
["mzr"] = {"Marúbo"},
["mzs"] = {"Macanese"},
["mzt"] = {"Mintil"},
["mzu"] = {"Inapang"},
["mzv"] = {"Manza"},
["mzw"] = {"Deg"},
["mzx"] = {"Mawayana"},
["mzy"] = {"Mozambican Sign Language"},
["mzz"] = {"Maiadomu"},
["naa"] = {"Namla"},
["nab"] = {"Southern Nambikuára"},
["nac"] = {"Narak"},
["nae"] = {"Naka'ela"},
["naf"] = {"Nabak"},
["nag"] = {"Naga Pidgin"},
["naj"] = {"Nalu"},
["nak"] = {"Nakanai"},
["nal"] = {"Nalik"},
["nam"] = {"Ngan'gityemerri"},
["nan"] = {"Min Nan Chinese"},
["nao"] = {"Naaba"},
["nap"] = {"Neapolitan"},
["naq"] = {"Khoekhoe", "Nama (Namibia)"},
["nar"] = {"Iguta"},
["nas"] = {"Naasioi"},
["nat"] = {"Ca̱hungwa̱rya̱", "Hungworo"},
["nau"] = {"Nauru"},
["nav"] = {"Navaho", "Navajo"},
["naw"] = {"Nawuri"},
["nax"] = {"Nakwi"},
["nay"] = {"Ngarrindjeri"},
["naz"] = {"Coatepec Nahuatl"},
["nba"] = {"Nyemba"},
["nbb"] = {"Ndoe"},
["nbc"] = {"Chang Naga"},
["nbd"] = {"Ngbinda"},
["nbe"] = {"Konyak Naga"},
["nbg"] = {"Nagarchal"},
["nbh"] = {"Ngamo"},
["nbi"] = {"Mao Naga"},
["nbj"] = {"Ngarinyman"},
["nbk"] = {"Nake"},
["nbl"] = {"South Ndebele"},
["nbm"] = {"Ngbaka Ma'bo"},
["nbn"] = {"Kuri"},
["nbo"] = {"Nkukoli"},
["nbp"] = {"Nnam"},
["nbq"] = {"Nggem"},
["nbr"] = {"Numana"},
["nbs"] = {"Namibian Sign Language"},
["nbt"] = {"Na"},
["nbu"] = {"Rongmei Naga"},
["nbv"] = {"Ngamambo"},
["nbw"] = {"Southern Ngbandi"},
["nby"] = {"Ningera"},
["nca"] = {"Iyo"},
["ncb"] = {"Central Nicobarese"},
["ncc"] = {"Ponam"},
["ncd"] = {"Nachering"},
["nce"] = {"Yale"},
["ncf"] = {"Notsi"},
["ncg"] = {"Nisga'a"},
["nch"] = {"Central Huasteca Nahuatl"},
["nci"] = {"Classical Nahuatl"},
["ncj"] = {"Northern Puebla Nahuatl"},
["nck"] = {"Na-kara"},
["ncl"] = {"Michoacán Nahuatl"},
["ncm"] = {"Nambo"},
["ncn"] = {"Nauna"},
["nco"] = {"Sibe"},
["ncq"] = {"Northern Katang"},
["ncr"] = {"Ncane"},
["ncs"] = {"Nicaraguan Sign Language"},
["nct"] = {"Chothe Naga"},
["ncu"] = {"Chumburung"},
["ncx"] = {"Central Puebla Nahuatl"},
["ncz"] = {"Natchez"},
["nda"] = {"Ndasa"},
["ndb"] = {"Kenswei Nsei"},
["ndc"] = {"Ndauish"},
["ndd"] = {"Nde-Nsele-Nta"},
["nde"] = {"North Ndebele"},
["ndf"] = {"Nadruvian"},
["ndg"] = {"Ndengereko"},
["ndh"] = {"Ndali"},
["ndi"] = {"Samba Leko"},
["ndj"] = {"Ndamba"},
["ndk"] = {"Ndaka"},
["ndl"] = {"Ndolo"},
["ndm"] = {"Ndam"},
["ndn"] = {"Ngundi"},
["ndo"] = {"Ndonga"},
["ndp"] = {"Ndo"},
["ndq"] = {"Ndombe"},
["ndr"] = {"Ndoola"},
["nds"] = {"Low German", "Low Saxon"},
["ndt"] = {"Ndunga"},
["ndu"] = {"Dugun"},
["ndv"] = {"Ndut"},
["ndw"] = {"Ndobo"},
["ndx"] = {"Nduga"},
["ndy"] = {"Lutos"},
["ndz"] = {"Ndogo"},
["nea"] = {"Eastern Ngad'a"},
["neb"] = {"Toura (Côte d'Ivoire)"},
["nec"] = {"Nedebang"},
["ned"] = {"Nde-Gbite"},
["nee"] = {"Nêlêmwa-Nixumwak"},
["nef"] = {"Nefamese"},
["neg"] = {"Negidal"},
["neh"] = {"Nyenkha"},
["nei"] = {"Neo-Hittite"},
["nej"] = {"Neko"},
["nek"] = {"Neku"},
["nem"] = {"Nemi"},
["nen"] = {"Nengone"},
["neo"] = {"Ná-Meo"},
["nep"] = {"Nepali (macrolanguage)"},
["neq"] = {"North Central Mixe"},
["ner"] = {"Yahadian"},
["nes"] = {"Bhoti Kinnauri"},
["net"] = {"Nete"},
["neu"] = {"Neo"},
["nev"] = {"Nyaheun"},
["new"] = {"Nepal Bhasa", "Newar", "Newari"},
["nex"] = {"Neme"},
["ney"] = {"Neyo"},
["nez"] = {"Nez Perce"},
["nfa"] = {"Dhao"},
["nfd"] = {"Ahwai"},
["nfl"] = {"Äiwoo", "Ayiwo"},
["nfr"] = {"Nafaanra"},
["nfu"] = {"Mfumte"},
["nga"] = {"Ngbaka"},
["ngb"] = {"Northern Ngbandi"},
["ngc"] = {"Ngombe (Democratic Republic of Congo)"},
["ngd"] = {"Ngando (Central African Republic)"},
["nge"] = {"Ngemba"},
["ngg"] = {"Ngbaka Manza"},
["ngh"] = {"Nǁng"},
["ngi"] = {"Ngizim"},
["ngj"] = {"Ngie"},
["ngk"] = {"Dalabon"},
["ngl"] = {"Lomwe"},
["ngm"] = {"Ngatik Men's Creole"},
["ngn"] = {"Ngwo"},
["ngp"] = {"Ngulu"},
["ngq"] = {"Ngoreme", "Ngurimi"},
["ngr"] = {"Engdewu"},
["ngs"] = {"Gvoko"},
["ngt"] = {"Kriang", "Ngeq"},
["ngu"] = {"Guerrero Nahuatl"},
["ngv"] = {"Nagumi"},
["ngw"] = {"Ngwaba"},
["ngx"] = {"Nggwahyi"},
["ngy"] = {"Tibea"},
["ngz"] = {"Ngungwel"},
["nha"] = {"Nhanda"},
["nhb"] = {"Beng"},
["nhc"] = {"Tabasco Nahuatl"},
["nhd"] = {"Ava Guaraní", "Chiripá"},
["nhe"] = {"Eastern Huasteca Nahuatl"},
["nhf"] = {"Nhuwala"},
["nhg"] = {"Tetelcingo Nahuatl"},
["nhh"] = {"Nahari"},
["nhi"] = {"Zacatlán-Ahuacatlán-Tepetzintla Nahuatl"},
["nhk"] = {"Isthmus-Cosoleacaque Nahuatl"},
["nhm"] = {"Morelos Nahuatl"},
["nhn"] = {"Central Nahuatl"},
["nho"] = {"Takuu"},
["nhp"] = {"Isthmus-Pajapan Nahuatl"},
["nhq"] = {"Huaxcaleca Nahuatl"},
["nhr"] = {"Naro"},
["nht"] = {"Ometepec Nahuatl"},
["nhu"] = {"Noone"},
["nhv"] = {"Temascaltepec Nahuatl"},
["nhw"] = {"Western Huasteca Nahuatl"},
["nhx"] = {"Isthmus-Mecayapan Nahuatl"},
["nhy"] = {"Northern Oaxaca Nahuatl"},
["nhz"] = {"Santa María La Alta Nahuatl"},
["nia"] = {"Nias"},
["nib"] = {"Nakame"},
["nid"] = {"Ngandi"},
["nie"] = {"Niellim"},
["nif"] = {"Nek"},
["nig"] = {"Ngalakgan"},
["nih"] = {"Nyiha (Tanzania)"},
["nii"] = {"Nii"},
["nij"] = {"Ngaju"},
["nik"] = {"Nicobarish Yiass"},
["nil"] = {"Nila"},
["nim"] = {"Nilamba"},
["nin"] = {"Ninzo"},
["nio"] = {"Nganasan"},
["niq"] = {"Nandi"},
["nir"] = {"Nimboran"},
["nis"] = {"Nimi"},
["nit"] = {"Kolamish Hiar Yiass"},
["niu"] = {"Niueanish"},
["niv"] = {"Gilyakish"},
["niw"] = {"Nimo"},
["nix"] = {"Hema"},
["niy"] = {"Ngiti"},
["niz"] = {"Ningil"},
["nja"] = {"Nzanyi"},
["njb"] = {"Nocte Naga"},
["njd"] = {"Ndonde Hamba"},
["njh"] = {"Lotha Naga"},
["nji"] = {"Gudanji"},
["njj"] = {"Njen"},
["njl"] = {"Njalgulgule"},
["njm"] = {"Angami Naga"},
["njn"] = {"Liangmai Naga"},
["njo"] = {"Ao Naga"},
["njr"] = {"Njerep"},
["njs"] = {"Nisa"},
["njt"] = {"Ndyuka-Trio Pidgin"},
["nju"] = {"Ngadjunmaya"},
["njx"] = {"Kunyi"},
["njy"] = {"Njyem"},
["njz"] = {"Nyishi"},
["nka"] = {"Nkoya"},
["nkb"] = {"Khoibu Naga"},
["nkc"] = {"Nkongho"},
["nkd"] = {"Koireng"},
["nke"] = {"Duke"},
["nkf"] = {"Inpui Naga"},
["nkg"] = {"Nekgini"},
["nkh"] = {"Khezha Naga"},
["nki"] = {"Thangal Naga"},
["nkj"] = {"Nakai"},
["nkk"] = {"Nokuku"},
["nkm"] = {"Namat"},
["nkn"] = {"Nkangala"},
["nko"] = {"Nkonya"},
["nkp"] = {"Niuatoputapu"},
["nkq"] = {"Nkami"},
["nkr"] = {"Nukuoro"},
["nks"] = {"North Asmat"},
["nkt"] = {"Nyika (Tanzania)"},
["nku"] = {"Bouna Kulango"},
["nkv"] = {"Nyika (Malawi and Zambia)"},
["nkw"] = {"Nkutu"},
["nkx"] = {"Nkoroo"},
["nkz"] = {"Nkari"},
["nla"] = {"Ngombale"},
["nlc"] = {"Nalca"},
["nld"] = {"Dutch", "Flemish"},
["nle"] = {"East Nyala"},
["nlg"] = {"Gela"},
["nli"] = {"Grangali"},
["nlj"] = {"Nyali"},
["nlk"] = {"Ninia Yali"},
["nll"] = {"Nihali"},
["nlm"] = {"Mankiyali"},
["nlo"] = {"Ngul"},
["nlq"] = {"Lao Naga"},
["nlu"] = {"Nchumbulu"},
["nlv"] = {"Orizaba Nahuatl"},
["nlw"] = {"Walangama"},
["nlx"] = {"Nahali"},
["nly"] = {"Nyamal"},
["nlz"] = {"Nalögo"},
["nma"] = {"Maram Naga"},
["nmb"] = {"Big Nambas", "V'ënen Taut"},
["nmc"] = {"Ngam"},
["nmd"] = {"Ndumu"},
["nme"] = {"Mzieme Naga"},
["nmf"] = {"Tangkhul Naga (India)"},
["nmg"] = {"Kwasio"},
["nmh"] = {"Monsang Naga"},
["nmi"] = {"Nyam"},
["nmj"] = {"Ngombe (Central African Republic)"},
["nmk"] = {"Namakura"},
["nml"] = {"Ndemli"},
["nmm"] = {"Manangba"},
["nmn"] = {"ǃXóõ"},
["nmo"] = {"Moyon Naga"},
["nmp"] = {"Nimanbur"},
["nmq"] = {"Nambya"},
["nmr"] = {"Nimbari"},
["nms"] = {"Letemboi"},
["nmt"] = {"Namonuito"},
["nmu"] = {"Northeast Maidu"},
["nmv"] = {"Ngamini"},
["nmw"] = {"Nimoa", "Rifao"},
["nmx"] = {"Nama (Papua New Guinea)"},
["nmy"] = {"Namuyi"},
["nmz"] = {"Nawdm"},
["nna"] = {"Nyangumarta"},
["nnb"] = {"Nande"},
["nnc"] = {"Nancere"},
["nnd"] = {"West Ambae"},
["nne"] = {"Ngandyera"},
["nnf"] = {"Ngaing"},
["nng"] = {"Maring Naga"},
["nnh"] = {"Ngiemboon"},
["nni"] = {"North Nuaulu"},
["nnj"] = {"Nyangatom"},
["nnk"] = {"Nankina"},
["nnl"] = {"Northern Rengma Naga"},
["nnm"] = {"Namia"},
["nnn"] = {"Ngete"},
["nno"] = {"Norwegian Nynorsk"},
["nnp"] = {"Wancho Naga"},
["nnq"] = {"Ngindo"},
["nnr"] = {"Narungga"},
["nnt"] = {"Nanticoke"},
["nnu"] = {"Dwang"},
["nnv"] = {"Nugunu (Australia)"},
["nnw"] = {"Southern Nuni"},
["nny"] = {"Nyangga"},
["nnz"] = {"Nda'nda'"},
["noa"] = {"Woun Meu"},
["nob"] = {"Norwegian Bokmål"},
["noc"] = {"Nuk"},
["nod"] = {"Northern Thai"},
["noe"] = {"Nimadi"},
["nof"] = {"Nomane"},
["nog"] = {"Nogai"},
["noh"] = {"Nomu"},
["noi"] = {"Noiri"},
["noj"] = {"Nonuya"},
["nok"] = {"Nooksack"},
["nol"] = {"Nomlaki"},
["non"] = {"Old Norse"},
["nop"] = {"Numanggang"},
["noq"] = {"Ngongo"},
["nor"] = {"Norwegian"},
["nos"] = {"Eastern Nisu"},
["not"] = {"Nomatsiguenga"},
["nou"] = {"Ewage-Notu"},
["nov"] = {"Novial"},
["now"] = {"Nyambo"},
["noy"] = {"Noy"},
["noz"] = {"Nayi"},
["npa"] = {"Nar Phu"},
["npb"] = {"Nupbikha"},
["npg"] = {"Ponyo-Gongwang Naga"},
["nph"] = {"Phom Naga"},
["npi"] = {"Nepali (individual language)"},
["npl"] = {"Southeastern Puebla Nahuatl"},
["npn"] = {"Mondropolon"},
["npo"] = {"Pochuri Naga"},
["nps"] = {"Nipsan"},
["npu"] = {"Puimei Naga"},
["npx"] = {"Noipx"},
["npy"] = {"Napu"},
["nqg"] = {"Southern Nago"},
["nqk"] = {"Kura Ede Nago"},
["nql"] = {"Ngendelengo"},
["nqm"] = {"Ndom"},
["nqn"] = {"Nen"},
["nqo"] = {"N'Ko"},
["nqq"] = {"Kyan-Karyaw Naga"},
["nqt"] = {"Nteng"},
["nqy"] = {"Akyaung Ari Naga"},
["nra"] = {"Ngom"},
["nrb"] = {"Nara"},
["nrc"] = {"Noric"},
["nre"] = {"Southern Rengma Naga"},
["nrf"] = {"Guernésiais", "Jèrriais"},
["nrg"] = {"Narango"},
["nri"] = {"Chokri Naga"},
["nrk"] = {"Ngarla"},
["nrl"] = {"Ngarluma"},
["nrm"] = {"Narom"},
["nrn"] = {"Norn"},
["nrp"] = {"North Picene"},
["nrr"] = {"Nora", "Norra"},
["nrt"] = {"Northern Kalapuya"},
["nru"] = {"Narua"},
["nrx"] = {"Ngurmbur"},
["nrz"] = {"Lala"},
["nsa"] = {"Sangtam Naga"},
["nsb"] = {"Lower Nossob"},
["nsc"] = {"Nshi"},
["nsd"] = {"Southern Nisu"},
["nse"] = {"Nsenga"},
["nsf"] = {"Northwestern Nisu"},
["nsg"] = {"Ngasa"},
["nsh"] = {"Ngoshie"},
["nsi"] = {"Nigerian Sign Language"},
["nsk"] = {"Naskapi"},
["nsl"] = {"Norwegian Sign Language"},
["nsm"] = {"Sumi Naga"},
["nsn"] = {"Nehan"},
["nso"] = {"Northern Sotho", "Pedi", "Sepedi"},
["nsp"] = {"Nepalese Sign Language"},
["nsq"] = {"Northern Sierra Miwok"},
["nsr"] = {"Maritime Sign Language"},
["nss"] = {"Nali"},
["nst"] = {"Tase Naga"},
["nsu"] = {"Sierra Negra Nahuatl"},
["nsv"] = {"Southwestern Nisu"},
["nsw"] = {"Navut"},
["nsx"] = {"Nsongo"},
["nsy"] = {"Nasal"},
["nsz"] = {"Nisenan"},
["ntd"] = {"Northern Tidung"},
["ntg"] = {"Ngantangarra"},
["nti"] = {"Natioro"},
["ntj"] = {"Ngaanyatjarra"},
["ntk"] = {"Ikoma-Nata-Isenye"},
["ntm"] = {"Nateni"},
["nto"] = {"Ntomba"},
["ntp"] = {"Northern Tepehuan"},
["ntr"] = {"Delo"},
["ntu"] = {"Natügu"},
["ntw"] = {"Nottoway"},
["ntx"] = {"Tangkhul Naga (Myanmar)"},
["nty"] = {"Mantsi"},
["ntz"] = {"Natanzi"},
["nua"] = {"Yuanga"},
["nuc"] = {"Nukuini"},
["nud"] = {"Ngala"},
["nue"] = {"Ngundu"},
["nuf"] = {"Nusu"},
["nug"] = {"Nungali"},
["nuh"] = {"Ndunda"},
["nui"] = {"Ngumbi"},
["nuj"] = {"Nyole"},
["nuk"] = {"Nuuchahnulth", "Nuu-chah-nulth"},
["nul"] = {"Nusa Laut"},
["num"] = {"Niuafo'ou"},
["nun"] = {"Anong"},
["nuo"] = {"Nguôn"},
["nup"] = {"Nupe-Nupe-Tako"},
["nuq"] = {"Nukumanu"},
["nur"] = {"Nukuria"},
["nus"] = {"Nuer"},
["nut"] = {"Nung (Viet Nam)"},
["nuu"] = {"Ngbundu"},
["nuv"] = {"Northern Nuni"},
["nuw"] = {"Nguluwan"},
["nux"] = {"Mehek"},
["nuy"] = {"Nunggubuyu"},
["nuz"] = {"Tlamacazapa Nahuatl"},
["nvh"] = {"Nasarian"},
["nvm"] = {"Namiae"},
["nvo"] = {"Nyokon"},
["nwa"] = {"Nawathinehena"},
["nwb"] = {"Nyabwa"},
["nwc"] = {"Classical Nepal Bhasa", "Classical Newari", "Old Newari"},
["nwe"] = {"Ngwe"},
["nwg"] = {"Ngayawung"},
["nwi"] = {"Southwest Tanna"},
["nwm"] = {"Nyamusa-Molo"},
["nwo"] = {"Nauo"},
["nwr"] = {"Nawaru"},
["nww"] = {"Ndwewe"},
["nwx"] = {"Middle Newar"},
["nwy"] = {"Nottoway-Meherrin"},
["nxa"] = {"Nauete"},
["nxd"] = {"Ngando (Democratic Republic of Congo)"},
["nxe"] = {"Nage"},
["nxg"] = {"Ngad'a"},
["nxi"] = {"Nindi"},
["nxk"] = {"Koki Naga"},
["nxl"] = {"South Nuaulu"},
["nxm"] = {"Numidian"},
["nxn"] = {"Ngawun"},
["nxo"] = {"Ndambomo"},
["nxq"] = {"Naxi"},
["nxr"] = {"Ninggerum"},
["nxx"] = {"Nafri"},
["nya"] = {"Chewish", "Chewa", "Chichewa", "Nyanja"},
["nyb"] = {"Nyangbo"},
["nyc"] = {"Nyanga-li"},
["nyd"] = {"Nyore", "Olunyole"},
["nye"] = {"Nyengo"},
["nyf"] = {"Giryama", "Kigiryama"},
["nyg"] = {"Nyindu"},
["nyh"] = {"Nyikina"},
["nyi"] = {"Ama (Sudan)"},
["nyj"] = {"Nyanga"},
["nyk"] = {"Nyaneka"},
["nyl"] = {"Nyeu"},
["nym"] = {"Nyamwezi"},
["nyn"] = {"Nyankole"},
["nyo"] = {"Nyoro"},
["nyp"] = {"Nyang'i"},
["nyq"] = {"Nayini"},
["nyr"] = {"Nyiha (Malawi)"},
["nys"] = {"Nyungar"},
["nyt"] = {"Nyawaygi"},
["nyu"] = {"Nyungwe"},
["nyv"] = {"Nyulnyul"},
["nyw"] = {"Nyaw"},
["nyx"] = {"Nganyaywana"},
["nyy"] = {"Nyakyusa-Ngonde"},
["nza"] = {"Tigon Mbembe"},
["nzb"] = {"Njebi"},
["nzd"] = {"Nzadi"},
["nzi"] = {"Nzima"},
["nzk"] = {"Nzakara"},
["nzm"] = {"Zeme Naga"},
["nzr"] = {"Dir-Nyamzak-Mbarimi"},
["nzs"] = {"New Zealand Sign Language"},
["nzu"] = {"Teke-Nzikou"},
["nzy"] = {"Nzakambay"},
["nzz"] = {"Nanga Dama Dogon"},
["oaa"] = {"Orok"},
["oac"] = {"Oroch"},
["oak"] = {"Noakhailla", "Noakhali"},
["oar"] = {"Ancient Aramaic (up to 700 BCE)", "Old Aramaic (up to 700 BCE)"},
["oav"] = {"Old Avar"},
["obi"] = {"Obispeño"},
["obk"] = {"Southern Bontok"},
["obl"] = {"Oblo"},
["obm"] = {"Moabite"},
["obo"] = {"Obo Manobo"},
["obr"] = {"Old Burmese"},
["obt"] = {"Old Breton"},
["obu"] = {"Obulom"},
["oca"] = {"Ocaina"},
["och"] = {"Old Chinese"},
["oci"] = {"Occitan (post 1500)"},
["ocm"] = {"Old Cham"},
["oco"] = {"Old Cornish"},
["ocu"] = {"Atzingo Matlatzinca"},
["oda"] = {"Odut"},
["odk"] = {"Od"},
["odt"] = {"Old Dutch"},
["odu"] = {"Odual"},
["ofo"] = {"Ofo"},
["ofs"] = {"Old Frisian"},
["ofu"] = {"Efutop"},
["ogb"] = {"Ogbia"},
["ogc"] = {"Ogbah"},
["oge"] = {"Old Georgian"},
["ogg"] = {"Ogbogolo"},
["ogo"] = {"Khana"},
["ogu"] = {"Ogbronuagum"},
["oht"] = {"Old Hittite"},
["ohu"] = {"Old Hungarian"},
["oia"] = {"Oirata"},
["oie"] = {"Okolie"},
["oin"] = {"Inebu One"},
["ojb"] = {"Northwestern Ojibwa"},
["ojc"] = {"Central Ojibwa"},
["ojg"] = {"Eastern Ojibwa"},
["oji"] = {"Ojibwa"},
["ojp"] = {"Old Japanese"},
["ojs"] = {"Severn Ojibwa"},
["ojv"] = {"Ontong Java"},
["ojw"] = {"Western Ojibwa"},
["oka"] = {"Okanagan"},
["okb"] = {"Okobo"},
["okc"] = {"Kobo"},
["okd"] = {"Okodia"},
["oke"] = {"Okpe (Southwestern Edo)"},
["okg"] = {"Koko Babangk"},
["okh"] = {"Koresh-e Rostam"},
["oki"] = {"Okiek"},
["okj"] = {"Oko-Juwoi"},
["okk"] = {"Kwamtim One"},
["okl"] = {"Old Kentish Sign Language"},
["okm"] = {"Middle Korean (10th-16th cent.)"},
["okn"] = {"Oki-No-Erabu"},
["oko"] = {"Old Korean (3rd-9th cent.)"},
["okr"] = {"Kirike"},
["oks"] = {"Oko-Eni-Osayen"},
["oku"] = {"Oku"},
["okv"] = {"Orokaiva"},
["okx"] = {"Okpe (Northwestern Edo)"},
["okz"] = {"Old Khmer"},
["ola"] = {"Walungge"},
["olb"] = {"Oli-Bodiman"},
["old"] = {"Mochi"},
["ole"] = {"Olekha"},
["olk"] = {"Olkol"},
["olm"] = {"Oloma"},
["olo"] = {"Livvi"},
["olr"] = {"Olrat"},
["olt"] = {"Old Lithuanian"},
["olu"] = {"Kuvale"},
["oma"] = {"Omaha-Ponca"},
["omb"] = {"East Ambae"},
["omc"] = {"Mochica"},
["omg"] = {"Omagua"},
["omi"] = {"Omi"},
["omk"] = {"Omok"},
["oml"] = {"Ombo"},
["omn"] = {"Minoan"},
["omo"] = {"Utarmbung"},
["omp"] = {"Old Manipuri"},
["omr"] = {"Old Marathi"},
["omt"] = {"Omotik"},
["omu"] = {"Omurano"},
["omw"] = {"South Tairora"},
["omx"] = {"Old Mon"},
["omy"] = {"Old Malay"},
["ona"] = {"Ona"},
["onb"] = {"Lingao"},
["one"] = {"Oneida"},
["ong"] = {"Olo"},
["oni"] = {"Onin"},
["onj"] = {"Onjob"},
["onk"] = {"Kabore One"},
["onn"] = {"Onobasulu"},
["ono"] = {"Onondaga"},
["onp"] = {"Sartang"},
["onr"] = {"Northern One"},
["ons"] = {"Ono"},
["ont"] = {"Ontenu"},
["onu"] = {"Unua"},
["onw"] = {"Old Nubian"},
["onx"] = {"Onin Based Pidgin"},
["ood"] = {"Tohono O'odham"},
["oog"] = {"Ong"},
["oon"] = {"Önge"},
["oor"] = {"Oorlams"},
["oos"] = {"Old Ossetic"},
["opa"] = {"Okpamheri"},
["opk"] = {"Kopkaka"},
["opm"] = {"Oksapmin"},
["opo"] = {"Opao"},
["opt"] = {"Opata"},
["opy"] = {"Ofayé"},
["ora"] = {"Oroha"},
["orc"] = {"Orma"},
["ore"] = {"Orejón"},
["org"] = {"Oring"},
["orh"] = {"Oroqen"},
["ori"] = {"Oriya (macrolanguage)"},
["orm"] = {"Oromo"},
["orn"] = {"Orang Kanaq"},
["oro"] = {"Orokolo"},
["orr"] = {"Oruma"},
["ors"] = {"Orang Seletar"},
["ort"] = {"Adivasi Oriya"},
["oru"] = {"Ormuri"},
["orv"] = {"Old Russian"},
["orw"] = {"Oro Win"},
["orx"] = {"Oro"},
["ory"] = {"Odia", "Oriya (individual language)"},
["orz"] = {"Ormu"},
["osa"] = {"Osage"},
["osc"] = {"Oscan"},
["osd"] = {"Digor", "Digor Ossetian", "Digor Ossetic"},
["osi"] = {"Osing"},
["osn"] = {"Old Sundanese"},
["oso"] = {"Ososo"},
["osp"] = {"Old Spanish"},
["oss"] = {"Iron", "Iron Ossetian", "Iron Ossetic", "Ossetian", "Ossetic"},
["ost"] = {"Osatu"},
["osu"] = {"Southern One"},
["osx"] = {"Old Saxon"},
["ota"] = {"Ottoman Turkish (1500-1928)"},
["otb"] = {"Old Tibetan"},
["otd"] = {"Ot Danum"},
["ote"] = {"Mezquital Otomi"},
["oti"] = {"Oti"},
["otk"] = {"Old Turkish"},
["otl"] = {"Tilapa Otomi"},
["otm"] = {"Eastern Highland Otomi"},
["otn"] = {"Tenango Otomi"},
["otq"] = {"Querétaro Otomi"},
["otr"] = {"Otoro"},
["ots"] = {"Estado de México Otomi"},
["ott"] = {"Temoaya Otomi"},
["otu"] = {"Otuke"},
["otw"] = {"Ottawa"},
["otx"] = {"Texcatepec Otomi"},
["oty"] = {"Old Tamil"},
["otz"] = {"Ixtenco Otomi"},
["oua"] = {"Tagargrent"},
["oub"] = {"Glio-Oubi"},
["oue"] = {"Oune"},
["oui"] = {"Old Uighur"},
["oum"] = {"Ouma"},
["ovd"] = {"Elfdalian", "Övdalian"},
["owi"] = {"Owiniga"},
["owl"] = {"Old Welsh"},
["oyb"] = {"Oy"},
["oyd"] = {"Oyda"},
["oym"] = {"Wayampi"},
["oyy"] = {"Oya'oya"},
["ozm"] = {"Koonzime"},
["pab"] = {"Parecís"},
["pac"] = {"Pacoh"},
["pad"] = {"Paumarí"},
["pae"] = {"Pagibete"},
["paf"] = {"Paranawát"},
["pag"] = {"Pangasinan"},
["pah"] = {"Tenharim"},
["pai"] = {"Pe"},
["pak"] = {"Parakanã"},
["pal"] = {"Pahlavi"},
["pam"] = {"Kapampangan", "Pampanga"},
["pan"] = {"Panjabi", "Punjabi"},
["pao"] = {"Northern Paiute"},
["pap"] = {"Papiamento"},
["paq"] = {"Parya"},
["par"] = {"Panamint", "Timbisha"},
["pas"] = {"Papasena"},
["pau"] = {"Palauan"},
["pav"] = {"Pakaásnovos"},
["paw"] = {"Pawnee"},
["pax"] = {"Pankararé"},
["pay"] = {"Pech"},
["paz"] = {"Pankararú"},
["pbb"] = {"Páez"},
["pbc"] = {"Patamona"},
["pbe"] = {"Mezontla Popoloca"},
["pbf"] = {"Coyotepec Popoloca"},
["pbg"] = {"Paraujano"},
["pbh"] = {"E'ñapa Woromaipu"},
["pbi"] = {"Parkwa"},
["pbl"] = {"Mak (Nigeria)"},
["pbm"] = {"Puebla Mazatec"},
["pbn"] = {"Kpasam"},
["pbo"] = {"Papel"},
["pbp"] = {"Badyara"},
["pbr"] = {"Pangwa"},
["pbs"] = {"Central Pame"},
["pbt"] = {"Southern Pashto"},
["pbu"] = {"Northern Pashto"},
["pbv"] = {"Pnar"},
["pby"] = {"Pyu (Papua New Guinea)"},
["pca"] = {"Santa Inés Ahuatempan Popoloca"},
["pcb"] = {"Pear"},
["pcc"] = {"Bouyei"},
["pcd"] = {"Picard"},
["pce"] = {"Ruching Palaung"},
["pcf"] = {"Paliyan"},
["pcg"] = {"Paniya"},
["pch"] = {"Pardhan"},
["pci"] = {"Duruwa"},
["pcj"] = {"Parenga"},
["pck"] = {"Paite Chin"},
["pcl"] = {"Pardhi"},
["pcm"] = {"Nigerian Pidgin"},
["pcn"] = {"Piti"},
["pcp"] = {"Pacahuara"},
["pcw"] = {"Pyapun"},
["pda"] = {"Anam"},
["pdc"] = {"Pennsylvania German"},
["pdi"] = {"Pa Di"},
["pdn"] = {"Fedan", "Podena"},
["pdo"] = {"Padoe"},
["pdt"] = {"Plautdietsch"},
["pdu"] = {"Kayan"},
["pea"] = {"Peranakan Indonesian"},
["peb"] = {"Eastern Pomo"},
["ped"] = {"Mala (Papua New Guinea)"},
["pee"] = {"Taje"},
["pef"] = {"Northeastern Pomo"},
["peg"] = {"Pengo"},
["peh"] = {"Bonan"},
["pei"] = {"Chichimeca-Jonaz"},
["pej"] = {"Northern Pomo"},
["pek"] = {"Penchal"},
["pel"] = {"Pekal"},
["pem"] = {"Phende"},
["peo"] = {"Old Persian (ca. 600-400 B.C.)"},
["pep"] = {"Kunja"},
["peq"] = {"Southern Pomo"},
["pes"] = {"Iranian Persian"},
["pev"] = {"Pémono"},
["pex"] = {"Petats"},
["pey"] = {"Petjo"},
["pez"] = {"Eastern Penan"},
["pfa"] = {"Pááfang"},
["pfe"] = {"Pere"},
["pfl"] = {"Pfaelzisch"},
["pga"] = {"Sudanese Creole Arabic"},
["pgd"] = {"Gāndhārī"},
["pgg"] = {"Pangwali"},
["pgi"] = {"Pagi"},
["pgk"] = {"Rerep"},
["pgl"] = {"Primitive Irish"},
["pgn"] = {"Paelignian"},
["pgs"] = {"Pangseng"},
["pgu"] = {"Pagu"},
["pgz"] = {"Papua New Guinean Sign Language"},
["pha"] = {"Pa-Hng"},
["phd"] = {"Phudagi"},
["phg"] = {"Phuong"},
["phh"] = {"Phukha"},
["phj"] = {"Pahari"},
["phk"] = {"Phake"},
["phl"] = {"Palula", "Phalura"},
["phm"] = {"Phimbi"},
["phn"] = {"Phoenician"},
["pho"] = {"Phunoi"},
["phq"] = {"Phana'"},
["phr"] = {"Pahari-Potwari"},
["pht"] = {"Phu Thai"},
["phu"] = {"Phuan"},
["phv"] = {"Pahlavani"},
["phw"] = {"Phangduwali"},
["pia"] = {"Pima Bajo"},
["pib"] = {"Yine"},
["pic"] = {"Pinji"},
["pid"] = {"Piaroa"},
["pie"] = {"Piro"},
["pif"] = {"Pingelapese"},
["pig"] = {"Pisabo"},
["pih"] = {"Pitkern-Norfuk"},
["pij"] = {"Pijao"},
["pil"] = {"Yom"},
["pim"] = {"Powhatan"},
["pin"] = {"Piame"},
["pio"] = {"Piapoco"},
["pip"] = {"Pero"},
["pir"] = {"Piratapuyo"},
["pis"] = {"Pijin"},
["pit"] = {"Pitta Pitta"},
["piu"] = {"Pintupi-Luritja"},
["piv"] = {"Pileni", "Vaeakau-Taumako"},
["piw"] = {"Pimbwe"},
["pix"] = {"Piu"},
["piy"] = {"Piya-Kwonci"},
["piz"] = {"Pije"},
["pjt"] = {"Pitjantjatjara"},
["pka"] = {"Ardhamāgadhī Prākrit"},
["pkb"] = {"Kipfokomo", "Pokomo"},
["pkc"] = {"Paekche"},
["pkg"] = {"Pak-Tong"},
["pkh"] = {"Pankhu"},
["pkn"] = {"Pakanha"},
["pko"] = {"Pökoot"},
["pkp"] = {"Pukapuka"},
["pkr"] = {"Attapady Kurumba"},
["pks"] = {"Pakistan Sign Language"},
["pkt"] = {"Maleng"},
["pku"] = {"Paku"},
["pla"] = {"Miani"},
["plb"] = {"Polonombauk"},
["plc"] = {"Central Palawano"},
["pld"] = {"Polari"},
["ple"] = {"Palu'e"},
["plg"] = {"Pilagá"},
["plh"] = {"Paulohi"},
["pli"] = {"Pali"},
["plk"] = {"Kohistani Shina"},
["pll"] = {"Shwe Palaung"},
["pln"] = {"Palenquero"},
["plo"] = {"Oluta Popoluca"},
["plq"] = {"Palaic"},
["plr"] = {"Palaka Senoufo"},
["pls"] = {"San Marcos Tlacoyalco Popoloca", "San Marcos Tlalcoyalco Popoloca"},
["plt"] = {"Plateau Malagasy"},
["plu"] = {"Palikúr"},
["plv"] = {"Southwest Palawano"},
["plw"] = {"Brooke's Point Palawano"},
["ply"] = {"Bolyu"},
["plz"] = {"Paluan"},
["pma"] = {"Paama"},
["pmb"] = {"Pambia"},
["pmd"] = {"Pallanganmiddang"},
["pme"] = {"Pwaamei"},
["pmf"] = {"Pamona"},
["pmh"] = {"Māhārāṣṭri Prākrit"},
["pmi"] = {"Northern Pumi"},
["pmj"] = {"Southern Pumi"},
["pml"] = {"Lingua Franca"},
["pmm"] = {"Pomo"},
["pmn"] = {"Pam"},
["pmo"] = {"Pom"},
["pmq"] = {"Northern Pame"},
["pmr"] = {"Paynamar"},
["pms"] = {"Piemontese"},
["pmt"] = {"Tuamotuan"},
["pmw"] = {"Plains Miwok"},
["pmx"] = {"Poumei Naga"},
["pmy"] = {"Papuan Malay"},
["pmz"] = {"Southern Pame"},
["pna"] = {"Punan Bah-Biau"},
["pnb"] = {"Western Panjabi"},
["pnc"] = {"Pannei"},
["pnd"] = {"Mpinda"},
["pne"] = {"Western Penan"},
["png"] = {"Pangu", "Pongu"},
["pnh"] = {"Penrhyn"},
["pni"] = {"Aoheng"},
["pnj"] = {"Pinjarup"},
["pnk"] = {"Paunaka"},
["pnl"] = {"Paleni"},
["pnm"] = {"Punan Batu 1"},
["pnn"] = {"Pinai-Hagahai"},
["pno"] = {"Panobo"},
["pnp"] = {"Pancana"},
["pnq"] = {"Pana (Burkina Faso)"},
["pnr"] = {"Panim"},
["pns"] = {"Ponosakan"},
["pnt"] = {"Pontic"},
["pnu"] = {"Jiongnai Bunu"},
["pnv"] = {"Pinigura"},
["pnw"] = {"Banyjima", "Panytyima"},
["pnx"] = {"Phong-Kniang"},
["pny"] = {"Pinyin"},
["pnz"] = {"Pana (Central African Republic)"},
["poc"] = {"Poqomam"},
["poe"] = {"San Juan Atzingo Popoloca"},
["pof"] = {"Poke"},
["pog"] = {"Potiguára"},
["poh"] = {"Poqomchi'"},
["poi"] = {"Highland Popoluca"},
["pok"] = {"Pokangá"},
["pol"] = {"Polish"},
["pom"] = {"Southeastern Pomo"},
["pon"] = {"Pohnpeian"},
["poo"] = {"Central Pomo"},
["pop"] = {"Pwapwâ"},
["poq"] = {"Texistepec Popoluca"},
["por"] = {"Portuguese"},
["pos"] = {"Sayula Popoluca"},
["pot"] = {"Potawatomi"},
["pov"] = {"Upper Guinea Crioulo"},
["pow"] = {"San Felipe Otlaltepec Popoloca"},
["pox"] = {"Polabian"},
["poy"] = {"Pogolo"},
["ppe"] = {"Papi"},
["ppi"] = {"Paipai"},
["ppk"] = {"Uma"},
["ppl"] = {"Nicarao", "Pipil"},
["ppm"] = {"Papuma"},
["ppn"] = {"Papapana"},
["ppo"] = {"Folopa"},
["ppp"] = {"Pelende"},
["ppq"] = {"Pei"},
["pps"] = {"San Luís Temalacayuca Popoloca"},
["ppt"] = {"Pare"},
["ppu"] = {"Papora"},
["pqa"] = {"Pa'a"},
["pqm"] = {"Malecite-Passamaquoddy"},
["prc"] = {"Parachi"},
["prd"] = {"Parsi-Dari"},
["pre"] = {"Principense"},
["prf"] = {"Paranan"},
["prg"] = {"Prussian"},
["prh"] = {"Porohanon"},
["pri"] = {"Paicî"},
["prk"] = {"Parauk"},
["prl"] = {"Peruvian Sign Language"},
["prm"] = {"Kibiri"},
["prn"] = {"Prasuni"},
["pro"] = {"Old Occitan (to 1500)", "Old Provençal (to 1500)"},
["prq"] = {"Ashéninka Perené"},
["prr"] = {"Puri"},
["prs"] = {"Afghan Persian", "Dari"},
["prt"] = {"Phai"},
["pru"] = {"Puragi"},
["prw"] = {"Parawen"},
["prx"] = {"Purik"},
["prz"] = {"Providencia Sign Language"},
["psa"] = {"Asue Awyu"},
["psc"] = {"Iranian Sign Language", "Persian Sign Language"},
["psd"] = {"Plains Indian Sign Language"},
["pse"] = {"Central Malay"},
["psg"] = {"Penang Sign Language"},
["psh"] = {"Southwest Pashai", "Southwest Pashayi"},
["psi"] = {"Southeast Pashai", "Southeast Pashayi"},
["psl"] = {"Puerto Rican Sign Language"},
["psm"] = {"Pauserna"},
["psn"] = {"Panasuan"},
["pso"] = {"Polish Sign Language"},
["psp"] = {"Philippine Sign Language"},
["psq"] = {"Pasi"},
["psr"] = {"Portuguese Sign Language"},
["pss"] = {"Kaulong"},
["pst"] = {"Central Pashto"},
["psu"] = {"Sauraseni Prākrit"},
["psw"] = {"Port Sandwich"},
["psy"] = {"Piscataway"},
["pta"] = {"Pai Tavytera"},
["pth"] = {"Pataxó Hã-Ha-Hãe"},
["pti"] = {"Pindiini", "Wangkatha"},
["ptn"] = {"Patani"},
["pto"] = {"Zo'é"},
["ptp"] = {"Patep"},
["ptq"] = {"Pattapu"},
["ptr"] = {"Piamatsina"},
["ptt"] = {"Enrekang"},
["ptu"] = {"Bambam"},
["ptv"] = {"Port Vato"},
["ptw"] = {"Pentlatch"},
["pty"] = {"Pathiya"},
["pua"] = {"Western Highland Purepecha"},
["pub"] = {"Purum"},
["puc"] = {"Punan Merap"},
["pud"] = {"Punan Aput"},
["pue"] = {"Puelche"},
["puf"] = {"Punan Merah"},
["pug"] = {"Phuie"},
["pui"] = {"Puinave"},
["puj"] = {"Punan Tubu"},
["pum"] = {"Puma"},
["puo"] = {"Puoc"},
["pup"] = {"Pulabu"},
["puq"] = {"Puquina"},
["pur"] = {"Puruborá"},
["pus"] = {"Pashto", "Pushto"},
["put"] = {"Putoh"},
["puu"] = {"Punu"},
["puw"] = {"Puluwatese"},
["pux"] = {"Puare"},
["puy"] = {"Purisimeño"},
["pwa"] = {"Pawaia"},
["pwb"] = {"Panawa"},
["pwg"] = {"Gapapaiwa"},
["pwi"] = {"Patwin"},
["pwm"] = {"Molbog"},
["pwn"] = {"Paiwan"},
["pwo"] = {"Pwo Western Karen"},
["pwr"] = {"Powari"},
["pww"] = {"Pwo Northern Karen"},
["pxm"] = {"Quetzaltepec Mixe"},
["pye"] = {"Pye Krumen"},
["pym"] = {"Fyam"},
["pyn"] = {"Poyanáwa"},
["pys"] = {"Lengua de Señas del Paraguay", "Paraguayan Sign Language"},
["pyu"] = {"Puyuma"},
["pyx"] = {"Pyu (Myanmar)"},
["pyy"] = {"Pyen"},
["pze"] = {"Pesse"},
["pzh"] = {"Pazeh"},
["pzn"] = {"Jejara Naga", "Para Naga"},
["qua"] = {"Quapaw"},
["qub"] = {"Huallaga Huánuco Quechua"},
["quc"] = {"K'iche'", "Quiché"},
["qud"] = {"Calderón Highland Quichua"},
["que"] = {"Quechua"},
["quf"] = {"Lambayeque Quechua"},
["qug"] = {"Chimborazo Highland Quichua"},
["quh"] = {"South Bolivian Quechua"},
["qui"] = {"Quileute"},
["quk"] = {"Chachapoyas Quechua"},
["qul"] = {"North Bolivian Quechua"},
["qum"] = {"Sipacapense"},
["qun"] = {"Quinault"},
["qup"] = {"Southern Pastaza Quechua"},
["quq"] = {"Quinqui"},
["qur"] = {"Yanahuanca Pasco Quechua"},
["qus"] = {"Santiago del Estero Quichua"},
["quv"] = {"Sacapulteco"},
["quw"] = {"Tena Lowland Quichua"},
["qux"] = {"Yauyos Quechua"},
["quy"] = {"Ayacucho Quechua"},
["quz"] = {"Cusco Quechua"},
["qva"] = {"Ambo-Pasco Quechua"},
["qvc"] = {"Cajamarca Quechua"},
["qve"] = {"Eastern Apurímac Quechua"},
["qvh"] = {"Huamalíes-Dos de Mayo Huánuco Quechua"},
["qvi"] = {"Imbabura Highland Quichua"},
["qvj"] = {"Loja Highland Quichua"},
["qvl"] = {"Cajatambo North Lima Quechua"},
["qvm"] = {"Margos-Yarowilca-Lauricocha Quechua"},
["qvn"] = {"North Junín Quechua"},
["qvo"] = {"Napo Lowland Quechua"},
["qvp"] = {"Pacaraos Quechua"},
["qvs"] = {"San Martín Quechua"},
["qvw"] = {"Huaylla Wanca Quechua"},
["qvy"] = {"Queyu"},
["qvz"] = {"Northern Pastaza Quichua"},
["qwa"] = {"Corongo Ancash Quechua"},
["qwc"] = {"Classical Quechua"},
["qwh"] = {"Huaylas Ancash Quechua"},
["qwm"] = {"Kuman (Russia)"},
["qws"] = {"Sihuas Ancash Quechua"},
["qwt"] = {"Kwalhioqua-Tlatskanai"},
["qxa"] = {"Chiquián Ancash Quechua"},
["qxc"] = {"Chincha Quechua"},
["qxh"] = {"Panao Huánuco Quechua"},
["qxl"] = {"Salasaca Highland Quichua"},
["qxn"] = {"Northern Conchucos Ancash Quechua"},
["qxo"] = {"Southern Conchucos Ancash Quechua"},
["qxp"] = {"Puno Quechua"},
["qxq"] = {"Qashqa'i"},
["qxr"] = {"Cañar Highland Quichua"},
["qxs"] = {"Southern Qiang"},
["qxt"] = {"Santa Ana de Tusi Pasco Quechua"},
["qxu"] = {"Arequipa-La Unión Quechua"},
["qxw"] = {"Jauja Wanca Quechua"},
["qya"] = {"Quenya"},
["qyp"] = {"Quiripi"},
["raa"] = {"Dungmali"},
["rab"] = {"Camling"},
["rac"] = {"Rasawa"},
["rad"] = {"Rade"},
["raf"] = {"Western Meohang"},
["rag"] = {"Logooli", "Lulogooli"},
["rah"] = {"Rabha"},
["rai"] = {"Ramoaaina"},
["raj"] = {"Rajasthani"},
["rak"] = {"Tulu-Bohuai"},
["ral"] = {"Ralte"},
["ram"] = {"Canela"},
["ran"] = {"Riantana"},
["rao"] = {"Rao"},
["rap"] = {"Rapanui"},
["raq"] = {"Saam"},
["rar"] = {"Cook Islands Maori", "Rarotongan"},
["ras"] = {"Tegali"},
["rat"] = {"Razajerdi"},
["rau"] = {"Raute"},
["rav"] = {"Sampang"},
["raw"] = {"Rawang"},
["rax"] = {"Rang"},
["ray"] = {"Rapa"},
["raz"] = {"Rahambuu"},
["rbb"] = {"Rumai Palaung"},
["rbk"] = {"Northern Bontok"},
["rbl"] = {"Miraya Bikol"},
["rbp"] = {"Barababaraba"},
["rcf"] = {"Réunion Creole French"},
["rdb"] = {"Rudbari"},
["rea"] = {"Rerau"},
["reb"] = {"Rembong"},
["ree"] = {"Rejang Kayan"},
["reg"] = {"Kara (Tanzania)"},
["rei"] = {"Reli"},
["rej"] = {"Rejang"},
["rel"] = {"Rendille"},
["rem"] = {"Remo"},
["ren"] = {"Rengao"},
["rer"] = {"Rer Bare"},
["res"] = {"Reshe"},
["ret"] = {"Retta"},
["rey"] = {"Reyesano"},
["rga"] = {"Roria"},
["rge"] = {"Romano-Greek"},
["rgk"] = {"Rangkas"},
["rgn"] = {"Romagnol"},
["rgr"] = {"Resígaro"},
["rgs"] = {"Southern Roglai"},
["rgu"] = {"Ringgou"},
["rhg"] = {"Rohingya"},
["rhp"] = {"Yahang"},
["ria"] = {"Riang (India)"},
["rib"] = {"Bribri Sign Language"},
["rif"] = {"Tarifit"},
["ril"] = {"Riang (Myanmar)", "Riang Lang"},
["rim"] = {"Nyaturu"},
["rin"] = {"Nungu"},
["rir"] = {"Ribun"},
["rit"] = {"Ritharrngu"},
["riu"] = {"Riung"},
["rjg"] = {"Rajong"},
["rji"] = {"Raji"},
["rjs"] = {"Rajbanshi"},
["rka"] = {"Kraol"},
["rkb"] = {"Rikbaktsa"},
["rkh"] = {"Rakahanga-Manihiki"},
["rki"] = {"Rakhine"},
["rkm"] = {"Marka"},
["rkt"] = {"Kamta", "Rangpuri"},
["rkw"] = {"Arakwal"},
["rma"] = {"Rama"},
["rmb"] = {"Rembarrnga"},
["rmc"] = {"Carpathian Romani"},
["rmd"] = {"Traveller Danish"},
["rme"] = {"Angloromani"},
["rmf"] = {"Kalo Finnish Romani"},
["rmg"] = {"Traveller Norwegian"},
["rmh"] = {"Murkim"},
["rmi"] = {"Lomavren"},
["rmk"] = {"Romkun"},
["rml"] = {"Baltic Romani"},
["rmm"] = {"Roma"},
["rmn"] = {"Balkan Romani"},
["rmo"] = {"Sinte Romani"},
["rmp"] = {"Rempi"},
["rmq"] = {"Caló"},
["rms"] = {"Romanian Sign Language"},
["rmt"] = {"Domari"},
["rmu"] = {"Tavringer Romani"},
["rmv"] = {"Romanova"},
["rmw"] = {"Welsh Romani"},
["rmx"] = {"Romam"},
["rmy"] = {"Vlax Romani"},
["rmz"] = {"Marma"},
["rnb"] = {"Brunca Sign Language"},
["rnd"] = {"Ruund"},
["rng"] = {"Ronga"},
["rnl"] = {"Ranglong"},
["rnn"] = {"Roon"},
["rnp"] = {"Rongpo"},
["rnr"] = {"Nari Nari"},
["rnw"] = {"Rungwa"},
["rob"] = {"Tae'"},
["roc"] = {"Cacgia Roglai"},
["rod"] = {"Rogo"},
["roe"] = {"Ronji"},
["rof"] = {"Rombo"},
["rog"] = {"Northern Roglai"},
["roh"] = {"Romansh"},
["rol"] = {"Romblomanon"},
["rom"] = {"Romany"},
["ron"] = {"Moldavian", "Moldovan", "Romanian"},
["roo"] = {"Rotokas"},
["rop"] = {"Kriol"},
["ror"] = {"Rongga"},
["rou"] = {"Runga"},
["row"] = {"Dela-Oenale"},
["rpn"] = {"Repanbitip"},
["rpt"] = {"Rapting"},
["rri"] = {"Ririo"},
["rrm"] = {"Moriori"},
["rro"] = {"Waima"},
["rrt"] = {"Arritinngithigh"},
["rsb"] = {"Romano-Serbian"},
["rsk"] = {"Rusnak", "Ruthenian"},
["rsl"] = {"Russian Sign Language"},
["rsm"] = {"Miriwoong Sign Language"},
["rsn"] = {"Rwandan Sign Language"},
["rsw"] = {"Rishiwa"},
["rtc"] = {"Rungtu Chin"},
["rth"] = {"Ratahan"},
["rtm"] = {"Rotuman"},
["rts"] = {"Yurats"},
["rtw"] = {"Rathawi"},
["rub"] = {"Gungu"},
["ruc"] = {"Ruuli"},
["rue"] = {"Rusyn"},
["ruf"] = {"Luguru"},
["rug"] = {"Roviana"},
["ruh"] = {"Ruga"},
["rui"] = {"Rufiji"},
["ruk"] = {"Che"},
["run"] = {"Rundi"},
["ruo"] = {"Istro Romanian"},
["rup"] = {"Aromanian", "Arumanian", "Macedo-Romanian"},
["ruq"] = {"Megleno Romanian"},
["rus"] = {"Russian"},
["rut"] = {"Rutul"},
["ruu"] = {"Lanas Lobu"},
["ruy"] = {"Mala (Nigeria)"},
["ruz"] = {"Ruma"},
["rwa"] = {"Rawo"},
["rwk"] = {"Rwa"},
["rwl"] = {"Ruwila"},
["rwm"] = {"Amba (Uganda)"},
["rwo"] = {"Rawa"},
["rwr"] = {"Marwari (India)"},
["rxd"] = {"Ngardi"},
["rxw"] = {"Garuwali", "Karuwali"},
["ryn"] = {"Northern Amami-Oshima"},
["rys"] = {"Yaeyama"},
["ryu"] = {"Central Okinawan"},
["rzh"] = {"Rāziḥī"},
["saa"] = {"Saba"},
["sab"] = {"Buglere"},
["sac"] = {"Meskwaki"},
["sad"] = {"Sandawe"},
["sae"] = {"Sabanê"},
["saf"] = {"Safaliba"},
["sag"] = {"Sango"},
["sah"] = {"Yakut"},
["saj"] = {"Sahu"},
["sak"] = {"Sake"},
["sam"] = {"Samaritan Aramaic"},
["san"] = {"Sanskrit"},
["sao"] = {"Sause"},
["saq"] = {"Samburu"},
["sar"] = {"Saraveca"},
["sas"] = {"Sasak"},
["sat"] = {"Santali"},
["sau"] = {"Saleman"},
["sav"] = {"Saafi-Saafi"},
["saw"] = {"Sawi"},
["sax"] = {"Sa"},
["say"] = {"Saya"},
["saz"] = {"Saurashtra"},
["sba"] = {"Ngambay"},
["sbb"] = {"Simbo"},
["sbc"] = {"Kele (Papua New Guinea)"},
["sbd"] = {"Southern Samo"},
["sbe"] = {"Saliba"},
["sbf"] = {"Chabu", "Shabo"},
["sbg"] = {"Seget"},
["sbh"] = {"Sori-Harengan"},
["sbi"] = {"Seti"},
["sbj"] = {"Surbakhal"},
["sbk"] = {"Safwa"},
["sbl"] = {"Botolan Sambal"},
["sbm"] = {"Sagala"},
["sbn"] = {"Sindhi Bhil"},
["sbo"] = {"Sabüm"},
["sbp"] = {"Sangu (Tanzania)"},
["sbq"] = {"Sileibi"},
["sbr"] = {"Sembakung Murut"},
["sbs"] = {"Subiya"},
["sbt"] = {"Kimki"},
["sbu"] = {"Stod Bhoti"},
["sbv"] = {"Sabine"},
["sbw"] = {"Simba"},
["sbx"] = {"Seberuang"},
["sby"] = {"Soli"},
["sbz"] = {"Sara Kaba"},
["scb"] = {"Chut"},
["sce"] = {"Dongxiang"},
["scf"] = {"San Miguel Creole French"},
["scg"] = {"Sanggau"},
["sch"] = {"Sakachep"},
["sci"] = {"Sri Lankan Creole Malay"},
["sck"] = {"Sadri"},
["scl"] = {"Shina"},
["scn"] = {"Sicilian"},
["sco"] = {"Baarle Albinagh"},
["scp"] = {"Helambu Sherpa", "Hyolmo"},
["scq"] = {"Sa'och"},
["scs"] = {"North Slavey"},
["sct"] = {"Southern Katang"},
["scu"] = {"Shumcho"},
["scv"] = {"Sheni"},
["scw"] = {"Sha"},
["scx"] = {"Sicel"},
["scz"] = {"Shaetlan"},
["sda"] = {"Toraja-Sa'dan"},
["sdb"] = {"Shabak"},
["sdc"] = {"Sassarese Sardinian"},
["sde"] = {"Surubu"},
["sdf"] = {"Sarli"},
["sdg"] = {"Savi"},
["sdh"] = {"Southern Kurdish"},
["sdj"] = {"Suundi"},
["sdk"] = {"Sos Kundi"},
["sdl"] = {"Saudi Arabian Sign Language"},
["sdn"] = {"Gallurese Sardinian"},
["sdo"] = {"Bukar-Sadung Bidayuh"},
["sdp"] = {"Sherdukpen"},
["sdq"] = {"Semandang"},
["sdr"] = {"Oraon Sadri"},
["sds"] = {"Sened"},
["sdt"] = {"Shuadit"},
["sdu"] = {"Sarudu"},
["sdx"] = {"Sibu Melanau"},
["sdz"] = {"Sallands"},
["sea"] = {"Semai"},
["seb"] = {"Shempire Senoufo"},
["sec"] = {"Sechelt", "She shashishalhem"},
["sed"] = {"Sedang"},
["see"] = {"Seneca"},
["sef"] = {"Cebaara Senoufo"},
["seg"] = {"Segeju"},
["seh"] = {"Sena"},
["sei"] = {"Seri"},
["sej"] = {"Sene"},
["sek"] = {"Sekani"},
["sel"] = {"Selkup"},
["sen"] = {"Nanerigé Sénoufo"},
["seo"] = {"Suarmin"},
["sep"] = {"Sìcìté Sénoufo"},
["seq"] = {"Senara Sénoufo"},
["ser"] = {"Serrano"},
["ses"] = {"Koyraboro Senni Songhai"},
["set"] = {"Sentani"},
["seu"] = {"Serui-Laut"},
["sev"] = {"Nyarafolo Senoufo"},
["sew"] = {"Sewa Bay"},
["sey"] = {"Secoya"},
["sez"] = {"Senthang Chin"},
["sfb"] = {"French Belgian Sign Language", "Langue des signes de Belgique Francophone"},
["sfe"] = {"Eastern Subanen"},
["sfm"] = {"Small Flowery Miao"},
["sfs"] = {"South African Sign Language"},
["sfw"] = {"Sehwi"},
["sga"] = {"Old Irish (to 900)"},
["sgb"] = {"Mag-antsi Ayta"},
["sgc"] = {"Kipsigis"},
["sgd"] = {"Surigaonon"},
["sge"] = {"Segai"},
["sgg"] = {"Swiss-German Sign Language"},
["sgh"] = {"Shughni"},
["sgi"] = {"Suga"},
["sgj"] = {"Surgujia"},
["sgk"] = {"Sangkong"},
["sgm"] = {"Singa"},
["sgp"] = {"Singpho"},
["sgr"] = {"Sangisari"},
["sgs"] = {"Samogitian"},
["sgt"] = {"Brokpake"},
["sgu"] = {"Salas"},
["sgw"] = {"Sebat Bet Gurage"},
["sgx"] = {"Sierra Leone Sign Language"},
["sgy"] = {"Sanglechi"},
["sgz"] = {"Sursurunga"},
["sha"] = {"Shall-Zwall"},
["shb"] = {"Ninam"},
["shc"] = {"Sonde"},
["shd"] = {"Kundal Shahi"},
["she"] = {"Sheko"},
["shg"] = {"Shua"},
["shh"] = {"Shoshoni"},
["shi"] = {"Tachelhit"},
["shj"] = {"Shatt"},
["shk"] = {"Shilluk"},
["shl"] = {"Shendu"},
["shm"] = {"Shahrudi"},
["shn"] = {"Shan"},
["sho"] = {"Shanga"},
["shp"] = {"Shipibo-Conibo"},
["shq"] = {"Sala"},
["shr"] = {"Shi"},
["shs"] = {"Secwepemctsín", "Shuswap"},
["sht"] = {"Shasta"},
["shu"] = {"Chadian Arabic"},
["shv"] = {"Shehri"},
["shw"] = {"Shwai"},
["shx"] = {"She"},
["shy"] = {"Tachawit"},
["shz"] = {"Syenara Senoufo"},
["sia"] = {"Akkala Sami"},
["sib"] = {"Sebop"},
["sid"] = {"Sidamo"},
["sie"] = {"Simaa"},
["sif"] = {"Siamou"},
["sig"] = {"Paasaal"},
["sih"] = {"Sîshëë", "Zire"},
["sii"] = {"Shom Peng"},
["sij"] = {"Numbami"},
["sik"] = {"Sikiana"},
["sil"] = {"Tumulung Sisaala"},
["sim"] = {"Mende (Papua New Guinea)"},
["sin"] = {"Sinhala", "Sinhalese"},
["sip"] = {"Sikkimese"},
["siq"] = {"Sonia"},
["sir"] = {"Siri"},
["sis"] = {"Siuslaw"},
["siu"] = {"Sinagen"},
["siv"] = {"Sumariup"},
["siw"] = {"Siwai"},
["six"] = {"Sumau"},
["siy"] = {"Sivandi"},
["siz"] = {"Siwi"},
["sja"] = {"Epena"},
["sjb"] = {"Sajau Basap"},
["sjc"] = {"Shaojiang Chinese"},
["sjd"] = {"Kildin Sami"},
["sje"] = {"Pite Sami"},
["sjg"] = {"Assangori"},
["sjk"] = {"Kemi Sami"},
["sjl"] = {"Miji", "Sajalong"},
["sjm"] = {"Mapun"},
["sjn"] = {"Sindarin"},
["sjo"] = {"Xibe"},
["sjp"] = {"Surjapuri"},
["sjr"] = {"Siar-Lak"},
["sjs"] = {"Senhaja De Srair"},
["sjt"] = {"Ter Sami"},
["sju"] = {"Ume Sami"},
["sjw"] = {"Shawnee"},
["ska"] = {"Skagit"},
["skb"] = {"Saek"},
["skc"] = {"Ma Manda"},
["skd"] = {"Southern Sierra Miwok"},
["ske"] = {"Seke (Vanuatu)"},
["skf"] = {"Sakirabiá"},
["skg"] = {"Sakalava Malagasy"},
["skh"] = {"Sikule"},
["ski"] = {"Sika"},
["skj"] = {"Seke (Nepal)"},
["skm"] = {"Kutong"},
["skn"] = {"Kolibugan Subanon"},
["sko"] = {"Seko Tengah"},
["skp"] = {"Sekapan"},
["skq"] = {"Sininkere"},
["skr"] = {"Saraiki", "Seraiki"},
["sks"] = {"Maia"},
["skt"] = {"Sakata"},
["sku"] = {"Sakao"},
["skv"] = {"Skou"},
["skw"] = {"Skepi Creole Dutch"},
["skx"] = {"Seko Padang"},
["sky"] = {"Sikaiana"},
["skz"] = {"Sekar"},
["slc"] = {"Sáliba"},
["sld"] = {"Sissala"},
["sle"] = {"Sholaga"},
["slf"] = {"Swiss-Italian Sign Language"},
["slg"] = {"Selungai Murut"},
["slh"] = {"Southern Puget Sound Salish"},
["sli"] = {"Lower Silesian"},
["slj"] = {"Salumá"},
["slk"] = {"Slovak"},
["sll"] = {"Salt-Yui"},
["slm"] = {"Pangutaran Sama"},
["sln"] = {"Salinan"},
["slp"] = {"Lamaholot"},
["slr"] = {"Salar"},
["sls"] = {"Singapore Sign Language"},
["slt"] = {"Sila"},
["slu"] = {"Selaru"},
["slv"] = {"Slovenian"},
["slw"] = {"Sialum"},
["slx"] = {"Salampasu"},
["sly"] = {"Selayar"},
["slz"] = {"Ma'ya"},
["sma"] = {"Southern Sami"},
["smb"] = {"Simbari"},
["smc"] = {"Som"},
["sme"] = {"Northern Sami"},
["smf"] = {"Auwe"},
["smg"] = {"Simbali"},
["smh"] = {"Samei"},
["smj"] = {"Lule Sami"},
["smk"] = {"Bolinao"},
["sml"] = {"Central Sama"},
["smm"] = {"Musasa"},
["smn"] = {"Inari Sami"},
["smo"] = {"Samoan"},
["smp"] = {"Samaritan"},
["smq"] = {"Samo"},
["smr"] = {"Simeulue"},
["sms"] = {"Skolt Sami"},
["smt"] = {"Simte"},
["smu"] = {"Somray"},
["smv"] = {"Samvedi"},
["smw"] = {"Sumbawa"},
["smx"] = {"Samba"},
["smy"] = {"Semnani"},
["smz"] = {"Simeku"},
["sna"] = {"Shonish"},
["snc"] = {"Sinaugoro"},
["snd"] = {"Sindhi"},
["sne"] = {"Bau Bidayuh"},
["snf"] = {"Noon"},
["sng"] = {"Sanga (Democratic Republic of Congo)"},
["sni"] = {"Sensi"},
["snj"] = {"Riverain Sango"},
["snk"] = {"Soninke"},
["snl"] = {"Sangil"},
["snm"] = {"Southern Ma'di"},
["snn"] = {"Siona"},
["sno"] = {"Snohomish"},
["snp"] = {"Siane"},
["snq"] = {"Sangu (Gabon)"},
["snr"] = {"Sihan"},
["sns"] = {"Nahavaq", "South West Bay"},
["snu"] = {"Senggi", "Viid"},
["snv"] = {"Sa'ban"},
["snw"] = {"Selee"},
["snx"] = {"Sam"},
["sny"] = {"Saniyo-Hiyewe"},
["snz"] = {"Kou"},
["soa"] = {"Thai Song"},
["sob"] = {"Sobei"},
["soc"] = {"So (Democratic Republic of Congo)"},
["sod"] = {"Songoora"},
["soe"] = {"Songomeno"},
["sog"] = {"Sogdian"},
["soh"] = {"Aka"},
["soi"] = {"Sonha"},
["soj"] = {"Soi"},
["sok"] = {"Sokoro"},
["sol"] = {"Solos"},
["som"] = {"Somali"},
["soo"] = {"Songo"},
["sop"] = {"Songe"},
["soq"] = {"Kanasi"},
["sor"] = {"Somrai"},
["sos"] = {"Seeku"},
["sot"] = {"Southern Sotho"},
["sou"] = {"Southern Thai"},
["sov"] = {"Sonsorol"},
["sow"] = {"Sowanda"},
["sox"] = {"Swo"},
["soy"] = {"Miyobe"},
["soz"] = {"Temi"},
["spa"] = {"Castilian", "Spanish"},
["spb"] = {"Sepa (Indonesia)"},
["spc"] = {"Sapé"},
["spd"] = {"Saep"},
["spe"] = {"Sepa (Papua New Guinea)"},
["spg"] = {"Sian"},
["spi"] = {"Saponi"},
["spk"] = {"Sengo"},
["spl"] = {"Selepet"},
["spm"] = {"Akukem"},
["spn"] = {"Sanapaná"},
["spo"] = {"Spokane"},
["spp"] = {"Supyire Senoufo"},
["spq"] = {"Loreto-Ucayali Spanish"},
["spr"] = {"Saparua"},
["sps"] = {"Saposa"},
["spt"] = {"Spiti Bhoti"},
["spu"] = {"Sapuan"},
["spv"] = {"Kosli", "Sambalpuri"},
["spx"] = {"South Picene"},
["spy"] = {"Sabaot"},
["sqa"] = {"Shama-Sambuga"},
["sqh"] = {"Shau"},
["sqi"] = {"Albanian"},
["sqk"] = {"Albanian Sign Language"},
["sqm"] = {"Suma"},
["sqn"] = {"Susquehannock"},
["sqo"] = {"Sorkhei"},
["sqq"] = {"Sou"},
["sqr"] = {"Siculo Arabic"},
["sqs"] = {"Sri Lankan Sign Language"},
["sqt"] = {"Soqotri"},
["squ"] = {"Sḵwx̱wú7mesh sníchim", "Squamish"},
["sqx"] = {"Kufr Qassem Sign Language (KQSL)"},
["sra"] = {"Saruga"},
["srb"] = {"Sora"},
["src"] = {"Logudorese Sardinian"},
["srd"] = {"Sardinian"},
["sre"] = {"Sara"},
["srf"] = {"Nafi"},
["srg"] = {"Sulod"},
["srh"] = {"Sarikoli"},
["sri"] = {"Siriano"},
["srk"] = {"Serudung Murut"},
["srl"] = {"Isirawa"},
["srm"] = {"Saramaccan"},
["srn"] = {"Sranan Tongo"},
["sro"] = {"Campidanese Sardinian"},
["srp"] = {"Serbian"},
["srq"] = {"Sirionó"},
["srr"] = {"Serer"},
["srs"] = {"Sarsi"},
["srt"] = {"Sauri"},
["sru"] = {"Suruí"},
["srv"] = {"Southern Sorsoganon"},
["srw"] = {"Serua"},
["srx"] = {"Sirmauri"},
["sry"] = {"Sera"},
["srz"] = {"Shahmirzadi"},
["ssb"] = {"Southern Sama"},
["ssc"] = {"Suba-Simbiti"},
["ssd"] = {"Siroi"},
["sse"] = {"Balangingi", "Bangingih Sama"},
["ssf"] = {"Thao"},
["ssg"] = {"Seimat"},
["ssh"] = {"Shihhi Arabic"},
["ssi"] = {"Sansi"},
["ssj"] = {"Sausi"},
["ssk"] = {"Sunam"},
["ssl"] = {"Western Sisaala"},
["ssm"] = {"Semnam"},
["ssn"] = {"Waata"},
["sso"] = {"Sissano"},
["ssp"] = {"Spanish Sign Language"},
["ssq"] = {"So'a"},
["ssr"] = {"Swiss-French Sign Language"},
["sss"] = {"Sô"},
["sst"] = {"Sinasina"},
["ssu"] = {"Susuami"},
["ssv"] = {"Shark Bay"},
["ssw"] = {"Swati"},
["ssx"] = {"Samberigi"},
["ssy"] = {"Saho"},
["ssz"] = {"Sengseng"},
["sta"] = {"Settla"},
["stb"] = {"Northern Subanen"},
["std"] = {"Sentinel"},
["ste"] = {"Liana-Seti"},
["stf"] = {"Seta"},
["stg"] = {"Trieng"},
["sth"] = {"Shelta"},
["sti"] = {"Bulo Stieng"},
["stj"] = {"Matya Samo"},
["stk"] = {"Arammba"},
["stl"] = {"Stellingwerfs"},
["stm"] = {"Setaman"},
["stn"] = {"Owa"},
["sto"] = {"Stoney"},
["stp"] = {"Southeastern Tepehuan"},
["stq"] = {"Saterfriesisch"},
["str"] = {"Straits Salish"},
["sts"] = {"Shumashti"},
["stt"] = {"Budeh Stieng"},
["stu"] = {"Samtao"},
["stv"] = {"Silt'e"},
["stw"] = {"Satawalese"},
["sty"] = {"Siberian Tatar"},
["sua"] = {"Sulka"},
["sub"] = {"Suku"},
["suc"] = {"Western Subanon"},
["sue"] = {"Suena"},
["sug"] = {"Suganga"},
["sui"] = {"Suki"},
["suj"] = {"Shubi"},
["suk"] = {"Sukuma"},
["sun"] = {"Sundanese"},
["suo"] = {"Bouni"},
["suq"] = {"Suri", "Tirmaga-Chai Suri"},
["sur"] = {"Mwaghavul"},
["sus"] = {"Susu"},
["sut"] = {"Subtiaba"},
["suv"] = {"Puroik"},
["suw"] = {"Sumbwa"},
["sux"] = {"Sumerian"},
["suy"] = {"Suyá"},
["suz"] = {"Sunwar"},
["sva"] = {"Svan"},
["svb"] = {"Ulau-Suain"},
["svc"] = {"Vincentian Creole English"},
["sve"] = {"Serili"},
["svk"] = {"Slovakian Sign Language"},
["svm"] = {"Slavomolisano"},
["svs"] = {"Savosavo"},
["svx"] = {"Skalvian"},
["swa"] = {"Swahilish (mooar-hengey)"},
["swb"] = {"Comoroish Maore"},
["swc"] = {"Congo Swahili"},
["swe"] = {"Swedish"},
["swf"] = {"Sere"},
["swg"] = {"Swabian"},
["swh"] = {"Kiswahili", "Swahili (individual language)"},
["swi"] = {"Sui"},
["swj"] = {"Sira"},
["swk"] = {"Malawi Sena"},
["swl"] = {"Swedish Sign Language"},
["swm"] = {"Samosa"},
["swn"] = {"Sawknah"},
["swo"] = {"Shanenawa"},
["swp"] = {"Suau"},
["swq"] = {"Sharwa"},
["swr"] = {"Saweru"},
["sws"] = {"Seluwasan"},
["swt"] = {"Sawila"},
["swu"] = {"Suwawa"},
["swv"] = {"Shekhawati"},
["sww"] = {"Sowa"},
["swx"] = {"Suruahá"},
["swy"] = {"Sarua"},
["sxb"] = {"Suba"},
["sxc"] = {"Sicanian"},
["sxe"] = {"Sighu"},
["sxg"] = {"Shixing", "Shuhi"},
["sxk"] = {"Southern Kalapuya"},
["sxl"] = {"Selian"},
["sxm"] = {"Samre"},
["sxn"] = {"Sangir"},
["sxo"] = {"Sorothaptic"},
["sxr"] = {"Saaroa"},
["sxs"] = {"Sasaru"},
["sxu"] = {"Upper Saxon"},
["sxw"] = {"Saxwe Gbe"},
["sya"] = {"Siang"},
["syb"] = {"Central Subanen"},
["syc"] = {"Classical Syriac"},
["syi"] = {"Seki"},
["syk"] = {"Sukur"},
["syl"] = {"Sylheti"},
["sym"] = {"Maya Samo"},
["syn"] = {"Senaya"},
["syo"] = {"Suoy"},
["syr"] = {"Syriac"},
["sys"] = {"Sinyar"},
["syw"] = {"Kagate"},
["syx"] = {"Samay"},
["syy"] = {"Al-Sayyid Bedouin Sign Language"},
["sza"] = {"Semelai"},
["szb"] = {"Ngalum"},
["szc"] = {"Semaq Beri"},
["sze"] = {"Seze"},
["szg"] = {"Sengele"},
["szl"] = {"Silesian"},
["szn"] = {"Sula"},
["szp"] = {"Suabo"},
["szs"] = {"Solomon Islands Sign Language"},
["szv"] = {"Isu (Fako Division)"},
["szw"] = {"Sawai"},
["szy"] = {"Sakizaya"},
["taa"] = {"Lower Tanana"},
["tab"] = {"Tabassaran"},
["tac"] = {"Lowland Tarahumara"},
["tad"] = {"Tause"},
["tae"] = {"Tariana"},
["taf"] = {"Tapirapé"},
["tag"] = {"Tagoi"},
["tah"] = {"Tahitian"},
["taj"] = {"Eastern Tamang"},
["tak"] = {"Tala"},
["tal"] = {"Tal"},
["tam"] = {"Tamil"},
["tan"] = {"Tangale"},
["tao"] = {"Yami"},
["tap"] = {"Taabwa"},
["taq"] = {"Tamasheq"},
["tar"] = {"Central Tarahumara"},
["tas"] = {"Tay Boi"},
["tat"] = {"Tatar"},
["tau"] = {"Upper Tanana"},
["tav"] = {"Tatuyo"},
["taw"] = {"Tai"},
["tax"] = {"Tamki"},
["tay"] = {"Atayal"},
["taz"] = {"Tocho"},
["tba"] = {"Aikanã"},
["tbc"] = {"Takia"},
["tbd"] = {"Kaki Ae"},
["tbe"] = {"Tanimbili"},
["tbf"] = {"Mandara"},
["tbg"] = {"North Tairora"},
["tbh"] = {"Dharawal", "Thurawal"},
["tbi"] = {"Gaam"},
["tbj"] = {"Tiang"},
["tbk"] = {"Calamian Tagbanwa"},
["tbl"] = {"Tboli"},
["tbm"] = {"Tagbu"},
["tbn"] = {"Barro Negro Tunebo"},
["tbo"] = {"Tawala"},
["tbp"] = {"Diebroud", "Taworta"},
["tbr"] = {"Tumtum"},
["tbs"] = {"Tanguat"},
["tbt"] = {"Tembo (Kitembo)"},
["tbu"] = {"Tubar"},
["tbv"] = {"Tobo"},
["tbw"] = {"Tagbanwa"},
["tbx"] = {"Kapin"},
["tby"] = {"Tabaru"},
["tbz"] = {"Ditammari"},
["tca"] = {"Ticuna"},
["tcb"] = {"Tanacross"},
["tcc"] = {"Datooga"},
["tcd"] = {"Tafi"},
["tce"] = {"Southern Tutchone"},
["tcf"] = {"Malinaltepec Me'phaa", "Malinaltepec Tlapanec"},
["tcg"] = {"Tamagario"},
["tch"] = {"Turks And Caicos Creole English"},
["tci"] = {"Wára"},
["tck"] = {"Tchitchege"},
["tcl"] = {"Taman (Myanmar)"},
["tcm"] = {"Tanahmerah"},
["tcn"] = {"Tichurong"},
["tco"] = {"Taungyo"},
["tcp"] = {"Tawr Chin"},
["tcq"] = {"Kaiy"},
["tcs"] = {"Torres Strait Creole", "Yumplatok"},
["tct"] = {"T'en"},
["tcu"] = {"Southeastern Tarahumara"},
["tcw"] = {"Tecpatlán Totonac"},
["tcx"] = {"Toda"},
["tcy"] = {"Tulu"},
["tcz"] = {"Thado Chin"},
["tda"] = {"Tagdal"},
["tdb"] = {"Panchpargania"},
["tdc"] = {"Emberá-Tadó"},
["tdd"] = {"Tai Nüa"},
["tde"] = {"Tiranige Diga Dogon"},
["tdf"] = {"Talieng"},
["tdg"] = {"Western Tamang"},
["tdh"] = {"Thulung"},
["tdi"] = {"Tomadino"},
["tdj"] = {"Tajio"},
["tdk"] = {"Tambas"},
["tdl"] = {"Sur"},
["tdm"] = {"Taruma"},
["tdn"] = {"Tondano"},
["tdo"] = {"Teme"},
["tdq"] = {"Tita"},
["tdr"] = {"Todrah"},
["tds"] = {"Doutai"},
["tdt"] = {"Tetun Dili"},
["tdv"] = {"Toro"},
["tdx"] = {"Tandroy-Mahafaly Malagasy"},
["tdy"] = {"Tadyawan"},
["tea"] = {"Temiar"},
["teb"] = {"Tetete"},
["tec"] = {"Terik"},
["ted"] = {"Tepo Krumen"},
["tee"] = {"Huehuetla Tepehua"},
["tef"] = {"Teressa"},
["teg"] = {"Teke-Tege"},
["teh"] = {"Tehuelche"},
["tei"] = {"Torricelli"},
["tek"] = {"Ibali Teke"},
["tel"] = {"Telugu"},
["tem"] = {"Timne"},
["ten"] = {"Tama (Colombia)"},
["teo"] = {"Teso"},
["tep"] = {"Tepecano"},
["teq"] = {"Temein"},
["ter"] = {"Tereno"},
["tes"] = {"Tengger"},
["tet"] = {"Tetunish"},
["teu"] = {"Soo"},
["tev"] = {"Teor"},
["tew"] = {"Tewa (SUA)"},
["tex"] = {"Tennet"},
["tey"] = {"Tulishi"},
["tez"] = {"Tetserret"},
["tfi"] = {"Tofin Gbe"},
["tfn"] = {"Tanaina"},
["tfo"] = {"Tefaro"},
["tfr"] = {"Teribe"},
["tft"] = {"Ternate"},
["tga"] = {"Sagalla"},
["tgb"] = {"Tobilung"},
["tgc"] = {"Tigak"},
["tgd"] = {"Ciwogai"},
["tge"] = {"Eastern Gorkha Tamang"},
["tgf"] = {"Chalikha"},
["tgh"] = {"Tobagonian Creole English"},
["tgi"] = {"Lawunuia"},
["tgj"] = {"Tagin"},
["tgk"] = {"Tajik"},
["tgl"] = {"Tagalog"},
["tgn"] = {"Tandaganon"},
["tgo"] = {"Sudest"},
["tgp"] = {"Tangoa"},
["tgq"] = {"Tring"},
["tgr"] = {"Tareng"},
["tgs"] = {"Nume"},
["tgt"] = {"Central Tagbanwa"},
["tgu"] = {"Tanggu"},
["tgv"] = {"Tingui-Boto"},
["tgw"] = {"Tagwana Senoufo"},
["tgx"] = {"Tagish"},
["tgy"] = {"Togoyo"},
["tgz"] = {"Tagalaka"},
["tha"] = {"Thai"},
["thd"] = {"Kuuk Thaayorre", "Thayore"},
["the"] = {"Chitwania Tharu"},
["thf"] = {"Thangmi"},
["thh"] = {"Northern Tarahumara"},
["thi"] = {"Tai Long"},
["thk"] = {"Kitharaka", "Tharaka"},
["thl"] = {"Dangaura Tharu"},
["thm"] = {"Aheu"},
["thn"] = {"Thachanadan"},
["thp"] = {"Nłeʔkepmxcín", "Thompson", "Thompson River Salish"},
["thq"] = {"Kochila Tharu"},
["thr"] = {"Rana Tharu"},
["ths"] = {"Thakali"},
["tht"] = {"Tahltan", "Tāłtān"},
["thu"] = {"Thuri"},
["thv"] = {"Tahaggart Tamahaq"},
["thy"] = {"Tha"},
["thz"] = {"Tayart Tamajeq"},
["tia"] = {"Tidikelt Tamazight"},
["tic"] = {"Tira"},
["tif"] = {"Tifal"},
["tig"] = {"Tigre"},
["tih"] = {"Timugon Murut"},
["tii"] = {"Tiene"},
["tij"] = {"Tilung"},
["tik"] = {"Tikar"},
["til"] = {"Tillamook"},
["tim"] = {"Timbe"},
["tin"] = {"Tindi"},
["tio"] = {"Teop"},
["tip"] = {"Trimuris"},
["tiq"] = {"Tiéfo"},
["tir"] = {"Tigrinya"},
["tis"] = {"Masadiit Itneg"},
["tit"] = {"Tinigua"},
["tiu"] = {"Adasen"},
["tiv"] = {"Tiv"},
["tiw"] = {"Tiwi"},
["tix"] = {"Southern Tiwa"},
["tiy"] = {"Tiruray"},
["tiz"] = {"Tai Hongjin"},
["tja"] = {"Tajuasohn"},
["tjg"] = {"Tunjung"},
["tji"] = {"Northern Tujia"},
["tjj"] = {"Tjungundji"},
["tjl"] = {"Tai Laing"},
["tjm"] = {"Timucua"},
["tjn"] = {"Tonjon"},
["tjo"] = {"Temacine Tamazight"},
["tjp"] = {"Tjupany"},
["tjs"] = {"Southern Tujia"},
["tju"] = {"Tjurruru"},
["tjw"] = {"Djabwurrung"},
["tka"] = {"Truká"},
["tkb"] = {"Buksa"},
["tkd"] = {"Tukudede"},
["tke"] = {"Takwane"},
["tkf"] = {"Tukumanféd"},
["tkg"] = {"Tesaka Malagasy"},
["tkl"] = {"Tokelau"},
["tkm"] = {"Takelma"},
["tkn"] = {"Toku-No-Shima"},
["tkp"] = {"Tikopia"},
["tkq"] = {"Tee"},
["tkr"] = {"Tsakhur"},
["tks"] = {"Takestani"},
["tkt"] = {"Kathoriya Tharu"},
["tku"] = {"Upper Necaxa Totonac"},
["tkv"] = {"Mur Pano"},
["tkw"] = {"Teanu"},
["tkx"] = {"Tangko"},
["tkz"] = {"Takua"},
["tla"] = {"Southwestern Tepehuan"},
["tlb"] = {"Tobelo"},
["tlc"] = {"Yecuatla Totonac"},
["tld"] = {"Talaud"},
["tlf"] = {"Telefol"},
["tlg"] = {"Tofanma"},
["tlh"] = {"Klingon", "tlhIngan Hol"},
["tli"] = {"Tlingit"},
["tlj"] = {"Talinga-Bwisi"},
["tlk"] = {"Taloki"},
["tll"] = {"Tetela"},
["tlm"] = {"Tolomako"},
["tln"] = {"Talondo'"},
["tlo"] = {"Talodi"},
["tlp"] = {"Filomena Mata-Coahuitlán Totonac"},
["tlq"] = {"Tai Loi"},
["tlr"] = {"Talise"},
["tls"] = {"Tambotalo"},
["tlt"] = {"Sou Nama", "Teluti"},
["tlu"] = {"Tulehu"},
["tlv"] = {"Taliabu"},
["tlx"] = {"Khehek"},
["tly"] = {"Talysh"},
["tma"] = {"Tama (Chad)"},
["tmb"] = {"Avava", "Katbol"},
["tmc"] = {"Tumak"},
["tmd"] = {"Haruai"},
["tme"] = {"Tremembé"},
["tmf"] = {"Toba-Maskoy"},
["tmg"] = {"Ternateño"},
["tmh"] = {"Tamashek"},
["tmi"] = {"Tutuba"},
["tmj"] = {"Samarokena"},
["tml"] = {"Tamnim Citak"},
["tmm"] = {"Tai Thanh"},
["tmn"] = {"Taman (Indonesia)"},
["tmo"] = {"Temoq"},
["tmq"] = {"Tumleo"},
["tmr"] = {"Jewish Babylonian Aramaic (ca. 200-1200 CE)"},
["tms"] = {"Tima"},
["tmt"] = {"Tasmate"},
["tmu"] = {"Iau"},
["tmv"] = {"Tembo (Motembo)"},
["tmw"] = {"Temuan"},
["tmy"] = {"Tami"},
["tmz"] = {"Tamanaku"},
["tna"] = {"Tacana"},
["tnb"] = {"Western Tunebo"},
["tnc"] = {"Tanimuca-Retuarã"},
["tnd"] = {"Angosturas Tunebo"},
["tng"] = {"Tobanga"},
["tnh"] = {"Maiani"},
["tni"] = {"Tandia"},
["tnk"] = {"Kwamera"},
["tnl"] = {"Lenakel"},
["tnm"] = {"Tabla"},
["tnn"] = {"North Tanna"},
["tno"] = {"Toromono"},
["tnp"] = {"Whitesands"},
["tnq"] = {"Taino"},
["tnr"] = {"Ménik"},
["tns"] = {"Tenis"},
["tnt"] = {"Tontemboan"},
["tnu"] = {"Tay Khang"},
["tnv"] = {"Tangchangya"},
["tnw"] = {"Tonsawang"},
["tnx"] = {"Tanema"},
["tny"] = {"Tongwe"},
["tnz"] = {"Ten'edn"},
["tob"] = {"Toba"},
["toc"] = {"Coyutla Totonac"},
["tod"] = {"Toma"},
["tof"] = {"Gizrra"},
["tog"] = {"Tonga (Nyasa)"},
["toh"] = {"Gitonga"},
["toi"] = {"Tonga (Zambia)"},
["toj"] = {"Tojolabal"},
["tok"] = {"Toki Pona"},
["tol"] = {"Tolowa"},
["tom"] = {"Tombulu"},
["ton"] = {"Tonga (Tonga Islands)"},
["too"] = {"Xicotepec De Juárez Totonac"},
["top"] = {"Papantla Totonac"},
["toq"] = {"Toposa"},
["tor"] = {"Togbo-Vara Banda"},
["tos"] = {"Highland Totonac"},
["tou"] = {"Tho"},
["tov"] = {"Upper Taromi"},
["tow"] = {"Jemez"},
["tox"] = {"Tobian"},
["toy"] = {"Topoiyo"},
["toz"] = {"To"},
["tpa"] = {"Taupota"},
["tpc"] = {"Azoyú Me'phaa", "Azoyú Tlapanec"},
["tpe"] = {"Tippera"},
["tpf"] = {"Tarpia"},
["tpg"] = {"Kula"},
["tpi"] = {"Tok Pisin"},
["tpj"] = {"Tapieté"},
["tpk"] = {"Tupinikin"},
["tpl"] = {"Tlacoapa Me'phaa", "Tlacoapa Tlapanec"},
["tpm"] = {"Tampulma"},
["tpn"] = {"Tupinambá"},
["tpo"] = {"Tai Pao"},
["tpp"] = {"Pisaflores Tepehua"},
["tpq"] = {"Tukpa"},
["tpr"] = {"Tuparí"},
["tpt"] = {"Tlachichilco Tepehua"},
["tpu"] = {"Tampuan"},
["tpv"] = {"Tanapag"},
["tpx"] = {"Acatepec Me'phaa", "Acatepec Tlapanec"},
["tpy"] = {"Trumai"},
["tpz"] = {"Tinputz"},
["tqb"] = {"Tembé"},
["tql"] = {"Lehali"},
["tqm"] = {"Turumsa"},
["tqn"] = {"Tenino"},
["tqo"] = {"Toaripi"},
["tqp"] = {"Tomoip"},
["tqq"] = {"Tunni"},
["tqr"] = {"Torona"},
["tqt"] = {"Western Totonac"},
["tqu"] = {"Touo"},
["tqw"] = {"Tonkawa"},
["tra"] = {"Tirahi"},
["trb"] = {"Terebu"},
["trc"] = {"Copala Triqui"},
["trd"] = {"Turi"},
["tre"] = {"East Tarangan"},
["trf"] = {"Trinidadian Creole English"},
["trg"] = {"Lishán Didán"},
["trh"] = {"Turaka"},
["tri"] = {"Trió"},
["trj"] = {"Toram"},
["trl"] = {"Traveller Scottish"},
["trm"] = {"Tregami"},
["trn"] = {"Trinitario"},
["tro"] = {"Tarao Naga"},
["trp"] = {"Kok Borok"},
["trq"] = {"San Martín Itunyoso Triqui"},
["trr"] = {"Taushiro"},
["trs"] = {"Chicahuaxtla Triqui"},
["trt"] = {"Tunggare"},
["tru"] = {"Surayt", "Turoyo"},
["trv"] = {"Sediq", "Seediq", "Taroko"},
["trw"] = {"Torwali"},
["trx"] = {"Tringgus-Sembaan Bidayuh"},
["try"] = {"Turung"},
["trz"] = {"Torá"},
["tsa"] = {"Tsaangi"},
["tsb"] = {"Tsamai"},
["tsc"] = {"Tswa"},
["tsd"] = {"Tsakonian"},
["tse"] = {"Tunisian Sign Language"},
["tsg"] = {"Tausug"},
["tsh"] = {"Tsuvan"},
["tsi"] = {"Tsimshian"},
["tsj"] = {"Tshangla"},
["tsk"] = {"Tseku"},
["tsl"] = {"Ts'ün-Lao"},
["tsm"] = {"Türk İşaret Dili", "Turkish Sign Language"},
["tsn"] = {"Tswana"},
["tso"] = {"Tsonga"},
["tsp"] = {"Northern Toussian"},
["tsq"] = {"Thai Sign Language"},
["tsr"] = {"Akei"},
["tss"] = {"Taiwan Sign Language"},
["tst"] = {"Tondi Songway Kiini"},
["tsu"] = {"Tsou"},
["tsv"] = {"Tsogo"},
["tsw"] = {"Tsishingini"},
["tsx"] = {"Mubami"},
["tsy"] = {"Tebul Sign Language"},
["tsz"] = {"Purepecha"},
["tta"] = {"Tutelo"},
["ttb"] = {"Gaa"},
["ttc"] = {"Tektiteko"},
["ttd"] = {"Tauade"},
["tte"] = {"Bwanabwana"},
["ttf"] = {"Tuotomb"},
["ttg"] = {"Tutong"},
["tth"] = {"Upper Ta'oih"},
["tti"] = {"Tobati"},
["ttj"] = {"Tooro"},
["ttk"] = {"Totoro"},
["ttl"] = {"Totela"},
["ttm"] = {"Northern Tutchone"},
["ttn"] = {"Towei"},
["tto"] = {"Lower Ta'oih"},
["ttp"] = {"Tombelala"},
["ttq"] = {"Tawallammat Tamajaq"},
["ttr"] = {"Tera"},
["tts"] = {"Northeastern Thai"},
["ttt"] = {"Muslim Tat"},
["ttu"] = {"Torau"},
["ttv"] = {"Titan"},
["ttw"] = {"Long Wat"},
["tty"] = {"Sikaritai"},
["ttz"] = {"Tsum"},
["tua"] = {"Wiarumus"},
["tub"] = {"Tübatulabal"},
["tuc"] = {"Mutu"},
["tud"] = {"Tuxá"},
["tue"] = {"Tuyuca"},
["tuf"] = {"Central Tunebo"},
["tug"] = {"Tunia"},
["tuh"] = {"Taulil"},
["tui"] = {"Tupuri"},
["tuj"] = {"Tugutil"},
["tuk"] = {"Turkmen"},
["tul"] = {"Tula"},
["tum"] = {"Tumbuka"},
["tun"] = {"Tunica"},
["tuo"] = {"Tucano"},
["tuq"] = {"Tedaga"},
["tur"] = {"Turkish"},
["tus"] = {"Tuscarora"},
["tuu"] = {"Tututni"},
["tuv"] = {"Turkana"},
["tux"] = {"Tuxináwa"},
["tuy"] = {"Tugen"},
["tuz"] = {"Turka"},
["tva"] = {"Vaghua"},
["tvd"] = {"Tsuvadi"},
["tve"] = {"Te'un"},
["tvi"] = {"Tulai"},
["tvk"] = {"Southeast Ambrym"},
["tvl"] = {"Tuvalu"},
["tvm"] = {"Tela-Masbuar"},
["tvn"] = {"Tavoyan"},
["tvo"] = {"Tidore"},
["tvs"] = {"Taveta"},
["tvt"] = {"Tutsa Naga"},
["tvu"] = {"Tunen"},
["tvw"] = {"Sedoa"},
["tvx"] = {"Taivoan"},
["tvy"] = {"Timor Pidgin"},
["twa"] = {"Twana"},
["twb"] = {"Western Tawbuid"},
["twc"] = {"Teshenawa"},
["twd"] = {"Twents"},
["twe"] = {"Tewa (Indonesia)"},
["twf"] = {"Northern Tiwa"},
["twg"] = {"Tereweng"},
["twh"] = {"Tai Dón"},
["twi"] = {"Twi"},
["twl"] = {"Tawara"},
["twm"] = {"Tawang Monpa"},
["twn"] = {"Twendi"},
["two"] = {"Tswapong"},
["twp"] = {"Ere"},
["twq"] = {"Tasawaq"},
["twr"] = {"Southwestern Tarahumara"},
["twt"] = {"Turiwára"},
["twu"] = {"Termanu"},
["tww"] = {"Tuwari"},
["twx"] = {"Tewe"},
["twy"] = {"Tawoyan"},
["txa"] = {"Tombonuo"},
["txb"] = {"Tokharian B"},
["txc"] = {"Tsetsaut"},
["txe"] = {"Totoli"},
["txg"] = {"Tangut"},
["txh"] = {"Thracian"},
["txi"] = {"Ikpeng"},
["txj"] = {"Tarjumo"},
["txm"] = {"Tomini"},
["txn"] = {"West Tarangan"},
["txo"] = {"Toto"},
["txq"] = {"Tii"},
["txr"] = {"Tartessian"},
["txs"] = {"Tonsea"},
["txt"] = {"Citak"},
["txu"] = {"Kayapó"},
["txx"] = {"Tatana"},
["txy"] = {"Tanosy Malagasy"},
["tya"] = {"Tauya"},
["tye"] = {"Kyanga"},
["tyh"] = {"O'du"},
["tyi"] = {"Teke-Tsaayi"},
["tyj"] = {"Tai Do", "Tai Yo"},
["tyl"] = {"Thu Lao"},
["tyn"] = {"Kombai"},
["typ"] = {"Thaypan"},
["tyr"] = {"Tai Daeng"},
["tys"] = {"Tày Sa Pa"},
["tyt"] = {"Tày Tac"},
["tyu"] = {"Kua"},
["tyv"] = {"Tuvinian"},
["tyx"] = {"Teke-Tyee"},
["tyy"] = {"Tiyaa"},
["tyz"] = {"Tày"},
["tza"] = {"Tanzanian Sign Language"},
["tzh"] = {"Tzeltal"},
["tzj"] = {"Tz'utujil"},
["tzl"] = {"Talossan"},
["tzm"] = {"Central Atlas Tamazight"},
["tzn"] = {"Tugun"},
["tzo"] = {"Tzotzil"},
["tzx"] = {"Tabriak"},
["uam"] = {"Uamué"},
["uan"] = {"Kuan"},
["uar"] = {"Tairuma"},
["uba"] = {"Ubang"},
["ubi"] = {"Ubi"},
["ubl"] = {"Buhi'non Bikol"},
["ubr"] = {"Ubir"},
["ubu"] = {"Umbu-Ungu"},
["uby"] = {"Ubykh"},
["uda"] = {"Uda"},
["ude"] = {"Udihe"},
["udg"] = {"Muduga"},
["udi"] = {"Udi"},
["udj"] = {"Ujir"},
["udl"] = {"Wuzlam"},
["udm"] = {"Udmurt"},
["udu"] = {"Uduk"},
["ues"] = {"Kioko"},
["ufi"] = {"Ufim"},
["uga"] = {"Ugaritic"},
["ugb"] = {"Kuku-Ugbanh"},
["uge"] = {"Ughele"},
["ugh"] = {"Kubachi"},
["ugn"] = {"Ugandan Sign Language"},
["ugo"] = {"Ugong"},
["ugy"] = {"Uruguayan Sign Language"},
["uha"] = {"Uhami"},
["uhn"] = {"Damal"},
["uig"] = {"Uighur", "Uyghur"},
["uis"] = {"Uisai"},
["uiv"] = {"Iyive"},
["uji"] = {"Tanjijili"},
["uka"] = {"Kaburi"},
["ukg"] = {"Ukuriguma"},
["ukh"] = {"Ukhwejo"},
["uki"] = {"Kui (India)"},
["ukk"] = {"Muak Sa-aak"},
["ukl"] = {"Ukrainian Sign Language"},
["ukp"] = {"Ukpe-Bayobiri"},
["ukq"] = {"Ukwa"},
["ukr"] = {"Ukrainian"},
["uks"] = {"Kaapor Sign Language", "Urubú-Kaapor Sign Language"},
["uku"] = {"Ukue"},
["ukv"] = {"Kuku"},
["ukw"] = {"Ukwuani-Aboh-Ndoni"},
["uky"] = {"Kuuk-Yak"},
["ula"] = {"Fungwa"},
["ulb"] = {"Ulukwumi"},
["ulc"] = {"Ulch"},
["ule"] = {"Lule"},
["ulf"] = {"Afra", "Usku"},
["uli"] = {"Ulithian"},
["ulk"] = {"Meriam Mir"},
["ull"] = {"Ullatan"},
["ulm"] = {"Ulumanda'"},
["uln"] = {"Unserdeutsch"},
["ulu"] = {"Uma' Lung"},
["ulw"] = {"Ulwa"},
["uly"] = {"Buli"},
["uma"] = {"Umatilla"},
["umb"] = {"Umbundu"},
["umc"] = {"Marrucinian"},
["umd"] = {"Umbindhamu"},
["umg"] = {"Morrobalama", "Umbuygamu"},
["umi"] = {"Ukit"},
["umm"] = {"Umon"},
["umn"] = {"Makyan Naga"},
["umo"] = {"Umotína"},
["ump"] = {"Umpila"},
["umr"] = {"Umbugarla"},
["ums"] = {"Pendau"},
["umu"] = {"Munsee"},
["una"] = {"North Watut"},
["und"] = {"Undetermined"},
["une"] = {"Uneme"},
["ung"] = {"Ngarinyin"},
["uni"] = {"Uni"},
["unk"] = {"Enawené-Nawé"},
["unm"] = {"Unami"},
["unn"] = {"Kurnai"},
["unr"] = {"Mundari"},
["unu"] = {"Unubahe"},
["unx"] = {"Munda"},
["unz"] = {"Unde Kaili"},
["uon"] = {"Kulon"},
["upi"] = {"Umeda"},
["upv"] = {"Uripiv-Wala-Rano-Atchin"},
["ura"] = {"Urarina"},
["urb"] = {"Kaapor", "Urubú-Kaapor"},
["urc"] = {"Urningangg"},
["urd"] = {"Urdu"},
["ure"] = {"Uru"},
["urf"] = {"Uradhi"},
["urg"] = {"Urigina"},
["urh"] = {"Urhobo"},
["uri"] = {"Urim"},
["urk"] = {"Urak Lawoi'"},
["url"] = {"Urali"},
["urm"] = {"Urapmin"},
["urn"] = {"Uruangnirin"},
["uro"] = {"Ura (Papua New Guinea)"},
["urp"] = {"Uru-Pa-In"},
["urr"] = {"Lehalurup", "Löyöp"},
["urt"] = {"Urat"},
["uru"] = {"Urumi"},
["urv"] = {"Uruava"},
["urw"] = {"Sop"},
["urx"] = {"Urimo"},
["ury"] = {"Orya"},
["urz"] = {"Uru-Eu-Wau-Wau"},
["usa"] = {"Usarufa"},
["ush"] = {"Ushojo"},
["usi"] = {"Usui"},
["usk"] = {"Usaghade"},
["usp"] = {"Uspanteco"},
["uss"] = {"us-Saare"},
["usu"] = {"Uya"},
["uta"] = {"Otank"},
["ute"] = {"Ute-Southern Paiute"},
["uth"] = {"ut-Hun"},
["utp"] = {"Amba (Solomon Islands)"},
["utr"] = {"Etulo"},
["utu"] = {"Utu"},
["uum"] = {"Urum"},
["uur"] = {"Ura (Vanuatu)"},
["uuu"] = {"U"},
["uve"] = {"Fagauvea", "West Uvean"},
["uvh"] = {"Uri"},
["uvl"] = {"Lote"},
["uwa"] = {"Kuku-Uwanh"},
["uya"] = {"Doko-Uyanga"},
["uzb"] = {"Uzbek"},
["uzn"] = {"Northern Uzbek"},
["uzs"] = {"Southern Uzbek"},
["vaa"] = {"Vaagri Booli"},
["vae"] = {"Vale"},
["vaf"] = {"Vafsi"},
["vag"] = {"Vagla"},
["vah"] = {"Varhadi-Nagpuri"},
["vai"] = {"Vai"},
["vaj"] = {"Northwestern ǃKung", "Sekele", "Vasekele"},
["val"] = {"Vehes"},
["vam"] = {"Vanimo"},
["van"] = {"Valman"},
["vao"] = {"Vao"},
["vap"] = {"Vaiphei"},
["var"] = {"Huarijio"},
["vas"] = {"Vasavi"},
["vau"] = {"Vanuma"},
["vav"] = {"Varli"},
["vay"] = {"Wayu"},
["vbb"] = {"Southeast Babar"},
["vbk"] = {"Southwestern Bontok"},
["vec"] = {"Venetian"},
["ved"] = {"Veddah"},
["vel"] = {"Veluws"},
["vem"] = {"Vemgo-Mabas"},
["ven"] = {"Venda"},
["veo"] = {"Ventureño"},
["vep"] = {"Veps"},
["ver"] = {"Mom Jango"},
["vgr"] = {"Vaghri"},
["vgt"] = {"Flemish Sign Language", "Vlaamse Gebarentaal"},
["vic"] = {"Virgin Islands Creole English"},
["vid"] = {"Vidunda"},
["vie"] = {"Vietnamese"},
["vif"] = {"Vili"},
["vig"] = {"Viemo"},
["vil"] = {"Vilela"},
["vin"] = {"Vinza"},
["vis"] = {"Vishavan"},
["vit"] = {"Viti"},
["viv"] = {"Iduna"},
["vjk"] = {"Bajjika"},
["vka"] = {"Kariyarra"},
["vkj"] = {"Kujarge"},
["vkk"] = {"Kaur"},
["vkl"] = {"Kulisusu"},
["vkm"] = {"Kamakan"},
["vkn"] = {"Koro Nulu"},
["vko"] = {"Kodeoha"},
["vkp"] = {"Korlai Creole Portuguese"},
["vkt"] = {"Tenggarong Kutai Malay"},
["vku"] = {"Kurrama"},
["vkz"] = {"Koro Zuba"},
["vlp"] = {"Valpei"},
["vls"] = {"Vlaams"},
["vma"] = {"Martuyhunira"},
["vmb"] = {"Barbaram"},
["vmc"] = {"Juxtlahuaca Mixtec"},
["vmd"] = {"Mudu Koraga"},
["vme"] = {"East Masela"},
["vmf"] = {"Mainfränkisch"},
["vmg"] = {"Lungalunga"},
["vmh"] = {"Maraghei"},
["vmi"] = {"Miwa"},
["vmj"] = {"Ixtayutla Mixtec"},
["vmk"] = {"Makhuwa-Shirima"},
["vml"] = {"Malgana"},
["vmm"] = {"Mitlatongo Mixtec"},
["vmp"] = {"Soyaltepec Mazatec"},
["vmq"] = {"Soyaltepec Mixtec"},
["vmr"] = {"Marenje"},
["vms"] = {"Moksela"},
["vmu"] = {"Muluridyi"},
["vmv"] = {"Valley Maidu"},
["vmw"] = {"Makhuwa"},
["vmx"] = {"Tamazola Mixtec"},
["vmy"] = {"Ayautla Mazatec"},
["vmz"] = {"Mazatlán Mazatec"},
["vnk"] = {"Lovono", "Vano"},
["vnm"] = {"Neve'ei", "Vinmavis"},
["vnp"] = {"Vunapu"},
["vol"] = {"Volapük"},
["vor"] = {"Voro"},
["vot"] = {"Votic"},
["vra"] = {"Vera'a"},
["vro"] = {"Võro"},
["vrs"] = {"Varisi"},
["vrt"] = {"Banam Bay", "Burmbar"},
["vsi"] = {"Moldova Sign Language"},
["vsl"] = {"Venezuelan Sign Language"},
["vsn"] = {"Vedic Sanskrit"},
["vsv"] = {"Llengua de signes valenciana", "Valencian Sign Language"},
["vto"] = {"Vitou"},
["vum"] = {"Vumbu"},
["vun"] = {"Vunjo"},
["vut"] = {"Vute"},
["vwa"] = {"Awa (China)"},
["waa"] = {"Walla Walla"},
["wab"] = {"Wab"},
["wac"] = {"Wasco-Wishram"},
["wad"] = {"Wamesa", "Wondama"},
["wae"] = {"Walser"},
["waf"] = {"Wakoná"},
["wag"] = {"Wa'ema"},
["wah"] = {"Watubela"},
["wai"] = {"Wares"},
["waj"] = {"Waffa"},
["wal"] = {"Wolaitta", "Wolaytta"},
["wam"] = {"Wampanoag"},
["wan"] = {"Wan"},
["wao"] = {"Wappo"},
["wap"] = {"Wapishana"},
["waq"] = {"Wagiman"},
["war"] = {"Waray (Philippines)"},
["was"] = {"Washo"},
["wat"] = {"Kaninuwa"},
["wau"] = {"Waurá"},
["wav"] = {"Waka"},
["waw"] = {"Waiwai"},
["wax"] = {"Marangis", "Watam"},
["way"] = {"Wayana"},
["waz"] = {"Wampur"},
["wba"] = {"Warao"},
["wbb"] = {"Wabo"},
["wbe"] = {"Waritai"},
["wbf"] = {"Wara"},
["wbh"] = {"Wanda"},
["wbi"] = {"Vwanji"},
["wbj"] = {"Alagwa"},
["wbk"] = {"Waigali"},
["wbl"] = {"Wakhi"},
["wbm"] = {"Wa"},
["wbp"] = {"Warlpiri"},
["wbq"] = {"Waddar"},
["wbr"] = {"Wagdi"},
["wbs"] = {"West Bengal Sign Language"},
["wbt"] = {"Warnman"},
["wbv"] = {"Wajarri"},
["wbw"] = {"Woi"},
["wca"] = {"Yanomámi"},
["wci"] = {"Waci Gbe"},
["wdd"] = {"Wandji"},
["wdg"] = {"Wadaginam"},
["wdj"] = {"Wadjiginy"},
["wdk"] = {"Wadikali"},
["wdt"] = {"Wendat"},
["wdu"] = {"Wadjigu"},
["wdy"] = {"Wadjabangayi"},
["wea"] = {"Wewaw"},
["wec"] = {"Wè Western"},
["wed"] = {"Wedau"},
["weg"] = {"Wergaia"},
["weh"] = {"Weh"},
["wei"] = {"Kiunum"},
["wem"] = {"Weme Gbe"},
["weo"] = {"Wemale"},
["wep"] = {"Westphalien"},
["wer"] = {"Weri"},
["wes"] = {"Cameroon Pidgin"},
["wet"] = {"Perai"},
["weu"] = {"Rawngtu Chin"},
["wew"] = {"Wejewa"},
["wfg"] = {"Yafi", "Zorop"},
["wga"] = {"Wagaya"},
["wgb"] = {"Wagawaga"},
["wgg"] = {"Wangganguru", "Wangkangurru"},
["wgi"] = {"Wahgi"},
["wgo"] = {"Waigeo"},
["wgu"] = {"Wirangu"},
["wgy"] = {"Warrgamay"},
["wha"] = {"Manusela", "Sou Upaa"},
["whg"] = {"North Wahgi"},
["whk"] = {"Wahau Kenyah"},
["whu"] = {"Wahau Kayan"},
["wib"] = {"Southern Toussian"},
["wic"] = {"Wichita"},
["wie"] = {"Wik-Epa"},
["wif"] = {"Wik-Keyangan"},
["wig"] = {"Wik Ngathan"},
["wih"] = {"Wik-Me'anha"},
["wii"] = {"Minidien"},
["wij"] = {"Wik-Iiyanh"},
["wik"] = {"Wikalkan"},
["wil"] = {"Wilawila"},
["wim"] = {"Wik-Mungkan"},
["win"] = {"Ho-Chunk"},
["wir"] = {"Wiraféd"},
["wiu"] = {"Wiru"},
["wiv"] = {"Vitu"},
["wiy"] = {"Wiyot"},
["wja"] = {"Waja"},
["wji"] = {"Warji"},
["wka"] = {"Kw'adza"},
["wkb"] = {"Kumbaran"},
["wkd"] = {"Mo", "Wakde"},
["wkl"] = {"Kalanadi"},
["wkr"] = {"Keerray-Woorroong"},
["wku"] = {"Kunduvadi"},
["wkw"] = {"Wakawaka"},
["wky"] = {"Wangkayutyuru"},
["wla"] = {"Walio"},
["wlc"] = {"Comoroish Mwali"},
["wle"] = {"Wolane"},
["wlg"] = {"Kunbarlang"},
["wlh"] = {"Welaun"},
["wli"] = {"Waioli"},
["wlk"] = {"Wailaki"},
["wll"] = {"Wali (Sudan)"},
["wlm"] = {"Middle Welsh"},
["wln"] = {"Walloon"},
["wlo"] = {"Wolio"},
["wlr"] = {"Wailapa"},
["wls"] = {"Wallisian"},
["wlu"] = {"Wuliwuli"},
["wlv"] = {"Wichí Lhamtés Vejoz"},
["wlw"] = {"Walak"},
["wlx"] = {"Wali (Ghana)"},
["wly"] = {"Waling"},
["wma"] = {"Mawa (Nigeria)"},
["wmb"] = {"Wambaya"},
["wmc"] = {"Wamas"},
["wmd"] = {"Mamaindé"},
["wme"] = {"Wambule"},
["wmg"] = {"Western Minyag"},
["wmh"] = {"Waima'a"},
["wmi"] = {"Wamin"},
["wmm"] = {"Maiwa (Indonesia)"},
["wmn"] = {"Waamwang"},
["wmo"] = {"Wom (Papua New Guinea)"},
["wms"] = {"Wambon"},
["wmt"] = {"Walmajarri"},
["wmw"] = {"Mwani"},
["wmx"] = {"Womo"},
["wnb"] = {"Mokati"},
["wnc"] = {"Wantoat"},
["wnd"] = {"Wandarang"},
["wne"] = {"Waneci"},
["wng"] = {"Wanggom"},
["wni"] = {"Comoroish Ndzwani"},
["wnk"] = {"Wanukaka"},
["wnm"] = {"Wanggamala"},
["wnn"] = {"Wunumara"},
["wno"] = {"Wano"},
["wnp"] = {"Wanap"},
["wnu"] = {"Usan"},
["wnw"] = {"Wintu"},
["wny"] = {"Waanyi", "Wanyi"},
["woa"] = {"Kuwema", "Tyaraity"},
["wob"] = {"Wè Northern"},
["woc"] = {"Wogeo"},
["wod"] = {"Wolani"},
["woe"] = {"Woleaian"},
["wof"] = {"Gambian Wolof"},
["wog"] = {"Wogamusin"},
["woi"] = {"Kamang"},
["wok"] = {"Longto"},
["wol"] = {"Wolof"},
["wom"] = {"Wom (Nigeria)"},
["won"] = {"Wongo"},
["woo"] = {"Manombai"},
["wor"] = {"Woria"},
["wos"] = {"Hanga Hundi"},
["wow"] = {"Wawonii"},
["woy"] = {"Weyto"},
["wpc"] = {"Maco"},
["wrb"] = {"Waluwarra", "Warluwara"},
["wrg"] = {"Gudjal", "Warungu"},
["wrh"] = {"Wiradjuri"},
["wri"] = {"Wariyangga"},
["wrk"] = {"Garrwa"},
["wrl"] = {"Warlmanpa"},
["wrm"] = {"Warumungu"},
["wrn"] = {"Warnang"},
["wro"] = {"Worrorra"},
["wrp"] = {"Waropen"},
["wrr"] = {"Wardaman"},
["wrs"] = {"Waris"},
["wru"] = {"Waru"},
["wrv"] = {"Waruna"},
["wrw"] = {"Gugu Warra"},
["wrx"] = {"Wae Rana"},
["wry"] = {"Merwari"},
["wrz"] = {"Waray (Australia)"},
["wsa"] = {"Warembori"},
["wsg"] = {"Adilabad Gondi"},
["wsi"] = {"Wusi"},
["wsk"] = {"Waskia"},
["wsr"] = {"Owenia"},
["wss"] = {"Wasa"},
["wsu"] = {"Wasu"},
["wsv"] = {"Wotapuri-Katarqalai"},
["wtb"] = {"Matambwe"},
["wtf"] = {"Watiwa"},
["wth"] = {"Wathawurrung"},
["wti"] = {"Berta"},
["wtk"] = {"Watakataui"},
["wtm"] = {"Mewati"},
["wtw"] = {"Wotu"},
["wua"] = {"Wikngenchera"},
["wub"] = {"Wunambal"},
["wud"] = {"Wudu"},
["wuh"] = {"Wutunhua"},
["wul"] = {"Silimo"},
["wum"] = {"Wumbvu"},
["wun"] = {"Bungu"},
["wur"] = {"Wurrugu"},
["wut"] = {"Wutung"},
["wuu"] = {"Wu Chinese"},
["wuv"] = {"Wuvulu-Aua"},
["wux"] = {"Wulna"},
["wuy"] = {"Wauyai"},
["wwa"] = {"Waama"},
["wwb"] = {"Wakabunga"},
["wwo"] = {"Dorig", "Wetamut"},
["wwr"] = {"Warrwa"},
["www"] = {"Wawa"},
["wxa"] = {"Waxianghua"},
["wxw"] = {"Wardandi"},
["wyb"] = {"Wangaaybuwan-Ngiyambaa"},
["wyi"] = {"Woiwurrung"},
["wym"] = {"Wymysorys"},
["wyn"] = {"Wyandot"},
["wyr"] = {"Wayoró"},
["wyy"] = {"Fijiish Heear"},
["xaa"] = {"Andalusian Arabic"},
["xab"] = {"Sambe"},
["xac"] = {"Kachari"},
["xad"] = {"Adai"},
["xae"] = {"Aequian"},
["xag"] = {"Aghwan"},
["xai"] = {"Kaimbé"},
["xaj"] = {"Ararandewára"},
["xak"] = {"Máku"},
["xal"] = {"Kalmyk", "Oirat"},
["xam"] = {"ǀXam"},
["xan"] = {"Xamtanga"},
["xao"] = {"Khao"},
["xap"] = {"Apalachee"},
["xaq"] = {"Aquitanian"},
["xar"] = {"Karami"},
["xas"] = {"Kamas"},
["xat"] = {"Katawixi"},
["xau"] = {"Kauwera"},
["xav"] = {"Xavánte"},
["xaw"] = {"Kawaiisu"},
["xay"] = {"Kayan Mahakam"},
["xbb"] = {"Lower Burdekin"},
["xbc"] = {"Bactrian"},
["xbd"] = {"Bindal"},
["xbe"] = {"Bigambal"},
["xbg"] = {"Bunganditj"},
["xbi"] = {"Kombio"},
["xbj"] = {"Birrpayi"},
["xbm"] = {"Middle Breton"},
["xbn"] = {"Kenaboi"},
["xbo"] = {"Bolgarian"},
["xbp"] = {"Bibbulman"},
["xbr"] = {"Kambera"},
["xbw"] = {"Kambiwá"},
["xby"] = {"Batjala", "Batyala"},
["xcb"] = {"Cumbric"},
["xcc"] = {"Camunic"},
["xce"] = {"Celtiberian"},
["xcg"] = {"Cisalpine Gaulish"},
["xch"] = {"Chemakum", "Chimakum"},
["xcl"] = {"Classical Armenian"},
["xcm"] = {"Comecrudo"},
["xcn"] = {"Cotoname"},
["xco"] = {"Chorasmian"},
["xcr"] = {"Carian"},
["xct"] = {"Classical Tibetan"},
["xcu"] = {"Curonian"},
["xcv"] = {"Chuvantsy"},
["xcw"] = {"Coahuilteco"},
["xcy"] = {"Cayuse"},
["xda"] = {"Darkinyung"},
["xdc"] = {"Dacian"},
["xdk"] = {"Dharuk"},
["xdm"] = {"Edomite"},
["xdo"] = {"Kwandu"},
["xdq"] = {"Kaitag"},
["xdy"] = {"Malayic Dayak"},
["xeb"] = {"Eblan"},
["xed"] = {"Hdi"},
["xeg"] = {"ǁXegwi"},
["xel"] = {"Kelo"},
["xem"] = {"Kembayan"},
["xep"] = {"Epi-Olmec"},
["xer"] = {"Xerénte"},
["xes"] = {"Kesawai"},
["xet"] = {"Xetá"},
["xeu"] = {"Keoru-Ahia"},
["xfa"] = {"Faliscan"},
["xga"] = {"Galatian"},
["xgb"] = {"Gbin"},
["xgd"] = {"Gudang"},
["xgf"] = {"Gabrielino-Fernandeño"},
["xgg"] = {"Goreng"},
["xgi"] = {"Garingbal"},
["xgl"] = {"Galindan"},
["xgm"] = {"Dharumbal", "Guwinmal"},
["xgr"] = {"Garza"},
["xgu"] = {"Unggumi"},
["xgw"] = {"Guwa"},
["xha"] = {"Harami"},
["xhc"] = {"Hunnic"},
["xhd"] = {"Hadrami"},
["xhe"] = {"Khetrani"},
["xhm"] = {"Middle Khmer (1400 to 1850 CE)"},
["xho"] = {"Xhosa"},
["xhr"] = {"Hernican"},
["xht"] = {"Hattic"},
["xhu"] = {"Hurrian"},
["xhv"] = {"Khua"},
["xib"] = {"Iberian"},
["xii"] = {"Xiri"},
["xil"] = {"Illyrian"},
["xin"] = {"Xinca"},
["xir"] = {"Xiriâna"},
["xis"] = {"Kisan"},
["xiv"] = {"Indus Valley Language"},
["xiy"] = {"Xipaya"},
["xjb"] = {"Minjungbal"},
["xjt"] = {"Jaitmatang"},
["xka"] = {"Kalkoti"},
["xkb"] = {"Northern Nago"},
["xkc"] = {"Kho'ini"},
["xkd"] = {"Mendalam Kayan"},
["xke"] = {"Kereho"},
["xkf"] = {"Khengkha"},
["xkg"] = {"Kagoro"},
["xki"] = {"Kenyan Sign Language"},
["xkj"] = {"Kajali"},
["xkk"] = {"Kachok", "Kaco'"},
["xkl"] = {"Mainstream Kenyah"},
["xkn"] = {"Kayan River Kayan"},
["xko"] = {"Kiorr"},
["xkp"] = {"Kabatei"},
["xkq"] = {"Koroni"},
["xkr"] = {"Xakriabá"},
["xks"] = {"Kumbewaha"},
["xkt"] = {"Kantosi"},
["xku"] = {"Kaamba"},
["xkv"] = {"Kgalagadi"},
["xkw"] = {"Kembra"},
["xkx"] = {"Karore"},
["xky"] = {"Uma' Lasan"},
["xkz"] = {"Kurtokha"},
["xla"] = {"Kamula"},
["xlb"] = {"Loup B"},
["xlc"] = {"Lycian"},
["xld"] = {"Lydian"},
["xle"] = {"Lemnian"},
["xlg"] = {"Ligurian (Ancient)"},
["xli"] = {"Liburnian"},
["xln"] = {"Alanic"},
["xlo"] = {"Loup A"},
["xlp"] = {"Lepontic"},
["xls"] = {"Lusitanian"},
["xlu"] = {"Cuneiform Luwian"},
["xly"] = {"Elymian"},
["xma"] = {"Mushungulu"},
["xmb"] = {"Mbonga"},
["xmc"] = {"Makhuwa-Marrevone"},
["xmd"] = {"Mbudum"},
["xme"] = {"Median"},
["xmf"] = {"Mingrelian"},
["xmg"] = {"Mengaka"},
["xmh"] = {"Kugu-Muminh"},
["xmj"] = {"Majera"},
["xmk"] = {"Ancient Macedonian"},
["xml"] = {"Malaysian Sign Language"},
["xmm"] = {"Manado Malay"},
["xmn"] = {"Manichaean Middle Persian"},
["xmo"] = {"Morerebi"},
["xmp"] = {"Kuku-Mu'inh"},
["xmq"] = {"Kuku-Mangk"},
["xmr"] = {"Meroitic"},
["xms"] = {"Moroccan Sign Language"},
["xmt"] = {"Matbat"},
["xmu"] = {"Kamu"},
["xmv"] = {"Antankarana Malagasy", "Tankarana Malagasy"},
["xmw"] = {"Tsimihety Malagasy"},
["xmx"] = {"Maden", "Salawati"},
["xmy"] = {"Mayaguduna"},
["xmz"] = {"Mori Bawah"},
["xna"] = {"Ancient North Arabian"},
["xnb"] = {"Kanakanabu"},
["xng"] = {"Middle Mongolian"},
["xnh"] = {"Kuanhua"},
["xni"] = {"Ngarigu"},
["xnj"] = {"Ngoni (Tanzania)"},
["xnk"] = {"Nganakarti"},
["xnm"] = {"Ngumbarl"},
["xnn"] = {"Northern Kankanay"},
["xno"] = {"Anglo-Norman"},
["xnq"] = {"Ngoni (Mozambique)"},
["xnr"] = {"Kangri"},
["xns"] = {"Kanashi"},
["xnt"] = {"Narragansett"},
["xnu"] = {"Nukunul"},
["xny"] = {"Nyiyaparli"},
["xnz"] = {"Kenzi", "Mattoki"},
["xoc"] = {"O'chi'chi'"},
["xod"] = {"Kokoda"},
["xog"] = {"Soga"},
["xoi"] = {"Kominimung"},
["xok"] = {"Xokleng"},
["xom"] = {"Komo (Sudan)"},
["xon"] = {"Konkomba"},
["xoo"] = {"Xukurú"},
["xop"] = {"Kopar"},
["xor"] = {"Korubo"},
["xow"] = {"Kowaki"},
["xpa"] = {"Pirriya"},
["xpb"] = {"Northeastern Tasmanian", "Pyemmairrener"},
["xpc"] = {"Pecheneg"},
["xpd"] = {"Oyster Bay Tasmanian"},
["xpe"] = {"Liberia Kpelle"},
["xpf"] = {"Nuenonne", "Southeast Tasmanian"},
["xpg"] = {"Phrygian"},
["xph"] = {"North Midlands Tasmanian", "Tyerrenoterpanner"},
["xpi"] = {"Pictish"},
["xpj"] = {"Mpalitjanh"},
["xpk"] = {"Kulina Pano"},
["xpl"] = {"Port Sorell Tasmanian"},
["xpm"] = {"Pumpokol"},
["xpn"] = {"Kapinawá"},
["xpo"] = {"Pochutec"},
["xpp"] = {"Puyo-Paekche"},
["xpq"] = {"Mohegan-Pequot"},
["xpr"] = {"Parthian"},
["xps"] = {"Pisidian"},
["xpt"] = {"Punthamara"},
["xpu"] = {"Punic"},
["xpv"] = {"Northern Tasmanian", "Tommeginne"},
["xpw"] = {"Northwestern Tasmanian", "Peerapper"},
["xpx"] = {"Southwestern Tasmanian", "Toogee"},
["xpy"] = {"Puyo"},
["xpz"] = {"Bruny Island Tasmanian"},
["xqa"] = {"Karakhanid"},
["xqt"] = {"Qatabanian"},
["xra"] = {"Krahô"},
["xrb"] = {"Eastern Karaboro"},
["xrd"] = {"Gundungurra"},
["xre"] = {"Kreye"},
["xrg"] = {"Minang"},
["xri"] = {"Krikati-Timbira"},
["xrm"] = {"Armazic"},
["xrn"] = {"Arin"},
["xrr"] = {"Raetic"},
["xrt"] = {"Aranama-Tamique"},
["xru"] = {"Marriammu"},
["xrw"] = {"Karawa"},
["xsa"] = {"Sabaean"},
["xsb"] = {"Sambal"},
["xsc"] = {"Scythian"},
["xsd"] = {"Sidetic"},
["xse"] = {"Sempan"},
["xsh"] = {"Shamang"},
["xsi"] = {"Sio"},
["xsj"] = {"Subi"},
["xsl"] = {"South Slavey"},
["xsm"] = {"Kasem"},
["xsn"] = {"Sanga (Nigeria)"},
["xso"] = {"Solano"},
["xsp"] = {"Silopi"},
["xsq"] = {"Makhuwa-Saka"},
["xsr"] = {"Sherpa"},
["xsu"] = {"Sanumá"},
["xsv"] = {"Sudovian"},
["xsy"] = {"Saisiyat"},
["xta"] = {"Alcozauca Mixtec"},
["xtb"] = {"Chazumba Mixtec"},
["xtc"] = {"Katcha-Kadugli-Miri"},
["xtd"] = {"Diuxi-Tilantongo Mixtec"},
["xte"] = {"Ketengban"},
["xtg"] = {"Transalpine Gaulish"},
["xth"] = {"Yitha Yitha"},
["xti"] = {"Sinicahua Mixtec"},
["xtj"] = {"San Juan Teita Mixtec"},
["xtl"] = {"Tijaltepec Mixtec"},
["xtm"] = {"Magdalena Peñasco Mixtec"},
["xtn"] = {"Northern Tlaxiaco Mixtec"},
["xto"] = {"Tokharian A"},
["xtp"] = {"San Miguel Piedras Mixtec"},
["xtq"] = {"Tumshuqese"},
["xtr"] = {"Early Tripuri"},
["xts"] = {"Sindihui Mixtec"},
["xtt"] = {"Tacahua Mixtec"},
["xtu"] = {"Cuyamecalco Mixtec"},
["xtv"] = {"Thawa"},
["xtw"] = {"Tawandê"},
["xty"] = {"Yoloxochitl Mixtec"},
["xua"] = {"Alu Kurumba"},
["xub"] = {"Betta Kurumba"},
["xud"] = {"Umiida"},
["xug"] = {"Kunigami"},
["xuj"] = {"Jennu Kurumba"},
["xul"] = {"Ngunawal", "Nunukul"},
["xum"] = {"Umbrian"},
["xun"] = {"Unggaranggu"},
["xuo"] = {"Kuo"},
["xup"] = {"Upper Umpqua"},
["xur"] = {"Urartian"},
["xut"] = {"Kuthant"},
["xuu"] = {"Khwedam", "Kxoe"},
["xve"] = {"Venetic"},
["xvi"] = {"Kamviri"},
["xvn"] = {"Vandalic"},
["xvo"] = {"Volscian"},
["xvs"] = {"Vestinian"},
["xwa"] = {"Kwaza"},
["xwc"] = {"Woccon"},
["xwd"] = {"Wadi Wadi"},
["xwe"] = {"Xwela Gbe"},
["xwg"] = {"Kwegu"},
["xwj"] = {"Wajuk"},
["xwk"] = {"Wangkumara"},
["xwl"] = {"Western Xwla Gbe"},
["xwo"] = {"Written Oirat"},
["xwr"] = {"Kwerba Mamberamo"},
["xwt"] = {"Wotjobaluk"},
["xww"] = {"Wemba Wemba"},
["xxb"] = {"Boro (Ghana)"},
["xxk"] = {"Ke'o"},
["xxm"] = {"Minkin"},
["xxr"] = {"Koropó"},
["xxt"] = {"Tambora"},
["xya"] = {"Yaygir"},
["xyb"] = {"Yandjibara"},
["xyj"] = {"Mayi-Yapi"},
["xyk"] = {"Mayi-Kulan"},
["xyl"] = {"Yalakalore"},
["xyt"] = {"Mayi-Thakurti"},
["xyy"] = {"Yorta Yorta"},
["xzh"] = {"Zhang-Zhung"},
["xzm"] = {"Zemgalian"},
["xzp"] = {"Ancient Zapotec"},
["yaa"] = {"Yaminahua"},
["yab"] = {"Yuhup"},
["yac"] = {"Pass Valley Yali"},
["yad"] = {"Yagua"},
["yae"] = {"Pumé"},
["yaf"] = {"Yaka (Democratic Republic of Congo)"},
["yag"] = {"Yámana"},
["yah"] = {"Yazgulyam"},
["yai"] = {"Yagnobi"},
["yaj"] = {"Banda-Yangere"},
["yak"] = {"Yakama"},
["yal"] = {"Yalunka"},
["yam"] = {"Yamba"},
["yan"] = {"Mayangna"},
["yao"] = {"Yao"},
["yap"] = {"Yapese"},
["yaq"] = {"Yaqui"},
["yar"] = {"Yabarana"},
["yas"] = {"Nugunu (Cameroon)"},
["yat"] = {"Yambeta"},
["yau"] = {"Yuwana"},
["yav"] = {"Yangben"},
["yaw"] = {"Yawalapití"},
["yax"] = {"Yauma"},
["yay"] = {"Agwagwune"},
["yaz"] = {"Lokaa"},
["yba"] = {"Yala"},
["ybb"] = {"Yemba"},
["ybe"] = {"West Yugur"},
["ybh"] = {"Yakha"},
["ybi"] = {"Yamphu"},
["ybj"] = {"Hasha"},
["ybk"] = {"Bokha"},
["ybl"] = {"Yukuben"},
["ybm"] = {"Yaben"},
["ybn"] = {"Yabaâna"},
["ybo"] = {"Yabong"},
["ybx"] = {"Yawiyo"},
["yby"] = {"Yaweyuha"},
["ych"] = {"Chesu"},
["ycl"] = {"Lolopo"},
["ycn"] = {"Yucuna"},
["ycp"] = {"Chepya"},
["ycr"] = {"Yilan Creole"},
["yda"] = {"Yanda"},
["ydd"] = {"Eastern Yiddish"},
["yde"] = {"Yangum Dey"},
["ydg"] = {"Yidgha"},
["ydk"] = {"Yoidik"},
["yea"] = {"Ravula"},
["yec"] = {"Yeniche"},
["yee"] = {"Yimas"},
["yei"] = {"Yeni"},
["yej"] = {"Yevanic"},
["yel"] = {"Yela"},
["yer"] = {"Tarok"},
["yes"] = {"Nyankpa"},
["yet"] = {"Yetfa"},
["yeu"] = {"Yerukula"},
["yev"] = {"Yapunda"},
["yey"] = {"Yeyi"},
["yga"] = {"Malyangapa"},
["ygi"] = {"Yiningayi"},
["ygl"] = {"Yangum Gel"},
["ygm"] = {"Yagomi"},
["ygp"] = {"Gepo"},
["ygr"] = {"Yagaria"},
["ygs"] = {"Yolŋu Sign Language"},
["ygu"] = {"Yugul"},
["ygw"] = {"Yagwoia"},
["yha"] = {"Baha Buyang"},
["yhd"] = {"Judeo-Iraqi Arabic"},
["yhl"] = {"Hlepho Phowa"},
["yhs"] = {"Yan-nhaŋu Sign Language"},
["yia"] = {"Yinggarda"},
["yid"] = {"Yiddish"},
["yif"] = {"Ache"},
["yig"] = {"Wusa Nasu"},
["yih"] = {"Western Yiddish"},
["yii"] = {"Yidiny"},
["yij"] = {"Yindjibarndi"},
["yik"] = {"Dongshanba Lalo"},
["yil"] = {"Yindjilandji"},
["yim"] = {"Yimchungru Naga"},
["yin"] = {"Riang Lai", "Yinchia"},
["yip"] = {"Pholo"},
["yiq"] = {"Miqie"},
["yir"] = {"North Awyu"},
["yis"] = {"Yis"},
["yit"] = {"Eastern Lalu"},
["yiu"] = {"Awu"},
["yiv"] = {"Northern Nisu"},
["yix"] = {"Axi Yi"},
["yiz"] = {"Azhe"},
["yka"] = {"Yakan"},
["ykg"] = {"Northern Yukaghir"},
["ykh"] = {"Khamnigan Mongol"},
["yki"] = {"Yoke"},
["ykk"] = {"Yakaikeke"},
["ykl"] = {"Khlula"},
["ykm"] = {"Kap"},
["ykn"] = {"Kua-nsi"},
["yko"] = {"Yasa"},
["ykr"] = {"Yekora"},
["ykt"] = {"Kathu"},
["yku"] = {"Kuamasi"},
["yky"] = {"Yakoma"},
["yla"] = {"Yaul"},
["ylb"] = {"Yaleba"},
["yle"] = {"Yele"},
["ylg"] = {"Yelogu"},
["yli"] = {"Angguruk Yali"},
["yll"] = {"Yil"},
["ylm"] = {"Limi"},
["yln"] = {"Langnian Buyang"},
["ylo"] = {"Naluo Yi"},
["ylr"] = {"Yalarnnga"},
["ylu"] = {"Aribwaung"},
["yly"] = {"Nyâlayu", "Nyelâyu"},
["ymb"] = {"Yambes"},
["ymc"] = {"Southern Muji"},
["ymd"] = {"Muda"},
["yme"] = {"Yameo"},
["ymg"] = {"Yamongeri"},
["ymh"] = {"Mili"},
["ymi"] = {"Moji"},
["ymk"] = {"Makwe"},
["yml"] = {"Iamalele"},
["ymm"] = {"Maay"},
["ymn"] = {"Sunum", "Yamna"},
["ymo"] = {"Yangum Mon"},
["ymp"] = {"Yamap"},
["ymq"] = {"Qila Muji"},
["ymr"] = {"Malasar"},
["yms"] = {"Mysian"},
["ymx"] = {"Northern Muji"},
["ymz"] = {"Muzi"},
["yna"] = {"Aluo"},
["ynb"] = {"Yamben"},
["ynd"] = {"Yandruwandha"},
["yne"] = {"Lang'e"},
["yng"] = {"Yango"},
["ynk"] = {"Naukan Yupik"},
["ynl"] = {"Yangulam"},
["ynn"] = {"Yana"},
["yno"] = {"Yong"},
["ynq"] = {"Yendang"},
["yns"] = {"Yansi"},
["ynu"] = {"Yahuna"},
["yob"] = {"Yoba"},
["yog"] = {"Yogad"},
["yoi"] = {"Yonaguni"},
["yok"] = {"Yokuts"},
["yom"] = {"Yombe"},
["yon"] = {"Yongkom"},
["yor"] = {"Yoruba"},
["yot"] = {"Yotti"},
["yox"] = {"Yoron"},
["yoy"] = {"Yoy"},
["ypa"] = {"Phala"},
["ypb"] = {"Labo Phowa"},
["ypg"] = {"Phola"},
["yph"] = {"Phupha"},
["ypm"] = {"Phuma"},
["ypn"] = {"Ani Phowa"},
["ypo"] = {"Alo Phola"},
["ypp"] = {"Phupa"},
["ypz"] = {"Phuza"},
["yra"] = {"Yerakai"},
["yrb"] = {"Yareba"},
["yre"] = {"Yaouré"},
["yrk"] = {"Nenets"},
["yrl"] = {"Nhengatu"},
["yrm"] = {"Yirrk-Mel"},
["yrn"] = {"Yerong"},
["yro"] = {"Yaroamë"},
["yrs"] = {"Yarsun"},
["yrw"] = {"Yarawata"},
["yry"] = {"Yarluyandi"},
["ysc"] = {"Yassic"},
["ysd"] = {"Samatao"},
["ysg"] = {"Sonaga"},
["ysl"] = {"Yugoslavian Sign Language"},
["ysm"] = {"Myanmar Sign Language"},
["ysn"] = {"Sani"},
["yso"] = {"Nisi (China)"},
["ysp"] = {"Southern Lolopo"},
["ysr"] = {"Sirenik Yupik"},
["yss"] = {"Yessan-Mayo"},
["ysy"] = {"Sanie"},
["yta"] = {"Talu"},
["ytl"] = {"Tanglang"},
["ytp"] = {"Thopho"},
["ytw"] = {"Yout Wam"},
["yty"] = {"Yatay"},
["yua"] = {"Yucatec Maya", "Yucateco"},
["yub"] = {"Yugambal"},
["yuc"] = {"Yuchi"},
["yud"] = {"Judeo-Tripolitanian Arabic"},
["yue"] = {"Yue Chinese"},
["yuf"] = {"Havasupai-Walapai-Yavapai"},
["yug"] = {"Yug"},
["yui"] = {"Yurutí"},
["yuj"] = {"Karkar-Yuri"},
["yuk"] = {"Yuki"},
["yul"] = {"Yulu"},
["yum"] = {"Quechan"},
["yun"] = {"Bena (Nigeria)"},
["yup"] = {"Yukpa"},
["yuq"] = {"Yuqui"},
["yur"] = {"Yurok"},
["yut"] = {"Yopno"},
["yuw"] = {"Yau (Morobe Province)"},
["yux"] = {"Southern Yukaghir"},
["yuy"] = {"East Yugur"},
["yuz"] = {"Yuracare"},
["yva"] = {"Yawa"},
["yvt"] = {"Yavitero"},
["ywa"] = {"Kalou"},
["ywg"] = {"Yinhawangka"},
["ywl"] = {"Western Lalu"},
["ywn"] = {"Yawanawa"},
["ywq"] = {"Wuding-Luquan Yi"},
["ywr"] = {"Yawuru"},
["ywt"] = {"Central Lalo", "Xishanba Lalo"},
["ywu"] = {"Wumeng Nasu"},
["yww"] = {"Yawarawarga"},
["yxa"] = {"Mayawali"},
["yxg"] = {"Yagara"},
["yxl"] = {"Yardliyawarra"},
["yxm"] = {"Yinwum"},
["yxu"] = {"Yuyu"},
["yxy"] = {"Yabula Yabula"},
["yyr"] = {"Yir Yoront"},
["yyu"] = {"Yau (Sandaun Province)"},
["yyz"] = {"Ayizi"},
["yzg"] = {"E'ma Buyang"},
["yzk"] = {"Zokhuo"},
["zaa"] = {"Sierra de Juárez Zapotec"},
["zab"] = {"San Juan Guelavía Zapotec", "Western Tlacolula Valley Zapotec"},
["zac"] = {"Ocotlán Zapotec"},
["zad"] = {"Cajonos Zapotec"},
["zae"] = {"Yareni Zapotec"},
["zaf"] = {"Ayoquesco Zapotec"},
["zag"] = {"Zaghawa"},
["zah"] = {"Zangwal"},
["zai"] = {"Isthmus Zapotec"},
["zaj"] = {"Zaramo"},
["zak"] = {"Zanaki"},
["zal"] = {"Zauzou"},
["zam"] = {"Miahuatlán Zapotec"},
["zao"] = {"Ozolotepec Zapotec"},
["zap"] = {"Zapotec"},
["zaq"] = {"Aloápam Zapotec"},
["zar"] = {"Rincón Zapotec"},
["zas"] = {"Santo Domingo Albarradas Zapotec"},
["zat"] = {"Tabaa Zapotec"},
["zau"] = {"Zangskari"},
["zav"] = {"Yatzachi Zapotec"},
["zaw"] = {"Mitla Zapotec"},
["zax"] = {"Xadani Zapotec"},
["zay"] = {"Zaysete", "Zayse-Zergulla"},
["zaz"] = {"Zari"},
["zba"] = {"Balaibalan"},
["zbc"] = {"Central Berawan"},
["zbe"] = {"East Berawan"},
["zbl"] = {"Bliss", "Blissymbolics", "Blissymbols"},
["zbt"] = {"Batui"},
["zbu"] = {"Bu (Bauchi State)"},
["zbw"] = {"West Berawan"},
["zca"] = {"Coatecas Altas Zapotec"},
["zcd"] = {"Las Delicias Zapotec"},
["zch"] = {"Central Hongshuihe Zhuang"},
["zdj"] = {"Comoroish Ngazidja"},
["zea"] = {"Zeeuws"},
["zeg"] = {"Zenag"},
["zeh"] = {"Eastern Hongshuihe Zhuang"},
["zem"] = {"Zeem"},
["zen"] = {"Zenaga"},
["zga"] = {"Kinga"},
["zgb"] = {"Guibei Zhuang"},
["zgh"] = {"Standard Moroccan Tamazight"},
["zgm"] = {"Minz Zhuang"},
["zgn"] = {"Guibian Zhuang"},
["zgr"] = {"Magori"},
["zha"] = {"Chuang", "Zhuang"},
["zhb"] = {"Zhaba"},
["zhd"] = {"Dai Zhuang"},
["zhi"] = {"Zhire"},
["zhn"] = {"Nong Zhuang"},
["zho"] = {"Chinese"},
["zhw"] = {"Zhoa"},
["zia"] = {"Zia"},
["zib"] = {"Zimbabwe Sign Language"},
["zik"] = {"Zimakani"},
["zil"] = {"Zialo"},
["zim"] = {"Mesme"},
["zin"] = {"Zinza"},
["ziw"] = {"Zigula"},
["ziz"] = {"Zizilivakan"},
["zka"] = {"Kaimbulawa"},
["zkd"] = {"Kadu"},
["zkg"] = {"Koguryo"},
["zkh"] = {"Khorezmian"},
["zkk"] = {"Karankawa"},
["zkn"] = {"Kanan"},
["zko"] = {"Kott"},
["zkp"] = {"São Paulo Kaingáng"},
["zkr"] = {"Zakhring"},
["zkt"] = {"Kitan"},
["zku"] = {"Kaurna"},
["zkv"] = {"Krevinian"},
["zkz"] = {"Khazar"},
["zla"] = {"Zula"},
["zlj"] = {"Liujiang Zhuang"},
["zlm"] = {"Malay (individual language)"},
["zln"] = {"Lianshan Zhuang"},
["zlq"] = {"Liuqian Zhuang"},
["zlu"] = {"Zul"},
["zma"] = {"Manda (Australia)"},
["zmb"] = {"Zimba"},
["zmc"] = {"Margany"},
["zmd"] = {"Maridan"},
["zme"] = {"Mangerr"},
["zmf"] = {"Mfinu"},
["zmg"] = {"Marti Ke"},
["zmh"] = {"Makolkol"},
["zmi"] = {"Negeri Sembilan Malay"},
["zmj"] = {"Maridjabin"},
["zmk"] = {"Mandandanyi"},
["zml"] = {"Matngala"},
["zmm"] = {"Marimanindji", "Marramaninyshi"},
["zmn"] = {"Mbangwe"},
["zmo"] = {"Molo"},
["zmp"] = {"Mbuun"},
["zmq"] = {"Mituku"},
["zmr"] = {"Maranunggu"},
["zms"] = {"Mbesa"},
["zmt"] = {"Maringarr"},
["zmu"] = {"Muruwari"},
["zmv"] = {"Mbariman-Gudhinma"},
["zmw"] = {"Mbo (Democratic Republic of Congo)"},
["zmx"] = {"Bomitaba"},
["zmy"] = {"Mariyedi"},
["zmz"] = {"Mbandja"},
["zna"] = {"Zan Gula"},
["zne"] = {"Zande (individual language)"},
["zng"] = {"Mang"},
["znk"] = {"Manangkari"},
["zns"] = {"Mangas"},
["zoc"] = {"Copainalá Zoque"},
["zoh"] = {"Chimalapa Zoque"},
["zom"] = {"Zou"},
["zoo"] = {"Asunción Mixtepec Zapotec"},
["zoq"] = {"Tabasco Zoque"},
["zor"] = {"Rayón Zoque"},
["zos"] = {"Francisco León Zoque"},
["zpa"] = {"Lachiguiri Zapotec"},
["zpb"] = {"Yautepec Zapotec"},
["zpc"] = {"Choapan Zapotec"},
["zpd"] = {"Southeastern Ixtlán Zapotec"},
["zpe"] = {"Petapa Zapotec"},
["zpf"] = {"San Pedro Quiatoni Zapotec"},
["zpg"] = {"Guevea De Humboldt Zapotec"},
["zph"] = {"Totomachapan Zapotec"},
["zpi"] = {"Santa María Quiegolani Zapotec"},
["zpj"] = {"Quiavicuzas Zapotec"},
["zpk"] = {"Tlacolulita Zapotec"},
["zpl"] = {"Lachixío Zapotec"},
["zpm"] = {"Mixtepec Zapotec"},
["zpn"] = {"Santa Inés Yatzechi Zapotec"},
["zpo"] = {"Amatlán Zapotec"},
["zpp"] = {"El Alto Zapotec"},
["zpq"] = {"Zoogocho Zapotec"},
["zpr"] = {"Santiago Xanica Zapotec"},
["zps"] = {"Coatlán Zapotec"},
["zpt"] = {"San Vicente Coatlán Zapotec"},
["zpu"] = {"Yalálag Zapotec"},
["zpv"] = {"Chichicapan Zapotec"},
["zpw"] = {"Zaniza Zapotec"},
["zpx"] = {"San Baltazar Loxicha Zapotec"},
["zpy"] = {"Mazaltepec Zapotec"},
["zpz"] = {"Texmelucan Zapotec"},
["zqe"] = {"Qiubei Zhuang"},
["zra"] = {"Kara (Korea)"},
["zrg"] = {"Mirgan"},
["zrn"] = {"Zerenkel"},
["zro"] = {"Záparo"},
["zrp"] = {"Zarphatic"},
["zrs"] = {"Mairasi"},
["zsa"] = {"Sarasira"},
["zsk"] = {"Kaskean"},
["zsl"] = {"Zambian Sign Language"},
["zsm"] = {"Standard Malay"},
["zsr"] = {"Southern Rincon Zapotec"},
["zsu"] = {"Sukurum"},
["zte"] = {"Elotepec Zapotec"},
["ztg"] = {"Xanaguía Zapotec"},
["ztl"] = {"Lapaguía-Guivini Zapotec"},
["ztm"] = {"San Agustín Mixtepec Zapotec"},
["ztn"] = {"Santa Catarina Albarradas Zapotec"},
["ztp"] = {"Loxicha Zapotec"},
["ztq"] = {"Quioquitani-Quierí Zapotec"},
["zts"] = {"Tilquiapan Zapotec"},
["ztt"] = {"Tejalapan Zapotec"},
["ztu"] = {"Güilá Zapotec"},
["ztx"] = {"Zaachila Zapotec"},
["zty"] = {"Yatee Zapotec"},
["zuh"] = {"Tokano"},
["zul"] = {"Zulu"},
["zum"] = {"Kumzari"},
["zun"] = {"Zuni"},
["zuy"] = {"Zumaya"},
["zwa"] = {"Zay"},
["zxx"] = {"No linguistic content", "Not applicable"},
["zyb"] = {"Yongbei Zhuang"},
["zyg"] = {"Yang Zhuang"},
["zyj"] = {"Youjiang Zhuang"},
["zyn"] = {"Yongnan Zhuang"},
["zyp"] = {"Zyphe Chin"},
["zza"] = {"Dimili", "Dimli (macrolanguage)", "Kirdki", "Kirmanjki (macrolanguage)", "Zaza", "Zazaki"},
["zzj"] = {"Zuojiang Zhuang"}
}
ixtcnckvvqdyub490xdxq05ovxf0b7d
Module:Kishtey fys çheer/reiltys
828
55837
395363
395157
2026-10-26T21:18:08Z
MacTire02
219
++
395363
Scribunto
text/plain
-- Version: 2021-10-19
local p = {}
require('strict')
local wdib = require('Module:WikidataIB')
local getValue = wdib._getValue
local getPropOfProp = wdib._getPropOfProp
local followQid = wdib._followQid
local getPropertyIDs = wdib._getPropertyIDs
local i18n = {
["unknown-author"] = mw.wikibase.getLabel("Q4233718"):gsub("^%l", mw.ustring.upper),
["unknown-author-trackingcat"] = "[[Ronney:Cite Q - ughtar gyn fys]]",
["ordinal"] = {
[1] = "d",
[2] = "h",
[3] = "oo",
["default"] = "oo"
},
["months"] = {
"Jerrey Geuree", "Toshiaght Arree", "Mayrnt", "Averil", "Boaldyn", "Mean Souree",
"Jerrey Souree", "Luanistyn", "Mean Fouyir", "Jerrey Fouyir", "Mee Houney", "Mee ny Nollick"
},
}
-------------------------------------------------------------------------------
-- makeOrdinal needs to be internationalised along with the above i18n
-- takes cardinal number as a numeric and returns the ordinal as a string
-- we need three exceptions in English for 1st, 2nd, 3rd, 21st, .. 31st, etc.
-------------------------------------------------------------------------------
p.makeOrdinal = function(cardinal)
local card = tonumber(cardinal)
if not card then return cardinal end
local ordsuffix = i18n.ordinal.default
if card % 10 == 1 then
ordsuffix = i18n.ordinal[1]
elseif card % 10 == 2 then
ordsuffix = i18n.ordinal[2]
elseif card % 10 == 3 then
ordsuffix = i18n.ordinal[3]
end
return card .. ordsuffix
end
-- Table of simple properties that can be fetched in roughly the same way:
-- id = PXXX
-- maxvals = maximum number of multiple values (0 for all)
-- linked = "no" suppresses linking
-- populate_from_journal = true/false determines whether to look in a journal where the source is published
-- rank = "best", "preferred", normal, etc. determines how Wikidata ranks are treated
-- others = true - the value for the property goes to "others" section
local simple_properties = {
publisher = {id = "P123", maxvals = 1},
oclc = {id = "P243", maxvals = 1},
['publication-place'] = {id = "P291", maxvals = 0, linked = 'no'}, -- publication place (don't put into |place=; is treated specially in {{citation}} if both are given)
doi = {id = "P356", maxvals = 1}, -- take care of |doi-broken-date= (WD "reason for deprecation"/"stated as") and |doi-access= (WD "access status")?
issue = {id = "P433", maxvals = 0, populate_from_journal = true}, -- distinguish from |number= ("P1545"?) if both are given (still blocked by {{citation}}, but will be supported in the future)
pmid = {id = "P698", maxvals = 1},
-- gbooks = {id = "P675", maxvals = 1}, -- to be added to {{citation}}
-- ia = {id = "P724", maxvals = 1}, -- to be added to {{citation}}
arxiv = {id = "P818", maxvals = 1},
bibcode = {id = "P819", maxvals = 1}, -- take care of |bibcode-access=?
jstor = {id = "P888", maxvals = 1}, -- take care of |jstor-access=?
mr = {id = "P889", maxvals = 1},
rfc = {id = "P892", maxvals = 1},
zbl = {id = "P894", maxvals = 1},
ssrn = {id = "P893", maxvals = 1},
place = {id = "P1071", maxvals = 0, linked = 'no'}, -- written-at place
-- ['total-pages'] = {id = "P1104", maxvals = 0, linked = 'no'}, -- to be added to {{citation}} / COinS &rft.tpages=
-- coden = {id = "P1159", maxvals = 1}, -- to be added to {{citation}} / COinS &rft.coden=
s2cid = {id = "P8299", maxvals = 1}, -- take care of |s2cid-access=?
pmc = {id = "P932", maxvals = 1}, -- take care of |pmc-embargo-date= (WD "reason for deprecation")?
lccn = {id = "P1144", maxvals = 1},
hdl = {id = "P1184", maxvals = 1}, -- take care of |hdl-access=?
ismn = {id = "P1208", maxvals = 1},
journal = {id = "P1433", maxvals = 1},
citeseerx = {id = "P3784", maxvals = 1},
osti = {id = "P3894", maxvals = 1}, -- take care of |osti-access=?
biorxiv = {id = "P3951", maxvals = 1},
asin = {id = "P5749", maxvals = 1}, -- What about |asin-tld=? (WD examples resolve to .com at present, but may change)
-- ['catalog-number'] = {id = "P528", maxvals = 0}, -- to be added to {{citation}} / COinS &rft.artnum=
isbn = {id = "P212", maxvals = 1, populate_from_journal = true}, -- ISBN 13
issn = {id = "P236", maxvals = 1, populate_from_journal = true}, -- distinguish from |eissn= for electronic issues?
-- jfm = {id = "P?", maxvals = 1}, -- Jahrbuch über die Fortschritte der Mathematik (not Zbl)
-- sbn = {id = "P?", maxvals = 1}, -- Standard Book Number (predecessor of ISBN, not ICCU)
-- message-id = {id = "P?", maxvals = 1}, -- Usenet message ID
chapter = {id = "P792", maxvals = 1},
['publication-date'] = {id = "P577", maxvals = 1, populate_from_journal = true}, -- publication date (don't use |date=; is treated specially in {{citation}} if both are given.)
series = {id = "P179", maxvals = 1, populate_from_journal = true},
version = {id = "P348", maxvals = 0},
edition = {id = "P393", maxvals = 0},
volume = {id = "P478", maxvals = 0, populate_from_journal = true},
-- part = {id = "P1545"?, maxvals = 0}, -- to be added to {{citation}} / COinS &rft.part=
title = {id = "P1476", rank="p n"},
-- url = {id = "P953", maxvals = 1}, -- deal with this along with archive-url
pages = {id = "P304", maxvals = 0, populate_from_journal = true},
at = {id = "P958", maxvals = 0, populate_from_journal = true}, -- also incorporate lines (P7421) and columns (P3903) into this (cite map also supports |section=)
-- sheets = {id = "P7416", maxvals = 0, populate_from_journal = true},
-- interviewer = {id = "P?", maxvals = 0}, -- does **not** go to "others" section! Multiple interviewers should be n-enumerated
illustrator = {id = "P110", maxvals = 10, others = true}, -- goes to "others" section
-- foreword and afterword, when contributions to another author's work, are contributions so belong in |contribution=;
-- the writer's name goes in |contributor=; requires |title= and |author=
-- However, this might need to add support for multiple contributors and their roles to {{citation}}, see Help_talk:Citation_Style_1#Others
-- foreword = {id = "P2679", maxvals = 10, others = true}, -- goes to "others" section
-- afterword = {id = "P2680", maxvals = 10, others = true}, -- goes to "others" section
composer = {id = "P86", maxvals = 10, others = true}, -- goes to "others" section
animator = {id = "P6942", maxvals = 10, others = true}, -- goes to "others" section
director = {id = "P57", maxvals = 10, others = true}, -- goes to "others" section
screenwriter = {id = "P58", maxvals = 10, others = true}, -- goes to "others" section
signatory = {id = "P1891", maxvals = 10, others = true}, -- goes to "others" section
presenter = {id = "P371", maxvals = 10, others = true}, -- goes to "others" section
performer = {id = "P175", maxvals = 10, others = true}, -- goes to "others" section
}
--[[--------------------------< I S _ S E T >--------------------------------------------------------------
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
]]
local function is_set( var )
return not (var == nil or var == '')
end
--[[--------------------------< I N _ A R R A Y >--------------------------------------------------------------
Whether needle is in haystack (taken from Module:Citation/CS1/Utilities)
]]
local function in_array( needle, haystack )
if needle == nil then
return false
end
for n, v in ipairs( haystack ) do
if v == needle then
return n
end
end
return false
end
--[[--------------------------< A C C E P T _ V A L U E >-------------------------------------------------------
Accept WD value by framing in ((...)) if param_val is equal to keyword; else pass-through WD value as is.
]]
local function accept_value( param_val, wd_val )
local val = param_val
if val then
if in_array (val, {'accept', '))((', ':d:'}) then
val = '((' .. wd_val .. '))'
elseif '((accept))' == val then
val = 'accept'
elseif '(())(())' == val then
val = '))(('
elseif '((:d:))' == val then
val = ':d:'
else
val = wd_val
end
end
return val
end
-- function to fetch a value to display
local function makelink(v, out, link, maxpos, wdl)
local label
if v.mainsnak.snaktype == "value" then
if v.mainsnak.datatype == "wikibase-item" then
local qnumber = v.mainsnak.datavalue.value.id
local sitelink = mw.wikibase.getSitelink(qnumber)
if qnumber == "Q2818964" then sitelink = nil end -- suppress link to "Various authors"
if v.qualifiers and v.qualifiers.P1932 then
label = v.qualifiers.P1932[1].datavalue.value
else
label = mw.wikibase.getLabel(qnumber)
if label then
label = mw.text.nowiki(label)
else
label = qnumber -- should add tracking category
end
end
local position = maxpos + 1 -- Default to 'next' author.
-- use P1545 (series ordinal) instead of default position.
if v["qualifiers"] and v.qualifiers["P1545"] and v.qualifiers["P1545"][1] then
position = tonumber(v.qualifiers["P1545"][1].datavalue.value)
end
maxpos = math.max(maxpos, position)
if sitelink then
-- just the plain name,
-- but keep a record of the links, using the same index
out[position] = label
link[position] = sitelink
else
if wdl then
-- show that there's a Wikidata entry available
out[position] = "[[:d:Q" .. v.mainsnak.datavalue.value["numeric-id"] .. "|" .. label .. "]] <span title='" .. i18n["errors"]["local-article-not-found"] .. "'>[[File:Wikidata-logo.svg|16px|alt=|link=]]</span>"
else
-- no Wikidata links wanted, so just give the plain label
out[position] = label
end
end
elseif v.mainsnak.datatype == "string" then
local position = maxpos + 1 -- Default to 'next' author.
-- use P1545 (series ordinal) instead of default position.
if v["qualifiers"] and v.qualifiers["P1545"] and v.qualifiers["P1545"][1] then
position = tonumber(v.qualifiers["P1545"][1].datavalue.value)
end
maxpos = math.max(maxpos, position)
out[position] = v.mainsnak.datavalue.value
else
-- not a wikibase-item or a string!
end
else
-- code here if we want to return something when author is "unknown"
if v.qualifiers and v.qualifiers.P1932 then
label = v.qualifiers.P1932[1].datavalue.value
else
label = i18n["unknown-author"] .. (i18n["unknown-author-trackingcat"] or "")
end
maxpos = maxpos + 1
out[maxpos] = label
end
return maxpos
end
--[=[-------------------------< G E T _ N A M E _ L I S T >----------------------------------------------------
get_name_list -- adapted from getAuthors code taken from Module:RexxS
arguments:
nl_type - type of name list to fetch: nl_type = 'author' for authors; 'editor' for editors; 'translator' for translators
args - pointer to the parameter arguments table from the template call
qid - value from |qid= parameter; the Q-id of the source (book, etc.) in qid
wdl - value from the |wdl= parameter; a Boolean passed to enable links to Wikidata when no article exists
returns nothing; modifies the args table
]=]
local function get_name_list (nl_type, args, qid, wdl)
local propertyID = "P50"
local fallbackID = "P2093" -- author name string
if nl_type =="author" then
propertyID = 'P50' -- for authors
fallbackID = 'P2093' -- author-string
elseif nl_type =="editor" then
propertyID = 'P5769' -- "editor-in-chief"
fallbackID = 'P98' -- for editors - So-called "fallbacks" are actually a second set of properties processed
-- TBD. Take book series editors into account as well (if they have a separate P code as well)?
elseif nl_type == "translator" then
propertyID = 'P655' -- for translators
fallbackID = nil
-- elseif 'contributor' == nl_type then
-- f.e. author of forewords (P2679) and afterwords (P2680); requires |contribution=, |title= and |author=
-- propertyID = 'P' -- for contributors
-- fallbackID = nil
else
return -- not specified so return
end
-- wdl is a Boolean passed to enable links to Wikidata when no article exists
-- if "false" or "no" or "0" is passed set it false
-- if nothing or an empty string is passed set it false
if wdl and (#wdl > 0) then
wdl = wdl:lower()
wdl = in_array (wdl, {"false", "no", "0"})
else
-- wdl is empty, so
wdl = false
end
local props = nil
local fallback = nil
if mw.wikibase.entityExists(qid) then
props = mw.wikibase.getAllStatements(qid, propertyID)
if props and fallbackID then
fallback = mw.wikibase.getAllStatements(qid, fallbackID)
end
end
-- Make sure it actually has at least one of the properties requested
if not (props and props[1]) and not (fallback and fallback[1]) then
return nil
end
-- So now we have something to return:
-- table 'out' is going to store the names(s):
-- and table 'link' will store any links to the name's article
local out = {}
local link = {}
local maxpos = 0
if props and props[1] then
for k, v in pairs(props) do
maxpos = makelink(v, out, link, maxpos, wdl)
end
end
if fallback and fallback[1] then
-- second properties
for k, v in pairs(fallback) do
maxpos = makelink(v, out, link, maxpos, wdl)
end
end
-- if there's anything to return, then insert the additions in the template arguments table
-- in the form |author1=firstname secondname |author2= ...
-- Renumber, in case we have inconsistent numbering
local keys = {}
for k, v in pairs(out) do
keys[#keys + 1] = k
end
table.sort(keys) -- as they might be out of order
for i, k in ipairs(keys) do
out[k] = out[k]:gsub (''', '\''); -- prevent cs1|2 multiple names categorization; replace html entity with the actual character
mw.log(i .. " " .. k .. " " .. (out[k]))
if args[nl_type .. i] then -- name gets overwritten
-- pull corresponding -link only if overwritten name is same as WD name
if link[k] and (args[nl_type .. i] == out[k]) then
args[nl_type .. '-link' .. i] = args[nl_type .. '-link' .. i] or link[k] -- author-linkn or editor-linkn
end
else -- name does not get overwritten, so pull name from WD
args[nl_type .. i] = out[k]
if link[k] then
args[nl_type .. '-link' .. i] = args[nl_type .. '-link' .. i] or link[k] -- author-linkn or editor-linkn
end
end
end
end
-- gets language codes used for a monolingual text property as a table
function p._getLangOfProp(qid, pid)
if not pid then return {} end
local out = {}
local props = mw.wikibase.getAllStatements(qid, pid)
for i, v in ipairs(props) do
if v.mainsnak.datatype == "monolingualtext" and v.mainsnak.datavalue then
out[#out + 1] = v.mainsnak.datavalue.value.language
end
end
return out
end
function p.getLangOfProp(frame)
local pid = frame.args.pid or mw.text.trim(frame.args[1] or "")
if pid == "" then return end
local qid = frame.args.qid
if qid == "" then qid = nil end
return table.concat(p._getLangOfProp(qid, pid), ", ")
end
-- gets the language codes of a Wikidata entry as a table
local function _lang_code(qid)
local lc = getPropOfProp( {qid = qid, prop1 = "P407", prop2 = "P424", ps = 1} )
if lc then return mw.text.split( lc, "[, ]+" ) end
lc = getPropOfProp( {qid = qid, prop1 = "P407", prop2 = "P218", ps = 1} )
if lc then return mw.text.split( lc, "[, ]+" ) end
return p._getLangOfProp(qid, "P1476")
end
function p.lang_code(frame)
return table.concat(_lang_code(frame.args.qid or mw.text.trim(frame.args[1] or "")), ", ")
end
-- export for debug
function p.getPropOfProp(frame)
return getPropOfProp(frame.args)
end
-- wraps a string in nowiki unless disable flag is set
local function wrap_nowiki(str, disable)
if disable then return str or '' end
return mw.text.nowiki(str or '')
end
-- sort sequence table whose values are key-value pairs by key
local function comp_key(a, b)
return a[1] < b[1]
end
-- sort sequence table whose values are key-value pairs by value
local function comp_val(a, b)
return a[2] < b[2]
end
--[[-------------------------< C I T E _ Q >------------------------------------------------------------------
Takes standard CS1|2 template parameters and passes all to {{citation}}. If neither of |author= and |author1=
are set, calls get_authors() to try to get an author name-list from Wikidata. The result is passed to
{{citation}} for rendering.
--]]
function p._cite_q (citeq_args)
local frame = mw.getCurrentFrame()
-- parameters that don't get passed to Citation
local expand = citeq_args.expand -- when set to anything, causes {{cite q}} to render <code><nowiki>{{citation|...}}</nowiki></code>
local qid = citeq_args.qid or citeq_args[1]
local wdl = citeq_args.wdl
local template = citeq_args.template
citeq_args.expand = nil
citeq_args[1] = nil
citeq_args.qid = nil
citeq_args.wdl = nil
citeq_args.template = nil
-- if title supplied, flag to not read html title
local titleforced = (citeq_args.title ~= nil)
local oth = {}
-- put the language codes into a sequential table langcodes[]
local langcodes = {}
if citeq_args.language then
-- check these are a supported language codes
for lc in mw.text.gsplit( citeq_args.language, "[, ]+", false ) do
langcodes[#langcodes+1] = mw.language.isSupportedLanguage(citeq_args.language) and citeq_args.language
end
end
if not langcodes[1] then
-- try to find language of work
langcodes = _lang_code(qid)
end
if not langcodes[1] then
-- try fallback to journal's language
local journal_qid = followQid({qid = qid, props = "P1433"})
langcodes = journal_qid and _lang_code(journal_qid)
end
citeq_args.language = citeq_args.language or table.concat(langcodes, ", ")
-- loop through list of simple properties and get their values in citeq_args
for name, data in pairs(simple_properties) do
citeq_args[name] = getValue( {data.id, fwd = "ALL", osd = "no", noicon = "true", qid = qid, maxvals = data.maxvals, linked = data.linked, rank = data.rank or "best", citeq_args[name] } )
if data.populate_from_journal then
local publishedin = getValue( {"P1433", ps = 1, qid = qid, maxvals = 0, citeq_args[name], qual = data.id, qualsonly = 'yes'} )
citeq_args[name] = publishedin or getPropOfProp({qid = qid, prop1 = "P1433", prop2 = data.id, maxvals = data.maxvals, ps = 1})
end
if citeq_args[name] and citeq_args[name]:find('[[Ronney:Artyn as fysseree Wikidata ass aaragh]]', 1, true) then
-- try fallback to work's native language
citeq_args[name] = getValue( {data.id, ps = 1, qid = qid, maxvals = data.maxvals, linked = "no", lang = langcodes[1] } )
if citeq_args[name]:find('^Q%d+$') then -- qid was returned
-- try fallback to qid's native language
local qid_languages = _lang_code(citeq_args[name])
citeq_args[name] = getValue( {data.id, ps = 1, qid = qid, maxvals = data.maxvals, linked = "no", lang = qid_languages[1] } )
if citeq_args[name]:find('^Q%d+$') then -- qid was returned again
citeq_args[name] = nil
else
-- record the language found if no lang specified
citeq_args.language = citeq_args.language or qid_languages[1]
end
end
end
if data.others then
oth[#oth + 1] = citeq_args[name] and (name:gsub("^%l", string.upper) .. ": " .. citeq_args[name])
citeq_args[name] = nil
end
end
citeq_args.others = citeq_args.others or table.concat(oth, ". ")
if citeq_args.others == "" then
citeq_args.others = nil
end
citeq_args.journal = citeq_args.journal and citeq_args.journal:gsub("^''", ""):gsub("''$", ""):gsub("|''", "|"):gsub("'']]", "]]")
citeq_args.ol = (getValue( {"P648", ps = 1, qid = qid, maxvals = 1, citeq_args.ol } ) or ''):gsub("^OL(.+)$", "%1")
if citeq_args.ol == "" then
citeq_args.ol = nil
end
-- TBD. Take care of |ol-access=?
citeq_args.biorxiv = citeq_args.biorxiv and ("10.1101/" .. citeq_args.biorxiv)
citeq_args.isbn = getValue( {"P957", ps = 1, qid = qid, maxvals = 1, rank="best", citeq_args.isbn } ) -- try ISBN 10 (only one value accepted)
-- if url then see if there's an archive: citeq_args.url
local url
if not citeq_args.url then
for i, pr in ipairs( {"P953", "P856", "P2699"} ) do
url = getValue( {pr, ps = 1, qid = qid, maxvals = 1, qual="P1065" } )
if url then
citeq_args.url = mw.text.split( url, " (", true )[1]
local arcurl = mw.ustring.match( url, " %((.*)%)" ) -- when there is an archive url, <url> holds: url<space>(archive url); here extract the archive url if present
if arcurl then
local arcy, arcm, arcd = arcurl:match("(20%d%d)%p?(%d%d)%p?(%d%d)")
if arcy and arcm and arcd then
citeq_args["archive-url"] = arcurl
citeq_args["archive-date"] = tonumber(arcd) .. " " .. i18n.months[tonumber(arcm)] .. " " .. arcy
end
end
break
end
end
end
if citeq_args.publisher == "Unknown" then -- look for "stated as" (P1932)
local stated_as = getValue( {"P123", ps = 1, qid = qid, maxvals = 1, qual="P1932", qo="y"} )
if stated_as then citeq_args.publisher = stated_as end
end
if not titleforced then
-- Handle subtitle.
if citeq_args.title then
local subtitle = mw.wikibase.getBestStatements (qid, 'P1680');
if 0 ~= #subtitle then
subtitle = subtitle[1].mainsnak.datavalue.value.text;
citeq_args.title = citeq_args.title .. ": " .. subtitle
end
end
local htmltitle = getValue( {"P1476", qual = "P6833", ps = 1, qid = qid, maxvals = 1, qo = "y"} )
if htmltitle then
citeq_args.title = htmltitle:gsub("</?i>", "''")
else
local title_display = citeq_args.title
or mw.wikibase.getLabel(qid)
or (langcodes[1] and mw.wikibase.getLabelByLang(qid, langcodes[1]))
or ("No label or title -- debug: " .. qid)
if citeq_args.url then
citeq_args.title = wrap_nowiki(title_display)
else
local slink = mw.wikibase.getSitelink(qid)
local slink_flag = false
local wrap_title = ''
local wslink = false
if not slink then
-- See if we have wikisource
if not citeq_args.url then
local wikisource_sitelink = mw.wikibase.getSitelink(qid, "enwikisource") or nil
if wikisource_sitelink then
slink = ':s:'..wikisource_sitelink
wslink = true
end
end
end
if citeq_args.title then
if slink then
wrap_title = wrap_nowiki(citeq_args.title)
slink_flag = true
else
citeq_args.title = wrap_nowiki(citeq_args.title)
end
else
if slink and not wslink then
if slink:lower() == title_display:lower() then
citeq_args.title = '[[' .. slink .. ']]'
else
wrap_title = wrap_nowiki(slink:gsub("%s%(.+%)$", ""):gsub(",.+$", ""))
slink_flag = true
end
elseif wslink then
wrap_title = wrap_nowiki(title_display)
slink_flag = true
else
citeq_args.title = wrap_nowiki(title_display)
end
end
if slink_flag then
if slink == wrap_title and not wslink then -- direct link
citeq_args.title = '[[' .. slink .. ']]'
else -- piped link
citeq_args.title = '[[' .. slink .. '|' .. wrap_title .. ']]'
end
end
end
end
end
-- TBD: incorporate |at, |sheets= and |sheet= here as well
-- Sort out what should happen if several of them are given at the same time
if citeq_args.page or citeq_args.p then -- let single take precedence over multiple
citeq_args.pages = nil
citeq_args.pp = nil
end
if citeq_args.pages then
local _, count = string.gsub(citeq_args.pages, "[,;%s]%d+", "")
if count == 1 then
citeq_args.page = citeq_args.pages
citeq_args.pages = nil
end
end
if is_set (qid) then
if not is_set (citeq_args.author) and not is_set (citeq_args.author1)
and not is_set (citeq_args.subject) and not is_set (citeq_args.subject1)
and not is_set (citeq_args.host) and not is_set (citeq_args.host1)
and not is_set (citeq_args.last) and not is_set (citeq_args.last1)
and not is_set (citeq_args.surname) and not is_set (citeq_args.surname1)
and not is_set (citeq_args['author-last']) and not is_set (citeq_args['author-last1']) and not is_set (citeq_args['author1-last'])
and not is_set (citeq_args['author-surname']) and not is_set (citeq_args['author-surname1']) and not is_set (citeq_args['author1-surname1']) then -- if neither are set, try to get authors from Wikidata
get_name_list ('author', citeq_args, qid, wdl) -- modify citeq_args table with authors from Wikidata
end
if not is_set (citeq_args.editor) and not is_set (citeq_args.editor1)
and not is_set (citeq_args['editor-last']) and not is_set (citeq_args['editor-last1']) and not is_set (citeq_args['editor1-last'])
and not is_set (citeq_args['editor-surname']) and not is_set (citeq_args['editor-surname1']) and not is_set (citeq_args['editor1-surname']) then -- if neither are set, try to get editors from Wikidata
get_name_list ('editor', citeq_args, qid, wdl) -- modify citeq_args table with editors from Wikidata
end
if not is_set (citeq_args.translator) and not is_set (citeq_args.translator1)
and not is_set (citeq_args['translator-last']) and not is_set (citeq_args['translator-last1']) and not is_set (citeq_args['translator1-last'])
and not is_set (citeq_args['translator-surname']) and not is_set (citeq_args['translator-surname1']) and not is_set (citeq_args['translator1-surname']) then -- if neither are set, try to get translators from Wikidata
get_name_list ('translator', citeq_args, qid, wdl) -- modify citeq_args table with translators from Wikidata
end
end
for k, v in pairs(citeq_args) do
if in_array (v, {'(())', 'unset', 'ignore'}) or 'string' ~= type(k) then -- empty accept-as-is-written (()) markup to indicate an empty/unused parameter value, other ((...)) markups are deliberately passed down to {{citation}}
citeq_args[k] = nil
elseif in_array (v, {'((unset))', '((ignore))'}) then -- strip off markup for free-text values clashing with local keywords
citeq_args[k] = 'unset'
end
end
local author_count = 0
for k, v in pairs(citeq_args) do
if k:find("^author%d+$") then
author_count = author_count + 1
end
end
if author_count > 8 then -- convention in astronomy journals, optional mode for this?
if 'all' == citeq_args['display-authors'] then
citeq_args['display-authors'] = nil; -- unset because no longer needed
else
citeq_args['display-authors'] = citeq_args['display-authors'] or 3 -- limit to three displayed names
end
end
local editor_count = 0
for k, v in pairs(citeq_args) do
if k:find("^editor%d+$") then
editor_count = editor_count + 1
end
end
if editor_count > 8 then -- convention in astronomy journals, optional mode for this?
if 'all' == citeq_args['display-editors'] then
citeq_args['display-editors'] = nil; -- unset because no longer needed
else
citeq_args['display-editors'] = citeq_args['display-editors'] or 3 -- limit to three displayed names
end
end
-- change edition to ordinal if it's set and numeric
citeq_args.edition = citeq_args.edition and p.makeOrdinal(citeq_args.edition)
-- code to make a guess what template to use from the supplied parameters
-- (first draft for proof-of-concept)
if citeq_args.isbn then
template = template or "book"
citeq_args.asin = nil -- suppress ASIN if ISBN exists
elseif citeq_args.journal then
template = template or "journal"
elseif citeq_args.website then
template = template or "web"
end
-- template is CS1 designator: journal, web, news, etc.
if template then
-- citeq_args.mode = citeq_args.mode or "cs1" -- a cs1 template already knows that it is cs1 so this line is superfluous
template = "Cite " .. template
else
-- citeq_args.mode = citeq_args.mode or "cs2" -- a cs2 template already knows that it is cs2 so this line is superfluous
template = "Citation"
end
-- |id= could hold more than one identifier pulled from Wikidata not supported by {{citation}}, right now only add our qid to the list
local list_sep = '. '
if citeq_args.mode ~= 'cs1' then
list_sep = ', '
end
local id = '[[WDQ (enneyder)|Wikidata]] [[:d:' .. qid .. '|' .. qid .. ']]' -- go through "WDQ (identifier)" redirect to reduce clutter in "What links here" and improve reverse lookup. Keep in sync with {{QID}}.
local old_id = citeq_args.id
if wdl then -- show WD logo
id = id .. '[[Coadan:Wikidata-logo.svg|16px|alt=|link=]]' -- possibly replace by WD edit icon?
end
if is_set (old_id) then
citeq_args.id = old_id .. list_sep .. id -- append to user-specified contents
else
citeq_args.id = id
end
-- clean up any blank parameters
for k, v in pairs(citeq_args) do
if v == "" then citeq_args[k] = nil end
end
-- if |expand=<anything>, write a nowiki'd version to see what the {{citation}} template call looks like
if expand then
local expand_args = { "{{" .. template } -- init with citation template
if expand == "self" then
citeq_args.id = old_id -- restore original |id= parameter
expand_args = { "{{cite Q|" .. qid } -- expand to itself
end
-- make a sortable table and sort it by param name
local sorttable = {}
for param, val in pairs (citeq_args) do
table.insert(sorttable, {param, val})
end
table.sort(sorttable, comp_key)
-- add contents to expand_args
for idx, val in ipairs(sorttable) do
table.insert(expand_args, val[1] .. '=' .. val[2])
end
-- make the nowiki'd string and done
return "<code>" .. table.concat (expand_args, ' |') .. "}}</code>"
end
local erratumid = getPropertyIDs( { "P2507", qid = qid, fwd = "ALL", osd = "no", rank = "best", maxvals = 1 } )
if erratumid then
erratumid = " [[d:" .. erratumid .. "|(erratum)]]" .. "[[Ronney:Cite Q - symney obbyr lesh marran]]"
else
erratumid = ""
end
local opt_cat = ''
if getValue( {"P5824", ps = 1, qid = qid} ) then
opt_cat = '[[Ronney:Cite Q - symney obbyr va tayrnit er ash]]<!-- retracted -->'
end
if getValue( {"P1366", ps = 1, qid = qid} ) then
opt_cat = opt_cat .. '[[Ronney:Cite Q - symney obbyr as obbyr elley currit stiagh ayns e ynnyd]]<!-- replaced -->'
end
return frame:expandTemplate{title = template, args = citeq_args} .. erratumid .. opt_cat -- render the template
end
function p.cite_q (frame)
local args = {}
for k, v in pairs(frame:getParent().args) do
if v ~= "" then args[k] = v end
end
for k, v in pairs(frame.args) do
if v ~= "" then args[k] = v end
end
args.qid = args.qid or args[1] or ""
if args.qid == "" then return nil end
args[1] = nil
local citesep = (args.citesep or "")
if citesep == "" then citesep = ", " end
citesep = citesep:gsub('"', '') -- strip double quotes after setting default to allow |citesep="" as a blank separator
args.citesep = nil
local tag = args.tag or ""
if tag == "" then tag = nil end
args.tag = nil
local list = args.list or ""
if list == "" then list = nil end
args.list = nil
args.language = args.language or args.lang
args.lang = nil
local cites = {}
for q in args.qid:gmatch("Q%d+") do
-- make a new copy of the arguments
local newargs = {}
for k, v in pairs(args) do
if k ~= "qid" then
newargs[k] = v
end
end
newargs.qid = q
if tag == "ref" then
cites[#cites + 1] = frame:callParserFunction{ name = "#tag:ref", args = { p._cite_q(newargs), name = q } }
-- expand like this: args = { p._cite_q(newargs), name = 'foo', group = 'bar' }
else
cites[#cites + 1] = p._cite_q(newargs)
end
end
if list then
return frame:expandTemplate{ title = list, args = cites }
else
return table.concat(cites, citesep)
end
end
return p
ktx47d2ylg2xlp7qeljuhjsjgsuypk4
395364
395363
2026-10-26T21:18:38Z
MacTire02
219
++
395364
Scribunto
text/plain
local p = {}
-- Wikidata fetch/citation module (replaces Module:WikidataIB).
local wdOK, Wd = pcall(require, "Module:Wd")
-- Country genitive/mutated forms, e.g. Mannin -> Vannin.
local enmynOK, EnmynCheerey = pcall(require, "Module:Enmyn çheerey")
-- Manx-label-or-linked-Wikidata-fallback helper; last rung of getWdItemManxLink.
local ennymWdOK, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local aarheynnOK, Aarheynn = pcall(require, "Module:Kishtey fys çheer/aarheynn")
-- Returns the first non-empty manual parameter from a list of names.
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
-- One or more <ref> tags (named or not) in the param value arrive here
-- already expanded into rendered footnote marker(s), e.g. "[6][7][8][9]".
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
-- Shared innards of getWdProperty/getWdPropertyWithCitation.
local function getWdPropertyRaw(property, flags, includeReference)
if not wdOK or not Wd or not Wd._property then return nil end
local callArgs = {}
for _, f in ipairs(flags or {}) do table.insert(callArgs, f) end
if includeReference then table.insert(callArgs, "reference") end
table.insert(callArgs, "best") -- single best-ranked value
table.insert(callArgs, property)
local ok, result = pcall(Wd._property, callArgs)
if ok and result and result ~= "" then return result end
return nil
end
-- NOTE on `suppressCitation` (both functions below): passing the
-- "reference" flag to Wd._property is what makes Module:Wd build the <ref>
-- and register it with Cite as a side effect of the call -- same mechanism
-- as _reference (see aarheynn.lua's getWdCitation comment), just reached
-- through _property's own "reference" flag instead. The eager registration
-- happens the moment Wd._property runs, before this function even looks at
-- the result, so the only way to avoid a malformed Wikidata reference
-- crashing Module:Citation/CS1 later is to never ask for "reference" at all
-- once the caller's own |imraa_...=none override says so -- discarding an
-- already-fetched citation string here would be too late.
local function getWdProperty(property, flags, suppressCitation)
return getWdPropertyRaw(property, flags, not suppressCitation)
end
local function getWdPropertyWithCitation(property, flags, suppressCitation)
local base = getWdPropertyRaw(property, flags, false)
if not base then return nil, nil end
if suppressCitation then return base, nil end
local withRef = getWdPropertyRaw(property, flags, true)
if not withRef or withRef == base then return base, nil end
if withRef:sub(1, #base) == base then
local citation = withRef:sub(#base + 1)
if citation ~= "" then return base, citation end
return base, nil
end
return withRef, nil
end
local function ensureLinked(value)
if not value or value == "" then return value end
local label, refSuffix = value:match("^(.-)(<ref.*)$")
if not label then
label = value
refSuffix = ""
end
if label:find("%[%[") or label:match("^%[https?://") then
return value
end
label = mw.text.trim(label)
if label == "" then return value end
return "[[" .. label .. "]]" .. refSuffix
end
-- Manx label of a Wikidata PROPERTY (e.g. P35 -> "head of state"), title
-- fallback. getLabelByLang avoids leaking an English fallback.
local function getWikidataPropertyLabel(property)
local ok, label = pcall(mw.wikibase.getLabelByLang, property, "gv")
if ok and label and label ~= "" then return label end
return nil
end
-- Raw QID of an entity-valued property on the current page's own item.
local function getWdRawPropertyId(property, extraFlags)
if not wdOK or not Wd or not Wd._property then return nil end
local callArgs = {}
for _, f in ipairs(extraFlags or {}) do table.insert(callArgs, f) end
table.insert(callArgs, "raw")
table.insert(callArgs, "best")
table.insert(callArgs, property)
local ok, result = pcall(Wd._property, callArgs)
if ok and result and type(result) == "string" and result:match("^Q%d+$") then return result end
return nil
end
local function getWdRawPropertyIds(property, extraFlags)
if not wdOK or not Wd or not Wd._properties then return {} end
local callArgs = {"raw"}
for _, f in ipairs(extraFlags or {}) do table.insert(callArgs, f) end
table.insert(callArgs, property)
local ok, result = pcall(Wd._properties, callArgs)
if not ok or not result or type(result) ~= "string" or result == "" then return {} end
local ids = {}
for id in result:gmatch("Q%d+") do
table.insert(ids, id)
end
return ids
end
local function getWdQualifierRawId(property, qualifierProperty)
if not wdOK or not Wd or not Wd._qualifier then return nil end
local ok, result = pcall(Wd._qualifier, {"raw", "best", property, qualifierProperty})
if ok and result and type(result) == "string" and result:match("^Q%d+$") then return result end
return nil
end
local function getWdQualifierRawIdForValue(property, valueQid, qualifierProperty)
if not wdOK or not Wd or not Wd._qualifier or not valueQid then return nil end
local ok, result = pcall(Wd._qualifier, {"raw", "best", property, valueQid, qualifierProperty})
if ok and result and type(result) == "string" and result:match("^Q%d+$") then return result end
return nil
end
local function getWdRawForeignPropertyIds(eid, property, extraFlags, qualifiers)
if not wdOK or not Wd or not Wd._properties or not eid then return {} end
local callArgs = {}
for _, f in ipairs(extraFlags or {}) do table.insert(callArgs, f) end
table.insert(callArgs, "raw")
table.insert(callArgs, property)
callArgs[Wd.args and Wd.args.eid or "eid"] = eid
for qid, value in pairs(qualifiers or {}) do
callArgs[qid] = value
end
local ok, result = pcall(Wd._properties, callArgs)
if not ok or not result or type(result) ~= "string" or result == "" then return {} end
local ids = {}
for id in result:gmatch("Q%d+") do
table.insert(ids, id)
end
return ids
end
-- QID of the Wikidata item connected to the current page.
local function getCurrentCountryQid()
local ok, id = pcall(mw.wikibase.getEntityIdForCurrentPage)
if ok and id and id ~= "" then return id end
return nil
end
local function getCurrentCountryGenitive()
if not enmynOK or not EnmynCheerey or not EnmynCheerey.genitive then return nil end
local okTitle, title = pcall(function() return mw.title.getCurrentTitle().text end)
if not okTitle or not title or title == "" then return nil end
local okGen, genitive = pcall(EnmynCheerey.genitive, title)
if okGen and genitive and genitive ~= "" then return genitive end
return nil
end
local function getGenitiveLinkedLabel(baseWord)
local genitive = getCurrentCountryGenitive()
if genitive and genitive ~= "" then
return "[[" .. baseWord .. " " .. genitive .. "|" .. baseWord .. "]]"
end
return "[[" .. baseWord .. "]]"
end
local shortFormExceptions = {
["Çhiarn Vannin"] = true,
["Ree ny Belgee"] = true,
["Benrein ny Belgee"] = true,
-- Togo's head of government is titled "President of the Council of
-- Ministers" (no separate Prime Minister); "ny Shirveishee" here is
-- part of the office's own fixed name, not a country-genitive suffix,
-- so the " ny " token-split rung below must not fire on it.
["Eaghtyrane Choonseil ny Shirveishee"] = true,
}
local function stripCountryGenitiveSuffix(text, countryGenitive)
if not text or not countryGenitive then return nil end
local suffix = " " .. countryGenitive
if #text > #suffix and text:sub(-#suffix) == suffix then
return text:sub(1, #text - #suffix)
end
local bareNoun = countryGenitive:match("^yn%s+(.+)$") or countryGenitive:match("^y%s+(.+)$")
if bareNoun and bareNoun ~= "" then
local suffix2 = " " .. bareNoun
if #text > #suffix2 and text:sub(-#suffix2) == suffix2 then
local remainder = text:sub(1, #text - #suffix2)
if remainder:sub(-3) == " yn" then
return remainder:sub(1, #remainder - 3)
elseif remainder:sub(-2) == " y" then
return remainder:sub(1, #remainder - 2)
end
return remainder
end
end
return nil
end
local function shortManxForm(title)
if not title or title == "" then return title end
if shortFormExceptions[title] then return title end
local countryGenitive = getCurrentCountryGenitive()
local stripped = stripCountryGenitiveSuffix(title, countryGenitive)
if stripped then return stripped end
local short = title:match("^(.-)%sy%s")
if short and short ~= "" then return short end
short = title:match("^(.-)%syn%s")
if short and short ~= "" then return short end
-- "ny" is the plural/genitive connector (e.g. "Steatyn Unnaneysit" ->
-- "ny Steatyn Unnaneysit", "of the United States"). "%sy%s"/"%syn%s"
-- can never match "ny" (the character before "y" there is "n", not
-- whitespace), so this rung is purely additive, catching titles that
-- would otherwise fall through to the blind last-word rung below.
short = title:match("^(.-)%sny%s")
if short and short ~= "" then return short end
short = title:match("^(.+)%s%S+$")
if short and short ~= "" then return short end
return title
end
local function shortenCountrySuffixedName(name)
if not name or name == "" then return name end
local countryGenitive = getCurrentCountryGenitive()
local stripped = stripCountryGenitiveSuffix(name, countryGenitive)
if stripped then return stripped end
local short = name:match("^(.-)%sy%s")
if short and short ~= "" then return short end
short = name:match("^(.-)%syn%s")
if short and short ~= "" then return short end
short = name:match("^(.-)%sny%s")
if short and short ~= "" then return short end
return name
end
local function shortenLinkedCountryName(value)
if not value or value == "" then return value end
local main, refSuffix = value:match("^(.-)(<ref.*)$")
if not main then
main = value
refSuffix = ""
end
local target, display = main:match("^%[%[([^%[%]|]+)|([^%[%]|]+)%]%]$")
if not target then
target = main:match("^%[%[([^%[%]|]+)%]%]$")
display = target
end
if not target then return value end
local short = shortenCountrySuffixedName(display)
if short ~= display then
return "[[" .. target .. "|" .. short .. "]]" .. refSuffix
end
return value
end
-- Capitalizes via the content language's ucfirst (UTF-8/digraph-safe).
local function wikiUcfirst(text)
if not text or text == "" then return text end
local ok, result = pcall(function() return mw.language.getContentLanguage():ucfirst(text) end)
if ok and result and result ~= "" then return result end
return text
end
local function capitalizeFirstLetter(text)
if not text or text == "" then return text end
if text:match("^%[%[") then
local closePos = text:find("%]%]", 3, true)
local pipePos = text:find("|", 1, true)
local splitPos
if pipePos and (not closePos or pipePos < closePos) then
splitPos = pipePos -- piped: capitalize the display half only
else
splitPos = 2 -- unpiped: capitalize just past the leading "[["
end
return text:sub(1, splitPos) .. wikiUcfirst(text:sub(splitPos + 1))
elseif text:match("^%[https?://") then
local spacePos = text:find(" ", 2, true)
if spacePos then
return text:sub(1, spacePos) .. wikiUcfirst(text:sub(spacePos + 1))
end
return text
end
return wikiUcfirst(text)
end
local function getWdItemManxLink(qid, shorten, capitalize, forceRedlink, preferExternalForLabel)
if not qid then return nil end
if capitalize == nil then capitalize = true end
local okSite, sitelinkTitle = pcall(mw.wikibase.sitelink, qid)
if not okSite then sitelinkTitle = nil end
sitelinkTitle = (sitelinkTitle and sitelinkTitle ~= "") and sitelinkTitle or nil
local okLabel, gvLabel = pcall(mw.wikibase.getLabelByLang, qid, "gv")
if okLabel and gvLabel and gvLabel ~= "" then
if capitalize then
gvLabel = wikiUcfirst(gvLabel)
end
else
gvLabel = nil
end
if not sitelinkTitle and not gvLabel then
if forceRedlink then
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, _, _, rawLabel = pcall(EnnymWd.labelWithFallback, qid)
if ok and rawLabel and rawLabel ~= "" then
return "[[" .. wikiUcfirst(mw.text.nowiki(rawLabel)) .. "]]"
end
end
return nil
end
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, annotated = pcall(EnnymWd.labelWithFallback, qid)
if ok and annotated then return annotated end
end
return nil
end
-- No gv sitelink yet: this item has no article of its own, so a
-- same-named wikilink would redlink to a GENERIC title (e.g. "Çhionnal
-- ashoonagh"/"National Assembly") that many unrelated countries'
-- legislative bodies share via an identical gv label. Creating that one
-- shared article later would wrongly merge every one of those distinct
-- bodies into it. preferExternalForLabel routes around that: link
-- straight to THIS item on Wikidata instead, which is always specific
-- to one body no matter how many others carry the same label.
if not sitelinkTitle and preferExternalForLabel then
local display = (shorten == false) and gvLabel or shortManxForm(gvLabel)
return "[https://www.wikidata.org/wiki/" .. qid .. " " .. display .. "]"
end
local target = sitelinkTitle or gvLabel
local displayBase = gvLabel or sitelinkTitle
if shorten == false then
if target == displayBase then return "[[" .. target .. "]]" end
return "[[" .. target .. "|" .. displayBase .. "]]"
end
local short = shortManxForm(displayBase)
if short ~= target then
return "[[" .. target .. "|" .. short .. "]]"
end
return "[[" .. target .. "]]"
end
local function getWdOfficeItemTitle(officeProperty)
local officeQid = getWdRawPropertyId(officeProperty)
if not officeQid then return nil end
return getWdItemManxLink(officeQid)
end
-- Same as getWdOfficeItemTitle, but the office property is read off a
-- FOREIGN entity (eid) rather than the current page's own item -- needed
-- for US territories, whose own Wikidata item never carries a P1906/P35
-- of its own; the office has to be resolved off the United States' item
-- (Q30) instead.
local function getWdForeignOfficeItemTitle(eid, officeProperty)
local officeQid = getWdRawForeignPropertyIds(eid, officeProperty, {"best"})[1]
if not officeQid then return nil end
return getWdItemManxLink(officeQid)
end
local function getWdPositionTitleForPerson(personQid)
if not personQid then return nil end
local countryQid = getCurrentCountryQid()
local candidates = {}
if countryQid then
for _, id in ipairs(getWdRawForeignPropertyIds(personQid, "P39", {"current"}, {["P1001"] = countryQid})) do
table.insert(candidates, id)
end
end
for _, id in ipairs(getWdRawForeignPropertyIds(personQid, "P39", {"current"})) do
table.insert(candidates, id)
end
local tried = {}
for _, qid in ipairs(candidates) do
if not tried[qid] then
tried[qid] = true
local link = getWdItemManxLink(qid)
if link then return link end
end
end
return nil
end
local function getWdPositionTitle(headProperty)
return getWdPositionTitleForPerson(getWdRawPropertyId(headProperty))
end
-- Wikidata's "upper house" / "lower house" class items.
local UPPER_HOUSE_QID = "Q637846"
local LOWER_HOUSE_QID = "Q375928"
local CLASS_WALK_DEPTH = 3
local function classReaches(classQid, targetQid, depth, seen)
if classQid == targetQid then return true end
if depth <= 0 then return false end
seen = seen or {}
if seen[classQid] then return false end
seen[classQid] = true
for _, superQid in ipairs(getWdRawForeignPropertyIds(classQid, "P279")) do
if classReaches(superQid, targetQid, depth - 1, seen) then return true end
end
return false
end
local function getWdChambers(legislatureQid)
if not legislatureQid then return nil, nil end
local partQids = getWdRawForeignPropertyIds(legislatureQid, "P527")
local upperQid, lowerQid = nil, nil
local upperAmbiguous, lowerAmbiguous = false, false
for _, partQid in ipairs(partQids) do
local isUpper, isLower = false, false
for _, classQid in ipairs(getWdRawForeignPropertyIds(partQid, "P31")) do
if classQid == UPPER_HOUSE_QID or classReaches(classQid, UPPER_HOUSE_QID, CLASS_WALK_DEPTH) then
isUpper = true
elseif classQid == LOWER_HOUSE_QID or classReaches(classQid, LOWER_HOUSE_QID, CLASS_WALK_DEPTH) then
isLower = true
end
end
if isUpper then
if upperQid and upperQid ~= partQid then upperAmbiguous = true end
upperQid = partQid
end
if isLower then
if lowerQid and lowerQid ~= partQid then lowerAmbiguous = true end
lowerQid = partQid
end
end
local upperLink = (upperQid and not upperAmbiguous) and getWdItemManxLink(upperQid, false, nil, nil, true) or nil
local lowerLink = (lowerQid and not lowerAmbiguous) and getWdItemManxLink(lowerQid, false, nil, nil, true) or nil
return upperLink, lowerLink
end
local JULIAN_CALENDAR_QID = "Q1985786"
local function getJulianCalendarSuffixLink()
local link = getWdItemManxLink(JULIAN_CALENDAR_QID, false)
if link then
local target = link:match("^%[%[([^%[%]|]+)") or link:match("^%[%[([^%[%]|]+)%]%]$")
if target then
return "[[" .. target .. "|Joolagh]]"
end
return link
end
return "Joolagh"
end
local ROW = '<tr%s><th style="vertical-align:top; white-space:nowrap; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
local SUBROW = '<tr%s><th style="vertical-align:top; white-space:nowrap; text-align:left; font-weight:normal; padding-left:0.9em; padding-right:0.4em;">• %s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
local SUBROW_WRAP = '<tr%s><th style="vertical-align:top; text-align:left; font-weight:normal; padding-left:0.9em; padding-right:0.4em;">• %s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
local HEADER = '<tr class="mergedtoprow"><th colspan="2" style="text-align:left; padding-left:0.4em; padding-right:0.4em;">%s</th></tr>'
-- Builds a class="..." attribute, or an empty string.
local function trClass(name)
if name and name ~= "" then return ' class="' .. name .. '"' end
return ""
end
local function wikilinkLabel(label)
if not label or label == "" then return label end
if label:find("%[%[") then return label end
return "[[" .. label .. "]]"
end
local function appendIndentRun(rows, items, wrap)
local template = wrap and SUBROW_WRAP or SUBROW
for idx, item in ipairs(items) do
local class = (idx == #items) and "mergedbottomrow" or "mergedrow"
table.insert(rows, string.format(template, trClass(class), item[1], item[2]))
end
end
local dividerLine = '<tr><td colspan="2" style="border-top:1px solid #a2a9b1; padding:0; height:0px;"></td></tr>'
local function appendSection(rows, sectionRows)
if sectionRows and #sectionRows > 0 then
if #rows > 0 then table.insert(rows, dividerLine) end
for _, row in ipairs(sectionRows) do
table.insert(rows, row)
end
end
end
function p.main(frame, args)
-- Allow being called as p.main(args) with no frame (used by tests).
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
local govRows = {}
local quaiylRows = {}
local foundingRows = {}
local govTypeRaw = getManual(args, {"sorçh_reiltys", "government_type"})
-- |imraa_reiltys=none is normalised to nil here (not just left as the
-- literal string "none") so applyRefNote never wraps it as <ref>none</ref>.
-- govTypeRaw's own Wikidata fallback (P122, just below) only ever links
-- Wikidata ITEMS -- it never builds a citation -- so there's no Cite-
-- crash risk to suppress here, just this literal-text footgun.
local govRefRaw = getManual(args, {"imraa_reiltys"})
local govRef = not isNone(govRefRaw) and govRefRaw or nil
local govNote = getManual(args, {"noteyn_reiltys"})
if not govTypeRaw then
local govTypeQids = getWdRawPropertyIds("P122")
local govTypeParts = {}
for _, qid in ipairs(govTypeQids) do
local link = getWdItemManxLink(qid, false, false)
if link then table.insert(govTypeParts, link) end
end
if #govTypeParts > 0 then
govTypeRaw = capitalizeFirstLetter(table.concat(govTypeParts, ", "))
end
end
local govShown = govTypeRaw and not isNone(govTypeRaw)
local leaderPairs = {}
local manualLeaderGiven = false
for i = 1, 5 do
local title = getManual(args, {"enmys_toshiagh" .. i, "enmys" .. i .. "_fer-toshee"})
local name = getManual(args, {"ennym_toshiagh" .. i, "ennym" .. i .. "_fer-toshee"})
if title or name then
manualLeaderGiven = true
if not isNone(name) then
table.insert(leaderPairs, {title = title or "", name = name or ""})
end
end
end
-- |imraa_toshiagh=none has to do two things, not one: (a) stop
-- getWdPropertyWithCitation below from ever requesting Wd's "reference"
-- flag for the head-of-state/head-of-government name (the actual Cite-
-- crash escape hatch -- see that function's own comment), and (b) not be
-- re-wrapped as a literal <ref>none</ref> once normalised to nil here.
local leaderRefRaw = getManual(args, {"imraa_toshiagh", "imraa_fer-toshee"})
local leaderRefSuppressed = isNone(leaderRefRaw)
local leaderRef = not leaderRefSuppressed and leaderRefRaw or nil
local leaderNote = getManual(args, {"noteyn_toshiagh", "noteyn_fer-toshee"})
local leadersSuppressed = isNone(getManual(args, {"fir_hoshee", "toshiaghyn"}))
local function resolvePersonName(qid)
if not qid then return nil end
return shortenLinkedCountryName(ensureLinked(getWdItemManxLink(qid, false, nil, true)))
end
local councillors = {}
for i = 1, 7 do
local name = getManual(args, {"ennym_coonseilagh" .. i})
if name and not isNone(name) then
table.insert(councillors, {slot = i, name = name})
end
end
local manualCouncillorsGiven = #councillors > 0
local swissBodyQid = getWdRawPropertyId("P35") or getWdRawPropertyId("P6")
local isSwissFederalCouncil = swissBodyQid == "Q30917"
if (manualCouncillorsGiven or isSwissFederalCouncil) and not leadersSuppressed then
manualLeaderGiven = true
local presidentAnnotation = ' ([[Eaghtyrane Chochiangle yn Elveeish|Eaghtyrane]])'
local vpAnnotation = ' ([[Lhiass-eaghtyrane yn Elveeish|Lhiass-eaghtyrane]])'
local nameLines = {}
local chancellor = nil
if manualCouncillorsGiven then
local presidentSlot = tonumber(getManual(args, {"eaghtyrane_coonseilagh"}))
local vicePresidentSlot = tonumber(getManual(args, {"lhiass-eaghtyrane_coonseilagh"}))
for _, entry in ipairs(councillors) do
local line = entry.name
if presidentSlot and entry.slot == presidentSlot then
line = line .. presidentAnnotation
elseif vicePresidentSlot and entry.slot == vicePresidentSlot then
line = line .. vpAnnotation
end
table.insert(nameLines, line)
end
chancellor = getManual(args, {"shansyleyr_conastagh"})
else
local presidentOverride = getManual(args, {"eaghtyrane_coonseilagh"})
local vpOverride = getManual(args, {"lhiass-eaghtyrane_coonseilagh"})
local chancellorOverride = getManual(args, {"shansyleyr_conastagh"})
local councillorQids = getWdRawForeignPropertyIds("Q30917", "P3320", {"best", "current"})
local presidentQid = not isNone(presidentOverride) and getWdRawForeignPropertyIds("Q688230", "P1308", {"best"})[1] or nil
local vpQid = not isNone(vpOverride) and getWdRawForeignPropertyIds("Q25550811", "P1308", {"best"})[1] or nil
for _, qid in ipairs(councillorQids) do
local name = resolvePersonName(qid)
if name then
if qid == presidentQid then
name = name .. presidentAnnotation
elseif qid == vpQid then
name = name .. vpAnnotation
end
table.insert(nameLines, name)
end
end
if chancellorOverride and not isNone(chancellorOverride) then
chancellor = chancellorOverride
elseif not isNone(chancellorOverride) then
local chancellorQid = getWdRawForeignPropertyIds("Q687810", "P1308", {"best"})[1]
chancellor = resolvePersonName(chancellorQid)
end
end
if #nameLines > 0 then
table.insert(leaderPairs, {
title = '[[Coonseil Chonastagh yn Elveeish|Coonseilee Chonastagh]]',
name = table.concat(nameLines, '<br/>'),
})
end
if chancellor and chancellor ~= "" then
table.insert(leaderPairs, {
title = '[[Shansyleyr yn Elveeish|Shansyleyr Conastagh]]',
name = chancellor,
})
end
end
local function isSanMarinoPage()
local ok, title = pcall(function() return mw.title.getCurrentTitle().text end)
return ok and title == "San Marino"
end
local function isNorthernIrelandPage()
local ok, title = pcall(function() return mw.title.getCurrentTitle().text end)
return ok and title == "Nerin Hwoaie"
end
local function isNicaraguaPage()
if getCurrentCountryQid() == "Q811" then return true end
local ok, title = pcall(function() return mw.title.getCurrentTitle().text end)
return ok and title == "Nickeraag"
end
-- US unincorporated territories: the President of the United States is
-- each territory's head of state, but this is never recorded on the
-- territory's own Wikidata item (it carries only "instance of"
-- classification statements, no P35). The President has to be fetched
-- off the United States' own item (Q30) instead -- same foreign-entity
-- pattern as Nicaragua's co-presidents and Northern Ireland's Deputy
-- First Minister above. Detected by an explicit page-title list
-- (matching the San Marino/Northern Ireland convention).
local US_QID = "Q30"
local usTerritoryTitles = {
["Yn Phurt Verçhagh"] = true, -- Puerto Rico
["Guam"] = true, -- Guam
["Ellanyn Americaanagh y Voidyn"] = true, -- US Virgin Islands
["Samoa Americaanagh"] = true, -- American Samoa
}
local function isUSTerritoryPage()
local ok, title = pcall(function() return mw.title.getCurrentTitle().text end)
return ok and title ~= nil and usTerritoryTitles[title] == true
end
local sanMarinoCaptains = {}
for i = 1, 2 do
local name = getManual(args, {"ennym_captan_reiree" .. i})
if name and not isNone(name) then
table.insert(sanMarinoCaptains, name)
end
end
local manualSanMarinoGiven = #sanMarinoCaptains > 0
if (manualSanMarinoGiven or isSanMarinoPage()) and not leadersSuppressed and not manualLeaderGiven then
manualLeaderGiven = true
local nameLines = {}
if manualSanMarinoGiven then
nameLines = sanMarinoCaptains
else
local captainQids = getWdRawPropertyIds("P35", {"best", "current"})
for _, qid in ipairs(captainQids) do
local name = resolvePersonName(qid)
if name then table.insert(nameLines, name) end
end
end
if #nameLines > 0 then
local title = getManual(args, {"sorçh_kione_steat"}) or '[[Captanyn Reiree]]'
table.insert(leaderPairs, {
title = title,
name = table.concat(nameLines, '<br/>'),
})
end
end
if not manualLeaderGiven and not leadersSuppressed then
local hosQids = getWdRawPropertyIds("P35", {"best", "current"})
-- "current" matters here, not just "best": a country whose P6
-- (head of government) statements have no preferred rank at all
-- (several past/present holders tied at normal rank) would
-- otherwise let Module:Wd's singular _property command return an
-- arbitrary past holder, with no way to break the tie
-- chronologically.
local hogBase, hogCitation = getWdPropertyWithCitation("P6", {"linked", "current"}, leaderRefSuppressed)
local hog = ensureLinked(hogBase)
if hog and hogCitation then hog = hog .. hogCitation end
local hogQid = getWdRawPropertyId("P6", {"current"})
if isNicaraguaPage() then
-- Nicaragua is a diarchy: two co-presidents, listed on Wikidata not
-- as the country's own P35/P6 statements but as P1308 ("position
-- holder") values on the "President of Nicaragua" OFFICE item
-- itself (Q852448) -- same foreign-entity pattern as Northern
-- Ireland's Deputy First Minister and Switzerland's councillors
-- above. "best" and "current" are independent Wd flags, both
-- needed to get exactly the presently-serving co-presidents.
local presidentQids = getWdRawForeignPropertyIds("Q852448", "P1308", {"best", "current"})
local presidentTitle = getManual(args, {"sorçh_kione_steat"})
or getWdItemManxLink("Q852448")
or getWikidataPropertyLabel("P35")
or "Kione steat"
local sameHeadOfStateAndGovernment = false
local presidentNames = {}
for _, qid in ipairs(presidentQids) do
local name = ensureLinked(getWdItemManxLink(qid, false, nil, true))
if name then
table.insert(leaderPairs, {title = presidentTitle, name = name})
end
if name then table.insert(presidentNames, name) end
if qid == hogQid then sameHeadOfStateAndGovernment = true end
end
if #presidentNames > 0 then
table.insert(leaderPairs, {
title = presidentTitle,
name = table.concat(presidentNames, '<br/>'),
})
end
if hog and not sameHeadOfStateAndGovernment then
local hogTitle = getManual(args, {"sorçh_kione_reiltys"})
or getWdOfficeItemTitle("P1313")
or getWdPositionTitle("P6")
or getWikidataPropertyLabel("P6")
or "Kione reiltys"
table.insert(leaderPairs, {title = hogTitle, name = hog})
end
elseif #hosQids > 1 then
local sameHeadOfStateAndGovernment = false
if hog and hogQid then
for _, qid in ipairs(hosQids) do
if qid == hogQid then sameHeadOfStateAndGovernment = true end
end
end
local officeQids = getWdRawPropertyIds("P1906")
local pairsBuilt = 0
if #officeQids > 1 then
for _, officeQid in ipairs(officeQids) do
local personQid = getWdQualifierRawIdForValue("P1906", officeQid, "P1308")
local name = personQid and shortenLinkedCountryName(ensureLinked(getWdItemManxLink(personQid, false, nil, true))) or nil
if name then
local hosTitle = getManual(args, {"sorçh_kione_steat"})
or getWdItemManxLink(officeQid)
or getWikidataPropertyLabel("P35")
or "Kione steat"
table.insert(leaderPairs, {title = hosTitle, name = name})
pairsBuilt = pairsBuilt + 1
end
end
end
if pairsBuilt == 0 then
for _, qid in ipairs(hosQids) do
local name = shortenLinkedCountryName(ensureLinked(getWdItemManxLink(qid, false, nil, true)))
if name then
local hosTitle = getManual(args, {"sorçh_kione_steat"})
or getWdPositionTitleForPerson(qid)
or getWikidataPropertyLabel("P35")
or "Kione steat"
table.insert(leaderPairs, {title = hosTitle, name = name})
end
end
end
if hog and not sameHeadOfStateAndGovernment then
local hogTitle = getManual(args, {"sorçh_kione_reiltys"})
or getWdOfficeItemTitle("P1313") -- office held by head of government
or getWdPositionTitle("P6")
or getWikidataPropertyLabel("P6")
or "Kione reiltys"
table.insert(leaderPairs, {title = hogTitle, name = hog})
end
else
local hosBase, hosCitation = getWdPropertyWithCitation("P35", {"linked", "current"}, leaderRefSuppressed)
local hos = shortenLinkedCountryName(ensureLinked(hosBase))
if hos and hosCitation then hos = hos .. hosCitation end
local hosQid = getWdRawPropertyId("P35", {"current"})
-- Some countries (e.g. Benin since 2016) have literally merged
-- the head-of-state and head-of-government OFFICES into one:
-- "office held by head of state" (P1906) and "office held by
-- head of government" (P1313) both resolve to the same item.
-- Comparing only the PEOPLE (hosQid == hogQid) isn't enough --
-- a merged-office country's P6 statement can be stale (left
-- over from before the merge) and resolve to the wrong person
-- -- so the OFFICES themselves are compared too, not just the
-- people.
local hosOfficeQid = getWdRawPropertyId("P1906")
local hogOfficeQid = getWdRawPropertyId("P1313")
local sameOffice = hosOfficeQid and hogOfficeQid and hosOfficeQid == hogOfficeQid
local sameHeadOfStateAndGovernment = sameOffice
or (hos and hog and hosQid and hogQid and hosQid == hogQid)
if hos then
local hosTitle = getManual(args, {"sorçh_kione_steat"})
or (hosOfficeQid and getWdItemManxLink(hosOfficeQid)) -- office held by head of state
or getWdPositionTitle("P35")
or getWikidataPropertyLabel("P35")
or "Kione steat"
table.insert(leaderPairs, {title = hosTitle, name = hos})
if not isNone(getManual(args, {"ynnydee_kione_steat"})) then
local proxyOfficeQid = getWdQualifierRawId("P35", "P1393")
if proxyOfficeQid then
local proxyPersonIds = getWdRawForeignPropertyIds(proxyOfficeQid, "P1308", {"best"})
local proxyPersonQid = proxyPersonIds[1]
local proxyName = proxyPersonQid and ensureLinked(getWdItemManxLink(proxyPersonQid, false, nil, true)) or nil
if proxyName then
local proxyTitle = getManual(args, {"sorçh_ynnydee"})
or getWdItemManxLink(proxyOfficeQid)
or "Ynnydee"
table.insert(leaderPairs, {title = proxyTitle, name = proxyName})
end
end
end
elseif isUSTerritoryPage() then
-- No P35 at all on the territory's own item -- fetch the
-- sitting President straight off the United States' own
-- item (Q30) instead. Title priority mirrors every other
-- country's head-of-state title, just sourced from Q30.
local presidentQid = getWdRawForeignPropertyIds(US_QID, "P35", {"best", "current"})[1]
local presidentName = resolvePersonName(presidentQid)
if presidentName then
local presidentTitle = getManual(args, {"sorçh_kione_steat"})
or getWdForeignOfficeItemTitle(US_QID, "P1906")
or getWdPositionTitleForPerson(presidentQid)
or getWikidataPropertyLabel("P35")
or "Kione steat"
table.insert(leaderPairs, {title = presidentTitle, name = presidentName})
end
end
if hog and not sameHeadOfStateAndGovernment then
local hogTitle = getManual(args, {"sorçh_kione_reiltys"})
or (hogOfficeQid and getWdItemManxLink(hogOfficeQid)) -- office held by head of government
or getWdPositionTitle("P6")
or getWikidataPropertyLabel("P6")
or "Kione reiltys"
table.insert(leaderPairs, {title = hogTitle, name = hog})
if isNorthernIrelandPage() then
local dfmPersonQid = getWdRawForeignPropertyIds("Q11954685", "P1308", {"best"})[1]
local dfmName = dfmPersonQid and ensureLinked(getWdItemManxLink(dfmPersonQid, false, nil, true)) or nil
local dfmTitle = getWdItemManxLink("Q11954685")
if dfmName and dfmTitle then
table.insert(leaderPairs, {title = dfmTitle, name = dfmName})
end
end
end
end
end
local reiltysLabel = getGenitiveLinkedLabel("Reiltys")
if govShown then
local govClass = (#leaderPairs > 0) and "mergedtoprow" or ""
table.insert(govRows, string.format(ROW, trClass(govClass), reiltysLabel, applyRefNote(govTypeRaw, govRef, govNote, frame)))
elseif #leaderPairs > 0 then
table.insert(govRows, string.format(HEADER, reiltysLabel))
end
if isNicaraguaPage() and #leaderPairs > 1 then
local presidentTitle = getManual(args, {"sorçh_kione_steat"})
or getWdItemManxLink("Q852448")
or getWikidataPropertyLabel("P35")
or "Kione steat"
local combinedNames, seenNames = {}, {}
local firstPresidentIndex = nil
local filteredLeaderPairs = {}
for _, leader in ipairs(leaderPairs) do
if leader.title == presidentTitle then
if not firstPresidentIndex then firstPresidentIndex = #filteredLeaderPairs + 1 end
local remaining = leader.name or ""
while true do
local name, rest = remaining:match("^(.-)<br%s*/>(.*)$")
if not name then name = remaining end
name = mw.text.trim(name)
if name ~= "" and not seenNames[name] then
seenNames[name] = true
table.insert(combinedNames, name)
end
if not rest then break end
remaining = rest
end
else
table.insert(filteredLeaderPairs, leader)
end
end
if firstPresidentIndex and #combinedNames > 0 then
table.insert(filteredLeaderPairs, firstPresidentIndex, {
title = presidentTitle,
name = table.concat(combinedNames, "<br/>"),
})
leaderPairs = filteredLeaderPairs
end
end
if #leaderPairs > 0 then
local last = leaderPairs[#leaderPairs]
last.name = applyRefNote(last.name, leaderRef, leaderNote, frame)
local items = {}
for _, leader in ipairs(leaderPairs) do
table.insert(items, {leader.title, leader.name})
end
appendIndentRun(govRows, items)
end
local quaiyl = getManual(args, {"çhionnal", "quaiyl"})
local quaiylSyrjey = getManual(args, {"thie_heose", "quaiyl_syrjey"})
local quaiylInshley = getManual(args, {"thie_heese", "quaiyl_s'inshley", "quaiyl_sinshley"})
-- Normalised the same way as govRef just above: no embedded Wikidata
-- citation exists for quaiyl (getWdItemManxLink only ever links items),
-- so this is only the literal-"none"-as-ref-text fix, not a Cite-crash
-- escape hatch.
local quaiylRefRaw = getManual(args, {"imraa_çhionnal", "imraa_quaiyl"})
local quaiylRef = not isNone(quaiylRefRaw) and quaiylRefRaw or nil
local quaiylNote = getManual(args, {"noteyn_çhionnal", "noteyn_quaiyl"})
local quaiylQid = nil
if not quaiyl then
quaiylQid = getWdRawPropertyId("P194")
if quaiylQid then
quaiyl = getWdItemManxLink(quaiylQid, false, nil, nil, true)
end
end
if not quaiylSyrjey or not quaiylInshley then
local legislatureQid = quaiylQid or getWdRawPropertyId("P194")
if legislatureQid then
local wdUpper, wdLower = getWdChambers(legislatureQid)
if not quaiylSyrjey then quaiylSyrjey = wdUpper end
if not quaiylInshley then quaiylInshley = wdLower end
end
end
if quaiyl and not isNone(quaiyl) then
local houseItems = {}
if quaiylSyrjey and not isNone(quaiylSyrjey) then
table.insert(houseItems, {"[[Thie heose]]", quaiylSyrjey})
end
if quaiylInshley and not isNone(quaiylInshley) then
table.insert(houseItems, {"[[Thie heese]]", quaiylInshley})
end
local quaiylClass = (#houseItems > 0) and "mergedtoprow" or ""
table.insert(quaiylRows, string.format(ROW, trClass(quaiylClass), "[[Çhionnal slattyssagh]]", applyRefNote(quaiyl, quaiylRef, quaiylNote, frame)))
appendIndentRun(quaiylRows, houseItems)
end
local foundingLabel = getManual(args, {"sorçh_kionedeeaght", "sorçh_kiondeeaght"}) or "Bunneeaght"
local foundingValue = getManual(args, {"bunnit"})
local foundingQualifier = getManual(args, {"note_kionedeeaght", "note_kiondeeaght"})
local foundingFootnote = getManual(args, {"noteyn_kionedeeaght", "noteyn_kiondeeaght"})
-- Same two-part fix as leaderRef above: suppresses the P571 (inception)
-- Wikidata citation getWdProperty would otherwise request below (the
-- Cite-crash escape hatch), and keeps "none" from being wrapped as a
-- literal <ref>none</ref> once normalised to nil.
local foundingRefRaw = getManual(args, {"imraa_kionedeeaght", "imraa_kiondeeaght"})
local foundingRefSuppressed = isNone(foundingRefRaw)
local foundingRef = not foundingRefSuppressed and foundingRefRaw or nil
local function foundingLabelWithQualifier(label)
local linked = wikilinkLabel(label)
if foundingQualifier and foundingQualifier ~= "" then
return linked .. ' <span style="font-weight:normal;">' .. foundingQualifier .. '</span>'
end
return linked
end
local establishmentRows = {}
for i = 1, 9 do
local event = getManual(args, {"taghyrt_bunneeaght" .. i, "taghyrt" .. i .. "_bunnit"})
local date = getManual(args, {"date_bunneeaght" .. i, "date" .. i .. "_bunnit"})
if event then
table.insert(establishmentRows, {event, date or ""})
end
end
if foundingValue or #establishmentRows > 0 then
if foundingValue and not isNone(foundingValue) then
local foundingClass = (#establishmentRows > 0) and "mergedtoprow" or ""
table.insert(foundingRows, string.format(ROW, trClass(foundingClass), foundingLabelWithQualifier(foundingLabel), applyRefNote(foundingValue, foundingRef, foundingFootnote, frame)))
elseif #establishmentRows > 0 then
local headerLabel = applyRefNote(foundingLabelWithQualifier(foundingLabel), foundingRef, foundingFootnote, frame)
table.insert(foundingRows, string.format(HEADER, headerLabel))
end
appendIndentRun(foundingRows, establishmentRows, true)
elseif not isNone(getManual(args, {"bunnit"})) then
-- Wikidata fallback: inception (P571), only when unset (not none).
local inception = getWdProperty("P571", nil, foundingRefSuppressed)
if inception and inception:find(" (Joolagh)", 1, true) then
inception = inception:gsub(" %(Joolagh%)", " (" .. getJulianCalendarSuffixLink() .. ")", 1)
end
if inception then
table.insert(foundingRows, string.format(ROW, "", foundingLabelWithQualifier(foundingLabel), applyRefNote(inception, foundingRef, foundingFootnote, frame)))
end
end
local aarheynnRows = {}
if aarheynnOK and Aarheynn and Aarheynn.main then
local okAarheynn, resultAarheynn = pcall(Aarheynn.main, frame, args)
if okAarheynn and resultAarheynn then aarheynnRows = resultAarheynn end
end
appendSection(rows, govRows)
appendSection(rows, quaiylRows)
appendSection(rows, aarheynnRows)
appendSection(rows, foundingRows)
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
46qgq6z264tl30cp056wn27xgbwxx77
395416
395364
2026-10-27T01:15:02Z
MacTire02
219
++
395416
Scribunto
text/plain
local p = {}
-- Wikidata fetch/citation module (replaces Module:WikidataIB).
local wdOK, Wd = pcall(require, "Module:Wd")
-- Country genitive/mutated forms, e.g. Mannin -> Vannin.
local enmynOK, EnmynCheerey = pcall(require, "Module:Enmyn çheerey")
-- Manx-label-or-linked-Wikidata-fallback helper; last rung of getWdItemManxLink.
local ennymWdOK, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
-- Returns the first non-empty manual parameter from a list of names.
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
-- One or more <ref> tags (named or not) in the param value arrive here
-- already expanded into rendered footnote marker(s), e.g. "[6][7][8][9]".
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
-- Shared innards of getWdProperty/getWdPropertyWithCitation.
local function getWdPropertyRaw(property, flags, includeReference)
if not wdOK or not Wd or not Wd._property then return nil end
local callArgs = {}
for _, f in ipairs(flags or {}) do table.insert(callArgs, f) end
if includeReference then table.insert(callArgs, "reference") end
table.insert(callArgs, "best") -- single best-ranked value
table.insert(callArgs, property)
local ok, result = pcall(Wd._property, callArgs)
if ok and result and result ~= "" then return result end
return nil
end
-- References on a claim (current item, or item `eid`); value = raw id/string, nil takes all best statements.
local function getWdCitation(property, value, eid)
if not wdOK or not Wd or not Wd._reference or not property then return "" end
local callArgs = {"best", property}
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and result and result ~= "" then return result end
return ""
end
local function getWdProperty(property, flags)
return getWdPropertyRaw(property, flags, true)
end
local function getWdPropertyWithCitation(property, flags)
local base = getWdPropertyRaw(property, flags, false)
if not base then return nil, nil end
local withRef = getWdPropertyRaw(property, flags, true)
if not withRef or withRef == base then return base, nil end
if withRef:sub(1, #base) == base then
local citation = withRef:sub(#base + 1)
if citation ~= "" then return base, citation end
return base, nil
end
return withRef, nil
end
local function ensureLinked(value)
if not value or value == "" then return value end
local label, refSuffix = value:match("^(.-)(<ref.*)$")
if not label then
label = value
refSuffix = ""
end
if label:find("%[%[") or label:match("^%[https?://") then
return value
end
label = mw.text.trim(label)
if label == "" then return value end
return "[[" .. label .. "]]" .. refSuffix
end
-- Manx label of a Wikidata PROPERTY (e.g. P35 -> "head of state"), title
-- fallback. getLabelByLang avoids leaking an English fallback.
local function getWikidataPropertyLabel(property)
local ok, label = pcall(mw.wikibase.getLabelByLang, property, "gv")
if ok and label and label ~= "" then return label end
return nil
end
-- Raw QID of an entity-valued property on the current page's own item.
local function getWdRawPropertyId(property, extraFlags)
if not wdOK or not Wd or not Wd._property then return nil end
local callArgs = {}
for _, f in ipairs(extraFlags or {}) do table.insert(callArgs, f) end
table.insert(callArgs, "raw")
table.insert(callArgs, "best")
table.insert(callArgs, property)
local ok, result = pcall(Wd._property, callArgs)
if ok and result and type(result) == "string" and result:match("^Q%d+$") then return result end
return nil
end
local function getWdRawPropertyIds(property, extraFlags)
if not wdOK or not Wd or not Wd._properties then return {} end
local callArgs = {"raw"}
for _, f in ipairs(extraFlags or {}) do table.insert(callArgs, f) end
table.insert(callArgs, property)
local ok, result = pcall(Wd._properties, callArgs)
if not ok or not result or type(result) ~= "string" or result == "" then return {} end
local ids = {}
for id in result:gmatch("Q%d+") do
table.insert(ids, id)
end
return ids
end
local function getWdQualifierRawId(property, qualifierProperty)
if not wdOK or not Wd or not Wd._qualifier then return nil end
local ok, result = pcall(Wd._qualifier, {"raw", "best", property, qualifierProperty})
if ok and result and type(result) == "string" and result:match("^Q%d+$") then return result end
return nil
end
local function getWdQualifierRawIdForValue(property, valueQid, qualifierProperty)
if not wdOK or not Wd or not Wd._qualifier or not valueQid then return nil end
local ok, result = pcall(Wd._qualifier, {"raw", "best", property, valueQid, qualifierProperty})
if ok and result and type(result) == "string" and result:match("^Q%d+$") then return result end
return nil
end
local function getWdRawForeignPropertyIds(eid, property, extraFlags, qualifiers)
if not wdOK or not Wd or not Wd._properties or not eid then return {} end
local callArgs = {}
for _, f in ipairs(extraFlags or {}) do table.insert(callArgs, f) end
table.insert(callArgs, "raw")
table.insert(callArgs, property)
callArgs[Wd.args and Wd.args.eid or "eid"] = eid
for qid, value in pairs(qualifiers or {}) do
callArgs[qid] = value
end
local ok, result = pcall(Wd._properties, callArgs)
if not ok or not result or type(result) ~= "string" or result == "" then return {} end
local ids = {}
for id in result:gmatch("Q%d+") do
table.insert(ids, id)
end
return ids
end
-- QID of the Wikidata item connected to the current page.
local function getCurrentCountryQid()
local ok, id = pcall(mw.wikibase.getEntityIdForCurrentPage)
if ok and id and id ~= "" then return id end
return nil
end
local function getCurrentCountryGenitive()
if not enmynOK or not EnmynCheerey or not EnmynCheerey.genitive then return nil end
local okTitle, title = pcall(function() return mw.title.getCurrentTitle().text end)
if not okTitle or not title or title == "" then return nil end
local okGen, genitive = pcall(EnmynCheerey.genitive, title)
if okGen and genitive and genitive ~= "" then return genitive end
return nil
end
local function getGenitiveLinkedLabel(baseWord)
local genitive = getCurrentCountryGenitive()
if genitive and genitive ~= "" then
return "[[" .. baseWord .. " " .. genitive .. "|" .. baseWord .. "]]"
end
return "[[" .. baseWord .. "]]"
end
local shortFormExceptions = {
["Çhiarn Vannin"] = true,
["Ree ny Belgee"] = true,
["Benrein ny Belgee"] = true,
-- Togo's head of government is titled "President of the Council of Ministers"
["Eaghtyrane Choonseil ny Shirveishee"] = true,
}
local function stripCountryGenitiveSuffix(text, countryGenitive)
if not text or not countryGenitive then return nil end
local suffix = " " .. countryGenitive
if #text > #suffix and text:sub(-#suffix) == suffix then
return text:sub(1, #text - #suffix)
end
local bareNoun = countryGenitive:match("^yn%s+(.+)$") or countryGenitive:match("^y%s+(.+)$")
if bareNoun and bareNoun ~= "" then
local suffix2 = " " .. bareNoun
if #text > #suffix2 and text:sub(-#suffix2) == suffix2 then
local remainder = text:sub(1, #text - #suffix2)
if remainder:sub(-3) == " yn" then
return remainder:sub(1, #remainder - 3)
elseif remainder:sub(-2) == " y" then
return remainder:sub(1, #remainder - 2)
end
return remainder
end
end
return nil
end
local function shortManxForm(title)
if not title or title == "" then return title end
if shortFormExceptions[title] then return title end
local countryGenitive = getCurrentCountryGenitive()
local stripped = stripCountryGenitiveSuffix(title, countryGenitive)
if stripped then return stripped end
local short = title:match("^(.-)%sy%s")
if short and short ~= "" then return short end
short = title:match("^(.-)%syn%s")
if short and short ~= "" then return short end
-- "ny" is the plural/genitive connector
short = title:match("^(.-)%sny%s")
if short and short ~= "" then return short end
short = title:match("^(.+)%s%S+$")
if short and short ~= "" then return short end
return title
end
local function shortenCountrySuffixedName(name)
if not name or name == "" then return name end
local countryGenitive = getCurrentCountryGenitive()
local stripped = stripCountryGenitiveSuffix(name, countryGenitive)
if stripped then return stripped end
local short = name:match("^(.-)%sy%s")
if short and short ~= "" then return short end
short = name:match("^(.-)%syn%s")
if short and short ~= "" then return short end
short = name:match("^(.-)%sny%s")
if short and short ~= "" then return short end
return name
end
local function shortenLinkedCountryName(value)
if not value or value == "" then return value end
local main, refSuffix = value:match("^(.-)(<ref.*)$")
if not main then
main = value
refSuffix = ""
end
local target, display = main:match("^%[%[([^%[%]|]+)|([^%[%]|]+)%]%]$")
if not target then
target = main:match("^%[%[([^%[%]|]+)%]%]$")
display = target
end
if not target then return value end
local short = shortenCountrySuffixedName(display)
if short ~= display then
return "[[" .. target .. "|" .. short .. "]]" .. refSuffix
end
return value
end
-- Capitalizes via the content language's ucfirst (UTF-8/digraph-safe).
local function wikiUcfirst(text)
if not text or text == "" then return text end
local ok, result = pcall(function() return mw.language.getContentLanguage():ucfirst(text) end)
if ok and result and result ~= "" then return result end
return text
end
local function capitalizeFirstLetter(text)
if not text or text == "" then return text end
if text:match("^%[%[") then
local closePos = text:find("]]", 3, true)
local pipePos = text:find("|", 1, true)
local splitPos
if pipePos and (not closePos or pipePos < closePos) then
splitPos = pipePos -- piped: capitalize the display half only
else
splitPos = 2 -- unpiped: capitalize just past the leading "[["
end
return text:sub(1, splitPos) .. wikiUcfirst(text:sub(splitPos + 1))
elseif text:match("^%[https?://") then
local spacePos = text:find(" ", 2, true)
if spacePos then
return text:sub(1, spacePos) .. wikiUcfirst(text:sub(spacePos + 1))
end
return text
end
return wikiUcfirst(text)
end
local function getWdItemManxLink(qid, shorten, capitalize, forceRedlink, preferExternalForLabel)
if not qid then return nil end
if capitalize == nil then capitalize = true end
local okSite, sitelinkTitle = pcall(mw.wikibase.sitelink, qid)
if not okSite then sitelinkTitle = nil end
sitelinkTitle = (sitelinkTitle and sitelinkTitle ~= "") and sitelinkTitle or nil
local okLabel, gvLabel = pcall(mw.wikibase.getLabelByLang, qid, "gv")
if okLabel and gvLabel and gvLabel ~= "" then
if capitalize then
gvLabel = wikiUcfirst(gvLabel)
end
else
gvLabel = nil
end
if not sitelinkTitle and not gvLabel then
if forceRedlink then
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, _, _, rawLabel = pcall(EnnymWd.labelWithFallback, qid)
if ok and rawLabel and rawLabel ~= "" then
return "[[" .. wikiUcfirst(mw.text.nowiki(rawLabel)) .. "]]"
end
end
return nil
end
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, annotated = pcall(EnnymWd.labelWithFallback, qid)
if ok and annotated then return annotated end
end
return nil
end
-- No gv sitelink yet
if not sitelinkTitle and preferExternalForLabel then
local display = (shorten == false) and gvLabel or shortManxForm(gvLabel)
return "[https://www.wikidata.org/wiki/" .. qid .. " " .. display .. "]"
end
local target = sitelinkTitle or gvLabel
local displayBase = gvLabel or sitelinkTitle
if shorten == false then
if target == displayBase then return "[[" .. target .. "]]" end
return "[[" .. target .. "|" .. displayBase .. "]]"
end
local short = shortManxForm(displayBase)
if short ~= target then
return "[[" .. target .. "|" .. short .. "]]"
end
return "[[" .. target .. "]]"
end
local function getWdOfficeItemTitle(officeProperty)
local officeQid = getWdRawPropertyId(officeProperty)
if not officeQid then return nil end
return getWdItemManxLink(officeQid)
end
-- Same as getWdOfficeItemTitle, but the office property is read off a FOREIGN entity (eid) rather
local function getWdForeignOfficeItemTitle(eid, officeProperty)
local officeQid = getWdRawForeignPropertyIds(eid, officeProperty, {"best"})[1]
if not officeQid then return nil end
return getWdItemManxLink(officeQid)
end
local function getWdPositionTitleForPerson(personQid)
if not personQid then return nil end
local countryQid = getCurrentCountryQid()
local candidates = {}
if countryQid then
for _, id in ipairs(getWdRawForeignPropertyIds(personQid, "P39", {"current"}, {["P1001"] = countryQid})) do
table.insert(candidates, id)
end
end
for _, id in ipairs(getWdRawForeignPropertyIds(personQid, "P39", {"current"})) do
table.insert(candidates, id)
end
local tried = {}
for _, qid in ipairs(candidates) do
if not tried[qid] then
tried[qid] = true
local link = getWdItemManxLink(qid)
if link then return link end
end
end
return nil
end
local function getWdPositionTitle(headProperty)
return getWdPositionTitleForPerson(getWdRawPropertyId(headProperty))
end
-- Wikidata's "upper house" / "lower house" class items.
local UPPER_HOUSE_QID = "Q637846"
local LOWER_HOUSE_QID = "Q375928"
local CLASS_WALK_DEPTH = 3
local function classReaches(classQid, targetQid, depth, seen)
if classQid == targetQid then return true end
if depth <= 0 then return false end
seen = seen or {}
if seen[classQid] then return false end
seen[classQid] = true
for _, superQid in ipairs(getWdRawForeignPropertyIds(classQid, "P279")) do
if classReaches(superQid, targetQid, depth - 1, seen) then return true end
end
return false
end
local function getWdChambers(legislatureQid)
if not legislatureQid then return nil, nil end
local partQids = getWdRawForeignPropertyIds(legislatureQid, "P527")
local upperQid, lowerQid = nil, nil
local upperAmbiguous, lowerAmbiguous = false, false
for _, partQid in ipairs(partQids) do
local isUpper, isLower = false, false
for _, classQid in ipairs(getWdRawForeignPropertyIds(partQid, "P31")) do
if classQid == UPPER_HOUSE_QID or classReaches(classQid, UPPER_HOUSE_QID, CLASS_WALK_DEPTH) then
isUpper = true
elseif classQid == LOWER_HOUSE_QID or classReaches(classQid, LOWER_HOUSE_QID, CLASS_WALK_DEPTH) then
isLower = true
end
end
if isUpper then
if upperQid and upperQid ~= partQid then upperAmbiguous = true end
upperQid = partQid
end
if isLower then
if lowerQid and lowerQid ~= partQid then lowerAmbiguous = true end
lowerQid = partQid
end
end
local upperLink = (upperQid and not upperAmbiguous) and getWdItemManxLink(upperQid, false, nil, nil, true) or nil
local lowerLink = (lowerQid and not lowerAmbiguous) and getWdItemManxLink(lowerQid, false, nil, nil, true) or nil
if upperLink then upperLink = upperLink .. getWdCitation("P527", upperQid, legislatureQid) end
if lowerLink then lowerLink = lowerLink .. getWdCitation("P527", lowerQid, legislatureQid) end
return upperLink, lowerLink
end
local JULIAN_CALENDAR_QID = "Q1985786"
local function getJulianCalendarSuffixLink()
local link = getWdItemManxLink(JULIAN_CALENDAR_QID, false)
if link then
local target = link:match("^%[%[([^%[%]|]+)") or link:match("^%[%[([^%[%]|]+)%]%]$")
if target then
return "[[" .. target .. "|Joolagh]]"
end
return link
end
return "Joolagh"
end
local ROW = '<tr%s><th style="vertical-align:top; white-space:nowrap; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
-- Bullet rows (leaders etc.): the label may wrap (capped at 8em, else the column grows to fit the longest label), with a hanging indent so wrapped lines sit under the text, not the bullet
local SUBROW = '<tr%s><th style="vertical-align:top; text-align:left; font-weight:normal; width:8em; max-width:8em; padding-left:1.7em; padding-right:0.4em; text-indent:-0.8em;">• %s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
local SUBROW_WRAP = SUBROW
local HEADER = '<tr class="mergedtoprow"><th colspan="2" style="text-align:left; padding-left:0.4em; padding-right:0.4em;">%s</th></tr>'
-- Builds a class="..." attribute, or an empty string.
local function trClass(name)
if name and name ~= "" then return ' class="' .. name .. '"' end
return ""
end
local function wikilinkLabel(label)
if not label or label == "" then return label end
if label:find("%[%[") then return label end
return "[[" .. label .. "]]"
end
local function appendIndentRun(rows, items, wrap)
local template = wrap and SUBROW_WRAP or SUBROW
for idx, item in ipairs(items) do
local class = (idx == #items) and "mergedbottomrow" or "mergedrow"
table.insert(rows, string.format(template, trClass(class), item[1], item[2]))
end
end
local dividerLine = '<tr><td colspan="2" style="border-top:1px solid #a2a9b1; padding:0; height:0px;"></td></tr>'
local function appendSection(rows, sectionRows)
if sectionRows and #sectionRows > 0 then
if #rows > 0 then table.insert(rows, dividerLine) end
for _, row in ipairs(sectionRows) do
table.insert(rows, row)
end
end
end
function p.main(frame, args)
-- Allow being called as p.main(args) with no frame (used by tests).
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
local govRows = {}
local quaiylRows = {}
local foundingRows = {}
local govTypeRaw = getManual(args, {"sorçh_reiltys", "government_type"})
local govRef = getManual(args, {"imraa_reiltys"})
local govNote = getManual(args, {"noteyn_reiltys"})
local wdGovRef = nil
if not govTypeRaw then
local govTypeQids = getWdRawPropertyIds("P122")
local govTypeParts = {}
local govTypeCites = {}
for _, qid in ipairs(govTypeQids) do
local link = getWdItemManxLink(qid, false, false)
if link then
table.insert(govTypeParts, link)
table.insert(govTypeCites, getWdCitation("P122", qid))
end
end
wdGovRef = table.concat(govTypeCites)
if wdGovRef == "" then wdGovRef = nil end
if #govTypeParts > 0 then
govTypeRaw = capitalizeFirstLetter(table.concat(govTypeParts, ", "))
end
end
local govShown = govTypeRaw and not isNone(govTypeRaw)
local leaderPairs = {}
local manualLeaderGiven = false
for i = 1, 5 do
local title = getManual(args, {"enmys_toshiagh" .. i, "enmys" .. i .. "_fer-toshee"})
local name = getManual(args, {"ennym_toshiagh" .. i, "ennym" .. i .. "_fer-toshee"})
if title or name then
manualLeaderGiven = true
if not isNone(name) then
table.insert(leaderPairs, {title = title or "", name = name or ""})
end
end
end
local leaderRef = getManual(args, {"imraa_toshiagh", "imraa_fer-toshee"})
local leaderNote = getManual(args, {"noteyn_toshiagh", "noteyn_fer-toshee"})
local leadersSuppressed = isNone(getManual(args, {"fir_hoshee", "toshiaghyn"}))
local function resolvePersonName(qid)
if not qid then return nil end
return shortenLinkedCountryName(ensureLinked(getWdItemManxLink(qid, false, nil, true)))
end
local councillors = {}
for i = 1, 7 do
local name = getManual(args, {"ennym_coonseilagh" .. i})
if name and not isNone(name) then
table.insert(councillors, {slot = i, name = name})
end
end
local manualCouncillorsGiven = #councillors > 0
local swissBodyQid = getWdRawPropertyId("P35") or getWdRawPropertyId("P6")
local isSwissFederalCouncil = swissBodyQid == "Q30917"
if (manualCouncillorsGiven or isSwissFederalCouncil) and not leadersSuppressed then
manualLeaderGiven = true
local presidentAnnotation = ' ([[Eaghtyrane Chochiangle yn Elveeish|Eaghtyrane]])'
local vpAnnotation = ' ([[Lhiass-eaghtyrane yn Elveeish|Lhiass-eaghtyrane]])'
local nameLines = {}
local chancellor = nil
if manualCouncillorsGiven then
local presidentSlot = tonumber(getManual(args, {"eaghtyrane_coonseilagh"}))
local vicePresidentSlot = tonumber(getManual(args, {"lhiass-eaghtyrane_coonseilagh"}))
for _, entry in ipairs(councillors) do
local line = entry.name
if presidentSlot and entry.slot == presidentSlot then
line = line .. presidentAnnotation
elseif vicePresidentSlot and entry.slot == vicePresidentSlot then
line = line .. vpAnnotation
end
table.insert(nameLines, line)
end
chancellor = getManual(args, {"shansyleyr_conastagh"})
else
local presidentOverride = getManual(args, {"eaghtyrane_coonseilagh"})
local vpOverride = getManual(args, {"lhiass-eaghtyrane_coonseilagh"})
local chancellorOverride = getManual(args, {"shansyleyr_conastagh"})
local councillorQids = getWdRawForeignPropertyIds("Q30917", "P3320", {"best", "current"})
local presidentQid = not isNone(presidentOverride) and getWdRawForeignPropertyIds("Q688230", "P1308", {"best"})[1] or nil
local vpQid = not isNone(vpOverride) and getWdRawForeignPropertyIds("Q25550811", "P1308", {"best"})[1] or nil
for _, qid in ipairs(councillorQids) do
local name = resolvePersonName(qid)
if name then
name = name .. getWdCitation("P3320", qid, "Q30917")
if qid == presidentQid then
name = name .. presidentAnnotation .. getWdCitation("P1308", qid, "Q688230")
elseif qid == vpQid then
name = name .. vpAnnotation .. getWdCitation("P1308", qid, "Q25550811")
end
table.insert(nameLines, name)
end
end
if chancellorOverride and not isNone(chancellorOverride) then
chancellor = chancellorOverride
elseif not isNone(chancellorOverride) then
local chancellorQid = getWdRawForeignPropertyIds("Q687810", "P1308", {"best"})[1]
chancellor = resolvePersonName(chancellorQid)
if chancellor then chancellor = chancellor .. getWdCitation("P1308", chancellorQid, "Q687810") end
end
end
if #nameLines > 0 then
table.insert(leaderPairs, {
title = '[[Coonseil Chonastagh yn Elveeish|Coonseilee Chonastagh]]',
name = table.concat(nameLines, '<br/>'),
})
end
if chancellor and chancellor ~= "" then
table.insert(leaderPairs, {
title = '[[Shansyleyr yn Elveeish|Shansyleyr Conastagh]]',
name = chancellor,
})
end
end
local function isSanMarinoPage()
local ok, title = pcall(function() return mw.title.getCurrentTitle().text end)
return ok and title == "San Marino"
end
local function isNorthernIrelandPage()
local ok, title = pcall(function() return mw.title.getCurrentTitle().text end)
return ok and title == "Nerin Hwoaie"
end
local function isNicaraguaPage()
if getCurrentCountryQid() == "Q811" then return true end
local ok, title = pcall(function() return mw.title.getCurrentTitle().text end)
return ok and title == "Nickeraag"
end
-- US unincorporated territories
local US_QID = "Q30"
local usTerritoryTitles = {
["Yn Phurt Verçhagh"] = true, -- Puerto Rico
["Guam"] = true, -- Guam
["Ellanyn Americaanagh y Voidyn"] = true, -- US Virgin Islands
["Samoa Americaanagh"] = true, -- American Samoa
}
-- Bouvet Island (Q23408) is a Norwegian dependency: it takes its head of state
-- (the monarch of Norway) from Norway's item (Q20), exactly as Norway shows it.
local BOUVET_QID, NORWAY_QID = "Q23408", "Q20"
local function isBouvetPage()
return getCurrentCountryQid() == BOUVET_QID
end
local function isUSTerritoryPage()
local ok, title = pcall(function() return mw.title.getCurrentTitle().text end)
return ok and title ~= nil and usTerritoryTitles[title] == true
end
local sanMarinoCaptains = {}
for i = 1, 2 do
local name = getManual(args, {"ennym_captan_reiree" .. i})
if name and not isNone(name) then
table.insert(sanMarinoCaptains, name)
end
end
local manualSanMarinoGiven = #sanMarinoCaptains > 0
if (manualSanMarinoGiven or isSanMarinoPage()) and not leadersSuppressed and not manualLeaderGiven then
manualLeaderGiven = true
local nameLines = {}
if manualSanMarinoGiven then
nameLines = sanMarinoCaptains
else
local captainQids = getWdRawPropertyIds("P35", {"best", "current"})
for _, qid in ipairs(captainQids) do
local name = resolvePersonName(qid)
if name then table.insert(nameLines, name .. getWdCitation("P35", qid)) end
end
end
if #nameLines > 0 then
local title = getManual(args, {"sorçh_kione_steat"}) or '[[Captanyn Reiree]]'
table.insert(leaderPairs, {
title = title,
name = table.concat(nameLines, '<br/>'),
})
end
end
if not manualLeaderGiven and not leadersSuppressed then
local hosQids = getWdRawPropertyIds("P35", {"best", "current"})
-- "current" matters here, not just "best"
local hogBase, hogCitation = getWdPropertyWithCitation("P6", {"linked", "current"})
local hog = ensureLinked(hogBase)
if hog and hogCitation then hog = hog .. hogCitation end
local hogQid = getWdRawPropertyId("P6", {"current"})
-- No P6 on the item: take the holder (P1308) of the office item named by
-- P1313, or of a known office for countries that lack both.
local hogFallbackTitle = nil
local HOG_OFFICE_FALLBACK = {
Q9648 = { office = "Q3064699", manx = "[[Ard-heckter ny Malveenaghyn|Ard-heckter]]" }, -- Falkland Islands
}
local known = HOG_OFFICE_FALLBACK[getCurrentCountryQid() or ""]
if not hog and not isNone(getManual(args, {"sorçh_kione_reiltys"})) then
local officeQid = getWdRawPropertyId("P1313") or (known and known.office)
if officeQid then
local holderQid = getWdRawForeignPropertyIds(officeQid, "P1308", {"best", "current"})[1]
local holderName = holderQid and shortenLinkedCountryName(ensureLinked(getWdItemManxLink(holderQid, false, nil, true))) or nil
if holderName then
hog, hogQid = holderName .. getWdCitation("P1308", holderQid, officeQid), holderQid
hogFallbackTitle = getWdItemManxLink(officeQid) or (known and known.office == officeQid and known.manx) or nil
end
end
end
-- A listed country's own office title always wins over Wikidata's generic one.
if known and hog then hogFallbackTitle = known.manx end
if isNicaraguaPage() then
-- Nicaragua is a diarchy
local presidentQids = getWdRawForeignPropertyIds("Q852448", "P1308", {"best", "current"})
local presidentTitle = getManual(args, {"sorçh_kione_steat"})
or getWdItemManxLink("Q852448")
or getWikidataPropertyLabel("P35")
or "Kione steat"
local sameHeadOfStateAndGovernment = false
local presidentNames = {}
for _, qid in ipairs(presidentQids) do
local name = ensureLinked(getWdItemManxLink(qid, false, nil, true))
if name then
name = name .. getWdCitation("P1308", qid, "Q852448")
table.insert(leaderPairs, {title = presidentTitle, name = name})
end
if name then table.insert(presidentNames, name) end
if qid == hogQid then sameHeadOfStateAndGovernment = true end
end
if #presidentNames > 0 then
table.insert(leaderPairs, {
title = presidentTitle,
name = table.concat(presidentNames, '<br/>'),
})
end
if hog and not sameHeadOfStateAndGovernment then
local hogTitle = getManual(args, {"sorçh_kione_reiltys"})
or hogFallbackTitle
or getWdOfficeItemTitle("P1313")
or getWdPositionTitle("P6")
or getWikidataPropertyLabel("P6")
or "Kione reiltys"
table.insert(leaderPairs, {title = hogTitle, name = hog})
end
elseif #hosQids > 1 then
local sameHeadOfStateAndGovernment = false
if hog and hogQid then
for _, qid in ipairs(hosQids) do
if qid == hogQid then sameHeadOfStateAndGovernment = true end
end
end
local officeQids = getWdRawPropertyIds("P1906")
local pairsBuilt = 0
if #officeQids > 1 then
for _, officeQid in ipairs(officeQids) do
local personQid = getWdQualifierRawIdForValue("P1906", officeQid, "P1308")
local name = personQid and shortenLinkedCountryName(ensureLinked(getWdItemManxLink(personQid, false, nil, true))) or nil
if name then
name = name .. getWdCitation("P1906", officeQid)
local hosTitle = getManual(args, {"sorçh_kione_steat"})
or getWdItemManxLink(officeQid)
or getWikidataPropertyLabel("P35")
or "Kione steat"
table.insert(leaderPairs, {title = hosTitle, name = name})
pairsBuilt = pairsBuilt + 1
end
end
end
if pairsBuilt == 0 then
for _, qid in ipairs(hosQids) do
local name = shortenLinkedCountryName(ensureLinked(getWdItemManxLink(qid, false, nil, true)))
if name then
name = name .. getWdCitation("P35", qid)
local hosTitle = getManual(args, {"sorçh_kione_steat"})
or getWdPositionTitleForPerson(qid)
or getWikidataPropertyLabel("P35")
or "Kione steat"
table.insert(leaderPairs, {title = hosTitle, name = name})
end
end
end
if hog and not sameHeadOfStateAndGovernment then
local hogTitle = getManual(args, {"sorçh_kione_reiltys"})
or hogFallbackTitle
or getWdOfficeItemTitle("P1313") -- office held by head of government
or getWdPositionTitle("P6")
or getWikidataPropertyLabel("P6")
or "Kione reiltys"
table.insert(leaderPairs, {title = hogTitle, name = hog})
end
else
local hosBase, hosCitation = getWdPropertyWithCitation("P35", {"linked", "current"})
local hos = shortenLinkedCountryName(ensureLinked(hosBase))
if hos and hosCitation then hos = hos .. hosCitation end
local hosQid = getWdRawPropertyId("P35", {"current"})
-- Some countries (e.g. Benin since 2016) have literally merged the head-of-state and
local hosOfficeQid = getWdRawPropertyId("P1906")
local hogOfficeQid = getWdRawPropertyId("P1313")
-- Iran only: its head-of-state offices are the Supreme Leader and the President, but
-- Wikidata ranks the President (also the government's office) as preferred, so the
-- module only ever sees that one. Use the Supreme Leader's office (Q332486) directly.
if getCurrentCountryQid() == "Q794" and hosOfficeQid and hogOfficeQid and hosOfficeQid == hogOfficeQid then
hosOfficeQid = "Q332486"
end
local sameOffice = hosOfficeQid and hogOfficeQid and hosOfficeQid == hogOfficeQid
local sameHeadOfStateAndGovernment = sameOffice
or (hos and hog and hosQid and hogQid and hosQid == hogQid)
if hos and not isBouvetPage() then
local hosTitle = getManual(args, {"sorçh_kione_steat"})
or (hosOfficeQid and getWdItemManxLink(hosOfficeQid)) -- office held by head of state
or getWdPositionTitle("P35")
or getWikidataPropertyLabel("P35")
or "Kione steat"
table.insert(leaderPairs, {title = hosTitle, name = hos})
if not isNone(getManual(args, {"ynnydee_kione_steat"})) then
local proxyOfficeQid = getWdQualifierRawId("P35", "P1393")
if proxyOfficeQid then
local proxyPersonIds = getWdRawForeignPropertyIds(proxyOfficeQid, "P1308", {"best"})
local proxyPersonQid = proxyPersonIds[1]
local proxyName = proxyPersonQid and ensureLinked(getWdItemManxLink(proxyPersonQid, false, nil, true)) or nil
if proxyName then
proxyName = proxyName .. getWdCitation("P1308", proxyPersonQid, proxyOfficeQid)
local proxyTitle = getManual(args, {"sorçh_ynnydee"})
or getWdItemManxLink(proxyOfficeQid)
or "Ynnydee"
table.insert(leaderPairs, {title = proxyTitle, name = proxyName})
end
end
end
elseif isBouvetPage() then
-- Same monarch and same label as Norway
local monarchQid = getWdRawForeignPropertyIds(NORWAY_QID, "P35", {"best", "current"})[1]
local monarchName = resolvePersonName(monarchQid)
if monarchName then
monarchName = monarchName .. getWdCitation("P35", monarchQid, NORWAY_QID)
local monarchTitle = getManual(args, {"sorçh_kione_steat"})
or getWdForeignOfficeItemTitle(NORWAY_QID, "P1906")
or getWdPositionTitleForPerson(monarchQid)
or getWikidataPropertyLabel("P35")
or "Kione steat"
table.insert(leaderPairs, {title = monarchTitle, name = monarchName})
end
elseif isUSTerritoryPage() then
-- No P35 at all on the territory's own item
local presidentQid = getWdRawForeignPropertyIds(US_QID, "P35", {"best", "current"})[1]
local presidentName = resolvePersonName(presidentQid)
if presidentName then
presidentName = presidentName .. getWdCitation("P35", presidentQid, US_QID)
local presidentTitle = getManual(args, {"sorçh_kione_steat"})
or getWdForeignOfficeItemTitle(US_QID, "P1906")
or getWdPositionTitleForPerson(presidentQid)
or getWikidataPropertyLabel("P35")
or "Kione steat"
table.insert(leaderPairs, {title = presidentTitle, name = presidentName})
end
end
if hog and not sameHeadOfStateAndGovernment then
local hogTitle = getManual(args, {"sorçh_kione_reiltys"})
or hogFallbackTitle
or (hogOfficeQid and getWdItemManxLink(hogOfficeQid)) -- office held by head of government
or getWdPositionTitle("P6")
or getWikidataPropertyLabel("P6")
or "Kione reiltys"
table.insert(leaderPairs, {title = hogTitle, name = hog})
if isNorthernIrelandPage() then
local dfmPersonQid = getWdRawForeignPropertyIds("Q11954685", "P1308", {"best"})[1]
local dfmName = dfmPersonQid and ensureLinked(getWdItemManxLink(dfmPersonQid, false, nil, true)) or nil
local dfmTitle = getWdItemManxLink("Q11954685")
if dfmName and dfmTitle then
dfmName = dfmName .. getWdCitation("P1308", dfmPersonQid, "Q11954685")
table.insert(leaderPairs, {title = dfmTitle, name = dfmName})
end
end
end
end
end
local reiltysLabel = getGenitiveLinkedLabel("Reiltys")
if govShown then
local govClass = (#leaderPairs > 0) and "mergedtoprow" or ""
table.insert(govRows, string.format(ROW, trClass(govClass), reiltysLabel, applyRefNote(govTypeRaw, govRef or wdGovRef, govNote, frame)))
elseif #leaderPairs > 0 then
table.insert(govRows, string.format(HEADER, reiltysLabel))
end
if isNicaraguaPage() and #leaderPairs > 1 then
local presidentTitle = getManual(args, {"sorçh_kione_steat"})
or getWdItemManxLink("Q852448")
or getWikidataPropertyLabel("P35")
or "Kione steat"
local combinedNames, seenNames = {}, {}
local firstPresidentIndex = nil
local filteredLeaderPairs = {}
for _, leader in ipairs(leaderPairs) do
if leader.title == presidentTitle then
if not firstPresidentIndex then firstPresidentIndex = #filteredLeaderPairs + 1 end
local remaining = leader.name or ""
while true do
local name, rest = remaining:match("^(.-)<br%s*/>(.*)$")
if not name then name = remaining end
name = mw.text.trim(name)
local nameKey = mw.ustring.gsub(name, "\127[^\127]*\127", "")
if name ~= "" and not seenNames[nameKey] then
seenNames[nameKey] = true
table.insert(combinedNames, name)
end
if not rest then break end
remaining = rest
end
else
table.insert(filteredLeaderPairs, leader)
end
end
if firstPresidentIndex and #combinedNames > 0 then
table.insert(filteredLeaderPairs, firstPresidentIndex, {
title = presidentTitle,
name = table.concat(combinedNames, "<br/>"),
})
leaderPairs = filteredLeaderPairs
end
end
if #leaderPairs > 0 then
local last = leaderPairs[#leaderPairs]
last.name = applyRefNote(last.name, leaderRef, leaderNote, frame)
local items = {}
for _, leader in ipairs(leaderPairs) do
table.insert(items, {leader.title, leader.name})
end
appendIndentRun(govRows, items)
end
local quaiyl = getManual(args, {"çhionnal", "quaiyl"})
local quaiylSyrjey = getManual(args, {"thie_heose", "quaiyl_syrjey"})
local quaiylInshley = getManual(args, {"thie_heese", "quaiyl_s'inshley", "quaiyl_sinshley"})
local quaiylRef = getManual(args, {"imraa_çhionnal", "imraa_quaiyl"})
local quaiylNote = getManual(args, {"noteyn_çhionnal", "noteyn_quaiyl"})
local quaiylQid = nil
local wdQuaiylRef = nil
if not quaiyl then
quaiylQid = getWdRawPropertyId("P194")
if quaiylQid then
quaiyl = getWdItemManxLink(quaiylQid, false, nil, nil, true)
if quaiyl then wdQuaiylRef = getWdCitation("P194", quaiylQid) end
if wdQuaiylRef == "" then wdQuaiylRef = nil end
end
end
if not quaiylSyrjey or not quaiylInshley then
local legislatureQid = quaiylQid or getWdRawPropertyId("P194")
if legislatureQid then
local wdUpper, wdLower = getWdChambers(legislatureQid)
if not quaiylSyrjey then quaiylSyrjey = wdUpper end
if not quaiylInshley then quaiylInshley = wdLower end
end
end
if quaiyl and not isNone(quaiyl) then
local houseItems = {}
if quaiylSyrjey and not isNone(quaiylSyrjey) then
table.insert(houseItems, {"[[Thie heose]]", quaiylSyrjey})
end
if quaiylInshley and not isNone(quaiylInshley) then
table.insert(houseItems, {"[[Thie heese]]", quaiylInshley})
end
local quaiylClass = (#houseItems > 0) and "mergedtoprow" or ""
table.insert(quaiylRows, string.format(ROW, trClass(quaiylClass), "[[Çhionnal slattyssagh]]", applyRefNote(quaiyl, quaiylRef or wdQuaiylRef, quaiylNote, frame)))
appendIndentRun(quaiylRows, houseItems)
end
local foundingLabel = getManual(args, {"sorçh_kionedeeaght", "sorçh_kiondeeaght"}) or "Bunneeaght"
local foundingValue = getManual(args, {"bunnit"})
local foundingQualifier = getManual(args, {"note_kionedeeaght", "note_kiondeeaght"})
local foundingFootnote = getManual(args, {"noteyn_kionedeeaght", "noteyn_kiondeeaght"})
local foundingRef = getManual(args, {"imraa_kionedeeaght", "imraa_kiondeeaght"})
local function foundingLabelWithQualifier(label)
local linked = wikilinkLabel(label)
if foundingQualifier and foundingQualifier ~= "" then
return linked .. ' <span style="font-weight:normal;">' .. foundingQualifier .. '</span>'
end
return linked
end
local establishmentRows = {}
for i = 1, 30 do
local event = getManual(args, {"taghyrt_bunneeaght" .. i, "taghyrt" .. i .. "_bunnit"})
local date = getManual(args, {"date_bunneeaght" .. i, "date" .. i .. "_bunnit"})
if event then
table.insert(establishmentRows, {event, date or ""})
end
end
if foundingValue or #establishmentRows > 0 then
if foundingValue and not isNone(foundingValue) then
local foundingClass = (#establishmentRows > 0) and "mergedtoprow" or ""
table.insert(foundingRows, string.format(ROW, trClass(foundingClass), foundingLabelWithQualifier(foundingLabel), applyRefNote(foundingValue, foundingRef, foundingFootnote, frame)))
elseif #establishmentRows > 0 then
local headerLabel = applyRefNote(foundingLabelWithQualifier(foundingLabel), foundingRef, foundingFootnote, frame)
table.insert(foundingRows, string.format(HEADER, headerLabel))
end
appendIndentRun(foundingRows, establishmentRows, true)
elseif not isNone(getManual(args, {"bunnit"})) then
-- Wikidata fallback: inception (P571), only when unset (not none).
local inception = getWdProperty("P571")
if inception and inception:find(" (Joolagh)", 1, true) then
inception = inception:gsub(" %(Joolagh%)", " (" .. getJulianCalendarSuffixLink() .. ")", 1)
end
if inception then
table.insert(foundingRows, string.format(ROW, "", foundingLabelWithQualifier(foundingLabel), applyRefNote(inception, foundingRef, foundingFootnote, frame)))
end
end
appendSection(rows, govRows)
appendSection(rows, quaiylRows)
appendSection(rows, foundingRows)
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
r1f2mblz9bcoa9s2v2zv6t0vrtd6m6l
Module:Kishtey fys çheer/possanyn kynneeagh
828
55873
395357
394759
2026-10-26T20:39:48Z
MacTire02
219
++
395357
Scribunto
text/plain
local p = {}
local ennymWdOK, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wraps a manual citation in <ref>...</ref>, unless already fully <ref>-tagged
-- (Scribunto pre-expands a literal <ref> into a strip marker; if stripping
-- those markers leaves nothing, it was already tag(s)).
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
-- One or more <ref> tags (named or not) in the param value arrive here
-- already expanded into rendered footnote marker(s), e.g. "[6][7][8][9]".
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
-- Same plain 2-cell row grid as every other submodule (see Module:Kishtey
-- fys çheer/reiltys's own ROW comment for the full rationale). No
-- white-space:nowrap here, unlike most of this project's label cells --
-- "Possanyn kynneeagh (1234)" is long enough to widen the whole infobox if
-- forced onto one line, so it's allowed to wrap instead (see the label
-- construction below for where the break is forced to fall).
local ROW = '<tr><th style="vertical-align:top; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
-- Drops a trailing " 'sy <...>"/" 'syn <...>" locative qualifier ("in the
-- <country>") from a diaspora/subgroup display name -- e.g. "Ookraanee 'sy
-- Pholynn" ("Ukrainians in Poland") displays as just "Ookraanee", still
-- linking to the full title. There's usually no separate "clean" label to
-- fall back to for these items, so the qualifier is stripped from the
-- display text directly.
local function shortenDiasporaName(display)
if not display or display == "" then return display end
local short = display:match("^(.-)%s'syn%s.+$") or display:match("^(.-)%s'sy%s.+$")
if short and short ~= "" then return short end
return display
end
-- Resolves an ethnic-group item to a link: gv sitelink, else gv label (as a
-- redlink), else an ennym-wd external link to Wikidata.
local function getWdItemLink(qid)
if not qid then return nil end
local okSite, sitelinkTitle = pcall(mw.wikibase.sitelink, qid)
if not okSite then sitelinkTitle = nil end
sitelinkTitle = (sitelinkTitle and sitelinkTitle ~= "") and sitelinkTitle or nil
local okLabel, gvLabel = pcall(mw.wikibase.getLabelByLang, qid, "gv")
if not (okLabel and gvLabel and gvLabel ~= "") then gvLabel = nil end
if not sitelinkTitle and not gvLabel then
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, annotated = pcall(EnnymWd.labelWithFallback, qid)
if ok and annotated then return annotated end
end
return nil
end
local target = sitelinkTitle or gvLabel
local display = shortenDiasporaName(gvLabel or sitelinkTitle)
if target == display then return "[[" .. target .. "]]" end
return "[[" .. target .. "|" .. display .. "]]"
end
-- e.g. 0.947 -> "94.7%"; drops a trailing ".0".
local function formatProportion(fraction)
local formatted = string.format("%.1f", fraction * 100)
return formatted:gsub("%.0$", "") .. "%"
end
-- Wikidata fallback: ethnic groups (P172), each optionally qualified with a
-- proportion (P1107). Sorted by proportion, largest first, only when every
-- entry has one; otherwise left in Wikidata's own statement order. No
-- auto-built citation (this module doesn't go through Module:Wd).
local function getWdEthnicGroups()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P172")
if not statements or #statements == 0 then return nil end
local items = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if mainsnak and mainsnak.snaktype == "value" and mainsnak.datavalue
and mainsnak.datavalue.type == "wikibase-entityid" then
local idValue = mainsnak.datavalue.value
local qid = idValue.id or ("Q" .. tostring(idValue["numeric-id"]))
local link = getWdItemLink(qid)
if link then
local pct = nil
local quals = statement.qualifiers and statement.qualifiers.P1107
local qualSnak = quals and quals[1]
if qualSnak and qualSnak.datavalue and qualSnak.datavalue.value then
pct = tonumber(qualSnak.datavalue.value.amount)
end
table.insert(items, { link = link, pct = pct })
end
end
end
if #items == 0 then return nil end
local allHavePct = true
for _, item in ipairs(items) do
if not item.pct then allHavePct = false break end
end
if allHavePct then
table.sort(items, function(a, b) return a.pct > b.pct end)
end
local parts = {}
for _, item in ipairs(items) do
if item.pct then
table.insert(parts, formatProportion(item.pct) .. " " .. item.link)
else
table.insert(parts, item.link)
end
end
return table.concat(parts, "<br/>")
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local value = getManual(args, {"possanyn_kynneeagh"})
if not value then
value = getWdEthnicGroups()
end
if not value or isNone(value) then return nil end
local year = getManual(args, {"blein_possanyn_kynneeagh"})
local ref = getManual(args, {"imraa_possanyn_kynneeagh"})
local note = getManual(args, {"noteyn_possanyn_kynneeagh"})
-- "Possanyn kynneeagh" is glued (never breaks mid-name); the plain
-- space before "(year)" is the only breakable point, so a long value
-- wraps as "Possanyn kynneeagh" / "(1234)" rather than overflowing.
local label = "[[Possan kynneeagh|Possanyn kynneeagh]]"
if year then
label = label .. " (" .. year .. ")"
end
label = applyRefNote(label, ref, note, frame)
return string.format(ROW, label, value)
end
return p
6gklbagkeks7lmhjaa7wtgdpd8i3tfp
395359
395357
2026-10-26T20:41:53Z
MacTire02
219
++
395359
Scribunto
text/plain
local p = {}
local ennymWdOK, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wraps a manual citation in <ref>...</ref>, unless already fully <ref>-tagged
-- (Scribunto pre-expands a literal <ref> into a strip marker; if stripping
-- those markers leaves nothing, it was already tag(s)).
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
-- One or more <ref> tags (named or not) in the param value arrive here
-- already expanded into rendered footnote marker(s), e.g. "[6][7][8][9]".
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
-- Same plain 2-cell row grid as every other submodule (see Module:Kishtey
-- fys çheer/reiltys's own ROW comment for the full rationale). No
-- white-space:nowrap here, unlike most of this project's label cells --
-- "Possanyn kynneeagh (1234)" is long enough to widen the whole infobox if
-- forced onto one line, so it's allowed to wrap instead (see the label
-- construction below for where the break is forced to fall).
local ROW = '<tr><th style="vertical-align:top; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
-- Drops a trailing " 'sy <...>"/" 'syn <...>" locative qualifier ("in the
-- <country>") from a diaspora/subgroup display name -- e.g. "Ookraanee 'sy
-- Pholynn" ("Ukrainians in Poland") displays as just "Ookraanee", still
-- linking to the full title. There's usually no separate "clean" label to
-- fall back to for these items, so the qualifier is stripped from the
-- display text directly.
local function shortenDiasporaName(display)
if not display or display == "" then return display end
local short = display:match("^(.-)%s'syn%s.+$") or display:match("^(.-)%s'sy%s.+$")
if short and short ~= "" then return short end
return display
end
-- Resolves an ethnic-group item to a link: gv sitelink, else gv label (as a
-- redlink), else an ennym-wd external link to Wikidata.
local function getWdItemLink(qid)
if not qid then return nil end
local okSite, sitelinkTitle = pcall(mw.wikibase.sitelink, qid)
if not okSite then sitelinkTitle = nil end
sitelinkTitle = (sitelinkTitle and sitelinkTitle ~= "") and sitelinkTitle or nil
local okLabel, gvLabel = pcall(mw.wikibase.getLabelByLang, qid, "gv")
if not (okLabel and gvLabel and gvLabel ~= "") then gvLabel = nil end
if not sitelinkTitle and not gvLabel then
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, annotated = pcall(EnnymWd.labelWithFallback, qid)
if ok and annotated then return annotated end
end
return nil
end
local target = sitelinkTitle or gvLabel
local display = shortenDiasporaName(gvLabel or sitelinkTitle)
if target == display then return "[[" .. target .. "]]" end
return "[[" .. target .. "|" .. display .. "]]"
end
-- e.g. 0.947 -> "94.7%"; drops a trailing ".0".
local function formatProportion(fraction)
local formatted = string.format("%.1f", fraction * 100)
return formatted:gsub("%.0$", "") .. "%"
end
-- Wikidata fallback: ethnic groups (P172), each optionally qualified with a
-- proportion (P1107). Sorted by proportion, largest first, only when every
-- entry has one; otherwise left in Wikidata's own statement order. No
-- auto-built citation (this module doesn't go through Module:Wd).
local function getWdEthnicGroups()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P172")
if not statements or #statements == 0 then return nil end
local items = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if mainsnak and mainsnak.snaktype == "value" and mainsnak.datavalue
and mainsnak.datavalue.type == "wikibase-entityid" then
local idValue = mainsnak.datavalue.value
local qid = idValue.id or ("Q" .. tostring(idValue["numeric-id"]))
local link = getWdItemLink(qid)
if link then
local pct = nil
local quals = statement.qualifiers and statement.qualifiers.P1107
local qualSnak = quals and quals[1]
if qualSnak and qualSnak.datavalue and qualSnak.datavalue.value then
pct = tonumber(qualSnak.datavalue.value.amount)
end
table.insert(items, { link = link, pct = pct })
end
end
end
if #items == 0 then return nil end
local allHavePct = true
for _, item in ipairs(items) do
if not item.pct then allHavePct = false break end
end
if allHavePct then
table.sort(items, function(a, b) return a.pct > b.pct end)
end
local parts = {}
for _, item in ipairs(items) do
if item.pct then
table.insert(parts, formatProportion(item.pct) .. " " .. item.link)
else
table.insert(parts, item.link)
end
end
return table.concat(parts, "<br/>")
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local value = getManual(args, {"possanyn_kynneeagh"})
if not value then
value = getWdEthnicGroups()
end
if not value or isNone(value) then return nil end
local year = getManual(args, {"blein_possanyn_kynneeagh"})
local ref = getManual(args, {"imraa_possanyn_kynneeagh"})
local note = getManual(args, {"noteyn_possanyn_kynneeagh"})
-- "Possanyn kynneeagh" is glued (never breaks mid-name); the plain
-- space before "(year)" is the only breakable point, so a long value
-- wraps as "Possanyn kynneeagh" / "(1234)" rather than overflowing. The
-- year itself is wrapped in a normal-weight span, same convention as
-- reiltys.lua's foundingLabelWithQualifier -- it's an annotation on the
-- bold label, not part of the bold label text itself.
local label = "[[Possan kynneeagh|Possanyn kynneeagh]]"
if year then
label = label .. ' <span style="font-weight:normal;">(' .. year .. ')</span>'
end
label = applyRefNote(label, ref, note, frame)
return string.format(ROW, label, value)
end
return p
fkchlpmoybkopw8zjnyfsuvnudkcts7
395370
395359
2026-10-26T22:17:56Z
MacTire02
219
++
395370
Scribunto
text/plain
local p = {}
-- Wikidata properties, verified individually before use (never guessed):
-- P2131/P2132 nominal GDP total/per-capita, P4010/P2299 PPP GDP
-- total/per-capita, P1125 Gini, P1081 HDI, P38 currency, P498 ISO 4217 code.
local GDP_NOMINAL_TOTAL = "P2131"
local GDP_NOMINAL_PERCAPITA = "P2132"
local GDP_PPP_TOTAL = "P4010"
local GDP_PPP_PERCAPITA = "P2299"
local GINI_PROPERTY = "P1125"
local HDI_PROPERTY = "P1081"
local CURRENCY_PROPERTY = "P38"
local ISO_CODE_PROPERTY = "P498"
local UNIT_SYMBOL_PROPERTY = "P5061" -- confirmed against Module:WikidataIB's own usage
-- P1082 population -- same property pobble.lua reads for its census/
-- estimate rows, reused here independently for the LTS-per-capita
-- computed fallback below.
local POPULATION_PROPERTY = "P1082"
local wdOK, Wd = pcall(require, "Module:Wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
-- One or more <ref> tags (named or not) in the param value arrive here
-- already expanded into rendered footnote marker(s), e.g. "[6][7][8][9]".
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
-- Capitalizes via the content language's own ucfirst (UTF-8/digraph-safe),
-- not a plain Lua upper() on byte 1. Duplicated from reiltys.lua.
local function wikiUcfirst(text)
if not text or text == "" then return text end
local ok, result = pcall(function() return mw.language.getContentLanguage():ucfirst(text) end)
if ok and result and result ~= "" then return result end
return text
end
-- Capitalizes the first letter a reader actually sees, even through a
-- leading wikilink or external-link marker (getCurrencyLink's two linked
-- shapes) -- Wikidata labels are commonly stored lower-case. Never applied
-- to manual values.
local function capitalizeFirstLetter(text)
if not text or text == "" then return text end
if text:match("^%[%[") then
local closePos = text:find("%]%]", 3, true)
local pipePos = text:find("|", 1, true)
local splitPos
if pipePos and (not closePos or pipePos < closePos) then
splitPos = pipePos
else
splitPos = 2
end
return text:sub(1, splitPos) .. wikiUcfirst(text:sub(splitPos + 1))
elseif text:match("^%[https?://") then
local spacePos = text:find(" ", 2, true)
if spacePos then
return text:sub(1, spacePos) .. wikiUcfirst(text:sub(spacePos + 1))
end
return text
end
return wikiUcfirst(text)
end
-- Strips trailing literal spaces and/or " " (in any mix or repeat --
-- e.g. a value that ends "... " with no rhenk/band actually appended
-- after it) so a note, reference, or auto-citation glues directly onto the
-- claim it belongs to, with no visible or non-breaking gap in between.
local function stripTrailingSpace(value)
local changed = true
while changed do
local stripped = value:gsub("%s+$", ""):gsub(" $", "")
changed = (stripped ~= value)
value = stripped
end
return value
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
local hasNote = note and note ~= "" and frame
local hasRef = ref and ref ~= ""
if hasNote or hasRef then
value = stripTrailingSpace(value)
end
if hasNote then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if hasRef then
value = value .. wrapReference(ref)
end
return value
end
-- Same row grid as reiltys/pobble: ROW is a plain label+value row, SUBROW a
-- bulleted sub-item beneath a shared block.
local ROW = '<tr%s><th style="vertical-align:top; white-space:nowrap; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
local SUBROW = '<tr%s><th style="vertical-align:top; white-space:nowrap; text-align:left; font-weight:normal; padding-left:0.9em; padding-right:0.4em;">• %s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
local function trClass(name)
if name and name ~= "" then return ' class="' .. name .. '"' end
return ""
end
local function appendIndentRun(rows, items)
for idx, item in ipairs(items) do
local class = (idx == #items) and "mergedbottomrow" or "mergedrow"
table.insert(rows, string.format(SUBROW, trClass(class), item[1], item[2]))
end
end
-- Divider between this module's own internal blocks (CCC / LTS / Gini /
-- ALD / Argid) -- same rule as reiltys: only between two blocks that both
-- produced rows.
local dividerLine = '<tr><td colspan="2" style="border-top:1px solid #a2a9b1; padding:0; height:0px;"></td></tr>'
local function appendSection(rows, sectionRows)
if sectionRows and #sectionRows > 0 then
if #rows > 0 then table.insert(rows, dividerLine) end
for _, row in ipairs(sectionRows) do
table.insert(rows, row)
end
end
end
local function formatNumber(n, decimals)
decimals = decimals or 2
local isNeg = n < 0
n = math.abs(n)
local formatted = string.format("%." .. decimals .. "f", n)
if formatted:find("%.") then
formatted = formatted:gsub("0+$", ""):gsub("%.$", "")
end
local intPart, decPart = formatted:match("^(%d+)%.?(%d*)$")
local grouped = intPart:reverse():gsub("(%d%d%d)", "%1,"):reverse():gsub("^,", "")
local result = (decPart and decPart ~= "") and (grouped .. "." .. decPart) or grouped
return isNeg and ("-" .. result) or result
end
-- Large-number Manx words, as given directly by you. Applied only to GDP
-- TOTAL figures (not per-capita, not Gini/ALD) -- matching enwiki's own
-- convention of abbreviating a total ("$32.384 trillion") while showing
-- per-capita in full ("$94,430").
local SCALE_WORDS = {
{1e12, "trillioon"},
{1e9, "billoon"},
{1e6, "millioon"},
{1e3, "thousane"},
}
local function abbreviateNumber(n)
for _, scale in ipairs(SCALE_WORDS) do
local threshold, word = scale[1], scale[2]
if math.abs(n) >= threshold then
return formatNumber(n / threshold, 3) .. " " .. word
end
end
return formatNumber(n, 0)
end
-- Splits a manual numeric value into {number, tail}: strips comma
-- separators, then takes the leading numeric run. Anything left over (an
-- inline <ref>...</ref>, already a UNIQ strip marker by the time this
-- module sees it, or other trailing text) is kept, not discarded -- the
-- old template had no separate citation parameter for these fields, so on
-- existing articles a citation can sit directly inside the value itself,
-- e.g. |LTS_ennymagh = 28,750,956,130,000<ref>...</ref>.
local function splitManualNumber(text)
local stripped = text:gsub(",", "")
local numStr, tail = stripped:match("^(%-?%d+%.?%d*)(.*)$")
if not numStr then return nil, nil end
tail = mw.text.trim(tail)
return tonumber(numStr), tail ~= "" and tail or nil
end
-- Applies to a GDP field's own number, whether manual or Wikidata-sourced
-- -- unlike every other manual value in this module, a manual GDP figure
-- IS reformatted (scaled/grouped), since the whole point of this feature
-- is the number's presentation, not just its source. `field.str` (the
-- manual text as typed) is the fallback only for the rare manual value
-- that doesn't parse as a plain number at all. Any trailing text captured
-- alongside the number (typically an inline citation) is preserved
-- immediately after the reformatted number.
local function formatGdpDisplay(field, abbreviate)
if not field.number then return field.str end
local numStr = abbreviate and abbreviateNumber(field.number) or formatNumber(field.number, 0)
if field.tail then return numStr .. field.tail end
return numStr
end
-- Matches the wiki's own {{Increase}}/{{Decrease}}/{{Steady}} styling exactly
-- (population deliberately uses no colour -- a separate, earlier decision
-- that does NOT generalise here). Increase/decrease use the site's actual
-- Coadan:Increase2.svg/Decrease2.svg icons, not hand-drawn coloured
-- triangles; steady is the site's blue ▬, per your template source.
local function trendArrow(direction)
if direction == "up" then
return "[[Coadan:Increase2.svg|11px|alt=Ardjaghey|link=|Ardjaghey]]"
elseif direction == "down" then
return "[[Coadan:Decrease2.svg|11px|alt=Leodaghey|link=|Leodaghey]]"
elseif direction == "steady" then
return '<span title="Corrym" style="color:#0AF; font-size: larger;">▬</span>'
end
return ""
end
-- A manual value can carry its OWN leading trend icon, typed by the editor
-- as {{increase}}/{{decrease}}/{{steady}} (old-template habit, e.g.
-- |LTS_CCK={{increase}} $6.932 billoon<ref>...</ref>). Those templates
-- are already expanded by the time this module sees the argument, so the
-- value starts with a Coadan:Increase2.svg/Decrease2.svg link (or the
-- steady span) -- which also means it can never parse as a plain number
-- (see splitManualNumber), so field.number is nil and no `trend` is
-- computed for it. A bare ▲/▼/▬/— glyph is matched too, in case an editor
-- typed the character directly. Returns the marker text and whatever
-- follows it (nil, text if no marker is present).
local LEADING_TREND_PATTERNS = {
"^%[%[Coadan:Increase2%.svg.-%]%]",
"^%[%[Coadan:Decrease2%.svg.-%]%]",
"^%[%[File:Increase2%.svg.-%]%]",
"^%[%[File:Decrease2%.svg.-%]%]",
"^<span[^>]*>▬</span>",
}
local function splitLeadingTrendMarker(text)
if not text or text == "" then return nil, text end
for _, pattern in ipairs(LEADING_TREND_PATTERNS) do
local s, e = text:find(pattern)
if s then return text:sub(s, e), text:sub(e + 1) end
end
for _, marker in ipairs({"▲", "▼", "▬", "—"}) do
if text:sub(1, #marker) == marker then return marker, text:sub(#marker + 1) end
end
return nil, text
end
-- Strips whatever separator (plain spaces and/or a literal " ") an
-- editor already put between their hand-typed icon and the value, so
-- glueTrend can supply exactly one " " instead of stacking two.
local function stripLeadingSeparator(text)
if not text then return text end
while true do
local stripped = text:gsub("^%s+", ""):gsub("^ ", "")
if stripped == text then return stripped end
text = stripped
end
end
-- Glues a trend icon to the number it belongs to, with a visible space
-- between them, so a line-wrap can never separate icon from value; anything
-- appended after (rank, band) stays free to wrap onto its own line. Covers
-- both an icon THIS module generated (`trend` given) and one already
-- sitting at the front of manually-typed `text` (see
-- splitLeadingTrendMarker above).
local function glueTrend(trend, text)
if trend then
return '<span style="white-space:nowrap;">' .. trendArrow(trend) .. " " .. text .. '</span>'
end
local marker, rest = splitLeadingTrendMarker(text)
if marker then
return '<span style="white-space:nowrap;">' .. marker .. " " .. stripLeadingSeparator(rest) .. '</span>'
end
return text
end
-- All non-deprecated statements of a quantity property, reduced to
-- {amount, rawAmount, year}, sorted ascending by year.
local function getWdQuantityStatements(property)
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getAllStatements(property)
if not statements then return {} end
local results = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if statement.rank ~= "deprecated" and mainsnak and mainsnak.snaktype == "value"
and mainsnak.datavalue and mainsnak.datavalue.type == "quantity" then
local rawAmount = mainsnak.datavalue.value.amount
local amount = tonumber(rawAmount)
local timeQuals = statement.qualifiers and statement.qualifiers.P585
local timeSnak = timeQuals and timeQuals[1]
local timeValue = timeSnak and timeSnak.datavalue and timeSnak.datavalue.value
local year = timeValue and timeValue.time and tonumber(timeValue.time:match("(%-?%d+)%-"))
-- The statement's OWN currency/unit (e.g. a specific country's
-- dollar, not necessarily USD) -- never assumed, always read off
-- this exact statement. Dimensionless properties (Gini, HDI)
-- simply never match "Q%d+$" here and stay nil.
local unitQid = mainsnak.datavalue.value.unit and mainsnak.datavalue.value.unit:match("Q%d+$")
if amount then
table.insert(results, {
amount = amount,
rawAmount = rawAmount and rawAmount:gsub("^%+", ""),
year = year,
unitQid = unitQid,
})
end
end
end
table.sort(results, function(a, b) return (a.year or 0) < (b.year or 0) end)
return results
end
-- Compares `number` against whichever fetched statement is the closest one
-- strictly before `year` -- or, with no year, the single most recent
-- statement -- even when that statement isn't itself shown as a row. Used
-- for both manual and Wikidata-sourced values alike.
local function trendAgainstWikidata(number, year, allEntries)
if not number or not allEntries or #allEntries == 0 then return nil end
local prev = nil
for _, entry in ipairs(allEntries) do
if year then
if entry.year and entry.year < year and (not prev or entry.year > prev.year) then prev = entry end
elseif not prev or (entry.year or 0) > (prev.year or 0) then
prev = entry
end
end
if not prev then return nil end
if number > prev.amount then return "up" end
if number < prev.amount then return "down" end
return "steady"
end
-- NOTE: by the time this returns, Module:Wd has already registered the
-- <ref> with Cite as a side effect of building it -- same mechanism as
-- aarheynn.lua's getWdCitation (see that function's own comment). If the
-- underlying Wikidata reference is missing a field Module:Citation/CS1
-- needs, the crash only exists once Cite renders the page, never as
-- something this function could detect in advance -- so `suppress` has to
-- stop this function from calling Wd._reference at all, not discard the
-- result afterward.
local function getWdReferenceForValue(property, rawAmount, suppress)
if suppress then return nil end
if not wdOK or not Wd or not Wd._reference or not rawAmount then return nil end
local ok, result = pcall(Wd._reference, {"best", property, rawAmount})
if ok and result and result ~= "" then return result end
return nil
end
-- Raw QIDs of EVERY value of an entity-valued property on the current
-- page's own item -- e.g. every P38 (currency) statement, for a country
-- using more than one.
local function getWdRawPropertyIds(property)
if not wdOK or not Wd or not Wd._properties then return {} end
local ok, result = pcall(Wd._properties, {"raw", property})
if not ok or not result or type(result) ~= "string" or result == "" then return {} end
local ids = {}
for id in result:gmatch("Q%d+") do
table.insert(ids, id)
end
return ids
end
-- Raw value of a property on a FOREIGN Wikidata item (e.g. P498 on the
-- currency item, not the country's own item) -- same eid-keyed pattern as
-- reiltys.lua's getWdRawForeignPropertyIds, singular version.
local function getWdForeignPropertyRaw(eid, property)
if not wdOK or not Wd or not Wd._property or not eid then return nil end
local callArgs = {"raw", "best", property}
callArgs[Wd.args and Wd.args.eid or "eid"] = eid
local ok, result = pcall(Wd._property, callArgs)
if ok and result and type(result) == "string" and result ~= "" then return result end
return nil
end
-- The short symbol (e.g. "$") of a currency/unit item, via P5061 -- read
-- directly off mw.wikibase (a monolingualtext value, so Wd's plain-string
-- commands don't fit), same technique as Module:WikidataIB. Prefers a
-- language-neutral ("mul") or English value; falls back to whichever
-- language is available rather than showing nothing.
local function getWdUnitSymbol(unitQid)
if not unitQid then return nil end
local ok, statements = pcall(mw.wikibase.getBestStatements, unitQid, UNIT_SYMBOL_PROPERTY)
if not ok or not statements then return nil end
local fallback = nil
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
local value = mainsnak and mainsnak.snaktype == "value" and mainsnak.datavalue and mainsnak.datavalue.value
if value and value.text then
if value.language == "mul" or value.language == "en" then return value.text end
fallback = fallback or value.text
end
end
return fallback
end
-- Manx sitelink -> Manx label (redlink) -> English (or other) label with a
-- language marker, linked to Wikidata directly. Capitalized -- Wikidata
-- labels are commonly stored lower-case ("dollar ny Steatyn Unnaneysit"),
-- but this is always the first word of the field.
local function getCurrencyLink(qid)
local sitelinkOk, sitelink = pcall(mw.wikibase.getSitelink, qid, "gvwiki")
local labelOk, label, lang = pcall(mw.wikibase.getLabelWithLang, qid)
local link
if sitelinkOk and sitelink then
local displayText = (labelOk and lang == "gv" and label) or sitelink
if displayText ~= sitelink then
link = "[[" .. sitelink .. "|" .. displayText .. "]]"
else
link = "[[" .. sitelink .. "]]"
end
elseif labelOk and label and lang == "gv" then
link = "[[" .. label .. "]]"
elseif labelOk and label then
link = "[https://www.wikidata.org/wiki/" .. qid .. "?uselang=gv " .. label .. "] <small>(" .. lang .. ")</small>"
end
return link and capitalizeFirstLetter(link) or nil
end
-- Resolves one quantity field: a manual override (or "none" suppression)
-- wins outright; otherwise the latest non-deprecated Wikidata statement.
-- Returns "none" (suppressed), nil (no data), or a table
-- {str, number, year, trend, citation}.
--
-- `refNames` (the field's OWN |imraa_...= parameter names) is consulted
-- here, not just by the caller afterward: when it reads "none", the
-- Wikidata-sourced citation must never even be requested from Wd (see
-- getWdReferenceForValue's own comment) -- discarding it after the fact,
-- once the caller has its own `ref` value in hand, would be too late.
local function resolveQuantityField(args, names, yearNames, property, statements, decimals, refNames)
local refSuppressed = refNames and isNone(getManual(args, refNames))
local manual = getManual(args, names)
if manual then
if isNone(manual) then return "none" end
-- splitManualNumber (not a plain tonumber) so a manual value with
-- trailing content (typically an inline <ref>, already a UNIQ
-- strip marker here) still parses as a number instead of falling
-- back to raw, unformatted text; the trailing content is preserved
-- via `tail`, not discarded.
local number, tail = splitManualNumber(manual)
local year = yearNames and getManual(args, yearNames)
local parsedYear = year and tonumber(year:match("%-?%d+"))
local trend = trendAgainstWikidata(number, parsedYear, statements)
return {str = manual, number = number, tail = tail, year = year, trend = trend, citation = nil}
end
local latest = nil
for _, entry in ipairs(statements) do
if not latest or (entry.year or 0) > (latest.year or 0) then latest = entry end
end
if not latest then return nil end
local trend = trendAgainstWikidata(latest.amount, latest.year, statements)
local citation = getWdReferenceForValue(property, latest.rawAmount, refSuppressed)
return {
str = formatNumber(latest.amount, decimals),
number = latest.amount,
year = latest.year and tostring(latest.year) or nil,
trend = trend,
citation = citation,
unitQid = latest.unitQid,
}
end
-- All non-deprecated P1082 (population) statements on the current page's
-- own item, reduced to {amount, year} -- a smaller duplicate of pobble.lua's
-- own getWdPopulationStatements, since this module only needs a population
-- figure for one specific year, not census/estimate classification.
local function getWdPopulationStatements()
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getAllStatements(POPULATION_PROPERTY)
if not statements then return {} end
local results = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if statement.rank ~= "deprecated" and mainsnak and mainsnak.snaktype == "value"
and mainsnak.datavalue and mainsnak.datavalue.type == "quantity" then
local amount = tonumber(mainsnak.datavalue.value.amount)
local timeQuals = statement.qualifiers and statement.qualifiers.P585
local timeSnak = timeQuals and timeQuals[1]
local timeValue = timeSnak and timeSnak.datavalue and timeSnak.datavalue.value
local year = timeValue and timeValue.time and tonumber(timeValue.time:match("(%-?%d+)%-"))
if amount and year then
table.insert(results, {amount = amount, year = year})
end
end
end
return results
end
-- The population figure for an EXACT year, or nil if Wikidata has none for
-- that year -- deliberately no nearest-year fallback, since the population
-- year must match the GDP year, not just be close to it. When more than
-- one statement shares that year, the later one found wins (an arbitrary
-- but deterministic tie-break).
local function getWdPopulationForYear(year)
if not year then return nil end
local match = nil
for _, entry in ipairs(getWdPopulationStatements()) do
if entry.year == year then match = entry end
end
return match and match.amount or nil
end
-- Computed LTS-per-capita fallback ("yn dooinney"): when there's no manual
-- value and no Wikidata P2132 statement at all, GDP total divided by
-- population -- but only when Wikidata has a population figure for the
-- exact same year as the GDP total being used. No citation is attached (a
-- computed ratio isn't one citable statement, same as pobble.lua's own
-- population-density calc). Scope: the nominal ("ennymagh") block only,
-- not PPP (CCC), which conventionally isn't derived this way either.
local function computeGdpPerCapita(total, decimals)
if not total or not total.number then return nil end
local year = total.year and tonumber(total.year:match("%-?%d+"))
if not year then return nil end
local population = getWdPopulationForYear(year)
if not population or population <= 0 then return nil end
local value = total.number / population
return {
str = formatNumber(value, decimals),
number = value,
year = total.year,
trend = nil,
citation = nil,
unitQid = total.unitQid,
}
end
-- One "total + per-capita" block (CCC/PPP or LTS/nominal): a top row with
-- the block's own year, then "Yn clane"/"Yn dooinney" bullet sub-rows --
-- matching the old template's own two labels, just on the project's
-- established 2-column grid instead of its old 3-column one.
local function buildGdpBlock(args, frame, spec)
local totalStatements = getWdQuantityStatements(spec.totalProperty)
local percapitaStatements = getWdQuantityStatements(spec.percapitaProperty)
local total = resolveQuantityField(args, spec.totalNames, spec.yearNames, spec.totalProperty, totalStatements, 0, spec.totalRefNames)
local percapita = resolveQuantityField(args, spec.percapitaNames, spec.yearNames, spec.percapitaProperty, percapitaStatements, 0, spec.percapitaRefNames)
-- Computed fallback (nominal/"ennymagh" block only -- see
-- computeGdpPerCapita's own comment). Only when there's genuinely no
-- manual value and no Wikidata statement at all: percapita == nil,
-- never "none" -- a manual |..._dooinney=none must still suppress the
-- row rather than being replaced by a computed one.
if percapita == nil and spec.populationFallback and type(total) == "table" then
percapita = computeGdpPerCapita(total, 0)
end
local totalShown = type(total) == "table"
local percapitaShown = type(percapita) == "table"
if not totalShown and not percapitaShown then return nil end
local year = getManual(args, spec.yearNames)
or (totalShown and total.year)
or (percapitaShown and percapita.year)
local rows = {}
local headerLabel = getManual(args, spec.headerOverrideNames) or spec.headerLabel
table.insert(rows, string.format(ROW, trClass("mergedtoprow"), headerLabel, year and ("Ooley " .. year) or ""))
local items = {}
if totalShown then
local rhenk = getManual(args, spec.totalRhenkNames)
-- Normalised to nil on "none" (not left as that literal string) so
-- applyRefNote never wraps it as <ref>none</ref> -- the Wikidata
-- citation itself is already suppressed up in resolveQuantityField.
local refRaw = getManual(args, spec.totalRefNames)
local ref = not isNone(refRaw) and refRaw or nil
local note = getManual(args, spec.totalNoteNames)
-- Symbol from THIS statement's own currency (never assumed) --
-- manual entries carry no unit data, so no symbol unless the
-- editor includes one themselves in the manual value.
local symbol = getWdUnitSymbol(total.unitQid) or ""
local value = glueTrend(total.trend, symbol .. formatGdpDisplay(total, true)) .. " "
if rhenk then value = value .. "([[" .. spec.totalRhenkLink .. "|" .. rhenk .. "]]) " end
if total.citation then value = stripTrailingSpace(value) .. total.citation end
value = applyRefNote(value, ref, note, frame)
table.insert(items, {"Yn clane", value})
end
if percapitaShown then
local rhenk = getManual(args, spec.percapitaRhenkNames)
local refRaw = getManual(args, spec.percapitaRefNames)
local ref = not isNone(refRaw) and refRaw or nil
local note = getManual(args, spec.percapitaNoteNames)
local symbol = getWdUnitSymbol(percapita.unitQid) or ""
-- Per-capita stays a plain grouped number, matching enwiki's own
-- convention (only the TOTAL gets abbreviated to trillion/billion/
-- million/thousand words).
local value = glueTrend(percapita.trend, symbol .. formatGdpDisplay(percapita, false)) .. " "
if rhenk then value = value .. "([[" .. spec.percapitaRhenkLink .. "|" .. rhenk .. "]]) " end
if percapita.citation then value = stripTrailingSpace(value) .. percapita.citation end
value = applyRefNote(value, ref, note, frame)
table.insert(items, {"Yn dooinney", value})
end
appendIndentRun(rows, items)
return table.concat(rows)
end
-- HDI (ALD) bands: thresholds, Manx labels, and font colours exactly as
-- given directly by you.
local function classifyHdiBand(value)
if not value then return nil end
if value >= 0.800 then return "feer ard", "darkgreen" end
if value >= 0.700 then return "ard", "green" end
if value >= 0.550 then return "meanagh", "orange" end
return "injil", "red"
end
-- Gini can be recorded as either a 0-1 fraction or a 0-100 percentage on
-- Wikidata (and by a manual override) -- normalise to a fraction first so
-- the same thresholds apply regardless of which scale the source used.
local function normalizeGiniFraction(value)
if value > 1 then return value / 100 end
return value
end
-- Gini bands: thresholds, Manx labels, and font colours exactly as given
-- directly by you. The medium band is the closed interval [0.30, 0.40] --
-- low is strictly below it, high strictly above -- so the three bands
-- partition the whole range with no gap and no overlap.
local function classifyGiniBand(value)
if not value then return nil end
local fraction = normalizeGiniFraction(value)
if fraction < 0.30 then return "anchorrymid injil", "green" end
if fraction <= 0.40 then return "anchorrymid veanagh", "dimgray" end
return "anchorrymid ard", "red"
end
-- One flat label+value row (Gini, ALD): matches the old template's shape
-- but on the project's established 2-column ROW grid, not its old
-- colspan="2"-label-plus-separate-value-cell layout.
local function buildSingleRow(args, frame, spec)
local statements = getWdQuantityStatements(spec.property)
local field = resolveQuantityField(args, spec.valueNames, spec.yearNames, spec.property, statements, spec.decimals, spec.refNames)
if not field or field == "none" then return nil end
local label = getManual(args, spec.headerOverrideNames) or spec.headerLabel
local year = getManual(args, spec.yearNames) or field.year
if year then label = label .. " (" .. year .. ")" end
local rhenk = getManual(args, spec.rhenkNames)
-- Normalised to nil on "none" for the same reason as buildGdpBlock's own
-- ref -- the Wikidata citation itself is already suppressed up in
-- resolveQuantityField.
local refRaw = getManual(args, spec.refNames)
local ref = not isNone(refRaw) and refRaw or nil
local note = getManual(args, spec.noteNames)
-- Band: a manual value always wins outright, including
-- |..._ronney=none to suppress it entirely (same manual-beats-Wikidata
-- philosophy as the rest of this module). Only with no manual value at
-- all does the band get computed automatically from whatever number is
-- actually being shown.
local rawBand = spec.bandNames and getManual(args, spec.bandNames)
local band, bandColor
if rawBand then
if not isNone(rawBand) then band = rawBand end
elseif spec.classifyBand and field.number then
band, bandColor = spec.classifyBand(field.number)
end
local value = glueTrend(field.trend, field.str) .. " "
if band then
-- Nowrapped so the band's own words (e.g. "anchorrymid ard") can't
-- split across lines -- the whole "(...)" is free to wrap onto its
-- own line instead, same principle as glueTrend for the value itself.
local bandText = bandColor and ('<span style="color:' .. bandColor .. ';">' .. band .. "</span>") or band
value = value .. '<span style="white-space:nowrap;">(' .. bandText .. ")</span> "
end
if rhenk then value = value .. "([[" .. spec.rhenkLink .. "|" .. rhenk .. "]]) " end
if field.citation then value = stripTrailingSpace(value) .. field.citation end
value = applyRefNote(value, ref, note, frame)
return string.format(ROW, "", label, value)
end
-- One "name ($) (CODE)" line for a single currency item.
local function buildCurrencyLine(qid, codeOverride)
local nameStr = getCurrencyLink(qid)
if not nameStr then return nil end
local symbol = getWdUnitSymbol(qid)
local codeStr = codeOverride or getWdForeignPropertyRaw(qid, ISO_CODE_PROPERTY)
local line = nameStr
if symbol then line = line .. " (" .. symbol .. ")" end
if codeStr then line = line .. " (<code>[[ISO 4217|" .. codeStr .. "]]</code>)" end
return line
end
local function buildCurrencyRow(args, frame)
local nameManual = getManual(args, {"argid"})
local codeManual = getManual(args, {"coad_argid"})
-- No Wikidata citation is ever built for this row (buildCurrencyLine
-- only ever links items) -- just the literal-"none"-as-ref-text fix,
-- same as everywhere else in this file.
local refRaw = getManual(args, {"imraa_argid"})
local ref = not isNone(refRaw) and refRaw or nil
local note = getManual(args, {"noteyn_argid"})
local headerLabel = getManual(args, {"sorçh_argid"}) or "[[Argid cadjin|Argid]]"
if isNone(nameManual) then return nil end
local value
if nameManual then
-- Manual text passes through as typed. Numbered slots (argid2,
-- coad_argid2, ...) support a second or further currency, e.g.
-- the Isle of Man or the Faroe Islands, joined like the Wikidata
-- multi-currency path below.
local line1 = nameManual
if codeManual then line1 = line1 .. " (<code>[[ISO 4217|" .. codeManual .. "]]</code>)" end
local lines = {line1}
local n = 2
while true do
local name = getManual(args, {"argid" .. n})
if not name then break end
local code = getManual(args, {"coad_argid" .. n})
local line = name
if code then line = line .. " (<code>[[ISO 4217|" .. code .. "]]</code>)" end
table.insert(lines, line)
n = n + 1
end
value = table.concat(lines, "<br/>")
else
-- Every P38 currency (a country can use more than one), each its
-- own line -- not just the single "best" one.
local currencyQids = getWdRawPropertyIds(CURRENCY_PROPERTY)
if #currencyQids == 0 then return nil end
local lines = {}
for _, qid in ipairs(currencyQids) do
local line = buildCurrencyLine(qid, #currencyQids == 1 and codeManual or nil)
if line then table.insert(lines, line) end
end
if #lines == 0 then return nil end
value = table.concat(lines, "<br/>")
end
value = applyRefNote(value, ref, note, frame)
return string.format(ROW, "", headerLabel, value)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
-- Old template order: PPP (CCK/CCC) block first, nominal (ennymagh)
-- second, then Gini, ALD, Currency.
local cccBlock = buildGdpBlock(args, frame, {
totalNames = {"ccc", "LTS_CCK"},
percapitaNames = {"ccc_dooinney", "LTS_CCK_yn_dooinney"},
yearNames = {"blein_ccc", "blein_LTS_CCK"},
totalRhenkNames = {"rhenk_ccc", "rhenk_LTS_CCK"},
percapitaRhenkNames = {"rhenk_ccc_dooinney", "rhenk_LTS_CCK_yn_dooinney"},
totalRefNames = {"imraa_ccc"}, totalNoteNames = {"noteyn_ccc"},
percapitaRefNames = {"imraa_ccc_dooinney"}, percapitaNoteNames = {"noteyn_ccc_dooinney"},
headerOverrideNames = {"sorçh_ccc"},
headerLabel = "[[Lane troar sthie|LTS]] (CCC)",
totalProperty = GDP_PPP_TOTAL, percapitaProperty = GDP_PPP_PERCAPITA,
totalRhenkLink = "Rolley çheeraghyn rere LTS (CCC)",
percapitaRhenkLink = "Rolley çheeraghyn rere LTS (CCC) yn dooinney",
})
appendSection(rows, cccBlock and {cccBlock} or nil)
local ltsBlock = buildGdpBlock(args, frame, {
totalNames = {"lts_ennymagh", "LTS_ennymagh"},
percapitaNames = {"lts_ennymagh_dooinney", "LTS_ennymagh_yn_dooinney"},
yearNames = {"blein_lts_ennymagh", "blein_LTS_ennymagh"},
totalRhenkNames = {"rhenk_lts_ennymagh", "rhenk_LTS_ennymagh"},
percapitaRhenkNames = {"rhenk_lts_ennymagh_dooinney", "rhenk_LTS_ennymagh_yn_dooinney"},
totalRefNames = {"imraa_lts_ennymagh"}, totalNoteNames = {"noteyn_lts_ennymagh"},
percapitaRefNames = {"imraa_lts_ennymagh_dooinney"}, percapitaNoteNames = {"noteyn_lts_ennymagh_dooinney"},
headerOverrideNames = {"sorçh_lts_ennymagh"},
headerLabel = "[[Lane troar sthie|LTS]] (ennymagh)",
totalProperty = GDP_NOMINAL_TOTAL, percapitaProperty = GDP_NOMINAL_PERCAPITA,
totalRhenkLink = "Rolley çheeraghyn rere LTS (ennymagh)",
percapitaRhenkLink = "Rolley çheeraghyn rere LTS (ennymagh) yn dooinney",
populationFallback = true,
})
appendSection(rows, ltsBlock and {ltsBlock} or nil)
local giniRow = buildSingleRow(args, frame, {
valueNames = {"gini", "Gini"},
yearNames = {"blein_gini", "blein_Gini"},
bandNames = {"ronney_gini", "ronney_Gini"},
rhenkNames = {"rhenk_gini", "rhenk_Gini"},
refNames = {"imraa_gini"}, noteNames = {"noteyn_gini"},
headerOverrideNames = {"sorçh_gini"},
headerLabel = "[[Co-effaght Gini|Gini]]",
rhenkLink = "Rolley çheeraghyn rere co-chormid çheet stiagh",
property = GINI_PROPERTY, decimals = 1,
classifyBand = classifyGiniBand,
})
appendSection(rows, giniRow and {giniRow} or nil)
local aldRow = buildSingleRow(args, frame, {
valueNames = {"ald", "ALD"},
yearNames = {"blein_ald", "blein_ALD"},
bandNames = {"ronney_ald", "ronney_ALD"},
rhenkNames = {"rhenk_ald", "rhenk_ALD"},
refNames = {"imraa_ald"}, noteNames = {"noteyn_ald"},
headerOverrideNames = {"sorçh_ald"},
headerLabel = "[[Ayndagh Lhiasaghey Deiney|ALD]]",
rhenkLink = "Rolley çheeraghyn rere Ayndagh Lhiasaghey Deiney",
property = HDI_PROPERTY, decimals = 3,
classifyBand = classifyHdiBand,
})
appendSection(rows, aldRow and {aldRow} or nil)
local currencyRow = buildCurrencyRow(args, frame)
appendSection(rows, currencyRow and {currencyRow} or nil)
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
l5xpbq642q9a3knumsszj310hvnt5aw
395372
395370
2026-10-26T22:19:11Z
MacTire02
219
++
395372
Scribunto
text/plain
local p = {}
local ennymWdOK, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wraps a manual citation in <ref>...</ref>, unless already fully <ref>-tagged
-- (Scribunto pre-expands a literal <ref> into a strip marker; if stripping
-- those markers leaves nothing, it was already tag(s)).
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
-- One or more <ref> tags (named or not) in the param value arrive here
-- already expanded into rendered footnote marker(s), e.g. "[6][7][8][9]".
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
-- Same plain 2-cell row grid as every other submodule (see Module:Kishtey
-- fys çheer/reiltys's own ROW comment for the full rationale). No
-- white-space:nowrap here, unlike most of this project's label cells --
-- "Possanyn kynneeagh (1234)" is long enough to widen the whole infobox if
-- forced onto one line, so it's allowed to wrap instead (see the label
-- construction below for where the break is forced to fall).
local ROW = '<tr><th style="vertical-align:top; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
-- Drops a trailing " 'sy <...>"/" 'syn <...>" locative qualifier ("in the
-- <country>") from a diaspora/subgroup display name -- e.g. "Ookraanee 'sy
-- Pholynn" ("Ukrainians in Poland") displays as just "Ookraanee", still
-- linking to the full title. There's usually no separate "clean" label to
-- fall back to for these items, so the qualifier is stripped from the
-- display text directly.
local function shortenDiasporaName(display)
if not display or display == "" then return display end
local short = display:match("^(.-)%s'syn%s.+$") or display:match("^(.-)%s'sy%s.+$")
if short and short ~= "" then return short end
return display
end
-- Resolves an ethnic-group item to a link: gv sitelink, else gv label (as a
-- redlink), else an ennym-wd external link to Wikidata.
local function getWdItemLink(qid)
if not qid then return nil end
local okSite, sitelinkTitle = pcall(mw.wikibase.sitelink, qid)
if not okSite then sitelinkTitle = nil end
sitelinkTitle = (sitelinkTitle and sitelinkTitle ~= "") and sitelinkTitle or nil
local okLabel, gvLabel = pcall(mw.wikibase.getLabelByLang, qid, "gv")
if not (okLabel and gvLabel and gvLabel ~= "") then gvLabel = nil end
if not sitelinkTitle and not gvLabel then
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, annotated = pcall(EnnymWd.labelWithFallback, qid)
if ok and annotated then return annotated end
end
return nil
end
local target = sitelinkTitle or gvLabel
local display = shortenDiasporaName(gvLabel or sitelinkTitle)
if target == display then return "[[" .. target .. "]]" end
return "[[" .. target .. "|" .. display .. "]]"
end
-- e.g. 0.947 -> "94.7%"; drops a trailing ".0".
local function formatProportion(fraction)
local formatted = string.format("%.1f", fraction * 100)
return formatted:gsub("%.0$", "") .. "%"
end
-- Used by both the Wikidata-sourced list (getWdEthnicGroups) and the manual
-- one (renderManualValue) below, so a percentage-led entry wraps the same
-- way regardless of where it came from. One fixed width for every entry --
-- exact per-entry alignment under varying percentage widths like "60.12%"
-- vs "14.1%" isn't achievable with a single CSS value, nor is it the goal
-- here, just a consistent, non-flush wrap.
local HANGING_INDENT = 'style="padding-left:2.2em; text-indent:-2.2em;"'
-- A percentage-led entry, however it got here (Wikidata or hand-typed):
-- leading digits, optional decimal, then "%". Detection only -- the
-- matched text is never rewritten, just used to decide which <div> style
-- to wrap it in, so a manual entry's own spacing/nbsp choices are left
-- exactly as the editor typed them.
local function isPercentageLed(text)
return text:match("^%d+%.?%d*%%") ~= nil
end
-- Splits a manual |possanyn_kynneeagh= value into one-entry-per-line, on
-- whichever separator the editor actually used: a literal newline, or a
-- literal <br/>/<br /> tag (Scribunto sees these as plain text here, not
-- real line breaks, since this module never touches <br/> elsewhere in the
-- param's own markup). Both conventions already exist across this
-- project's 200+ pre-existing articles for this kind of multi-entry field.
local function splitManualEntries(value)
local normalized = value:gsub("<br%s*/?>", "\n")
local lines = {}
for line in (normalized .. "\n"):gmatch("(.-)\n") do
local trimmed = mw.text.trim(line)
if trimmed ~= "" then
table.insert(lines, trimmed)
end
end
return lines
end
-- Renders a manual value the same way as the Wikidata fallback -- each
-- line its own block, percentage-led lines getting the hanging indent --
-- WITHOUT requiring editors to adopt a new syntax: this only acts when the
-- value actually splits into more than one line by the rule above. A
-- single-line value (including the old-template convention of a
-- {{unbulleted list|...}}/{{nowrap|...}} call, which has no literal
-- newline or <br/> of its own) falls through unchanged, exactly as before
-- this fix -- it has no internal line boundaries this module can safely
-- find and wrap without reparsing nested template markup, which isn't
-- something this function attempts.
local function renderManualValue(value)
local lines = splitManualEntries(value)
if #lines <= 1 then
return value
end
local parts = {}
for _, line in ipairs(lines) do
if isPercentageLed(line) then
table.insert(parts, '<div ' .. HANGING_INDENT .. '>' .. line .. '</div>')
else
table.insert(parts, '<div>' .. line .. '</div>')
end
end
return table.concat(parts)
end
-- Wikidata fallback: ethnic groups (P172), each optionally qualified with a
-- proportion (P1107). Sorted by proportion, largest first, only when every
-- entry has one; otherwise left in Wikidata's own statement order. No
-- auto-built citation (this module doesn't go through Module:Wd).
local function getWdEthnicGroups()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P172")
if not statements or #statements == 0 then return nil end
local items = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if mainsnak and mainsnak.snaktype == "value" and mainsnak.datavalue
and mainsnak.datavalue.type == "wikibase-entityid" then
local idValue = mainsnak.datavalue.value
local qid = idValue.id or ("Q" .. tostring(idValue["numeric-id"]))
local link = getWdItemLink(qid)
if link then
local pct = nil
local quals = statement.qualifiers and statement.qualifiers.P1107
local qualSnak = quals and quals[1]
if qualSnak and qualSnak.datavalue and qualSnak.datavalue.value then
pct = tonumber(qualSnak.datavalue.value.amount)
end
table.insert(items, { link = link, pct = pct })
end
end
end
if #items == 0 then return nil end
local allHavePct = true
for _, item in ipairs(items) do
if not item.pct then allHavePct = false break end
end
if allHavePct then
table.sort(items, function(a, b) return a.pct > b.pct end)
end
-- Each entry is its own block (<div>), not plain text joined by <br/> --
-- CSS text-indent only applies a hanging indent to wrapped lines WITHIN
-- one block box, never across a <br/>. A percentage-led entry gets
-- padding-left/text-indent pulled from the same box, so when its name
-- wraps (e.g. "14.1% Tataree" / "Chrimeeagh"), the continuation
-- lands indented under the name instead of flush left under the
-- percentage.
local parts = {}
for _, item in ipairs(items) do
if item.pct then
table.insert(parts, '<div ' .. HANGING_INDENT .. '>' .. formatProportion(item.pct) .. " " .. item.link .. '</div>')
else
table.insert(parts, '<div>' .. item.link .. '</div>')
end
end
return table.concat(parts)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- isNone is checked on the RAW manual text, before renderManualValue
-- ever touches it -- once wrapped in <div>s, "none" would no longer
-- equal the literal string "none" and the suppression would silently
-- stop working.
local rawManual = getManual(args, {"possanyn_kynneeagh"})
local value
if rawManual then
if isNone(rawManual) then return nil end
value = renderManualValue(rawManual)
else
value = getWdEthnicGroups()
end
if not value then return nil end
local year = getManual(args, {"blein_possanyn_kynneeagh"})
local ref = getManual(args, {"imraa_possanyn_kynneeagh"})
local note = getManual(args, {"noteyn_possanyn_kynneeagh"})
-- "Possanyn kynneeagh" is glued (never breaks mid-name); the plain
-- space before "(year)" is the only breakable point, so a long value
-- wraps as "Possanyn kynneeagh" / "(1234)" rather than overflowing. The
-- year itself is wrapped in a normal-weight span, same convention as
-- reiltys.lua's foundingLabelWithQualifier -- it's an annotation on the
-- bold label, not part of the bold label text itself.
local label = "[[Possan kynneeagh|Possanyn kynneeagh]]"
if year then
label = label .. ' <span style="font-weight:normal;">(' .. year .. ')</span>'
end
label = applyRefNote(label, ref, note, frame)
return string.format(ROW, label, value)
end
return p
m52wzag7i462avwitsgpspobgl1ycxv
395375
395372
2026-10-26T22:43:04Z
MacTire02
219
++
395375
Scribunto
text/plain
local p = {}
local ennymWdOK, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wraps a manual citation in <ref>...</ref>, unless already fully <ref>-tagged
-- (Scribunto pre-expands a literal <ref> into a strip marker; if stripping
-- those markers leaves nothing, it was already tag(s)).
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
-- One or more <ref> tags (named or not) in the param value arrive here
-- already expanded into rendered footnote marker(s), e.g. "[6][7][8][9]".
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
-- Same plain 2-cell row grid as every other submodule (see Module:Kishtey
-- fys çheer/reiltys's own ROW comment for the full rationale). No
-- white-space:nowrap here, unlike most of this project's label cells --
-- "Possanyn kynneeagh (1234)" is long enough to widen the whole infobox if
-- forced onto one line, so it's allowed to wrap instead (see the label
-- construction below for where the break is forced to fall).
local ROW = '<tr><th style="vertical-align:top; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
-- Drops a trailing " 'sy <...>"/" 'syn <...>" locative qualifier ("in the
-- <country>") from a diaspora/subgroup display name -- e.g. "Ookraanee 'sy
-- Pholynn" ("Ukrainians in Poland") displays as just "Ookraanee", still
-- linking to the full title. There's usually no separate "clean" label to
-- fall back to for these items, so the qualifier is stripped from the
-- display text directly.
local function shortenDiasporaName(display)
if not display or display == "" then return display end
local short = display:match("^(.-)%s'syn%s.+$") or display:match("^(.-)%s'sy%s.+$")
if short and short ~= "" then return short end
return display
end
-- Resolves an ethnic-group item to a link: gv sitelink, else gv label (as a
-- redlink), else an ennym-wd external link to Wikidata.
local function getWdItemLink(qid)
if not qid then return nil end
local okSite, sitelinkTitle = pcall(mw.wikibase.sitelink, qid)
if not okSite then sitelinkTitle = nil end
sitelinkTitle = (sitelinkTitle and sitelinkTitle ~= "") and sitelinkTitle or nil
local okLabel, gvLabel = pcall(mw.wikibase.getLabelByLang, qid, "gv")
if not (okLabel and gvLabel and gvLabel ~= "") then gvLabel = nil end
if not sitelinkTitle and not gvLabel then
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, annotated = pcall(EnnymWd.labelWithFallback, qid)
if ok and annotated then return annotated end
end
return nil
end
local target = sitelinkTitle or gvLabel
local display = shortenDiasporaName(gvLabel or sitelinkTitle)
if target == display then return "[[" .. target .. "]]" end
return "[[" .. target .. "|" .. display .. "]]"
end
-- e.g. 0.947 -> "94.7%"; drops a trailing ".0".
local function formatProportion(fraction)
local formatted = string.format("%.1f", fraction * 100)
return formatted:gsub("%.0$", "") .. "%"
end
-- Used by both the Wikidata-sourced list (getWdEthnicGroups) and the manual
-- one (renderManualValue) below, so a percentage-led entry wraps the same
-- way regardless of where it came from. One fixed width for every entry --
-- exact per-entry alignment under varying percentage widths like "60.12%"
-- vs "14.1%" isn't achievable with a single CSS value, nor is it the goal
-- here, just a consistent, non-flush wrap.
local HANGING_INDENT = 'style="padding-left:2.2em; text-indent:-2.2em;"'
-- A percentage-led entry, however it got here (Wikidata or hand-typed):
-- leading digits, optional decimal, then "%". Detection only -- the
-- matched text is never rewritten, just used to decide which <div> style
-- to wrap it in, so a manual entry's own spacing/nbsp choices are left
-- exactly as the editor typed them.
local function isPercentageLed(text)
return text:match("^%d+%.?%d*%%") ~= nil
end
-- Splits a manual |possanyn_kynneeagh= value into one-entry-per-line, on
-- whichever separator the editor actually used: a literal newline, or a
-- literal <br/>/<br /> tag (Scribunto sees these as plain text here, not
-- real line breaks, since this module never touches <br/> elsewhere in the
-- param's own markup). Both conventions already exist across this
-- project's 200+ pre-existing articles for this kind of multi-entry field.
local function splitManualEntries(value)
local normalized = value:gsub("<br%s*/?>", "\n")
local lines = {}
for line in (normalized .. "\n"):gmatch("(.-)\n") do
local trimmed = mw.text.trim(line)
if trimmed ~= "" then
table.insert(lines, trimmed)
end
end
return lines
end
-- Renders a manual value the same way as the Wikidata fallback -- each
-- line its own block, percentage-led lines getting the hanging indent --
-- WITHOUT requiring editors to adopt a new syntax: this only acts when the
-- value actually splits into more than one line by the rule above. A
-- single-line value (including the old-template convention of a
-- {{unbulleted list|...}}/{{nowrap|...}} call, which has no literal
-- newline or <br/> of its own) falls through unchanged, exactly as before
-- this fix -- it has no internal line boundaries this module can safely
-- find and wrap without reparsing nested template markup, which isn't
-- something this function attempts.
--
-- Bails out immediately if the value contains ANY "{{" at all, regardless
-- of how many lines it splits into. Scribunto hands this module the RAW,
-- unexpanded parameter text (not pre-rendered HTML) -- a multi-line
-- template call like {{Idp|<newline>* a<newline>* b<newline>}} still has
-- its own literal newlines intact at this point, so splitManualEntries
-- would happily cut it into pieces: one div for the "{{Idp|" fragment, one
-- per bullet line (rendered as literal "* a" text, since severing the call
-- stops {{Idp}} -- itself just {{plainlist}}+content+{{endplainlist}} --
-- from ever expanding as one unit), one for the closing "}}". That's not
-- hypothetical: reproduced live via action=parse against this exact
-- Crimea row with an {{Idp|...}} override, producing exactly that broken
-- shape (an empty plainlist div, then raw "* 60.12%..." text divs, then an
-- empty closing div) instead of the working hanging-indent list {{Idp}}
-- produces everywhere else it's used untouched (e.g. Yn Affrick Yiass's
-- çhengaghyn_oikoil, which no module here re-splits). So: any value with
-- template markup in it is left completely alone, exactly like the
-- single-line case below, however many literal newlines it contains --
-- the template is responsible for its own formatting, same as always.
local function renderManualValue(value)
if value:find("{{", 1, true) then
return value
end
local lines = splitManualEntries(value)
if #lines <= 1 then
return value
end
local parts = {}
for _, line in ipairs(lines) do
if isPercentageLed(line) then
table.insert(parts, '<div ' .. HANGING_INDENT .. '>' .. line .. '</div>')
else
table.insert(parts, '<div>' .. line .. '</div>')
end
end
return table.concat(parts)
end
-- Wikidata fallback: ethnic groups (P172), each optionally qualified with a
-- proportion (P1107). Sorted by proportion, largest first, only when every
-- entry has one; otherwise left in Wikidata's own statement order. No
-- auto-built citation (this module doesn't go through Module:Wd).
local function getWdEthnicGroups()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P172")
if not statements or #statements == 0 then return nil end
local items = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if mainsnak and mainsnak.snaktype == "value" and mainsnak.datavalue
and mainsnak.datavalue.type == "wikibase-entityid" then
local idValue = mainsnak.datavalue.value
local qid = idValue.id or ("Q" .. tostring(idValue["numeric-id"]))
local link = getWdItemLink(qid)
if link then
local pct = nil
local quals = statement.qualifiers and statement.qualifiers.P1107
local qualSnak = quals and quals[1]
if qualSnak and qualSnak.datavalue and qualSnak.datavalue.value then
pct = tonumber(qualSnak.datavalue.value.amount)
end
table.insert(items, { link = link, pct = pct })
end
end
end
if #items == 0 then return nil end
local allHavePct = true
for _, item in ipairs(items) do
if not item.pct then allHavePct = false break end
end
if allHavePct then
table.sort(items, function(a, b) return a.pct > b.pct end)
end
-- Each entry is its own block (<div>), not plain text joined by <br/> --
-- CSS text-indent only applies a hanging indent to wrapped lines WITHIN
-- one block box, never across a <br/>. A percentage-led entry gets
-- padding-left/text-indent pulled from the same box, so when its name
-- wraps (e.g. "14.1% Tataree" / "Chrimeeagh"), the continuation
-- lands indented under the name instead of flush left under the
-- percentage.
local parts = {}
for _, item in ipairs(items) do
if item.pct then
table.insert(parts, '<div ' .. HANGING_INDENT .. '>' .. formatProportion(item.pct) .. " " .. item.link .. '</div>')
else
table.insert(parts, '<div>' .. item.link .. '</div>')
end
end
return table.concat(parts)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- isNone is checked on the RAW manual text, before renderManualValue
-- ever touches it -- once wrapped in <div>s, "none" would no longer
-- equal the literal string "none" and the suppression would silently
-- stop working.
local rawManual = getManual(args, {"possanyn_kynneeagh"})
local value
if rawManual then
if isNone(rawManual) then return nil end
value = renderManualValue(rawManual)
else
value = getWdEthnicGroups()
end
if not value then return nil end
local year = getManual(args, {"blein_possanyn_kynneeagh"})
local ref = getManual(args, {"imraa_possanyn_kynneeagh"})
local note = getManual(args, {"noteyn_possanyn_kynneeagh"})
-- "Possanyn kynneeagh" is glued (never breaks mid-name); the plain
-- space before "(year)" is the only breakable point, so a long value
-- wraps as "Possanyn kynneeagh" / "(1234)" rather than overflowing. The
-- year itself is wrapped in a normal-weight span, same convention as
-- reiltys.lua's foundingLabelWithQualifier -- it's an annotation on the
-- bold label, not part of the bold label text itself.
local label = "[[Possan kynneeagh|Possanyn kynneeagh]]"
if year then
label = label .. ' <span style="font-weight:normal;">(' .. year .. ')</span>'
end
label = applyRefNote(label, ref, note, frame)
return string.format(ROW, label, value)
end
return p
ks6la1c5ou3j1bes9yi9u523x9xoyjs
395376
395375
2026-10-26T22:45:23Z
MacTire02
219
-chaghteraghtyn
395376
Scribunto
text/plain
local p = {}
local ennymWdOK, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wraps a manual citation in <ref>, unless it's already <ref>-tagged (or already a rendered footnote marker).
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
-- Same 2-cell row grid as other submodules; wraps (no nowrap) since the label can get long.
local ROW = '<tr><th style="vertical-align:top; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
-- Drops a trailing " 'sy/'syn <country>" qualifier from a diaspora name's display text.
local function shortenDiasporaName(display)
if not display or display == "" then return display end
local short = display:match("^(.-)%s'syn%s.+$") or display:match("^(.-)%s'sy%s.+$")
if short and short ~= "" then return short end
return display
end
-- Resolves an ethnic-group item to a link: gv sitelink, gv label, or ennym-wd fallback.
local function getWdItemLink(qid)
if not qid then return nil end
local okSite, sitelinkTitle = pcall(mw.wikibase.sitelink, qid)
if not okSite then sitelinkTitle = nil end
sitelinkTitle = (sitelinkTitle and sitelinkTitle ~= "") and sitelinkTitle or nil
local okLabel, gvLabel = pcall(mw.wikibase.getLabelByLang, qid, "gv")
if not (okLabel and gvLabel and gvLabel ~= "") then gvLabel = nil end
if not sitelinkTitle and not gvLabel then
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, annotated = pcall(EnnymWd.labelWithFallback, qid)
if ok and annotated then return annotated end
end
return nil
end
local target = sitelinkTitle or gvLabel
local display = shortenDiasporaName(gvLabel or sitelinkTitle)
if target == display then return "[[" .. target .. "]]" end
return "[[" .. target .. "|" .. display .. "]]"
end
-- e.g. 0.947 -> "94.7%"; drops a trailing ".0".
local function formatProportion(fraction)
local formatted = string.format("%.1f", fraction * 100)
return formatted:gsub("%.0$", "") .. "%"
end
-- Shared hanging-indent style for percentage-led entries, Wikidata or manual.
local HANGING_INDENT = 'style="padding-left:2.2em; text-indent:-2.2em;"'
-- True if text starts with digits + "%" (detection only; the text itself is never rewritten).
local function isPercentageLed(text)
return text:match("^%d+%.?%d*%%") ~= nil
end
-- Splits a manual value into lines, on a literal newline or <br/>.
local function splitManualEntries(value)
local normalized = value:gsub("<br%s*/?>", "\n")
local lines = {}
for line in (normalized .. "\n"):gmatch("(.-)\n") do
local trimmed = mw.text.trim(line)
if trimmed ~= "" then
table.insert(lines, trimmed)
end
end
return lines
end
-- Renders manual lines like the Wikidata fallback (hanging indent on %-led lines). Skips
-- entirely if the value contains a template call ("{{") -- splitting on its own internal
-- newlines would break it (e.g. {{Idp}}/{{unbulleted list}}), so it's left untouched.
local function renderManualValue(value)
if value:find("{{", 1, true) then
return value
end
local lines = splitManualEntries(value)
if #lines <= 1 then
return value
end
local parts = {}
for _, line in ipairs(lines) do
if isPercentageLed(line) then
table.insert(parts, '<div ' .. HANGING_INDENT .. '>' .. line .. '</div>')
else
table.insert(parts, '<div>' .. line .. '</div>')
end
end
return table.concat(parts)
end
-- Wikidata fallback: ethnic groups (P172) with optional proportion (P1107), sorted largest-first.
local function getWdEthnicGroups()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P172")
if not statements or #statements == 0 then return nil end
local items = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if mainsnak and mainsnak.snaktype == "value" and mainsnak.datavalue
and mainsnak.datavalue.type == "wikibase-entityid" then
local idValue = mainsnak.datavalue.value
local qid = idValue.id or ("Q" .. tostring(idValue["numeric-id"]))
local link = getWdItemLink(qid)
if link then
local pct = nil
local quals = statement.qualifiers and statement.qualifiers.P1107
local qualSnak = quals and quals[1]
if qualSnak and qualSnak.datavalue and qualSnak.datavalue.value then
pct = tonumber(qualSnak.datavalue.value.amount)
end
table.insert(items, { link = link, pct = pct })
end
end
end
if #items == 0 then return nil end
local allHavePct = true
for _, item in ipairs(items) do
if not item.pct then allHavePct = false break end
end
if allHavePct then
table.sort(items, function(a, b) return a.pct > b.pct end)
end
-- Each entry is its own div (not <br/>-joined), so a wrapped name hang-indents under itself.
local parts = {}
for _, item in ipairs(items) do
if item.pct then
table.insert(parts, '<div ' .. HANGING_INDENT .. '>' .. formatProportion(item.pct) .. " " .. item.link .. '</div>')
else
table.insert(parts, '<div>' .. item.link .. '</div>')
end
end
return table.concat(parts)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- Check isNone on the raw value, before renderManualValue wraps it in <div>s.
local rawManual = getManual(args, {"possanyn_kynneeagh"})
local value
if rawManual then
if isNone(rawManual) then return nil end
value = renderManualValue(rawManual)
else
value = getWdEthnicGroups()
end
if not value then return nil end
local year = getManual(args, {"blein_possanyn_kynneeagh"})
local ref = getManual(args, {"imraa_possanyn_kynneeagh"})
local note = getManual(args, {"noteyn_possanyn_kynneeagh"})
-- Label is glued so it only breaks before "(year)"; year span stays normal-weight.
local label = "[[Possan kynneeagh|Possanyn kynneeagh]]"
if year then
label = label .. ' <span style="font-weight:normal;">(' .. year .. ')</span>'
end
label = applyRefNote(label, ref, note, frame)
return string.format(ROW, label, value)
end
return p
ni7nnvo1z08qj9jm92w9oh33pq3fm1w
395378
395376
2026-10-26T22:56:50Z
MacTire02
219
++
395378
Scribunto
text/plain
local p = {}
local ennymWdOK, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wraps a manual citation in <ref>, unless it's already <ref>-tagged (or already a rendered footnote marker).
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
-- Same 2-cell row grid as other submodules; wraps (no nowrap) since the label can get long.
local ROW = '<tr><th style="vertical-align:top; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
-- Drops a trailing " 'sy/'syn <country>" qualifier from a diaspora name's display text.
local function shortenDiasporaName(display)
if not display or display == "" then return display end
local short = display:match("^(.-)%s'syn%s.+$") or display:match("^(.-)%s'sy%s.+$")
if short and short ~= "" then return short end
return display
end
-- Resolves an ethnic-group item to a link: gv sitelink, gv label, or ennym-wd fallback.
local function getWdItemLink(qid)
if not qid then return nil end
local okSite, sitelinkTitle = pcall(mw.wikibase.sitelink, qid)
if not okSite then sitelinkTitle = nil end
sitelinkTitle = (sitelinkTitle and sitelinkTitle ~= "") and sitelinkTitle or nil
local okLabel, gvLabel = pcall(mw.wikibase.getLabelByLang, qid, "gv")
if not (okLabel and gvLabel and gvLabel ~= "") then gvLabel = nil end
if not sitelinkTitle and not gvLabel then
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, annotated = pcall(EnnymWd.labelWithFallback, qid)
if ok and annotated then return annotated end
end
return nil
end
local target = sitelinkTitle or gvLabel
local display = shortenDiasporaName(gvLabel or sitelinkTitle)
if target == display then return "[[" .. target .. "]]" end
return "[[" .. target .. "|" .. display .. "]]"
end
-- e.g. 0.947 -> "94.7%"; drops a trailing ".0".
local function formatProportion(fraction)
local formatted = string.format("%.1f", fraction * 100)
return formatted:gsub("%.0$", "") .. "%"
end
-- Shared hanging-indent style for percentage-led entries, Wikidata or manual.
local HANGING_INDENT = 'style="padding-left:2.2em; text-indent:-2.2em;"'
-- True if text starts with digits + "%" (detection only; the text itself is never rewritten).
local function isPercentageLed(text)
return text:match("^%d+%.?%d*%%") ~= nil
end
-- Splits a manual value into lines, on a literal newline or <br/>.
local function splitManualEntries(value)
local normalized = value:gsub("<br%s*/?>", "\n")
local lines = {}
for line in (normalized .. "\n"):gmatch("(.-)\n") do
local trimmed = mw.text.trim(line)
if trimmed ~= "" then
table.insert(lines, trimmed)
end
end
return lines
end
-- True if value has an HTML tag other than <br/> (after <br/> is stripped out). Scribunto
-- hands this module the value with any {{template}} calls already expanded -- so a value
-- like {{Idp|...}} arrives as its own already-built "<div class=...>...</div>" markup, not
-- literal "{{" text. That markup's own internal newlines (template-formatting whitespace,
-- or not-yet-list-parsed "*" bullets awaiting the page's final parse pass) are not entry
-- separators, so it must never be split -- confirmed live: splitting it apart stops the
-- template's own tags/list-parsing from ever resolving, leaving literal "<div>* 60.12%...".
local function hasForeignHtml(value)
return value:gsub("<br%s*/?>", ""):find("<%a") ~= nil
end
-- Renders manual lines like the Wikidata fallback (hanging indent on %-led lines). Skips
-- entirely for a value that's already template-rendered markup (see hasForeignHtml).
local function renderManualValue(value)
if hasForeignHtml(value) then
return value
end
local lines = splitManualEntries(value)
if #lines <= 1 then
return value
end
local parts = {}
for _, line in ipairs(lines) do
if isPercentageLed(line) then
table.insert(parts, '<div ' .. HANGING_INDENT .. '>' .. line .. '</div>')
else
table.insert(parts, '<div>' .. line .. '</div>')
end
end
return table.concat(parts)
end
-- Wikidata fallback: ethnic groups (P172) with optional proportion (P1107), sorted largest-first.
local function getWdEthnicGroups()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P172")
if not statements or #statements == 0 then return nil end
local items = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if mainsnak and mainsnak.snaktype == "value" and mainsnak.datavalue
and mainsnak.datavalue.type == "wikibase-entityid" then
local idValue = mainsnak.datavalue.value
local qid = idValue.id or ("Q" .. tostring(idValue["numeric-id"]))
local link = getWdItemLink(qid)
if link then
local pct = nil
local quals = statement.qualifiers and statement.qualifiers.P1107
local qualSnak = quals and quals[1]
if qualSnak and qualSnak.datavalue and qualSnak.datavalue.value then
pct = tonumber(qualSnak.datavalue.value.amount)
end
table.insert(items, { link = link, pct = pct })
end
end
end
if #items == 0 then return nil end
local allHavePct = true
for _, item in ipairs(items) do
if not item.pct then allHavePct = false break end
end
if allHavePct then
table.sort(items, function(a, b) return a.pct > b.pct end)
end
-- Each entry is its own div (not <br/>-joined), so a wrapped name hang-indents under itself.
local parts = {}
for _, item in ipairs(items) do
if item.pct then
table.insert(parts, '<div ' .. HANGING_INDENT .. '>' .. formatProportion(item.pct) .. " " .. item.link .. '</div>')
else
table.insert(parts, '<div>' .. item.link .. '</div>')
end
end
return table.concat(parts)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- Check isNone on the raw value, before renderManualValue wraps it in <div>s.
local rawManual = getManual(args, {"possanyn_kynneeagh"})
local value
if rawManual then
if isNone(rawManual) then return nil end
value = renderManualValue(rawManual)
else
value = getWdEthnicGroups()
end
if not value then return nil end
local year = getManual(args, {"blein_possanyn_kynneeagh"})
local ref = getManual(args, {"imraa_possanyn_kynneeagh"})
local note = getManual(args, {"noteyn_possanyn_kynneeagh"})
-- Label is glued so it only breaks before "(year)"; year span stays normal-weight.
local label = "[[Possan kynneeagh|Possanyn kynneeagh]]"
if year then
label = label .. ' <span style="font-weight:normal;">(' .. year .. ')</span>'
end
label = applyRefNote(label, ref, note, frame)
return string.format(ROW, label, value)
end
return p
rap7ifzi0hcgdgdkymuse00gbd0wiop
Module:Kishtey fys çheer/pobble
828
55875
395365
394649
2026-10-26T21:20:01Z
MacTire02
219
++
395365
Scribunto
text/plain
local p = {}
local KM2_PER_MI2 = 2.589988110336
-- P459 (determination method) QIDs, verified on Wikidata. Anything that
-- isn't a census defaults to "estimate" in classify() below, so the
-- estimate-family QIDs aren't matched explicitly -- kept here for reference.
local CENSUS_QID = "Q39825"
local ESTIMATE_QID = "Q791801"
local DEMOGRAPHIC_BALANCE_QID = "Q15911027"
local POPULATION_ESTIMATE_QID = "Q29051383"
-- Same area units as eaghtyr.lua, for the density calc.
local AREA_UNIT_FACTORS = {
Q712226 = 1,
Q232291 = KM2_PER_MI2,
}
-- For Wikidata citations only.
local wdOK, Wd = pcall(require, "Module:Wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wraps a manual ref in <ref> unless it's already tagged (Scribunto turns
-- a literal <ref> into a strip marker before this module sees it).
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
-- One or more <ref> tags (named or not) in the param value arrive here
-- already expanded into rendered footnote marker(s), e.g. "[6][7][8][9]".
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
-- Strips trailing literal spaces and/or " " (in any mix or repeat --
-- e.g. a value that ends "... " with no rhenk actually appended after
-- it) so a note, reference, or auto-citation glues directly onto the claim
-- it belongs to, with no visible or non-breaking gap in between.
local function stripTrailingSpace(value)
local changed = true
while changed do
local stripped = value:gsub("%s+$", ""):gsub(" $", "")
changed = (stripped ~= value)
value = stripped
end
return value
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
local hasNote = note and note ~= "" and frame
local hasRef = ref and ref ~= ""
if hasNote or hasRef then
value = stripTrailingSpace(value)
end
if hasNote then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if hasRef then
value = value .. wrapReference(ref)
end
return value
end
-- Same header + bulleted sub-rows grid as reiltys/eaghtyr.
local SUBROW = '<tr%s><th style="vertical-align:top; white-space:nowrap; text-align:left; font-weight:normal; padding-left:0.9em; padding-right:0.4em;">• %s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
local HEADER = '<tr class="mergedtoprow"><th colspan="2" style="text-align:left; padding-left:0.4em; padding-right:0.4em;">%s</th></tr>'
local function trClass(name)
if name and name ~= "" then return ' class="' .. name .. '"' end
return ""
end
local function appendIndentRun(rows, items)
for idx, item in ipairs(items) do
local class = (idx == #items) and "mergedbottomrow" or "mergedrow"
table.insert(rows, string.format(SUBROW, trClass(class), item[1], item[2]))
end
end
-- e.g. 1234567.5 -> "1,234,567.5". Manual values are never touched by this.
local function formatNumber(n, decimals)
decimals = decimals or 2
local isNeg = n < 0
n = math.abs(n)
local formatted = string.format("%." .. decimals .. "f", n)
if formatted:find("%.") then
formatted = formatted:gsub("0+$", ""):gsub("%.$", "")
end
local intPart, decPart = formatted:match("^(%d+)%.?(%d*)$")
local grouped = intPart:reverse():gsub("(%d%d%d)", "%1,"):reverse():gsub("^,", "")
local result = (decPart and decPart ~= "") and (grouped .. "." .. decPart) or grouped
return isNeg and ("-" .. result) or result
end
-- Increase/decrease/steady arrow. No colour coding -- an increase isn't
-- universally good or bad, it depends on the country.
local function trendArrow(direction)
if direction == "up" then
return '<span title="Ardjaghey">▲</span>'
elseif direction == "down" then
return '<span title="Leodaghey">▼</span>'
elseif direction == "steady" then
return '<span title="Corrym">—</span>'
end
return ""
end
-- All P1082 statements, reduced to {amount, rawAmount, year, method},
-- sorted ascending by year.
local function getWdPopulationStatements()
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
-- getAllStatements, not getBestStatements: a single preferred-rank
-- statement (Wikidata often marks the latest one that way) would
-- otherwise hide every normal-rank statement, including the census.
-- Deprecated-rank statements are excluded by hand below instead.
local statements = entity:getAllStatements("P1082")
if not statements then return {} end
local results = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if statement.rank ~= "deprecated" and mainsnak and mainsnak.snaktype == "value"
and mainsnak.datavalue and mainsnak.datavalue.type == "quantity" then
local rawAmount = mainsnak.datavalue.value.amount
local amount = tonumber(rawAmount)
local timeQuals = statement.qualifiers and statement.qualifiers.P585
local timeSnak = timeQuals and timeQuals[1]
local timeValue = timeSnak and timeSnak.datavalue and timeSnak.datavalue.value
local year = timeValue and timeValue.time and tonumber(timeValue.time:match("(%-?%d+)%-"))
if amount and year then
local methodQuals = statement.qualifiers and statement.qualifiers.P459
local methodSnak = methodQuals and methodQuals[1]
local methodValue = methodSnak and methodSnak.datavalue and methodSnak.datavalue.value
local method = methodValue and (methodValue.id or ("Q" .. tostring(methodValue["numeric-id"])))
table.insert(results, {
amount = amount,
rawAmount = rawAmount and rawAmount:gsub("^%+", ""),
year = year,
method = method,
})
end
end
end
table.sort(results, function(a, b) return a.year < b.year end)
return results
end
-- Real census statements are usually tagged with a country-specific item,
-- not the generic QID -- fall back to checking the label for "census".
local function isCensusMethod(methodQid)
if not methodQid then return false end
if methodQid == CENSUS_QID then return true end
local ok, label = pcall(mw.wikibase.getLabelByLang, methodQid, "en")
return ok and label ~= nil and mw.ustring.find(mw.ustring.lower(label), "census", 1, true) ~= nil
end
local function classify(entry)
if isCensusMethod(entry.method) then return "census" end
return "estimate"
end
-- Compares `number` against whichever Wikidata P1082 statement (census or
-- estimate) is the closest one strictly before `year` -- or, with no year,
-- the single most recent Wikidata statement -- even when that statement
-- isn't itself shown as a row. Used for both manual and Wikidata-sourced
-- values, so a manual override is never compared to its sibling census/
-- estimate figure, only to Wikidata's own prior data for this property.
local function trendAgainstWikidata(number, year, allEntries)
if not number or not allEntries or #allEntries == 0 then return nil end
local prev = nil
for _, entry in ipairs(allEntries) do
if year then
if entry.year < year and (not prev or entry.year > prev.year) then prev = entry end
elseif not prev or entry.year > prev.year then
prev = entry
end
end
if not prev then return nil end
if number > prev.amount then return "up" end
if number < prev.amount then return "down" end
return "steady"
end
-- Matches the statement by its own value rather than re-matching P585/
-- P459 as strings, since dates can carry finer-than-year precision.
--
-- NOTE: by the time this returns, Module:Wd has already registered the
-- <ref> with Cite as a side effect of building it -- same mechanism as
-- aarheynn.lua's getWdCitation (see that function's own comment). If the
-- underlying Wikidata reference is missing a field Module:Citation/CS1
-- needs, the crash only exists once Cite renders the page, never as
-- something this function could detect in advance -- so `suppress` has to
-- stop this function from calling Wd._reference at all, not discard the
-- result afterward.
local function getWdReferenceForValue(property, rawAmount, suppress)
if suppress then return nil end
if not wdOK or not Wd or not Wd._reference or not rawAmount then return nil end
local ok, result = pcall(Wd._reference, {"best", property, rawAmount})
if ok and result and result ~= "" then return result end
return nil
end
-- Duplicated from eaghtyr.lua for the density calc.
local function getWdAreaKm2()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P2046")
if not statements or #statements == 0 then return nil end
local mainsnak = statements[1].mainsnak
if not (mainsnak and mainsnak.snaktype == "value" and mainsnak.datavalue
and mainsnak.datavalue.type == "quantity") then
return nil
end
local value = mainsnak.datavalue.value
local amount = tonumber(value.amount)
if not amount then return nil end
local unitQid = value.unit and value.unit:match("Q%d+$")
local factor = unitQid and AREA_UNIT_FACTORS[unitQid]
if not factor then return nil end
return amount * factor
end
-- Builds one census/estimate row from manual params, else Wikidata. A
-- trend arrow always compares against Wikidata's own prior P1082 data for
-- this property (never a sibling census/estimate value), even when that
-- prior statement isn't itself shown as a row.
local function buildPopulationItem(args, frame, paramPrefix, labelWord, methodQid, statements)
local manual = getManual(args, {"pobble_" .. paramPrefix})
local year = getManual(args, {"blein_" .. paramPrefix .. "_pobble"})
local rhenk = getManual(args, {"rhenk_" .. paramPrefix .. "_pobble"})
-- |imraa_..._pobble=none has to do two things: (a) stop
-- getWdReferenceForValue below from ever calling Wd._reference for the
-- Wikidata-sourced census/estimate citation (the actual Cite-crash
-- escape hatch -- see that function's own comment), and (b) not be
-- re-wrapped as a literal <ref>none</ref> once normalised to nil here.
local refRaw = getManual(args, {"imraa_" .. paramPrefix .. "_pobble"})
local refSuppressed = isNone(refRaw)
local ref = not refSuppressed and refRaw or nil
local note = getManual(args, {"noteyn_" .. paramPrefix .. "_pobble"})
if manual then
if isNone(manual) then return nil, nil end
local number = tonumber((manual:gsub(",", "")))
local parsedYear = year and tonumber(year:match("%-?%d+"))
local trend = trendAgainstWikidata(number, parsedYear, statements)
local label = labelWord .. (year and (" " .. year) or "")
local value = (trend and trendArrow(trend) or "") .. manual .. " "
if rhenk then
value = value .. "([[Rolley çheeraghyn rere earroo yn phobble|" .. rhenk .. "]]) "
end
value = applyRefNote(value, ref, note, frame)
return {label, value}, number
end
local latest = nil
for _, entry in ipairs(statements) do
if classify(entry) == (methodQid == CENSUS_QID and "census" or "estimate") then
latest = entry
end
end
if not latest then return nil, nil end
local trend = trendAgainstWikidata(latest.amount, latest.year, statements)
local citation = getWdReferenceForValue("P1082", latest.rawAmount, refSuppressed)
local label = labelWord .. " " .. latest.year
local value = (trend and trendArrow(trend) or "") .. formatNumber(latest.amount) .. " "
if rhenk then
value = value .. "([[Rolley çheeraghyn rere earroo yn phobble|" .. rhenk .. "]]) "
end
if citation then
value = stripTrailingSpace(value) .. citation
end
value = applyRefNote(value, ref, note, frame)
return {label, value}, latest.amount
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local headerLabel = getManual(args, {"sorçh_pobble"}) or "[[Earroo yn phobble]]"
local wdStatements = nil
local function statements()
if wdStatements == nil then wdStatements = getWdPopulationStatements() end
return wdStatements
end
-- Census, then estimate (old template's order). Each item's trend
-- compares against Wikidata's own prior data, not against the other.
local censusItem, censusNumber = buildPopulationItem(args, frame, "coontey", "Coontey-pobble", CENSUS_QID, statements())
local estimateItem, estimateNumber = buildPopulationItem(args, frame, "ooley", "Ooley-pobble", ESTIMATE_QID, statements())
-- Density: manual km², else population ÷ area. No auto citation --
-- a computed ratio isn't one citable statement, so there's no Cite-
-- crash risk here -- just normalising "none" to nil so it's never
-- wrapped as a literal <ref>none</ref> (same fix as buildPopulationItem's
-- own ref, above).
local densityRefRaw = getManual(args, {"imraa_glooaght_pobble"})
local densityRef = not isNone(densityRefRaw) and densityRefRaw or nil
local densityNote = getManual(args, {"noteyn_glooaght_pobble"})
local densityManual = getManual(args, {"glooaght_pobble_km2"})
local densityItem = nil
local densityKm2Str, densityKm2Number
if densityManual then
if not isNone(densityManual) then
densityKm2Str = densityManual
densityKm2Number = tonumber((densityManual:gsub(",", "")))
end
else
local populationForDensity = estimateNumber or censusNumber
local areaKm2 = populationForDensity and getWdAreaKm2()
if populationForDensity and areaKm2 and areaKm2 > 0 then
densityKm2Number = populationForDensity / areaKm2
densityKm2Str = formatNumber(densityKm2Number, 1)
end
end
if densityKm2Str then
local foScreeuyn = getManual(args, {"gloo_pob_fo-screeuyn"}) or ""
local rhenk = getManual(args, {"rhenk_glooaght_pobble"})
local miKerManual = getManual(args, {"glooaght_pobble_mi_ker"})
local miKerStr = miKerManual
if not miKerStr and densityKm2Number then
miKerStr = formatNumber(densityKm2Number * KM2_PER_MI2, 1)
end
local value = densityKm2Str .. "/km<sup>2</sup> " .. foScreeuyn
if rhenk then
value = value .. "([[Rolley çheeraghyn rere glooaght y phobble|" .. rhenk .. "]]) "
end
if miKerStr then
value = value .. "<br/>" .. miKerStr .. "/mi ker"
end
value = applyRefNote(value, densityRef, densityNote, frame)
densityItem = {"[[Glooaght y phobble|Glooaght]]", value}
end
if not censusItem and not estimateItem and not densityItem then return nil end
local rows = {string.format(HEADER, headerLabel)}
local items = {}
if estimateItem then table.insert(items, estimateItem) end
if censusItem then table.insert(items, censusItem) end
if densityItem then table.insert(items, densityItem) end
appendIndentRun(rows, items)
return table.concat(rows)
end
return p
lzxzja5zwhn6kxsz7xanfyh74fl8c9g
Module:Kishtey fys çheer/tarmaynys
828
55890
395366
394977
2026-10-26T21:20:38Z
MacTire02
219
++
395366
Scribunto
text/plain
local p = {}
-- Wikidata properties, verified individually before use (never guessed):
-- P2131/P2132 nominal GDP total/per-capita, P4010/P2299 PPP GDP
-- total/per-capita, P1125 Gini, P1081 HDI, P38 currency, P498 ISO 4217 code.
local GDP_NOMINAL_TOTAL = "P2131"
local GDP_NOMINAL_PERCAPITA = "P2132"
local GDP_PPP_TOTAL = "P4010"
local GDP_PPP_PERCAPITA = "P2299"
local GINI_PROPERTY = "P1125"
local HDI_PROPERTY = "P1081"
local CURRENCY_PROPERTY = "P38"
local ISO_CODE_PROPERTY = "P498"
local UNIT_SYMBOL_PROPERTY = "P5061" -- confirmed against Module:WikidataIB's own usage
-- P1082 population -- same property pobble.lua reads for its census/
-- estimate rows, reused here independently for the LTS-per-capita
-- computed fallback below.
local POPULATION_PROPERTY = "P1082"
local wdOK, Wd = pcall(require, "Module:Wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then
return ref
end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
-- One or more <ref> tags (named or not) in the param value arrive here
-- already expanded into rendered footnote marker(s), e.g. "[6][7][8][9]".
local withoutRenderedMarkers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutRenderedMarkers, "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
-- Capitalizes via the content language's own ucfirst (UTF-8/digraph-safe),
-- not a plain Lua upper() on byte 1. Duplicated from reiltys.lua.
local function wikiUcfirst(text)
if not text or text == "" then return text end
local ok, result = pcall(function() return mw.language.getContentLanguage():ucfirst(text) end)
if ok and result and result ~= "" then return result end
return text
end
-- Capitalizes the first letter a reader actually sees, even through a
-- leading wikilink or external-link marker (getCurrencyLink's two linked
-- shapes) -- Wikidata labels are commonly stored lower-case. Never applied
-- to manual values.
local function capitalizeFirstLetter(text)
if not text or text == "" then return text end
if text:match("^%[%[") then
local closePos = text:find("%]%]", 3, true)
local pipePos = text:find("|", 1, true)
local splitPos
if pipePos and (not closePos or pipePos < closePos) then
splitPos = pipePos
else
splitPos = 2
end
return text:sub(1, splitPos) .. wikiUcfirst(text:sub(splitPos + 1))
elseif text:match("^%[https?://") then
local spacePos = text:find(" ", 2, true)
if spacePos then
return text:sub(1, spacePos) .. wikiUcfirst(text:sub(spacePos + 1))
end
return text
end
return wikiUcfirst(text)
end
-- Strips trailing literal spaces and/or " " (in any mix or repeat --
-- e.g. a value that ends "... " with no rhenk/band actually appended
-- after it) so a note, reference, or auto-citation glues directly onto the
-- claim it belongs to, with no visible or non-breaking gap in between.
local function stripTrailingSpace(value)
local changed = true
while changed do
local stripped = value:gsub("%s+$", ""):gsub(" $", "")
changed = (stripped ~= value)
value = stripped
end
return value
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
local hasNote = note and note ~= "" and frame
local hasRef = ref and ref ~= ""
if hasNote or hasRef then
value = stripTrailingSpace(value)
end
if hasNote then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if hasRef then
value = value .. wrapReference(ref)
end
return value
end
-- Same row grid as reiltys/pobble: ROW is a plain label+value row, SUBROW a
-- bulleted sub-item beneath a shared block.
local ROW = '<tr%s><th style="vertical-align:top; white-space:nowrap; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
local SUBROW = '<tr%s><th style="vertical-align:top; white-space:nowrap; text-align:left; font-weight:normal; padding-left:0.9em; padding-right:0.4em;">• %s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
local function trClass(name)
if name and name ~= "" then return ' class="' .. name .. '"' end
return ""
end
local function appendIndentRun(rows, items)
for idx, item in ipairs(items) do
local class = (idx == #items) and "mergedbottomrow" or "mergedrow"
table.insert(rows, string.format(SUBROW, trClass(class), item[1], item[2]))
end
end
-- Divider between this module's own internal blocks (CCC / LTS / Gini /
-- ALD / Argid) -- same rule as reiltys: only between two blocks that both
-- produced rows.
local dividerLine = '<tr><td colspan="2" style="border-top:1px solid #a2a9b1; padding:0; height:0px;"></td></tr>'
local function appendSection(rows, sectionRows)
if sectionRows and #sectionRows > 0 then
if #rows > 0 then table.insert(rows, dividerLine) end
for _, row in ipairs(sectionRows) do
table.insert(rows, row)
end
end
end
local function formatNumber(n, decimals)
decimals = decimals or 2
local isNeg = n < 0
n = math.abs(n)
local formatted = string.format("%." .. decimals .. "f", n)
if formatted:find("%.") then
formatted = formatted:gsub("0+$", ""):gsub("%.$", "")
end
local intPart, decPart = formatted:match("^(%d+)%.?(%d*)$")
local grouped = intPart:reverse():gsub("(%d%d%d)", "%1,"):reverse():gsub("^,", "")
local result = (decPart and decPart ~= "") and (grouped .. "." .. decPart) or grouped
return isNeg and ("-" .. result) or result
end
-- Large-number Manx words, as given directly by you. Applied only to GDP
-- TOTAL figures (not per-capita, not Gini/ALD) -- matching enwiki's own
-- convention of abbreviating a total ("$32.384 trillion") while showing
-- per-capita in full ("$94,430").
local SCALE_WORDS = {
{1e12, "trillioon"},
{1e9, "billoon"},
{1e6, "millioon"},
{1e3, "thousane"},
}
local function abbreviateNumber(n)
for _, scale in ipairs(SCALE_WORDS) do
local threshold, word = scale[1], scale[2]
if math.abs(n) >= threshold then
return formatNumber(n / threshold, 3) .. " " .. word
end
end
return formatNumber(n, 0)
end
-- Splits a manual numeric value into {number, tail}: strips comma
-- separators, then takes the leading numeric run. Anything left over (an
-- inline <ref>...</ref>, already a UNIQ strip marker by the time this
-- module sees it, or other trailing text) is kept, not discarded -- the
-- old template had no separate citation parameter for these fields, so on
-- existing articles a citation can sit directly inside the value itself,
-- e.g. |LTS_ennymagh = 28,750,956,130,000<ref>...</ref>.
local function splitManualNumber(text)
local stripped = text:gsub(",", "")
local numStr, tail = stripped:match("^(%-?%d+%.?%d*)(.*)$")
if not numStr then return nil, nil end
tail = mw.text.trim(tail)
return tonumber(numStr), tail ~= "" and tail or nil
end
-- Applies to a GDP field's own number, whether manual or Wikidata-sourced
-- -- unlike every other manual value in this module, a manual GDP figure
-- IS reformatted (scaled/grouped), since the whole point of this feature
-- is the number's presentation, not just its source. `field.str` (the
-- manual text as typed) is the fallback only for the rare manual value
-- that doesn't parse as a plain number at all. Any trailing text captured
-- alongside the number (typically an inline citation) is preserved
-- immediately after the reformatted number.
local function formatGdpDisplay(field, abbreviate)
if not field.number then return field.str end
local numStr = abbreviate and abbreviateNumber(field.number) or formatNumber(field.number, 0)
if field.tail then return numStr .. field.tail end
return numStr
end
-- Matches the wiki's own {{Increase}}/{{Decrease}}/{{Steady}} styling exactly
-- (population deliberately uses no colour -- a separate, earlier decision
-- that does NOT generalise here). Increase/decrease use the site's actual
-- Coadan:Increase2.svg/Decrease2.svg icons, not hand-drawn coloured
-- triangles; steady is the site's blue ▬, per your template source.
local function trendArrow(direction)
if direction == "up" then
return "[[Coadan:Increase2.svg|11px|alt=Ardjaghey|link=|Ardjaghey]]"
elseif direction == "down" then
return "[[Coadan:Decrease2.svg|11px|alt=Leodaghey|link=|Leodaghey]]"
elseif direction == "steady" then
return '<span title="Corrym" style="color:#0AF; font-size: larger;">▬</span>'
end
return ""
end
-- A manual value can carry its OWN leading trend icon, typed by the editor
-- as {{increase}}/{{decrease}}/{{steady}} (old-template habit, e.g.
-- |LTS_CCK={{increase}} $6.932 billoon<ref>...</ref>). Those templates
-- are already expanded by the time this module sees the argument, so the
-- value starts with a Coadan:Increase2.svg/Decrease2.svg link (or the
-- steady span) -- which also means it can never parse as a plain number
-- (see splitManualNumber), so field.number is nil and no `trend` is
-- computed for it. A bare ▲/▼/▬/— glyph is matched too, in case an editor
-- typed the character directly. Returns the marker text and whatever
-- follows it (nil, text if no marker is present).
local LEADING_TREND_PATTERNS = {
"^%[%[Coadan:Increase2%.svg.-%]%]",
"^%[%[Coadan:Decrease2%.svg.-%]%]",
"^%[%[File:Increase2%.svg.-%]%]",
"^%[%[File:Decrease2%.svg.-%]%]",
"^<span[^>]*>▬</span>",
}
local function splitLeadingTrendMarker(text)
if not text or text == "" then return nil, text end
for _, pattern in ipairs(LEADING_TREND_PATTERNS) do
local s, e = text:find(pattern)
if s then return text:sub(s, e), text:sub(e + 1) end
end
for _, marker in ipairs({"▲", "▼", "▬", "—"}) do
if text:sub(1, #marker) == marker then return marker, text:sub(#marker + 1) end
end
return nil, text
end
-- Strips whatever separator (plain spaces and/or a literal " ") an
-- editor already put between their hand-typed icon and the value, so
-- glueTrend can supply exactly one " " instead of stacking two.
local function stripLeadingSeparator(text)
if not text then return text end
while true do
local stripped = text:gsub("^%s+", ""):gsub("^ ", "")
if stripped == text then return stripped end
text = stripped
end
end
-- Glues a trend icon to the number it belongs to, with a visible space
-- between them, so a line-wrap can never separate icon from value; anything
-- appended after (rank, band) stays free to wrap onto its own line. Covers
-- both an icon THIS module generated (`trend` given) and one already
-- sitting at the front of manually-typed `text` (see
-- splitLeadingTrendMarker above).
local function glueTrend(trend, text)
if trend then
return '<span style="white-space:nowrap;">' .. trendArrow(trend) .. " " .. text .. '</span>'
end
local marker, rest = splitLeadingTrendMarker(text)
if marker then
return '<span style="white-space:nowrap;">' .. marker .. " " .. stripLeadingSeparator(rest) .. '</span>'
end
return text
end
-- All non-deprecated statements of a quantity property, reduced to
-- {amount, rawAmount, year}, sorted ascending by year.
local function getWdQuantityStatements(property)
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getAllStatements(property)
if not statements then return {} end
local results = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if statement.rank ~= "deprecated" and mainsnak and mainsnak.snaktype == "value"
and mainsnak.datavalue and mainsnak.datavalue.type == "quantity" then
local rawAmount = mainsnak.datavalue.value.amount
local amount = tonumber(rawAmount)
local timeQuals = statement.qualifiers and statement.qualifiers.P585
local timeSnak = timeQuals and timeQuals[1]
local timeValue = timeSnak and timeSnak.datavalue and timeSnak.datavalue.value
local year = timeValue and timeValue.time and tonumber(timeValue.time:match("(%-?%d+)%-"))
-- The statement's OWN currency/unit (e.g. a specific country's
-- dollar, not necessarily USD) -- never assumed, always read off
-- this exact statement. Dimensionless properties (Gini, HDI)
-- simply never match "Q%d+$" here and stay nil.
local unitQid = mainsnak.datavalue.value.unit and mainsnak.datavalue.value.unit:match("Q%d+$")
if amount then
table.insert(results, {
amount = amount,
rawAmount = rawAmount and rawAmount:gsub("^%+", ""),
year = year,
unitQid = unitQid,
})
end
end
end
table.sort(results, function(a, b) return (a.year or 0) < (b.year or 0) end)
return results
end
-- Compares `number` against whichever fetched statement is the closest one
-- strictly before `year` -- or, with no year, the single most recent
-- statement -- even when that statement isn't itself shown as a row. Used
-- for both manual and Wikidata-sourced values alike.
local function trendAgainstWikidata(number, year, allEntries)
if not number or not allEntries or #allEntries == 0 then return nil end
local prev = nil
for _, entry in ipairs(allEntries) do
if year then
if entry.year and entry.year < year and (not prev or entry.year > prev.year) then prev = entry end
elseif not prev or (entry.year or 0) > (prev.year or 0) then
prev = entry
end
end
if not prev then return nil end
if number > prev.amount then return "up" end
if number < prev.amount then return "down" end
return "steady"
end
-- NOTE: by the time this returns, Module:Wd has already registered the
-- <ref> with Cite as a side effect of building it -- same mechanism as
-- aarheynn.lua's getWdCitation (see that function's own comment). If the
-- underlying Wikidata reference is missing a field Module:Citation/CS1
-- needs, the crash only exists once Cite renders the page, never as
-- something this function could detect in advance -- so `suppress` has to
-- stop this function from calling Wd._reference at all, not discard the
-- result afterward.
local function getWdReferenceForValue(property, rawAmount, suppress)
if suppress then return nil end
if not wdOK or not Wd or not Wd._reference or not rawAmount then return nil end
local ok, result = pcall(Wd._reference, {"best", property, rawAmount})
if ok and result and result ~= "" then return result end
return nil
end
-- Raw QIDs of EVERY value of an entity-valued property on the current
-- page's own item -- e.g. every P38 (currency) statement, for a country
-- using more than one.
local function getWdRawPropertyIds(property)
if not wdOK or not Wd or not Wd._properties then return {} end
local ok, result = pcall(Wd._properties, {"raw", property})
if not ok or not result or type(result) ~= "string" or result == "" then return {} end
local ids = {}
for id in result:gmatch("Q%d+") do
table.insert(ids, id)
end
return ids
end
-- Raw value of a property on a FOREIGN Wikidata item (e.g. P498 on the
-- currency item, not the country's own item) -- same eid-keyed pattern as
-- reiltys.lua's getWdRawForeignPropertyIds, singular version.
local function getWdForeignPropertyRaw(eid, property)
if not wdOK or not Wd or not Wd._property or not eid then return nil end
local callArgs = {"raw", "best", property}
callArgs[Wd.args and Wd.args.eid or "eid"] = eid
local ok, result = pcall(Wd._property, callArgs)
if ok and result and type(result) == "string" and result ~= "" then return result end
return nil
end
-- The short symbol (e.g. "$") of a currency/unit item, via P5061 -- read
-- directly off mw.wikibase (a monolingualtext value, so Wd's plain-string
-- commands don't fit), same technique as Module:WikidataIB. Prefers a
-- language-neutral ("mul") or English value; falls back to whichever
-- language is available rather than showing nothing.
local function getWdUnitSymbol(unitQid)
if not unitQid then return nil end
local ok, statements = pcall(mw.wikibase.getBestStatements, unitQid, UNIT_SYMBOL_PROPERTY)
if not ok or not statements then return nil end
local fallback = nil
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
local value = mainsnak and mainsnak.snaktype == "value" and mainsnak.datavalue and mainsnak.datavalue.value
if value and value.text then
if value.language == "mul" or value.language == "en" then return value.text end
fallback = fallback or value.text
end
end
return fallback
end
-- Manx sitelink -> Manx label (redlink) -> English (or other) label with a
-- language marker, linked to Wikidata directly. Capitalized -- Wikidata
-- labels are commonly stored lower-case ("dollar ny Steatyn Unnaneysit"),
-- but this is always the first word of the field.
local function getCurrencyLink(qid)
local sitelinkOk, sitelink = pcall(mw.wikibase.getSitelink, qid, "gvwiki")
local labelOk, label, lang = pcall(mw.wikibase.getLabelWithLang, qid)
local link
if sitelinkOk and sitelink then
local displayText = (labelOk and lang == "gv" and label) or sitelink
if displayText ~= sitelink then
link = "[[" .. sitelink .. "|" .. displayText .. "]]"
else
link = "[[" .. sitelink .. "]]"
end
elseif labelOk and label and lang == "gv" then
link = "[[" .. label .. "]]"
elseif labelOk and label then
link = "[https://www.wikidata.org/wiki/" .. qid .. "?uselang=gv " .. label .. "] <small>(" .. lang .. ")</small>"
end
return link and capitalizeFirstLetter(link) or nil
end
-- Resolves one quantity field: a manual override (or "none" suppression)
-- wins outright; otherwise the latest non-deprecated Wikidata statement.
-- Returns "none" (suppressed), nil (no data), or a table
-- {str, number, year, trend, citation}.
--
-- `refNames` (the field's OWN |imraa_...= parameter names) is consulted
-- here, not just by the caller afterward: when it reads "none", the
-- Wikidata-sourced citation must never even be requested from Wd (see
-- getWdReferenceForValue's own comment) -- discarding it after the fact,
-- once the caller has its own `ref` value in hand, would be too late.
local function resolveQuantityField(args, names, yearNames, property, statements, decimals, refNames)
local refSuppressed = refNames and isNone(getManual(args, refNames))
local manual = getManual(args, names)
if manual then
if isNone(manual) then return "none" end
-- splitManualNumber (not a plain tonumber) so a manual value with
-- trailing content (typically an inline <ref>, already a UNIQ
-- strip marker here) still parses as a number instead of falling
-- back to raw, unformatted text; the trailing content is preserved
-- via `tail`, not discarded.
local number, tail = splitManualNumber(manual)
local year = yearNames and getManual(args, yearNames)
local parsedYear = year and tonumber(year:match("%-?%d+"))
local trend = trendAgainstWikidata(number, parsedYear, statements)
return {str = manual, number = number, tail = tail, year = year, trend = trend, citation = nil}
end
local latest = nil
for _, entry in ipairs(statements) do
if not latest or (entry.year or 0) > (latest.year or 0) then latest = entry end
end
if not latest then return nil end
local trend = trendAgainstWikidata(latest.amount, latest.year, statements)
local citation = getWdReferenceForValue(property, latest.rawAmount, refSuppressed)
return {
str = formatNumber(latest.amount, decimals),
number = latest.amount,
year = latest.year and tostring(latest.year) or nil,
trend = trend,
citation = citation,
unitQid = latest.unitQid,
}
end
-- All non-deprecated P1082 (population) statements on the current page's
-- own item, reduced to {amount, year} -- a smaller duplicate of pobble.lua's
-- own getWdPopulationStatements, since this module only needs a population
-- figure for one specific year, not census/estimate classification.
local function getWdPopulationStatements()
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getAllStatements(POPULATION_PROPERTY)
if not statements then return {} end
local results = {}
for _, statement in ipairs(statements) do
local mainsnak = statement.mainsnak
if statement.rank ~= "deprecated" and mainsnak and mainsnak.snaktype == "value"
and mainsnak.datavalue and mainsnak.datavalue.type == "quantity" then
local amount = tonumber(mainsnak.datavalue.value.amount)
local timeQuals = statement.qualifiers and statement.qualifiers.P585
local timeSnak = timeQuals and timeQuals[1]
local timeValue = timeSnak and timeSnak.datavalue and timeSnak.datavalue.value
local year = timeValue and timeValue.time and tonumber(timeValue.time:match("(%-?%d+)%-"))
if amount and year then
table.insert(results, {amount = amount, year = year})
end
end
end
return results
end
-- The population figure for an EXACT year, or nil if Wikidata has none for
-- that year -- deliberately no nearest-year fallback, since the population
-- year must match the GDP year, not just be close to it. When more than
-- one statement shares that year, the later one found wins (an arbitrary
-- but deterministic tie-break).
local function getWdPopulationForYear(year)
if not year then return nil end
local match = nil
for _, entry in ipairs(getWdPopulationStatements()) do
if entry.year == year then match = entry end
end
return match and match.amount or nil
end
-- Computed LTS-per-capita fallback ("yn dooinney"): when there's no manual
-- value and no Wikidata P2132 statement at all, GDP total divided by
-- population -- but only when Wikidata has a population figure for the
-- exact same year as the GDP total being used. No citation is attached (a
-- computed ratio isn't one citable statement, same as pobble.lua's own
-- population-density calc). Scope: the nominal ("ennymagh") block only,
-- not PPP (CCC), which conventionally isn't derived this way either.
local function computeGdpPerCapita(total, decimals)
if not total or not total.number then return nil end
local year = total.year and tonumber(total.year:match("%-?%d+"))
if not year then return nil end
local population = getWdPopulationForYear(year)
if not population or population <= 0 then return nil end
local value = total.number / population
return {
str = formatNumber(value, decimals),
number = value,
year = total.year,
trend = nil,
citation = nil,
unitQid = total.unitQid,
}
end
-- One "total + per-capita" block (CCC/PPP or LTS/nominal): a top row with
-- the block's own year, then "Yn clane"/"Yn dooinney" bullet sub-rows --
-- matching the old template's own two labels, just on the project's
-- established 2-column grid instead of its old 3-column one.
local function buildGdpBlock(args, frame, spec)
local totalStatements = getWdQuantityStatements(spec.totalProperty)
local percapitaStatements = getWdQuantityStatements(spec.percapitaProperty)
local total = resolveQuantityField(args, spec.totalNames, spec.yearNames, spec.totalProperty, totalStatements, 0, spec.totalRefNames)
local percapita = resolveQuantityField(args, spec.percapitaNames, spec.yearNames, spec.percapitaProperty, percapitaStatements, 0, spec.percapitaRefNames)
-- Computed fallback (nominal/"ennymagh" block only -- see
-- computeGdpPerCapita's own comment). Only when there's genuinely no
-- manual value and no Wikidata statement at all: percapita == nil,
-- never "none" -- a manual |..._dooinney=none must still suppress the
-- row rather than being replaced by a computed one.
if percapita == nil and spec.populationFallback and type(total) == "table" then
percapita = computeGdpPerCapita(total, 0)
end
local totalShown = type(total) == "table"
local percapitaShown = type(percapita) == "table"
if not totalShown and not percapitaShown then return nil end
local year = getManual(args, spec.yearNames)
or (totalShown and total.year)
or (percapitaShown and percapita.year)
local rows = {}
local headerLabel = getManual(args, spec.headerOverrideNames) or spec.headerLabel
table.insert(rows, string.format(ROW, trClass("mergedtoprow"), headerLabel, year and ("Ooley " .. year) or ""))
local items = {}
if totalShown then
local rhenk = getManual(args, spec.totalRhenkNames)
-- Normalised to nil on "none" (not left as that literal string) so
-- applyRefNote never wraps it as <ref>none</ref> -- the Wikidata
-- citation itself is already suppressed up in resolveQuantityField.
local refRaw = getManual(args, spec.totalRefNames)
local ref = not isNone(refRaw) and refRaw or nil
local note = getManual(args, spec.totalNoteNames)
-- Symbol from THIS statement's own currency (never assumed) --
-- manual entries carry no unit data, so no symbol unless the
-- editor includes one themselves in the manual value.
local symbol = getWdUnitSymbol(total.unitQid) or ""
local value = glueTrend(total.trend, symbol .. formatGdpDisplay(total, true)) .. " "
if rhenk then value = value .. "([[" .. spec.totalRhenkLink .. "|" .. rhenk .. "]]) " end
if total.citation then value = stripTrailingSpace(value) .. total.citation end
value = applyRefNote(value, ref, note, frame)
table.insert(items, {"Yn clane", value})
end
if percapitaShown then
local rhenk = getManual(args, spec.percapitaRhenkNames)
local refRaw = getManual(args, spec.percapitaRefNames)
local ref = not isNone(refRaw) and refRaw or nil
local note = getManual(args, spec.percapitaNoteNames)
local symbol = getWdUnitSymbol(percapita.unitQid) or ""
-- Per-capita stays a plain grouped number, matching enwiki's own
-- convention (only the TOTAL gets abbreviated to trillion/billion/
-- million/thousand words).
local value = glueTrend(percapita.trend, symbol .. formatGdpDisplay(percapita, false)) .. " "
if rhenk then value = value .. "([[" .. spec.percapitaRhenkLink .. "|" .. rhenk .. "]]) " end
if percapita.citation then value = stripTrailingSpace(value) .. percapita.citation end
value = applyRefNote(value, ref, note, frame)
table.insert(items, {"Yn dooinney", value})
end
appendIndentRun(rows, items)
return table.concat(rows)
end
-- HDI (ALD) bands: thresholds, Manx labels, and font colours exactly as
-- given directly by you.
local function classifyHdiBand(value)
if not value then return nil end
if value >= 0.800 then return "feer ard", "darkgreen" end
if value >= 0.700 then return "ard", "green" end
if value >= 0.550 then return "meanagh", "orange" end
return "injil", "red"
end
-- Gini can be recorded as either a 0-1 fraction or a 0-100 percentage on
-- Wikidata (and by a manual override) -- normalise to a fraction first so
-- the same thresholds apply regardless of which scale the source used.
local function normalizeGiniFraction(value)
if value > 1 then return value / 100 end
return value
end
-- Gini bands: thresholds, Manx labels, and font colours exactly as given
-- directly by you. The medium band is the closed interval [0.30, 0.40] --
-- low is strictly below it, high strictly above -- so the three bands
-- partition the whole range with no gap and no overlap.
local function classifyGiniBand(value)
if not value then return nil end
local fraction = normalizeGiniFraction(value)
if fraction < 0.30 then return "anchorrymid injil", "green" end
if fraction <= 0.40 then return "anchorrymid veanagh", "dimgray" end
return "anchorrymid ard", "red"
end
-- One flat label+value row (Gini, ALD): matches the old template's shape
-- but on the project's established 2-column ROW grid, not its old
-- colspan="2"-label-plus-separate-value-cell layout.
local function buildSingleRow(args, frame, spec)
local statements = getWdQuantityStatements(spec.property)
local field = resolveQuantityField(args, spec.valueNames, spec.yearNames, spec.property, statements, spec.decimals, spec.refNames)
if not field or field == "none" then return nil end
local label = getManual(args, spec.headerOverrideNames) or spec.headerLabel
local year = getManual(args, spec.yearNames) or field.year
if year then label = label .. " (" .. year .. ")" end
local rhenk = getManual(args, spec.rhenkNames)
-- Normalised to nil on "none" for the same reason as buildGdpBlock's own
-- ref -- the Wikidata citation itself is already suppressed up in
-- resolveQuantityField.
local refRaw = getManual(args, spec.refNames)
local ref = not isNone(refRaw) and refRaw or nil
local note = getManual(args, spec.noteNames)
-- Band: a manual value always wins outright, including
-- |..._ronney=none to suppress it entirely (same manual-beats-Wikidata
-- philosophy as the rest of this module). Only with no manual value at
-- all does the band get computed automatically from whatever number is
-- actually being shown.
local rawBand = spec.bandNames and getManual(args, spec.bandNames)
local band, bandColor
if rawBand then
if not isNone(rawBand) then band = rawBand end
elseif spec.classifyBand and field.number then
band, bandColor = spec.classifyBand(field.number)
end
local value = glueTrend(field.trend, field.str) .. " "
if band then
-- Nowrapped so the band's own words (e.g. "anchorrymid ard") can't
-- split across lines -- the whole "(...)" is free to wrap onto its
-- own line instead, same principle as glueTrend for the value itself.
local bandText = bandColor and ('<span style="color:' .. bandColor .. ';">' .. band .. "</span>") or band
value = value .. '<span style="white-space:nowrap;">(' .. bandText .. ")</span> "
end
if rhenk then value = value .. "([[" .. spec.rhenkLink .. "|" .. rhenk .. "]]) " end
if field.citation then value = stripTrailingSpace(value) .. field.citation end
value = applyRefNote(value, ref, note, frame)
return string.format(ROW, "", label, value)
end
-- One "name ($) (CODE)" line for a single currency item.
local function buildCurrencyLine(qid, codeOverride)
local nameStr = getCurrencyLink(qid)
if not nameStr then return nil end
local symbol = getWdUnitSymbol(qid)
local codeStr = codeOverride or getWdForeignPropertyRaw(qid, ISO_CODE_PROPERTY)
local line = nameStr
if symbol then line = line .. " (" .. symbol .. ")" end
if codeStr then line = line .. " (<code>[[ISO 4217|" .. codeStr .. "]]</code>)" end
return line
end
local function buildCurrencyRow(args, frame)
local nameManual = getManual(args, {"argid"})
local codeManual = getManual(args, {"coad_argid"})
-- No Wikidata citation is ever built for this row (buildCurrencyLine
-- only ever links items) -- just the literal-"none"-as-ref-text fix,
-- same as everywhere else in this file.
local refRaw = getManual(args, {"imraa_argid"})
local ref = not isNone(refRaw) and refRaw or nil
local note = getManual(args, {"noteyn_argid"})
local headerLabel = getManual(args, {"sorçh_argid"}) or "[[Argid cadjin|Argid]]"
if isNone(nameManual) then return nil end
local value
if nameManual then
-- Manual text passes through as typed. Numbered slots (argid2,
-- coad_argid2, ...) support a second or further currency, e.g.
-- the Isle of Man or the Faroe Islands, joined like the Wikidata
-- multi-currency path below.
local line1 = nameManual
if codeManual then line1 = line1 .. " (<code>[[ISO 4217|" .. codeManual .. "]]</code>)" end
local lines = {line1}
local n = 2
while true do
local name = getManual(args, {"argid" .. n})
if not name then break end
local code = getManual(args, {"coad_argid" .. n})
local line = name
if code then line = line .. " (<code>[[ISO 4217|" .. code .. "]]</code>)" end
table.insert(lines, line)
n = n + 1
end
value = table.concat(lines, "<br/>")
else
-- Every P38 currency (a country can use more than one), each its
-- own line -- not just the single "best" one.
local currencyQids = getWdRawPropertyIds(CURRENCY_PROPERTY)
if #currencyQids == 0 then return nil end
local lines = {}
for _, qid in ipairs(currencyQids) do
local line = buildCurrencyLine(qid, #currencyQids == 1 and codeManual or nil)
if line then table.insert(lines, line) end
end
if #lines == 0 then return nil end
value = table.concat(lines, "<br/>")
end
value = applyRefNote(value, ref, note, frame)
return string.format(ROW, "", headerLabel, value)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
-- Old template order: PPP (CCK/CCC) block first, nominal (ennymagh)
-- second, then Gini, ALD, Currency.
local cccBlock = buildGdpBlock(args, frame, {
totalNames = {"ccc", "LTS_CCK"},
percapitaNames = {"ccc_dooinney", "LTS_CCK_yn_dooinney"},
yearNames = {"blein_ccc", "blein_LTS_CCK"},
totalRhenkNames = {"rhenk_ccc", "rhenk_LTS_CCK"},
percapitaRhenkNames = {"rhenk_ccc_dooinney", "rhenk_LTS_CCK_yn_dooinney"},
totalRefNames = {"imraa_ccc"}, totalNoteNames = {"noteyn_ccc"},
percapitaRefNames = {"imraa_ccc_dooinney"}, percapitaNoteNames = {"noteyn_ccc_dooinney"},
headerOverrideNames = {"sorçh_ccc"},
headerLabel = "[[Lane troar sthie|LTS]] (CCC)",
totalProperty = GDP_PPP_TOTAL, percapitaProperty = GDP_PPP_PERCAPITA,
totalRhenkLink = "Rolley çheeraghyn rere LTS (CCC)",
percapitaRhenkLink = "Rolley çheeraghyn rere LTS (CCC) yn dooinney",
})
appendSection(rows, cccBlock and {cccBlock} or nil)
local ltsBlock = buildGdpBlock(args, frame, {
totalNames = {"lts_ennymagh", "LTS_ennymagh"},
percapitaNames = {"lts_ennymagh_dooinney", "LTS_ennymagh_yn_dooinney"},
yearNames = {"blein_lts_ennymagh", "blein_LTS_ennymagh"},
totalRhenkNames = {"rhenk_lts_ennymagh", "rhenk_LTS_ennymagh"},
percapitaRhenkNames = {"rhenk_lts_ennymagh_dooinney", "rhenk_LTS_ennymagh_yn_dooinney"},
totalRefNames = {"imraa_lts_ennymagh"}, totalNoteNames = {"noteyn_lts_ennymagh"},
percapitaRefNames = {"imraa_lts_ennymagh_dooinney"}, percapitaNoteNames = {"noteyn_lts_ennymagh_dooinney"},
headerOverrideNames = {"sorçh_lts_ennymagh"},
headerLabel = "[[Lane troar sthie|LTS]] (ennymagh)",
totalProperty = GDP_NOMINAL_TOTAL, percapitaProperty = GDP_NOMINAL_PERCAPITA,
totalRhenkLink = "Rolley çheeraghyn rere LTS (ennymagh)",
percapitaRhenkLink = "Rolley çheeraghyn rere LTS (ennymagh) yn dooinney",
populationFallback = true,
})
appendSection(rows, ltsBlock and {ltsBlock} or nil)
local giniRow = buildSingleRow(args, frame, {
valueNames = {"gini", "Gini"},
yearNames = {"blein_gini", "blein_Gini"},
bandNames = {"ronney_gini", "ronney_Gini"},
rhenkNames = {"rhenk_gini", "rhenk_Gini"},
refNames = {"imraa_gini"}, noteNames = {"noteyn_gini"},
headerOverrideNames = {"sorçh_gini"},
headerLabel = "[[Co-effaght Gini|Gini]]",
rhenkLink = "Rolley çheeraghyn rere co-chormid çheet stiagh",
property = GINI_PROPERTY, decimals = 1,
classifyBand = classifyGiniBand,
})
appendSection(rows, giniRow and {giniRow} or nil)
local aldRow = buildSingleRow(args, frame, {
valueNames = {"ald", "ALD"},
yearNames = {"blein_ald", "blein_ALD"},
bandNames = {"ronney_ald", "ronney_ALD"},
rhenkNames = {"rhenk_ald", "rhenk_ALD"},
refNames = {"imraa_ald"}, noteNames = {"noteyn_ald"},
headerOverrideNames = {"sorçh_ald"},
headerLabel = "[[Ayndagh Lhiasaghey Deiney|ALD]]",
rhenkLink = "Rolley çheeraghyn rere Ayndagh Lhiasaghey Deiney",
property = HDI_PROPERTY, decimals = 3,
classifyBand = classifyHdiBand,
})
appendSection(rows, aldRow and {aldRow} or nil)
local currencyRow = buildCurrencyRow(args, frame)
appendSection(rows, currencyRow and {currencyRow} or nil)
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
l5xpbq642q9a3knumsszj310hvnt5aw
Module:Kishtey fys çheer/aarheynn
828
55930
395362
395134
2026-10-26T20:59:40Z
MacTire02
219
++
395362
Scribunto
text/plain
local p = {}
-- Sovereignty/subdivision membership
local wdOK, Wd = pcall(require, "Module:Wd")
local ennymWdOK, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wraps a manual citation in <ref>, tolerating a value Scribunto already
-- pre-expanded into rendered "[N]" marker(s) or UNIQ...QINU strip markers.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
-- Any <ref> already present (named or not, one or several) is left alone; only bare text is wrapped.
if mw.ustring.find(ref, "UNIQ--ref-", 1, true) or mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then
return ref
end
if mw.ustring.gsub(mw.ustring.gsub(ref, "%[%d+%]", ""), "%s+", "") == "" then
return ref
end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if not value then return value end
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
-- The row label is shown exactly as given -- never auto-wikilinked.
-- Linking is entirely the editor's own choice.
local function wikilinkLabel(label)
return label
end
local function getWdRawPropertyId(property)
if not wdOK or not Wd or not Wd._property then return nil end
local ok, result = pcall(Wd._property, {"raw", "best", property})
if ok and result and type(result) == "string" and result:match("^Q%d+$") then return result end
return nil
end
-- Wikidata references for a claim value (empty if none). NOTE: by the time
-- this returns, Module:Wd has already registered the <ref> with Cite as a
-- side effect of building it (see Module:Wd's Config:concatValues) -- if
-- the underlying Wikidata reference is missing a field Module:Citation/CS1
-- requires, the resulting citation is a Lua error string, and that error
-- is only ever visible once Cite renders the page's reference list, never
-- as plain text we could detect and skip here. There is no way for this
-- function to know in advance whether a given reference is malformed;
-- |imraa_aarheynnN=none below is the escape hatch once an editor notices.
local function getWdCitation(property, value)
if not wdOK or not Wd or not Wd._reference or not value then return nil end
local ok, result = pcall(Wd._reference, {"best", property, value})
if ok and result and result ~= "" then return result end
return nil
end
local function wikiUcfirst(text)
if not text or text == "" then return text end
local ok, result = pcall(function() return mw.language.getContentLanguage():ucfirst(text) end)
if ok and result and result ~= "" then return result end
return text
end
-- Three-tier Wikidata-entity-to-Manx-link resolver
local function getWdItemManxLink(qid)
if not qid then return nil end
local okSite, sitelinkTitle = pcall(mw.wikibase.sitelink, qid)
if not okSite then sitelinkTitle = nil end
sitelinkTitle = (sitelinkTitle and sitelinkTitle ~= "") and sitelinkTitle or nil
local okLabel, gvLabel = pcall(mw.wikibase.getLabelByLang, qid, "gv")
if okLabel and gvLabel and gvLabel ~= "" then
gvLabel = wikiUcfirst(gvLabel)
else
gvLabel = nil
end
if not sitelinkTitle and not gvLabel then
if ennymWdOK and EnnymWd and EnnymWd.labelWithFallback then
local ok, annotated = pcall(EnnymWd.labelWithFallback, qid)
if ok and annotated then return annotated end
end
return nil
end
local target = sitelinkTitle or gvLabel
local displayBase = gvLabel or sitelinkTitle
if target == displayBase then return "[[" .. target .. "]]" end
return "[[" .. target .. "|" .. displayBase .. "]]"
end
-- Current page's own title, for the self-link guard below.
local function getCurrentPageTitle()
local ok, title = pcall(function() return mw.title.getCurrentTitle().text end)
if ok and title and title ~= "" then return title end
return nil
end
-- Strips a leading Manx definite article ("Yn "/"Y ") for self-link comparison only
local function stripLeadingArticle(text)
if not text then return text end
local stripped = text:match("^[Yy]n%s+(.+)$") or text:match("^[Yy]%s+(.+)$")
return stripped or text
end
-- True when a "[[Target]]"/"[[Target|Display]]" wikilink points at the current page itself
local function isSelfLink(link)
if not link then return false end
local target = link:match("^%[%[([^%[%]|]+)")
if not target then return false end
local current = getCurrentPageTitle()
if not current then return false end
if target == current then return true end
return stripLeadingArticle(target) == stripLeadingArticle(current)
end
-- No `white-space:nowrap` on the label cell
local ROW = '<tr><th style="vertical-align:top; text-align:left; font-weight:bold; padding-left:0.4em; padding-right:0.4em;">%s</th><td style="vertical-align:top; padding-left:0.4em; padding-right:0.4em;">%s</td></tr>'
-- Levels supported: the bare, unnumbered parameters (the first level) plus numbered levels 1 to MAX_LEVELS,
-- e.g. Chile: |sorçh_aarheynn= (Country), |sorçh_aarheynn1= (Region), |sorçh_aarheynn2= (Province), ...
local MAX_LEVELS = 8
-- Fallback label for the first level when |sorçh_aarheynn= isn't set but a Wikidata P17 value is found
local LEVEL1_FALLBACK_LABEL = "Steat kionedeeagh"
-- Returns an array of row strings (or nil); dispatcher.lua joins them into the section
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- Parameter names for one level (0 = the bare, unnumbered spelling)
local function levelNames(i)
local suffix = (i == 0) and "" or tostring(i)
return {
type = { "sorçh_aarheynn" .. suffix },
name = { "ennym_aarheynn" .. suffix },
ref = { "imraa_aarheynn" .. suffix },
note = { "noteyn_aarheynn" .. suffix },
}
end
-- The Wikidata (P17) fallback fills the FIRST level only: the bare one, or level 1 when an article
-- uses only the numbered spellings (older articles that start at |sorçh_aarheynn1=).
local bare, one = levelNames(0), levelNames(1)
local bareGiven = getManual(args, bare.type) or getManual(args, bare.name)
local oneGiven = getManual(args, one.type) or getManual(args, one.name)
local fallbackLevel = (not bareGiven and oneGiven) and 1 or 0
local rows = {}
for i = 0, MAX_LEVELS do
local names = levelNames(i)
-- The type/label is always manual if given
local wdRef = nil
local typeRaw = getManual(args, names.type)
if not isNone(typeRaw) then
local nameRaw = getManual(args, names.name)
if isNone(nameRaw) then
nameRaw = nil
elseif not nameRaw and i == fallbackLevel then
-- Wikidata fallback (P17, "country")
local qid = getWdRawPropertyId("P17")
if qid then
local link = getWdItemManxLink(qid)
-- Skip a self-link automatically (e.g. P17 looping back to the current article)
if link and not isSelfLink(link) then
nameRaw = link
wdRef = getWdCitation("P17", qid)
end
end
end
local label = typeRaw
if not label and i == fallbackLevel and nameRaw then
label = LEVEL1_FALLBACK_LABEL
end
if label and nameRaw then
local ref = getManual(args, names.ref)
local note = getManual(args, names.note)
-- |imraa_aarheynnN=none suppresses the citation only (manual
-- or the Wikidata-sourced one just above), keeping the
-- resolved value itself -- the escape hatch for when
-- Wikidata's own reference is missing a field Module:
-- Citation/CS1 needs (see getWdCitation's comment: that
-- case can't be detected automatically, only noticed after
-- the fact on the rendered page).
local citation
if not isNone(ref) then
citation = ref or wdRef
end
table.insert(rows, string.format(ROW, wikilinkLabel(label), applyRefNote(nameRaw, citation, note, frame)))
end
end
end
if #rows == 0 then return nil end
return rows
end
return p
cotmlhtvaw3hvk32ce1ek81b9uj9rhi
Clowan:Kishtey fys boayl
10
56334
395321
395213
2026-10-26T13:54:26Z
MacTire02
219
MacTire02 moved page [[Clowan:Kishtey fys boayl/noa]] to [[Clowan:Kishtey fys boayl]]: kishtey fys noa kiaglt rish WD
395213
wikitext
text/x-wiki
<includeonly>{{#invoke:Kishtey fys boayl|main}}</includeonly><noinclude>{{docamadys}}</noinclude>
gz40w6c8soilv6optghry0uw6pqx4d6
Module:Kishtey fys boayl
828
56335
395317
395301
2026-10-26T13:29:53Z
MacTire02
219
++
395317
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local function getArgs(frame)
local parent = frame:getParent()
if parent then return parent.args end
return frame.args
end
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wikidata reference for the best statement of a property (ready-made <ref> wikitext, or "").
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Upper-cases the first character (UTF-8 safe).
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
local DIVIDER = '<tr><td colspan="2" style="border-top:1px solid #a2a9b1; padding:0; height:0px;"></td></tr>'
-- Submodules in display order; each exposes main(frame, args) returning row HTML or nil.
local SUBMODULES = {
"aascreeu",
"jalloo",
"bratteeyn",
"cowraghyn",
"caslyssyn",
"aarheynn",
"bunneeaght",
"soiag",
"çhengaghyn",
"reiltys",
"eaghtyr",
"yrjid",
"pobble",
"deynoaylleeaght",
"crysshraa",
"coadyn",
"lannoon",
"blank",
"ynnyd-eggey",
}
-- First best-rank monolingual statement not rejected by `skip(text, lang)`: text, language code.
local function getWdMonolingual(property, skip)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "monolingualtext" then
local value = snak.datavalue.value
if value and value.text and value.text ~= "" and not (skip and skip(value.text, value.language)) then
return value.text, value.language
end
end
end
return nil
end
-- Manx label of the first instance-of (P31) item, e.g. "Balley"; nil when no gv label exists.
local function getWdCategoryLabel()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P31")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid") then
return nil
end
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
local function langSpan(text, lang)
local attr = ""
if lang and lang ~= "" then
attr = ' lang="' .. lang .. '" xml:lang="' .. lang .. '"'
end
return '<span class="nickname"' .. attr .. '>' .. text .. '</span>'
end
local function buildHeader(args)
local title = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local nativeName = getManual(args, { "ennym_dooghyssagh" })
local nativeLang = getManual(args, { "çhengey_ennym_dooghyssagh" })
local nativeHtml
if nativeName then
if not isNone(nativeName) then nativeHtml = langSpan(nativeName, nativeLang) end
else
-- Skip Manx names, the page title itself, and names already given in ennym_elley.
local otherManual = getManual(args, { "ennym_elley" }) or ""
local text, lang = getWdMonolingual("P1705", function(t, l)
return l == "gv" or t == title or mw.ustring.find(otherManual, t, 1, true) ~= nil
end)
if text then nativeHtml = langSpan(text, lang) .. getWdReference("P1705") end
end
local otherName = getManual(args, { "ennym_elley" })
local otherHtml
if otherName and not isNone(otherName) then
otherHtml = langSpan(otherName, getManual(args, { "çhengey_ennym_elley" }))
end
local html = '<tr class="adr"><th colspan="2" class="fn org" style="line-height:1.2em; padding:0.25em 0.4em 0.33em; font-size:1.25em; text-align:center; font-weight:normal;"><span style="font-weight:bold;">' .. title .. '</span>'
if nativeHtml then html = html .. '<div style="padding-top:0.25em;">' .. nativeHtml .. '</div>' end
if otherHtml then html = html .. '<div style="padding-top:0.25em;">' .. otherHtml .. '</div>' end
return html .. '</th></tr>'
end
-- "— Sorçh —" band under the title; manual label, else the Manx label of the item's type.
local function buildCategoryBand(args)
local label = getManual(args, { "sorçh_boayl", "sorçh_balley", "sorçh" })
if label and isNone(label) then return nil end
if not label then label = getWdCategoryLabel() end
if not label then return nil end
return '<tr class="mergedtoprow"><td colspan="2" style="text-align:center; background-color:#cddeff; border-top:1px solid #a2a9b1; padding:0.2em 0.4em;">— <b><span class="category">' .. label .. '</span></b> —</td></tr>'
end
-- Official name row, shown only when both a common and an official name are given.
local function buildOfficialName(args)
local common = getManual(args, { "ennym" })
local official = getManual(args, { "ennym_oikoil" })
if common and official and not isNone(official) then
return '<tr class="mergedtoprow"><th colspan="2" style="text-align:center; padding-left:0.4em; padding-right:0.4em;">' .. official .. '</th></tr>'
end
return nil
end
local ALTERNATE_NAMES = { soiag = "soieag" }
local function runSubmodule(frame, args, name)
local okLoad, mod = pcall(require, "Module:Kishtey fys boayl/" .. name)
-- Older page names still in use on the wiki.
if not okLoad and ALTERNATE_NAMES[name] then
okLoad, mod = pcall(require, "Module:Kishtey fys boayl/" .. ALTERNATE_NAMES[name])
end
if not okLoad then
return '<tr><td colspan="2" style="color:#d33; padding:0.2em 0.4em;">Module error: ' .. name .. ' (load): ' .. mw.text.nowiki(tostring(mod)) .. '</td></tr>'
end
if not (mod and mod.main) then return nil end
local okRun, result = pcall(mod.main, frame, args)
if not okRun then
return '<tr><td colspan="2" style="color:#d33; padding:0.2em 0.4em;">Module error: ' .. name .. ': ' .. mw.text.nowiki(tostring(result)) .. '</td></tr>'
end
return result
end
function p.main(frame)
local args = getArgs(frame)
local rows = {}
table.insert(rows, buildHeader(args))
local band = buildCategoryBand(args)
if band then table.insert(rows, band) end
local official = buildOfficialName(args)
if official then table.insert(rows, official) end
for _, name in ipairs(SUBMODULES) do
local content = runSubmodule(frame, args, name)
if content and content ~= "" then
table.insert(rows, DIVIDER)
table.insert(rows, content)
end
end
local html = table.concat(rows)
-- A word joiner before each footnote marker keeps it on the same line as the claim it supports.
html = html:gsub("\127'\"`UNIQ%-%-ref%-%x+%-QINU`\"'\127", "⁠%0")
-- Label columns share one width (both plain and bullet rows) so values line up in every skin.
html = html:gsub("width:8em; max%-width:8em; ", "")
html = html:gsub('<th scope="row" style="', '<th scope="row" style="width:40%%; ')
html = html:gsub('<th style="', '<th style="width:40%%; ')
return '<table class="infobox geography vcard" style="float:right; clear:right; margin:0.5em 0 1em 1em; width:24.15em; border:1px solid #a2a9b1; border-collapse:collapse; font-size:95%;">' .. html .. '</table>'
end
return p
i7sqm5jor0e4t09n2sebpd3t9x4rs98
395319
395317
2026-10-26T13:46:39Z
MacTire02
219
++
395319
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local function getArgs(frame)
local parent = frame:getParent()
if parent then return parent.args end
return frame.args
end
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wikidata reference for the best statement of a property (ready-made <ref> wikitext, or "").
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Upper-cases the first character (UTF-8 safe).
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
local DIVIDER = '<tr><td colspan="2" style="border-top:1px solid #a2a9b1; padding:0; height:0px;"></td></tr>'
-- Submodules in display order; each exposes main(frame, args) returning row HTML or nil.
local SUBMODULES = {
"aascreeu",
"jalloo",
"bratteeyn",
"cowraghyn",
"caslyssyn",
"aarheynn",
"bunneeaght",
"soiag",
"çhengaghyn",
"reiltys",
"eaghtyr",
"yrjid",
"pobble",
"deynoaylleeaght",
"crysshraa",
"coadyn",
"lannoon",
"blank",
"ynnyd-eggey",
}
-- First best-rank monolingual statement not rejected by `skip(text, lang)`: text, language code.
local function getWdMonolingual(property, skip)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "monolingualtext" then
local value = snak.datavalue.value
if value and value.text and value.text ~= "" and not (skip and skip(value.text, value.language)) then
return value.text, value.language
end
end
end
return nil
end
-- Manx label of the first instance-of (P31) item, e.g. "Balley"; nil when no gv label exists.
local function getWdCategoryLabel()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P31")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid") then
return nil
end
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
local function langSpan(text, lang)
local attr = ""
if lang and lang ~= "" then
attr = ' lang="' .. lang .. '" xml:lang="' .. lang .. '"'
end
return '<span class="nickname"' .. attr .. '>' .. text .. '</span>'
end
local function buildHeader(args)
local title = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local nativeName = getManual(args, { "ennym_dooghyssagh" })
local nativeLang = getManual(args, { "çhengey_ennym_dooghyssagh" })
local nativeHtml
if nativeName then
if not isNone(nativeName) then nativeHtml = langSpan(nativeName, nativeLang) end
else
-- Skip Manx names, the page title itself, and names already given in ennym_elley.
local otherManual = getManual(args, { "ennym_elley" }) or ""
local text, lang = getWdMonolingual("P1705", function(t, l)
return l == "gv" or t == title or mw.ustring.find(otherManual, t, 1, true) ~= nil
end)
if text then nativeHtml = langSpan(text, lang) .. getWdReference("P1705") end
end
local otherName = getManual(args, { "ennym_elley" })
local otherHtml
if otherName and not isNone(otherName) then
otherHtml = langSpan(otherName, getManual(args, { "çhengey_ennym_elley" }))
end
local html = '<tr class="adr"><th colspan="2" class="fn org" style="line-height:1.2em; padding:0.25em 0.4em 0.33em; font-size:1.25em; text-align:center; font-weight:normal;"><span style="font-weight:bold;">' .. title .. '</span>'
if nativeHtml then html = html .. '<div style="padding-top:0.25em;">' .. nativeHtml .. '</div>' end
if otherHtml then html = html .. '<div style="padding-top:0.25em;">' .. otherHtml .. '</div>' end
return html .. '</th></tr>'
end
-- "— Sorçh —" band under the title; manual label, else the Manx label of the item's type.
local function buildCategoryBand(args)
local label = getManual(args, { "sorçh_boayl", "sorçh_balley", "sorçh" })
if label and isNone(label) then return nil end
if not label then label = getWdCategoryLabel() end
if not label then return nil end
return '<tr class="mergedtoprow"><td colspan="2" style="text-align:center; background-color:#cddeff; border-top:1px solid #a2a9b1; padding:0.2em 0.4em;">— <b><span class="category">' .. label .. '</span></b> —</td></tr>'
end
-- Official name row, shown only when both a common and an official name are given.
local function buildOfficialName(args)
local common = getManual(args, { "ennym" })
local official = getManual(args, { "ennym_oikoil" })
if common and official and not isNone(official) then
return '<tr class="mergedtoprow"><th colspan="2" style="text-align:center; padding-left:0.4em; padding-right:0.4em;">' .. official .. '</th></tr>'
end
return nil
end
local ALTERNATE_NAMES = { soiag = "soieag" }
local function runSubmodule(frame, args, name)
local okLoad, mod = pcall(require, "Module:Kishtey fys boayl/" .. name)
-- Older page names still in use on the wiki.
if not okLoad and ALTERNATE_NAMES[name] then
okLoad, mod = pcall(require, "Module:Kishtey fys boayl/" .. ALTERNATE_NAMES[name])
end
if not okLoad then
return '<tr><td colspan="2" style="color:#d33; padding:0.2em 0.4em;">Module error: ' .. name .. ' (load): ' .. mw.text.nowiki(tostring(mod)) .. '</td></tr>'
end
if not (mod and mod.main) then return nil end
local okRun, result = pcall(mod.main, frame, args)
if not okRun then
return '<tr><td colspan="2" style="color:#d33; padding:0.2em 0.4em;">Module error: ' .. name .. ': ' .. mw.text.nowiki(tostring(result)) .. '</td></tr>'
end
return result
end
local UNKNOWN_CATEGORY = "Ronney:Duillagyn gymmydey kishtey fys boayl marish parameadaryn gyn enney"
-- Wraps the template arguments so every name a module asks for is remembered.
local function trackArgs(real)
local asked = {}
local proxy = setmetatable({}, { __index = function(_, key)
asked[key] = true
return real[key]
end })
return proxy, asked
end
-- Named, non-empty parameters that no module asked for, sorted.
local function findUnknown(real, asked)
local unknown = {}
for key, value in pairs(real) do
if type(key) == "string" and not asked[key] and mw.text.trim(tostring(value)) ~= "" then
table.insert(unknown, key)
end
end
table.sort(unknown)
return unknown
end
local function isPreview(frame)
return frame:preprocess("{{REVISIONID}}") == ""
end
function p.main(frame)
local realArgs = getArgs(frame)
local args, asked = trackArgs(realArgs)
local rows = {}
table.insert(rows, buildHeader(args))
local band = buildCategoryBand(args)
if band then table.insert(rows, band) end
local official = buildOfficialName(args)
if official then table.insert(rows, official) end
for _, name in ipairs(SUBMODULES) do
local content = runSubmodule(frame, args, name)
if content and content ~= "" then
table.insert(rows, DIVIDER)
table.insert(rows, content)
end
end
-- Unknown parameters: a red italic warning in previews, and a tracking category on articles.
local unknown = findUnknown(realArgs, asked)
local category = ""
if #unknown > 0 then
if isPreview(frame) then
table.insert(rows, 1, '<tr><td colspan="2" style="color:#d33; font-style:italic; padding:0.3em 0.6em;">Parameadaryn gyn enney: ' .. mw.text.nowiki(table.concat(unknown, ", ")) .. '</td></tr>')
end
if mw.title.getCurrentTitle().namespace == 0 then
category = "[[" .. UNKNOWN_CATEGORY .. "|" .. unknown[1] .. "]]"
end
end
local html = table.concat(rows)
-- A word joiner before each footnote marker keeps it on the same line as the claim it supports.
html = html:gsub("\127'\"`UNIQ%-%-ref%-%x+%-QINU`\"'\127", "⁠%0")
-- Label columns share one width (both plain and bullet rows) so values line up in every skin.
html = html:gsub("width:8em; max%-width:8em; ", "")
html = html:gsub('<th scope="row" style="', '<th scope="row" style="width:40%%; ')
html = html:gsub('<th style="', '<th style="width:40%%; ')
return '<table class="infobox geography vcard" style="float:right; clear:right; margin:0.5em 0 1em 1em; width:24.15em; border:1px solid #a2a9b1; border-collapse:collapse; font-size:95%;">' .. html .. '</table>' .. category
end
return p
8u3qqwqkyl58dzit4k8muojohu5bj78
395343
395319
2026-10-26T17:12:07Z
MacTire02
219
++
395343
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local function getArgs(frame)
local parent = frame:getParent()
if parent then return parent.args end
return frame.args
end
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wikidata reference for the best statement of a property (ready-made <ref> wikitext, or "").
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Upper-cases the first character (UTF-8 safe).
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
local DIVIDER = '<tr><td colspan="2" style="border-top:1px solid #a2a9b1; padding:0; height:0px;"></td></tr>'
-- Submodules in display order; each exposes main(frame, args) returning row HTML or nil.
local SUBMODULES = {
"aascreeu",
"jalloo",
"bratteeyn",
"cowraghyn",
"caslyssyn",
"aarheynn",
"bunneeaght",
"soiag",
"çhengaghyn",
"reiltys",
"eaghtyr",
"yrjid",
"pobble",
"deynoaylleeaght",
"crysshraa",
"coadyn",
"blank",
"ynnyd-eggey",
}
-- First best-rank monolingual statement not rejected by `skip(text, lang)`: text, language code.
local function getWdMonolingual(property, skip)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "monolingualtext" then
local value = snak.datavalue.value
if value and value.text and value.text ~= "" and not (skip and skip(value.text, value.language)) then
return value.text, value.language
end
end
end
return nil
end
-- Manx label of the first instance-of (P31) item, e.g. "Balley"; nil when no gv label exists.
local function getWdCategoryLabel()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P31")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid") then
return nil
end
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
local function langSpan(text, lang)
local attr = ""
if lang and lang ~= "" then
attr = ' lang="' .. lang .. '" xml:lang="' .. lang .. '"'
end
return '<span class="nickname"' .. attr .. '>' .. text .. '</span>'
end
local function buildHeader(args)
local title = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local nativeName = getManual(args, { "ennym_dooghyssagh" })
local nativeLang = getManual(args, { "çhengey_ennym_dooghyssagh" })
local nativeHtml
if nativeName then
if not isNone(nativeName) then nativeHtml = langSpan(nativeName, nativeLang) end
else
-- Skip Manx names, the page title itself, and names already given in ennym_elley.
local otherManual = getManual(args, { "ennym_elley" }) or ""
local text, lang = getWdMonolingual("P1705", function(t, l)
return l == "gv" or t == title or mw.ustring.find(otherManual, t, 1, true) ~= nil
end)
if text then nativeHtml = langSpan(text, lang) .. getWdReference("P1705") end
end
local otherName = getManual(args, { "ennym_elley" })
local otherHtml
if otherName and not isNone(otherName) then
otherHtml = langSpan(otherName, getManual(args, { "çhengey_ennym_elley" }))
end
local html = '<tr class="adr"><th colspan="2" class="fn org" style="line-height:1.2em; padding:0.25em 0.4em 0.33em; font-size:1.25em; text-align:center; font-weight:normal;"><span style="font-weight:bold;">' .. title .. '</span>'
if nativeHtml then html = html .. '<div style="padding-top:0.25em;">' .. nativeHtml .. '</div>' end
if otherHtml then html = html .. '<div style="padding-top:0.25em;">' .. otherHtml .. '</div>' end
return html .. '</th></tr>'
end
-- "— Sorçh —" band under the title; manual label, else the Manx label of the item's type.
local function buildCategoryBand(args)
local label = getManual(args, { "sorçh_boayl", "sorçh_balley", "sorçh" })
if label and isNone(label) then return nil end
if not label then label = getWdCategoryLabel() end
if not label then return nil end
return '<tr class="mergedtoprow"><td colspan="2" style="text-align:center; background-color:#cddeff; border-top:1px solid #a2a9b1; padding:0.2em 0.4em;">— <b><span class="category">' .. label .. '</span></b> —</td></tr>'
end
-- Official name row, shown only when both a common and an official name are given.
local function buildOfficialName(args)
local common = getManual(args, { "ennym" })
local official = getManual(args, { "ennym_oikoil" })
if common and official and not isNone(official) then
return '<tr class="mergedtoprow"><th colspan="2" style="text-align:center; padding-left:0.4em; padding-right:0.4em;">' .. official .. '</th></tr>'
end
return nil
end
local ALTERNATE_NAMES = { soiag = "soieag" }
local function runSubmodule(frame, args, name)
local okLoad, mod = pcall(require, "Module:Kishtey fys boayl/" .. name)
-- Older page names still in use on the wiki.
if not okLoad and ALTERNATE_NAMES[name] then
okLoad, mod = pcall(require, "Module:Kishtey fys boayl/" .. ALTERNATE_NAMES[name])
end
if not okLoad then
return '<tr><td colspan="2" style="color:#d33; padding:0.2em 0.4em;">Module error: ' .. name .. ' (load): ' .. mw.text.nowiki(tostring(mod)) .. '</td></tr>'
end
if not (mod and mod.main) then return nil end
local okRun, result = pcall(mod.main, frame, args)
if not okRun then
return '<tr><td colspan="2" style="color:#d33; padding:0.2em 0.4em;">Module error: ' .. name .. ': ' .. mw.text.nowiki(tostring(result)) .. '</td></tr>'
end
return result
end
local UNKNOWN_CATEGORY = "Ronney:Duillagyn gymmydey kishtey fys boayl marish parameadaryn gyn enney"
-- Wraps the template arguments so every name a module asks for is remembered.
local function trackArgs(real)
local asked = {}
local proxy = setmetatable({}, { __index = function(_, key)
asked[key] = true
return real[key]
end })
return proxy, asked
end
-- Named, non-empty parameters that no module asked for, sorted.
local function findUnknown(real, asked)
local unknown = {}
for key, value in pairs(real) do
if type(key) == "string" and not asked[key] and mw.text.trim(tostring(value)) ~= "" then
table.insert(unknown, key)
end
end
table.sort(unknown)
return unknown
end
local function isPreview(frame)
return frame:preprocess("{{REVISIONID}}") == ""
end
function p.main(frame)
local realArgs = getArgs(frame)
local args, asked = trackArgs(realArgs)
local rows = {}
table.insert(rows, buildHeader(args))
local band = buildCategoryBand(args)
if band then table.insert(rows, band) end
local official = buildOfficialName(args)
if official then table.insert(rows, official) end
for _, name in ipairs(SUBMODULES) do
local content = runSubmodule(frame, args, name)
if content and content ~= "" then
table.insert(rows, DIVIDER)
table.insert(rows, content)
end
end
-- Unknown parameters: a red italic warning in previews, and a tracking category on articles.
local unknown = findUnknown(realArgs, asked)
local category = ""
if #unknown > 0 then
if isPreview(frame) then
table.insert(rows, 1, '<tr><td colspan="2" style="color:#d33; font-style:italic; padding:0.3em 0.6em;">Parameadaryn gyn enney: ' .. mw.text.nowiki(table.concat(unknown, ", ")) .. '</td></tr>')
end
if mw.title.getCurrentTitle().namespace == 0 then
category = "[[" .. UNKNOWN_CATEGORY .. "|" .. unknown[1] .. "]]"
end
end
local html = table.concat(rows)
-- A word joiner before each footnote marker keeps it on the same line as the claim it supports.
html = html:gsub("\127'\"`UNIQ%-%-ref%-%x+%-QINU`\"'\127", "⁠%0")
-- Label columns share one width (both plain and bullet rows) so values line up in every skin.
html = html:gsub("width:8em; max%-width:8em; ", "")
html = html:gsub('<th scope="row" style="', '<th scope="row" style="width:40%%; ')
html = html:gsub('<th style="', '<th style="width:40%%; ')
return '<table class="infobox geography vcard" style="float:right; clear:right; margin:0.5em 0 1em 1em; width:24.15em; border:1px solid #a2a9b1; border-collapse:collapse; font-size:95%;">' .. html .. '</table>' .. category
end
return p
jmy5m5m08d0bfkj6jwvy1yukx17mhy2
395390
395343
2026-10-27T00:04:47Z
MacTire02
219
++
395390
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local function getArgs(frame)
local parent = frame:getParent()
if parent then return parent.args end
return frame.args
end
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Wikidata reference for the best statement of a property (ready-made <ref> wikitext, or "").
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Upper-cases the first character (UTF-8 safe).
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
local DIVIDER = '<tr><td colspan="2" style="border-top:1px solid #a2a9b1; padding:0; height:0px;"></td></tr>'
-- Submodules in display order; each exposes main(frame, args) returning row HTML or nil.
local SUBMODULES = {
"aascreeu",
"jalloo",
"bratteeyn",
"cowraghyn",
"caslyssyn",
"aarheynn",
"bunneeaght",
"soiag",
"çhengaghyn",
"reiltys",
"eaghtyr",
"yrjid",
"pobble",
"deynoaylleeaght",
"crysshraa",
"coadyn",
"blank",
"ynnyd-eggey",
}
-- First best-rank monolingual statement not rejected by `skip(text, lang)`: text, language code.
local function getWdMonolingual(property, skip)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "monolingualtext" then
local value = snak.datavalue.value
if value and value.text and value.text ~= "" and not (skip and skip(value.text, value.language)) then
return value.text, value.language
end
end
end
return nil
end
-- Band labels for particular types (P31), as piped links; a type listed here beats its plain Manx label.
local CATEGORY_LABELS = {
{ class = "Q202156", label = "[[Queiggaghyn Nerin|Queiggey]]" }, -- province of Ireland
{ class = "Q179872", label = "[[Coondaeghyn Nerin|Coontae]]" }, -- county of Ireland
}
-- Band label: a listed type's link, else the Manx label of the first instance-of (P31) item; nil when none.
local function getWdCategoryLabel()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getAllStatements("P31")
if not statements or #statements == 0 then return nil end
local function idOf(statement)
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
end
local types = {}
for _, statement in ipairs(statements) do
local id = idOf(statement)
if id then types[id] = true end
end
for _, rule in ipairs(CATEGORY_LABELS) do
if types[rule.class] then return rule.label end
end
local best = entity:getBestStatements("P31")
local id = best and best[1] and idOf(best[1])
if not id then return nil end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
local function langSpan(text, lang)
local attr = ""
if lang and lang ~= "" then
attr = ' lang="' .. lang .. '" xml:lang="' .. lang .. '"'
end
return '<span class="nickname"' .. attr .. '>' .. text .. '</span>'
end
local function buildHeader(args)
local title = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local nativeName = getManual(args, { "ennym_dooghyssagh" })
local nativeLang = getManual(args, { "çhengey_ennym_dooghyssagh" })
local nativeHtml
if nativeName then
if not isNone(nativeName) then nativeHtml = langSpan(nativeName, nativeLang) end
else
-- Skip Manx names, the page title itself, and names already given in ennym_elley.
local otherManual = getManual(args, { "ennym_elley" }) or ""
local text, lang = getWdMonolingual("P1705", function(t, l)
return l == "gv" or t == title or mw.ustring.find(otherManual, t, 1, true) ~= nil
end)
if text then nativeHtml = langSpan(text, lang) .. getWdReference("P1705") end
end
local otherName = getManual(args, { "ennym_elley" })
local otherHtml
if otherName and not isNone(otherName) then
otherHtml = langSpan(otherName, getManual(args, { "çhengey_ennym_elley" }))
end
local html = '<tr class="adr"><th colspan="2" class="fn org" style="line-height:1.2em; padding:0.25em 0.4em 0.33em; font-size:1.25em; text-align:center; font-weight:normal;"><span style="font-weight:bold;">' .. title .. '</span>'
if nativeHtml then html = html .. '<div style="padding-top:0.25em;">' .. nativeHtml .. '</div>' end
if otherHtml then html = html .. '<div style="padding-top:0.25em;">' .. otherHtml .. '</div>' end
return html .. '</th></tr>'
end
-- "— Sorçh —" band under the title; manual label, else the Manx label of the item's type.
local function buildCategoryBand(args)
local label = getManual(args, { "sorçh_boayl", "sorçh_balley", "sorçh" })
if label and isNone(label) then return nil end
if not label then label = getWdCategoryLabel() end
if not label then return nil end
return '<tr class="mergedtoprow"><td colspan="2" style="text-align:center; background-color:#cddeff; border-top:1px solid #a2a9b1; padding:0.2em 0.4em;">— <b><span class="category">' .. label .. '</span></b> —</td></tr>'
end
-- Official name row, shown only when both a common and an official name are given.
local function buildOfficialName(args)
local common = getManual(args, { "ennym" })
local official = getManual(args, { "ennym_oikoil" })
if common and official and not isNone(official) then
return '<tr class="mergedtoprow"><th colspan="2" style="text-align:center; padding-left:0.4em; padding-right:0.4em;">' .. official .. '</th></tr>'
end
return nil
end
local ALTERNATE_NAMES = { soiag = "soieag" }
local function runSubmodule(frame, args, name)
local okLoad, mod = pcall(require, "Module:Kishtey fys boayl/" .. name)
-- Older page names still in use on the wiki.
if not okLoad and ALTERNATE_NAMES[name] then
okLoad, mod = pcall(require, "Module:Kishtey fys boayl/" .. ALTERNATE_NAMES[name])
end
if not okLoad then
return '<tr><td colspan="2" style="color:#d33; padding:0.2em 0.4em;">Module error: ' .. name .. ' (load): ' .. mw.text.nowiki(tostring(mod)) .. '</td></tr>'
end
if not (mod and mod.main) then return nil end
local okRun, result = pcall(mod.main, frame, args)
if not okRun then
return '<tr><td colspan="2" style="color:#d33; padding:0.2em 0.4em;">Module error: ' .. name .. ': ' .. mw.text.nowiki(tostring(result)) .. '</td></tr>'
end
return result
end
local UNKNOWN_CATEGORY = "Ronney:Duillagyn gymmydey kishtey fys boayl marish parameadaryn gyn enney"
-- Wraps the template arguments so every name a module asks for is remembered.
local function trackArgs(real)
local asked = {}
local proxy = setmetatable({}, { __index = function(_, key)
asked[key] = true
return real[key]
end })
return proxy, asked
end
-- Named, non-empty parameters that no module asked for, sorted.
local function findUnknown(real, asked)
local unknown = {}
for key, value in pairs(real) do
if type(key) == "string" and not asked[key] and mw.text.trim(tostring(value)) ~= "" then
table.insert(unknown, key)
end
end
table.sort(unknown)
return unknown
end
local function isPreview(frame)
return frame:preprocess("{{REVISIONID}}") == ""
end
function p.main(frame)
local realArgs = getArgs(frame)
local args, asked = trackArgs(realArgs)
local rows = {}
table.insert(rows, buildHeader(args))
local band = buildCategoryBand(args)
if band then table.insert(rows, band) end
local official = buildOfficialName(args)
if official then table.insert(rows, official) end
for _, name in ipairs(SUBMODULES) do
local content = runSubmodule(frame, args, name)
if content and content ~= "" then
table.insert(rows, DIVIDER)
table.insert(rows, content)
end
end
-- Unknown parameters: a red italic warning in previews, and a tracking category on articles.
local unknown = findUnknown(realArgs, asked)
local category = ""
if #unknown > 0 then
if isPreview(frame) then
table.insert(rows, 1, '<tr><td colspan="2" style="color:#d33; font-style:italic; padding:0.3em 0.6em;">Parameadaryn gyn enney: ' .. mw.text.nowiki(table.concat(unknown, ", ")) .. '</td></tr>')
end
if mw.title.getCurrentTitle().namespace == 0 then
category = "[[" .. UNKNOWN_CATEGORY .. "|" .. unknown[1] .. "]]"
end
end
local html = table.concat(rows)
-- A word joiner before each footnote marker keeps it on the same line as the claim it supports.
html = html:gsub("\127'\"`UNIQ%-%-ref%-%x+%-QINU`\"'\127", "⁠%0")
-- Label columns share one width (both plain and bullet rows) so values line up in every skin.
html = html:gsub("width:8em; max%-width:8em; ", "")
html = html:gsub('<th scope="row" style="', '<th scope="row" style="width:40%%; ')
html = html:gsub('<th style="', '<th style="width:40%%; ')
return '<table class="infobox geography vcard" style="float:right; clear:right; margin:0.5em 0 1em 1em; width:24.15em; border:1px solid #a2a9b1; border-collapse:collapse; font-size:95%;">' .. html .. '</table>' .. category
end
return p
cw2sbg8mysbmjlivhcd6b93d05m4gaz
Module:Kishtey fys boayl/jalloo
828
56337
395389
395302
2026-10-26T23:50:55Z
MacTire02
219
++
395389
Scribunto
text/plain
local p = {}
local DEFAULT_WIDTH = "300px"
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
-- Bare numbers become pixel widths ("250" -> "250px").
local function normaliseSize(size)
if size and size:match("^%d+$") then return size .. "px" end
return size
end
-- Genitive form of the place name for link text: manual param, else Module:Enmyn çheerey, else the name itself.
local function getGenitiveName(args)
local manual = getManual(args, { "ennym_gienneydagh", "ennym_oikoil_gienneydagh" })
if manual then return manual end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local ok, Enmyn = pcall(require, "Module:Enmyn çheerey")
if ok and Enmyn and Enmyn.genitive then
local okGen, genitive = pcall(Enmyn.genitive, name)
if okGen and genitive and genitive ~= "" then return genitive end
end
return name
end
-- Best-rank P18 file name plus the statement it came from.
local function getWdImage()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P18")
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
local file = snak.datavalue.value
if file and file ~= "" then return file, statement end
end
end
return nil
end
-- Manx-language media legend (P2096) on the P18 statement, if any.
local function getWdCaption(statement)
local qualifiers = statement and statement.qualifiers and statement.qualifiers["P2096"]
if not qualifiers then return nil end
for _, snak in ipairs(qualifiers) do
local value = snak.datavalue and snak.datavalue.value
if value and value.language == "gv" and value.text and value.text ~= "" then
return value.text
end
end
return nil
end
-- A bare image file name (no markup): returns it without any File:/Coadan: prefix.
local function bareFileName(value)
if not value or value:find("[%[%]{}<>|\n]") then return nil end
local name = mw.text.trim(value):gsub("^[Ff]ile:", ""):gsub("^[Ii]mage:", ""):gsub("^[Cc]oadan:", "")
local ext = name:lower():match("%.(%a+)$")
local images = { jpg = true, jpeg = true, png = true, gif = true, svg = true, tif = true, tiff = true, webp = true }
if ext and images[ext] then return name end
return nil
end
local CELL = '<tr><td colspan="2" style="text-align:center; padding:0.7em 0.4em;"><div style="display:flex; flex-direction:column; align-items:center;">%s</div></td></tr>'
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
-- |jalloo= is the main photograph: a bare file name (or none to hide it, Wikidata P18 included).
-- The legacy |jalloo_bun_speyrey= still works when |jalloo= gives no file name.
local other = getManual(args, { "jalloo" })
local legacy = getManual(args, { "jalloo_bun_speyrey" })
local suppressed = isNone(other) or isNone(legacy)
if isNone(other) then other = nil end
if isNone(legacy) then legacy = nil end
local file, statement
local extraFile
local bare = bareFileName(other)
if bare then
file = bare
other = nil
extraFile = legacy
elseif legacy then
file = legacy
elseif not suppressed then
-- Wikidata image (P18) only when no manual image is given.
file, statement = getWdImage()
end
local width = normaliseSize(getManual(args, { "mooadys_jalloo" })) or DEFAULT_WIDTH
local alt = getManual(args, { "alt_jalloo" }) or ""
if file then
local caption = getManual(args, { "fo-heidyl_jalloo" })
if not caption and statement then caption = getWdCaption(statement) end
local tooltip = caption or ("Bun speyrey " .. getGenitiveName(args))
local html = '[[Coadan:' .. file .. '|' .. width .. '|none|alt=' .. alt .. '|' .. tooltip .. ']]'
if caption then
html = html .. '<div style="padding-top:2pt;">' .. caption .. '</div>'
end
table.insert(rows, string.format(CELL, html))
end
if extraFile then
table.insert(rows, string.format(CELL, '[[Coadan:' .. extraFile .. '|' .. width .. '|none|alt=' .. alt .. ']]'))
end
-- Free-form cell (raw wikitext, as in the old template).
if other then table.insert(rows, string.format(CELL, other)) end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
rpcdba885zdk5mqxzm2jyojf2rxrr0s
Module:Kishtey fys boayl/caslyssyn
828
56340
395326
395303
2026-10-26T14:09:58Z
MacTire02
219
+caslys-cheerey elley
395326
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAP_WIDTH = "300"
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function normaliseSize(size)
if size and size:match("^%d+$") then return size .. "px" end
return size
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function getGenitiveName(args)
local manual = getManual(args, { "ennym_gienneydagh", "ennym_oikoil_gienneydagh" })
if manual then return manual end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local ok, Enmyn = pcall(require, "Module:Enmyn çheerey")
if ok and Enmyn and Enmyn.genitive then
local okGen, genitive = pcall(Enmyn.genitive, name)
if okGen and genitive and genitive ~= "" then return genitive end
end
return name
end
local function getWdFile(property)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
local file = snak.datavalue.value
if file and file ~= "" then return file end
end
end
return nil
end
-- Best-rank P625 as latitude, longitude numbers.
local function getWdCoordinates()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P625")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "globecoordinate") then
return nil
end
local value = snak.datavalue.value
if value.latitude and value.longitude then return value.latitude, value.longitude end
return nil
end
----------------------------------------------------------------------
-- Manual coordinates (old template's latd/latm/lats/latNS/longd/... shape)
----------------------------------------------------------------------
local function dmsParts(deg, min, sec, dir)
local parts = { deg }
if min then table.insert(parts, min) end
if sec then table.insert(parts, sec) end
if dir then table.insert(parts, dir) end
return parts
end
-- Returns "suppress", or { lat = parts, long = parts, decimal = {lat, long}|nil }, or nil.
local function getManualCoordinates(args)
local latd = getManual(args, { "latd" })
if not latd then return nil end
if isNone(latd) then return "suppress" end
local longd = getManual(args, { "longd" })
if not longd then return nil end
local latm, lats, latNS = getManual(args, { "latm" }), getManual(args, { "lats" }), getManual(args, { "latNS" })
local longm, longs, longEW = getManual(args, { "longm" }), getManual(args, { "longs" }), getManual(args, { "longEW" })
local isDms = latm or latNS or longm or longEW
local result = {
lat = isDms and dmsParts(latd, latm, lats, latNS) or { latd },
long = isDms and dmsParts(longd, longm, longs, longEW) or { longd },
}
if not isDms then
local la, lo = tonumber(latd), tonumber(longd)
if la and lo then result.decimal = { la, lo } end
else
-- Decimal equivalent for the interactive map.
local function toDecimal(d, m, s, dir)
local value = tonumber(d)
if not value then return nil end
value = value + (tonumber(m) or 0) / 60 + (tonumber(s) or 0) / 3600
if dir == "S" or dir == "W" then value = -value end
return value
end
local la, lo = toDecimal(latd, latm, lats, latNS), toDecimal(longd, longm, longs, longEW)
if la and lo then result.decimal = { la, lo } end
end
return result
end
local function coordType(args)
local custom = getManual(args, { "sorçh_coor" })
if custom then return custom end
local text = "type:city"
local population = getManual(args, { "slane_earroo_yn_phobble" })
local number = population and tonumber((population:gsub("[,%s]", "")))
if number and number > 0 then text = text .. "(" .. string.format("%d", number) .. ")" end
local region = getManual(args, { "ard_coordnaidyn" })
if region then text = text .. "_region:" .. region end
return text
end
local function expandCoord(frame, args, coords)
local callArgs = {}
for _, v in ipairs(coords.lat) do table.insert(callArgs, v) end
for _, v in ipairs(coords.long) do table.insert(callArgs, v) end
table.insert(callArgs, coordType(args))
callArgs.display = "inline"
local format = getManual(args, { "cummey_coordnaidyn" })
callArgs.format = format or "dms"
return frame:expandTemplate{ title = "coord", args = callArgs }
end
----------------------------------------------------------------------
-- Map rows
----------------------------------------------------------------------
local function mapRow(inner)
return '<tr><td colspan="2" style="text-align:center; padding:0.2em 0.4em;"><div style="display:flex; flex-direction:column; align-items:center;">' .. inner .. '</div></td></tr>'
end
local function captionDiv(caption)
if not caption or caption == "" then return "" end
return '<div style="padding-top:2pt;">' .. caption .. '</div>'
end
-- Caption: manual text, "none" to hide, else "Soiaghey <genitive>".
local function resolveCaption(manual, genitive)
if manual and isNone(manual) then return nil end
return manual or ("Soiaghey " .. genitive)
end
-- Static locator maps: base "jalloo_caslys-çheerey" plus "1".
local function buildStaticMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "1" }) do
local file = getManual(args, { "jalloo_caslys-çheerey" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey" .. suffix })) or (MAP_WIDTH .. "px")
local alt = getManual(args, { "alt_caslys-çheerey" .. suffix }) or ""
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" .. suffix }), genitive)
local tooltip = caption or ("Soiaghey " .. genitive)
table.insert(rows, mapRow('<div style="pointer-events:none;">[[Coadan:' .. file .. '|' .. width .. '|none|link=|alt=' .. alt .. '|' .. tooltip .. ']]</div>' .. captionDiv(caption)))
end
end
return rows
end
-- Basic map with a red dot placed by clee/baare offsets: "" and "2".
local function buildOverlayMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "2" }) do
local file = getManual(args, { "jalloo_caslys-çheerey_bunneydagh" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_bunneydagh" .. suffix })) or "240px"
local left = getManual(args, { "clee" .. suffix }) or "0"
local top = getManual(args, { "baare" .. suffix }) or "0"
local before = getManual(args, { "ennym_er_caslys" })
local after = getManual(args, { "ennym_caslys_jesh" })
local dot = (before and ('<sub>' .. before .. '</sub>') or "") .. ' [[Coadan:Red pog.svg|8px|link=]]' .. (after and (' <sub>' .. after .. '</sub>') or "")
local html = '<div style="position:relative;">[[Coadan:' .. file .. '|' .. width .. '|link=|Soiaghey ' .. genitive .. ']]<div style="position:absolute; left:' .. left .. '; top:' .. top .. ';">' .. dot .. '</div></div>'
html = html .. captionDiv(resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey_bunneydagh" .. suffix, "fo-heidyl_caslys-çheerey" }), genitive))
table.insert(rows, mapRow(html))
end
end
return rows
end
-- Dot map through {{sar-hoiaghey}}.
local function buildDotMap(frame, args)
local file = getManual(args, { "jalloo_caslys-çheerey_ponk" })
if not file or isNone(file) then return nil end
local name = getManual(args, { "ennym_oikoil", "ennym" }) or mw.title.getCurrentTitle().text
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_ponk" })) or "180px"
local rendered = frame:expandTemplate{ title = "sar-hoiaghey", args = {
bun = file,
lheead_bun = width,
alt_bun = getManual(args, { "alt_bun_caslys-çheerey_ponk" }) or "",
["fo-heidyl_bun"] = name,
snaue = "Red pog.svg",
lheead_snaue = "6px",
alt_snaue = getManual(args, { "alt_caslys-çheerey_ponk" }) or "",
["fo-heidyl_snaue"] = getManual(args, { "fo-heidyl_caslys-çheerey_ponk" }) or "",
x = getManual(args, { "ponk_x" }) or "",
y = getManual(args, { "ponk_y" }) or "",
} }
return mapRow('<div class="center">' .. rendered .. captionDiv(getManual(args, { "fo-heidyl_caslys-çheerey_ponk" })) .. '</div>')
end
-- Pushpin maps through {{Caslys-çheerey soiaghey}}: base "broo-freeney" plus "1".
local function buildPushpinMaps(frame, args)
local rows = {}
local manual = getManual(args, { "latd" })
local name = getManual(args, { "ennym", "ennym_oikoil" }) or getManual(args, { "ennym_gienneydagh" }) or mw.title.getCurrentTitle().text
local usesDms = getManual(args, { "latm" }) or getManual(args, { "latNS" })
local usesLongDms = getManual(args, { "longm" }) or getManual(args, { "longEW" })
for _, suffix in ipairs({ "", "1" }) do
local map = getManual(args, { "caslys-çheerey_broo-freeney" .. suffix })
if map and not isNone(map) then
local labelSwitch = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix })
local label = ""
if not (labelSwitch and labelSwitch:lower() == "none") then
label = getManual(args, { "lipaid_broo-freeney" .. suffix }) or name
end
local rendered = frame:expandTemplate{ title = "Caslys-çheerey soiaghey", args = {
map,
label = label,
alt = getManual(args, { "alt_caslys-çheerey_broo-freeney" .. suffix }) or "",
lat = (not usesDms) and (getManual(args, { "latd" }) or "") or "",
long = (not usesLongDms) and (getManual(args, { "longd" }) or "") or "",
lat_deg = usesDms and (getManual(args, { "latd" }) or "") or "",
lat_min = usesDms and (getManual(args, { "latm" }) or "") or "",
lat_sec = usesDms and (getManual(args, { "lats" }) or "") or "",
lat_dir = getManual(args, { "latNS" }) or "",
lon_deg = usesLongDms and (getManual(args, { "longd" }) or "") or "",
lon_min = usesLongDms and (getManual(args, { "longm" }) or "") or "",
lon_sec = usesLongDms and (getManual(args, { "longs" }) or "") or "",
lon_dir = getManual(args, { "longEW" }) or "",
marksize = "6",
float = "none",
caption = "",
border = "none",
position = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix }) or "",
width = getManual(args, { "mooadys_caslys-çheerey_broo-freeney" .. suffix }) or "250",
AlternativeMap = getManual(args, { "jalloo_broo-freeney" .. suffix }) or "",
} }
local caption = getManual(args, { "fo-heidyl_caslys-çheerey_broo-freeney" .. suffix, "fo-heidyl_caslys-çheerey" })
table.insert(rows, mapRow('<div class="center">' .. rendered .. captionDiv(caption) .. '</div>'))
end
end
return rows
end
-- Country (P17) name for picking the blank location map, e.g. "Mannin".
local function getCountryName(args)
local manual = getManual(args, { "caslys-çheerey_çheer" })
if manual then return manual end
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P17")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid") then
return nil
end
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return sitelink end
return nil
end
-- Blank country map with a red dot via {{Location map}}, when "Module:Location map/data/<country>" exists.
local function buildAutoPushpin(frame, args, lat, lon)
if not lat then return nil end
local country = getCountryName(args)
if not country or isNone(country) then return nil end
local data = mw.title.new("Module:Location map/data/" .. country)
if not (data and data.exists) then return nil end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" }), getGenitiveName(args)) or ""
return frame:expandTemplate{ title = "Location map", args = {
country,
border = "infobox",
float = "center",
width = MAP_WIDTH,
max_width = MAP_WIDTH,
maplink = "",
label = name,
lat = string.format("%.6f", lat),
long = string.format("%.6f", lon),
marksize = "6",
position = getManual(args, { "soiaghey_lipaid" }),
caption = caption,
relief = getManual(args, { "releef_caslys-çheerey" }),
} }
end
-- Wikidata shape sources: OSM relation (P402) or a Commons geoshape page (P3896, "Data:Meath.map").
local function getWdShape()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local osm = entity:getBestStatements("P402")
if osm and #osm > 0 then return { service = "geoshape", id = entity.id } end
local geoshape = entity:getBestStatements("P3896")
local snak = geoshape and geoshape[1] and geoshape[1].mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and type(snak.datavalue.value) == "string" then
local title = snak.datavalue.value:gsub("^Data:", "")
return { service = "page", title = title }
end
return nil
end
-- Item without a point (P625) but with a shape: the shape alone, centred and zoomed by the map itself.
local function buildShapeOnlyMap(frame, shape)
local data = { type = "ExternalData", service = shape.service,
properties = { stroke = "#FF0000", ["stroke-width"] = 2, fill = "#606060", ["fill-opacity"] = 0.1 } }
if shape.service == "geoshape" then data.ids = shape.id else data.title = shape.title end
local ok, rendered = pcall(function()
return frame:extensionTag("mapframe", mw.text.jsonEncode(data), { width = MAP_WIDTH, height = "250", align = "center" })
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Interactive map from the coordinates (manual decimal equivalent, else Wikidata P625); the shape alone when there is no point.
local function buildMapframe(frame, args, manualCoords)
-- Wikidata P625 only: passing coordinates makes Module:Mapframe error on gv.wiki.
if manualCoords ~= nil then return nil end
local shape = getWdShape()
if not getWdCoordinates() then
if shape then return buildShapeOnlyMap(frame, shape) end
return nil
end
-- An item with a shape (a county, say) is fitted by the map itself; a plain point gets a fixed zoom.
local zoom = getManual(args, { "zoom_caslys-çheerey", "mapframe-zoom" }) or (not shape and "12" or nil)
local callArgs = { "Infobox mapframe", "autoWithCaption",
onByDefault = "yes",
["mapframe-marker-color"] = "d33",
["mapframe-frame-width"] = MAP_WIDTH,
["mapframe-zoom"] = zoom,
}
local ok, rendered = pcall(function()
return frame:callParserFunction{ name = "#invoke", args = callArgs }
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Blank map first; the interactive map sits in a collapsed block opened by a toggle link.
local function buildSwitcher(frame, args, first, second)
local expand = getManual(args, { "lipaid_caslys2" }) or "Eddyr-obbragh"
local collapse = getManual(args, { "lipaid_caslys_follaghey" }) or "follee"
return first .. '<div class="mw-collapsible mw-collapsed" data-expandtext="' .. expand ..
'" data-collapsetext="' .. collapse .. '" style="text-align:center; margin-top:0.3em;">' ..
'<div style="text-align:center; padding-top:1.6em; clear:both;">' .. second .. '</div></div>'
end
----------------------------------------------------------------------
-- Coordinates row
----------------------------------------------------------------------
local function buildCoordinatesRow(frame, args, manualCoords)
local coordText, fromWd
if manualCoords == "suppress" then
return nil
elseif type(manualCoords) == "table" then
coordText = expandCoord(frame, args, manualCoords)
else
local lat, lon = getWdCoordinates()
if not lat then return nil end
coordText = expandCoord(frame, args, { lat = { lat }, long = { lon } })
fromWd = true
end
local label = "Co-ordnaidyn"
local qualifier = getManual(args, { "mair_coor" })
if qualifier then label = label .. " (" .. qualifier .. ")" end
local value = coordText
if fromWd then
value = value .. getWdReference("P625")
else
local ref = getManual(args, { "imraa_coordnaidyn" })
if ref then value = value .. wrapReference(ref) end
end
local note = getManual(args, { "fo-noteyn_coordnaidyn" })
if note then value = value .. note end
return '<tr class="mergedbottomrow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">' .. label .. ': ' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local genitive = getGenitiveName(args)
local manualCoords = getManualCoordinates(args)
local rows = {}
local manualMapCount = 0
local function addAll(list)
for _, row in ipairs(list) do
table.insert(rows, row)
manualMapCount = manualMapCount + 1
end
end
addAll(buildStaticMaps(args, genitive))
addAll(buildOverlayMaps(args, genitive))
local dot = buildDotMap(frame, args)
if dot then addAll({ dot }) end
addAll(buildPushpinMaps(frame, args))
local frameSetting = (getManual(args, { "mapframe" }) or ""):lower()
local wantMapframe = frameSetting == "yes"
local suppressMapframe = frameSetting == "no" or frameSetting == "none"
-- No manual map: blank country map with a dot, else an interactive map, else the P242 locator image.
if manualMapCount == 0 then
local lat, lon
if type(manualCoords) == "table" and manualCoords.decimal then
lat, lon = manualCoords.decimal[1], manualCoords.decimal[2]
elseif manualCoords == nil then
lat, lon = getWdCoordinates()
end
local pushpin = buildAutoPushpin(frame, args, lat, lon)
if pushpin then
local interactive = (not suppressMapframe) and buildMapframe(frame, args, manualCoords) or nil
if interactive then
table.insert(rows, mapRow(buildSwitcher(frame, args, pushpin, interactive)))
else
table.insert(rows, mapRow(pushpin))
end
elseif lat then
wantMapframe = true
else
local file = getWdFile("P242")
if file then
table.insert(rows, mapRow('[[Coadan:' .. file .. '|' .. MAP_WIDTH .. 'px|none|link=|Soiaghey ' .. genitive .. ']]'))
elseif manualCoords == nil and getWdShape() then
wantMapframe = true
end
end
end
if wantMapframe and not suppressMapframe then
local mapframe = buildMapframe(frame, args, manualCoords)
if mapframe then table.insert(rows, mapRow(mapframe)) end
end
local coordRow = buildCoordinatesRow(frame, args, manualCoords)
if coordRow then table.insert(rows, coordRow) end
local extra = getManual(args, { "coord_a" })
if extra and not isNone(extra) then
table.insert(rows, '<tr class="mergedtoprow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">Co-ordnaidyn: ' .. extra .. '</td></tr>')
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
q4a50m0jtk61lv3z2xrjwier1jo2zlt
395328
395326
2026-10-26T14:14:05Z
MacTire02
219
++
395328
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAP_WIDTH = "300"
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function normaliseSize(size)
if size and size:match("^%d+$") then return size .. "px" end
return size
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function getGenitiveName(args)
local manual = getManual(args, { "ennym_gienneydagh", "ennym_oikoil_gienneydagh" })
if manual then return manual end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local ok, Enmyn = pcall(require, "Module:Enmyn çheerey")
if ok and Enmyn and Enmyn.genitive then
local okGen, genitive = pcall(Enmyn.genitive, name)
if okGen and genitive and genitive ~= "" then return genitive end
end
return name
end
local function getWdFile(property)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
local file = snak.datavalue.value
if file and file ~= "" then return file end
end
end
return nil
end
-- Best-rank P625 as latitude, longitude numbers.
local function getWdCoordinates()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P625")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "globecoordinate") then
return nil
end
local value = snak.datavalue.value
if value.latitude and value.longitude then return value.latitude, value.longitude end
return nil
end
----------------------------------------------------------------------
-- Manual coordinates (old template's latd/latm/lats/latNS/longd/... shape)
----------------------------------------------------------------------
local function dmsParts(deg, min, sec, dir)
local parts = { deg }
if min then table.insert(parts, min) end
if sec then table.insert(parts, sec) end
if dir then table.insert(parts, dir) end
return parts
end
-- Returns "suppress", or { lat = parts, long = parts, decimal = {lat, long}|nil }, or nil.
local function getManualCoordinates(args)
local latd = getManual(args, { "latd" })
if not latd then return nil end
if isNone(latd) then return "suppress" end
local longd = getManual(args, { "longd" })
if not longd then return nil end
local latm, lats, latNS = getManual(args, { "latm" }), getManual(args, { "lats" }), getManual(args, { "latNS" })
local longm, longs, longEW = getManual(args, { "longm" }), getManual(args, { "longs" }), getManual(args, { "longEW" })
local isDms = latm or latNS or longm or longEW
local result = {
lat = isDms and dmsParts(latd, latm, lats, latNS) or { latd },
long = isDms and dmsParts(longd, longm, longs, longEW) or { longd },
}
if not isDms then
local la, lo = tonumber(latd), tonumber(longd)
if la and lo then result.decimal = { la, lo } end
else
-- Decimal equivalent for the interactive map.
local function toDecimal(d, m, s, dir)
local value = tonumber(d)
if not value then return nil end
value = value + (tonumber(m) or 0) / 60 + (tonumber(s) or 0) / 3600
if dir == "S" or dir == "W" then value = -value end
return value
end
local la, lo = toDecimal(latd, latm, lats, latNS), toDecimal(longd, longm, longs, longEW)
if la and lo then result.decimal = { la, lo } end
end
return result
end
local function coordType(args)
local custom = getManual(args, { "sorçh_coor" })
if custom then return custom end
local text = "type:city"
local population = getManual(args, { "slane_earroo_yn_phobble" })
local number = population and tonumber((population:gsub("[,%s]", "")))
if number and number > 0 then text = text .. "(" .. string.format("%d", number) .. ")" end
local region = getManual(args, { "ard_coordnaidyn" })
if region then text = text .. "_region:" .. region end
return text
end
local function expandCoord(frame, args, coords)
local callArgs = {}
for _, v in ipairs(coords.lat) do table.insert(callArgs, v) end
for _, v in ipairs(coords.long) do table.insert(callArgs, v) end
table.insert(callArgs, coordType(args))
callArgs.display = "inline"
local format = getManual(args, { "cummey_coordnaidyn" })
callArgs.format = format or "dms"
return frame:expandTemplate{ title = "coord", args = callArgs }
end
----------------------------------------------------------------------
-- Map rows
----------------------------------------------------------------------
local function mapRow(inner)
return '<tr><td colspan="2" style="text-align:center; padding:0.2em 0.4em;"><div style="display:flex; flex-direction:column; align-items:center;">' .. inner .. '</div></td></tr>'
end
local function captionDiv(caption)
if not caption or caption == "" then return "" end
return '<div style="padding-top:2pt;">' .. caption .. '</div>'
end
-- Caption: manual text, "none" to hide, else "Soiaghey <genitive>".
local function resolveCaption(manual, genitive)
if manual and isNone(manual) then return nil end
return manual or ("Soiaghey " .. genitive)
end
-- Static locator maps: base "jalloo_caslys-çheerey" plus "1".
local function buildStaticMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "1" }) do
local file = getManual(args, { "jalloo_caslys-çheerey" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey" .. suffix })) or (MAP_WIDTH .. "px")
local alt = getManual(args, { "alt_caslys-çheerey" .. suffix }) or ""
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" .. suffix }), genitive)
local tooltip = caption or ("Soiaghey " .. genitive)
table.insert(rows, mapRow('<div style="pointer-events:none;">[[Coadan:' .. file .. '|' .. width .. '|none|link=|alt=' .. alt .. '|' .. tooltip .. ']]</div>' .. captionDiv(caption)))
end
end
return rows
end
-- Basic map with a red dot placed by clee/baare offsets: "" and "2".
local function buildOverlayMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "2" }) do
local file = getManual(args, { "jalloo_caslys-çheerey_bunneydagh" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_bunneydagh" .. suffix })) or "240px"
local left = getManual(args, { "clee" .. suffix }) or "0"
local top = getManual(args, { "baare" .. suffix }) or "0"
local before = getManual(args, { "ennym_er_caslys" })
local after = getManual(args, { "ennym_caslys_jesh" })
local dot = (before and ('<sub>' .. before .. '</sub>') or "") .. ' [[Coadan:Red pog.svg|8px|link=]]' .. (after and (' <sub>' .. after .. '</sub>') or "")
local html = '<div style="position:relative;">[[Coadan:' .. file .. '|' .. width .. '|link=|Soiaghey ' .. genitive .. ']]<div style="position:absolute; left:' .. left .. '; top:' .. top .. ';">' .. dot .. '</div></div>'
html = html .. captionDiv(resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey_bunneydagh" .. suffix, "fo-heidyl_caslys-çheerey" }), genitive))
table.insert(rows, mapRow(html))
end
end
return rows
end
-- Dot map through {{sar-hoiaghey}}.
local function buildDotMap(frame, args)
local file = getManual(args, { "jalloo_caslys-çheerey_ponk" })
if not file or isNone(file) then return nil end
local name = getManual(args, { "ennym_oikoil", "ennym" }) or mw.title.getCurrentTitle().text
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_ponk" })) or "180px"
local rendered = frame:expandTemplate{ title = "sar-hoiaghey", args = {
bun = file,
lheead_bun = width,
alt_bun = getManual(args, { "alt_bun_caslys-çheerey_ponk" }) or "",
["fo-heidyl_bun"] = name,
snaue = "Red pog.svg",
lheead_snaue = "6px",
alt_snaue = getManual(args, { "alt_caslys-çheerey_ponk" }) or "",
["fo-heidyl_snaue"] = getManual(args, { "fo-heidyl_caslys-çheerey_ponk" }) or "",
x = getManual(args, { "ponk_x" }) or "",
y = getManual(args, { "ponk_y" }) or "",
} }
return mapRow('<div class="center">' .. rendered .. captionDiv(getManual(args, { "fo-heidyl_caslys-çheerey_ponk" })) .. '</div>')
end
-- Pushpin maps through {{Caslys-çheerey soiaghey}}: base "broo-freeney" plus "1".
local function buildPushpinMaps(frame, args)
local rows = {}
local manual = getManual(args, { "latd" })
local name = getManual(args, { "ennym", "ennym_oikoil" }) or getManual(args, { "ennym_gienneydagh" }) or mw.title.getCurrentTitle().text
local usesDms = getManual(args, { "latm" }) or getManual(args, { "latNS" })
local usesLongDms = getManual(args, { "longm" }) or getManual(args, { "longEW" })
for _, suffix in ipairs({ "", "1" }) do
local map = getManual(args, { "caslys-çheerey_broo-freeney" .. suffix })
if map and not isNone(map) then
local labelSwitch = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix })
local label = ""
if not (labelSwitch and labelSwitch:lower() == "none") then
label = getManual(args, { "lipaid_broo-freeney" .. suffix }) or name
end
local rendered = frame:expandTemplate{ title = "Caslys-çheerey soiaghey", args = {
map,
label = label,
alt = getManual(args, { "alt_caslys-çheerey_broo-freeney" .. suffix }) or "",
lat = (not usesDms) and (getManual(args, { "latd" }) or "") or "",
long = (not usesLongDms) and (getManual(args, { "longd" }) or "") or "",
lat_deg = usesDms and (getManual(args, { "latd" }) or "") or "",
lat_min = usesDms and (getManual(args, { "latm" }) or "") or "",
lat_sec = usesDms and (getManual(args, { "lats" }) or "") or "",
lat_dir = getManual(args, { "latNS" }) or "",
lon_deg = usesLongDms and (getManual(args, { "longd" }) or "") or "",
lon_min = usesLongDms and (getManual(args, { "longm" }) or "") or "",
lon_sec = usesLongDms and (getManual(args, { "longs" }) or "") or "",
lon_dir = getManual(args, { "longEW" }) or "",
marksize = "6",
float = "none",
caption = "",
border = "none",
position = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix }) or "",
width = getManual(args, { "mooadys_caslys-çheerey_broo-freeney" .. suffix }) or "250",
AlternativeMap = getManual(args, { "jalloo_broo-freeney" .. suffix }) or "",
} }
local caption = getManual(args, { "fo-heidyl_caslys-çheerey_broo-freeney" .. suffix, "fo-heidyl_caslys-çheerey" })
table.insert(rows, mapRow('<div class="center">' .. rendered .. captionDiv(caption) .. '</div>'))
end
end
return rows
end
-- Country (P17) name for picking the blank location map, e.g. "Mannin".
local function getCountryName(args)
local manual = getManual(args, { "caslys-çheerey_çheer" })
if manual then return manual end
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P17")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid") then
return nil
end
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return sitelink end
return nil
end
-- Blank country map with a red dot via {{Location map}}, when "Module:Location map/data/<country>" exists.
local function buildAutoPushpin(frame, args, lat, lon)
if not lat then return nil end
local country = getCountryName(args)
if not country or isNone(country) then return nil end
local data = mw.title.new("Module:Location map/data/" .. country)
if not (data and data.exists) then return nil end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" }), getGenitiveName(args)) or ""
return frame:expandTemplate{ title = "Location map", args = {
country,
border = "infobox",
float = "center",
width = MAP_WIDTH,
max_width = MAP_WIDTH,
maplink = "",
label = name,
lat = string.format("%.6f", lat),
long = string.format("%.6f", lon),
marksize = "6",
position = getManual(args, { "soiaghey_lipaid" }),
caption = caption,
relief = getManual(args, { "releef_caslys-çheerey" }),
} }
end
-- Wikidata shape sources: OSM relation (P402) or a Commons geoshape page (P3896, "Data:Meath.map").
local function getWdShape()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local osm = entity:getBestStatements("P402")
if osm and #osm > 0 then return { service = "geoshape", id = entity.id } end
local geoshape = entity:getBestStatements("P3896")
local snak = geoshape and geoshape[1] and geoshape[1].mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and type(snak.datavalue.value) == "string" then
local title = snak.datavalue.value:gsub("^Data:", "")
return { service = "page", title = title }
end
return nil
end
-- Item without a point (P625) but with a shape: the shape alone, centred and zoomed by the map itself.
local function buildShapeOnlyMap(frame, shape)
local data = { type = "ExternalData", service = shape.service,
properties = { stroke = "#FF0000", ["stroke-width"] = 2, fill = "#606060", ["fill-opacity"] = 0.1 } }
if shape.service == "geoshape" then data.ids = shape.id else data.title = shape.title end
local ok, rendered = pcall(function()
return frame:extensionTag("mapframe", mw.text.jsonEncode(data), { width = MAP_WIDTH, height = "250", align = "center" })
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Interactive map from the coordinates (manual decimal equivalent, else Wikidata P625); the shape alone when there is no point.
local function buildMapframe(frame, args, manualCoords)
-- Wikidata P625 only: passing coordinates makes Module:Mapframe error on gv.wiki.
local shape = getWdShape()
-- Manual coordinates cannot go to Module:Infobox mapframe, but an outline needs no point.
if manualCoords ~= nil then return shape and buildShapeOnlyMap(frame, shape) or nil end
if not getWdCoordinates() then
if shape then return buildShapeOnlyMap(frame, shape) end
return nil
end
-- An item with a shape (a county, say) is fitted by the map itself; a plain point gets a fixed zoom.
local zoom = getManual(args, { "zoom_caslys-çheerey", "mapframe-zoom" }) or (not shape and "12" or nil)
local callArgs = { "Infobox mapframe", "autoWithCaption",
onByDefault = "yes",
["mapframe-marker-color"] = "d33",
["mapframe-frame-width"] = MAP_WIDTH,
["mapframe-zoom"] = zoom,
}
local ok, rendered = pcall(function()
return frame:callParserFunction{ name = "#invoke", args = callArgs }
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Blank map first; the interactive map sits in a collapsed block opened by a toggle link.
local function buildSwitcher(frame, args, first, second)
local expand = getManual(args, { "lipaid_caslys2" }) or "Eddyr-obbragh"
local collapse = getManual(args, { "lipaid_caslys_follaghey" }) or "follee"
return first .. '<div class="mw-collapsible mw-collapsed" data-expandtext="' .. expand ..
'" data-collapsetext="' .. collapse .. '" style="text-align:center; margin-top:0.3em;">' ..
'<div style="text-align:center; padding-top:1.6em; clear:both;">' .. second .. '</div></div>'
end
----------------------------------------------------------------------
-- Coordinates row
----------------------------------------------------------------------
local function buildCoordinatesRow(frame, args, manualCoords)
local coordText, fromWd
if manualCoords == "suppress" then
return nil
elseif type(manualCoords) == "table" then
coordText = expandCoord(frame, args, manualCoords)
else
local lat, lon = getWdCoordinates()
if not lat then return nil end
coordText = expandCoord(frame, args, { lat = { lat }, long = { lon } })
fromWd = true
end
local label = "Co-ordnaidyn"
local qualifier = getManual(args, { "mair_coor" })
if qualifier then label = label .. " (" .. qualifier .. ")" end
local value = coordText
if fromWd then
value = value .. getWdReference("P625")
else
local ref = getManual(args, { "imraa_coordnaidyn" })
if ref then value = value .. wrapReference(ref) end
end
local note = getManual(args, { "fo-noteyn_coordnaidyn" })
if note then value = value .. note end
return '<tr class="mergedbottomrow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">' .. label .. ': ' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local genitive = getGenitiveName(args)
local manualCoords = getManualCoordinates(args)
local rows = {}
local manualMapCount = 0
local function addAll(list)
for _, row in ipairs(list) do
table.insert(rows, row)
manualMapCount = manualMapCount + 1
end
end
addAll(buildStaticMaps(args, genitive))
addAll(buildOverlayMaps(args, genitive))
local dot = buildDotMap(frame, args)
if dot then addAll({ dot }) end
addAll(buildPushpinMaps(frame, args))
local frameSetting = (getManual(args, { "mapframe" }) or ""):lower()
local wantMapframe = frameSetting == "yes"
local suppressMapframe = frameSetting == "no" or frameSetting == "none"
-- No manual map: blank country map with a dot, else an interactive map, else the P242 locator image.
if manualMapCount == 0 then
local lat, lon
if type(manualCoords) == "table" and manualCoords.decimal then
lat, lon = manualCoords.decimal[1], manualCoords.decimal[2]
elseif manualCoords == nil then
lat, lon = getWdCoordinates()
end
local pushpin = buildAutoPushpin(frame, args, lat, lon)
if pushpin then
local interactive = (not suppressMapframe) and buildMapframe(frame, args, manualCoords) or nil
if interactive then
table.insert(rows, mapRow(buildSwitcher(frame, args, pushpin, interactive)))
else
table.insert(rows, mapRow(pushpin))
end
elseif lat then
wantMapframe = true
else
local file = getWdFile("P242")
if file then
local locator = '[[Coadan:' .. file .. '|' .. MAP_WIDTH .. 'px|none|link=|Soiaghey ' .. genitive .. ']]'
local interactive = (not suppressMapframe) and buildMapframe(frame, args, manualCoords) or nil
if interactive then
table.insert(rows, mapRow(buildSwitcher(frame, args, locator, interactive)))
else
table.insert(rows, mapRow(locator))
end
elseif getWdShape() then
wantMapframe = true
end
end
end
if wantMapframe and not suppressMapframe then
local mapframe = buildMapframe(frame, args, manualCoords)
if mapframe then table.insert(rows, mapRow(mapframe)) end
end
local coordRow = buildCoordinatesRow(frame, args, manualCoords)
if coordRow then table.insert(rows, coordRow) end
local extra = getManual(args, { "coord_a" })
if extra and not isNone(extra) then
table.insert(rows, '<tr class="mergedtoprow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">Co-ordnaidyn: ' .. extra .. '</td></tr>')
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
embkpgzugq1yfsi8jm3nugfpllqinoa
395330
395328
2026-10-26T14:29:50Z
MacTire02
219
++
395330
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAP_WIDTH = "300"
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function normaliseSize(size)
if size and size:match("^%d+$") then return size .. "px" end
return size
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function getGenitiveName(args)
local manual = getManual(args, { "ennym_gienneydagh", "ennym_oikoil_gienneydagh" })
if manual then return manual end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local ok, Enmyn = pcall(require, "Module:Enmyn çheerey")
if ok and Enmyn and Enmyn.genitive then
local okGen, genitive = pcall(Enmyn.genitive, name)
if okGen and genitive and genitive ~= "" then return genitive end
end
return name
end
local function getWdFile(property)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
local file = snak.datavalue.value
if file and file ~= "" then return file end
end
end
return nil
end
-- Best-rank P625 as latitude, longitude numbers.
local function getWdCoordinates()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P625")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "globecoordinate") then
return nil
end
local value = snak.datavalue.value
if value.latitude and value.longitude then return value.latitude, value.longitude end
return nil
end
----------------------------------------------------------------------
-- Manual coordinates (old template's latd/latm/lats/latNS/longd/... shape)
----------------------------------------------------------------------
local function dmsParts(deg, min, sec, dir)
local parts = { deg }
if min then table.insert(parts, min) end
if sec then table.insert(parts, sec) end
if dir then table.insert(parts, dir) end
return parts
end
-- Returns "suppress", or { lat = parts, long = parts, decimal = {lat, long}|nil }, or nil.
local function getManualCoordinates(args)
local latd = getManual(args, { "latd" })
if not latd then return nil end
if isNone(latd) then return "suppress" end
local longd = getManual(args, { "longd" })
if not longd then return nil end
local latm, lats, latNS = getManual(args, { "latm" }), getManual(args, { "lats" }), getManual(args, { "latNS" })
local longm, longs, longEW = getManual(args, { "longm" }), getManual(args, { "longs" }), getManual(args, { "longEW" })
local isDms = latm or latNS or longm or longEW
local result = {
lat = isDms and dmsParts(latd, latm, lats, latNS) or { latd },
long = isDms and dmsParts(longd, longm, longs, longEW) or { longd },
}
if not isDms then
local la, lo = tonumber(latd), tonumber(longd)
if la and lo then result.decimal = { la, lo } end
else
-- Decimal equivalent for the interactive map.
local function toDecimal(d, m, s, dir)
local value = tonumber(d)
if not value then return nil end
value = value + (tonumber(m) or 0) / 60 + (tonumber(s) or 0) / 3600
if dir == "S" or dir == "W" then value = -value end
return value
end
local la, lo = toDecimal(latd, latm, lats, latNS), toDecimal(longd, longm, longs, longEW)
if la and lo then result.decimal = { la, lo } end
end
return result
end
local function coordType(args)
local custom = getManual(args, { "sorçh_coor" })
if custom then return custom end
local text = "type:city"
local population = getManual(args, { "slane_earroo_yn_phobble" })
local number = population and tonumber((population:gsub("[,%s]", "")))
if number and number > 0 then text = text .. "(" .. string.format("%d", number) .. ")" end
local region = getManual(args, { "ard_coordnaidyn" })
if region then text = text .. "_region:" .. region end
return text
end
local function expandCoord(frame, args, coords)
local callArgs = {}
for _, v in ipairs(coords.lat) do table.insert(callArgs, v) end
for _, v in ipairs(coords.long) do table.insert(callArgs, v) end
table.insert(callArgs, coordType(args))
callArgs.display = "inline"
local format = getManual(args, { "cummey_coordnaidyn" })
callArgs.format = format or "dms"
return frame:expandTemplate{ title = "coord", args = callArgs }
end
----------------------------------------------------------------------
-- Map rows
----------------------------------------------------------------------
local function mapRow(inner)
return '<tr><td colspan="2" style="text-align:center; padding:0.2em 0.4em;"><div style="display:flex; flex-direction:column; align-items:center;">' .. inner .. '</div></td></tr>'
end
local function captionDiv(caption)
if not caption or caption == "" then return "" end
return '<div style="padding-top:2pt;">' .. caption .. '</div>'
end
-- Caption: manual text, "none" to hide, else "Soiaghey <genitive>".
local function resolveCaption(manual, genitive)
if manual and isNone(manual) then return nil end
return manual or ("Soiaghey " .. genitive)
end
-- Static locator maps: base "jalloo_caslys-çheerey" plus "1".
local function buildStaticMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "1" }) do
local file = getManual(args, { "jalloo_caslys-çheerey" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey" .. suffix })) or (MAP_WIDTH .. "px")
local alt = getManual(args, { "alt_caslys-çheerey" .. suffix }) or ""
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" .. suffix }), genitive)
local tooltip = caption or ("Soiaghey " .. genitive)
table.insert(rows, mapRow('<div style="pointer-events:none;">[[Coadan:' .. file .. '|' .. width .. '|none|link=|alt=' .. alt .. '|' .. tooltip .. ']]</div>' .. captionDiv(caption)))
end
end
return rows
end
-- Basic map with a red dot placed by clee/baare offsets: "" and "2".
local function buildOverlayMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "2" }) do
local file = getManual(args, { "jalloo_caslys-çheerey_bunneydagh" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_bunneydagh" .. suffix })) or "240px"
local left = getManual(args, { "clee" .. suffix }) or "0"
local top = getManual(args, { "baare" .. suffix }) or "0"
local before = getManual(args, { "ennym_er_caslys" })
local after = getManual(args, { "ennym_caslys_jesh" })
local dot = (before and ('<sub>' .. before .. '</sub>') or "") .. ' [[Coadan:Red pog.svg|8px|link=]]' .. (after and (' <sub>' .. after .. '</sub>') or "")
local html = '<div style="position:relative;">[[Coadan:' .. file .. '|' .. width .. '|link=|Soiaghey ' .. genitive .. ']]<div style="position:absolute; left:' .. left .. '; top:' .. top .. ';">' .. dot .. '</div></div>'
html = html .. captionDiv(resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey_bunneydagh" .. suffix, "fo-heidyl_caslys-çheerey" }), genitive))
table.insert(rows, mapRow(html))
end
end
return rows
end
-- Dot map through {{sar-hoiaghey}}.
local function buildDotMap(frame, args)
local file = getManual(args, { "jalloo_caslys-çheerey_ponk" })
if not file or isNone(file) then return nil end
local name = getManual(args, { "ennym_oikoil", "ennym" }) or mw.title.getCurrentTitle().text
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_ponk" })) or "180px"
local rendered = frame:expandTemplate{ title = "sar-hoiaghey", args = {
bun = file,
lheead_bun = width,
alt_bun = getManual(args, { "alt_bun_caslys-çheerey_ponk" }) or "",
["fo-heidyl_bun"] = name,
snaue = "Red pog.svg",
lheead_snaue = "6px",
alt_snaue = getManual(args, { "alt_caslys-çheerey_ponk" }) or "",
["fo-heidyl_snaue"] = getManual(args, { "fo-heidyl_caslys-çheerey_ponk" }) or "",
x = getManual(args, { "ponk_x" }) or "",
y = getManual(args, { "ponk_y" }) or "",
} }
return mapRow('<div class="center">' .. rendered .. captionDiv(getManual(args, { "fo-heidyl_caslys-çheerey_ponk" })) .. '</div>')
end
-- Pushpin maps through {{Caslys-çheerey soiaghey}}: base "broo-freeney" plus "1".
local function buildPushpinMaps(frame, args)
local rows = {}
local manual = getManual(args, { "latd" })
local name = getManual(args, { "ennym", "ennym_oikoil" }) or getManual(args, { "ennym_gienneydagh" }) or mw.title.getCurrentTitle().text
local usesDms = getManual(args, { "latm" }) or getManual(args, { "latNS" })
local usesLongDms = getManual(args, { "longm" }) or getManual(args, { "longEW" })
for _, suffix in ipairs({ "", "1" }) do
local map = getManual(args, { "caslys-çheerey_broo-freeney" .. suffix })
if map and not isNone(map) then
local labelSwitch = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix })
local label = ""
if not (labelSwitch and labelSwitch:lower() == "none") then
label = getManual(args, { "lipaid_broo-freeney" .. suffix }) or name
end
local rendered = frame:expandTemplate{ title = "Caslys-çheerey soiaghey", args = {
map,
label = label,
alt = getManual(args, { "alt_caslys-çheerey_broo-freeney" .. suffix }) or "",
lat = (not usesDms) and (getManual(args, { "latd" }) or "") or "",
long = (not usesLongDms) and (getManual(args, { "longd" }) or "") or "",
lat_deg = usesDms and (getManual(args, { "latd" }) or "") or "",
lat_min = usesDms and (getManual(args, { "latm" }) or "") or "",
lat_sec = usesDms and (getManual(args, { "lats" }) or "") or "",
lat_dir = getManual(args, { "latNS" }) or "",
lon_deg = usesLongDms and (getManual(args, { "longd" }) or "") or "",
lon_min = usesLongDms and (getManual(args, { "longm" }) or "") or "",
lon_sec = usesLongDms and (getManual(args, { "longs" }) or "") or "",
lon_dir = getManual(args, { "longEW" }) or "",
marksize = "6",
float = "none",
caption = "",
border = "none",
position = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix }) or "",
width = getManual(args, { "mooadys_caslys-çheerey_broo-freeney" .. suffix }) or "250",
AlternativeMap = getManual(args, { "jalloo_broo-freeney" .. suffix }) or "",
} }
local caption = getManual(args, { "fo-heidyl_caslys-çheerey_broo-freeney" .. suffix, "fo-heidyl_caslys-çheerey" })
table.insert(rows, mapRow('<div class="center">' .. rendered .. captionDiv(caption) .. '</div>'))
end
end
return rows
end
-- Country (P17) name for picking the blank location map, e.g. "Mannin".
local function getCountryName(args)
local manual = getManual(args, { "caslys-çheerey_çheer" })
if manual then return manual end
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P17")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid") then
return nil
end
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return sitelink end
return nil
end
-- Blank country map with a red dot via {{Location map}}, when "Module:Location map/data/<country>" exists.
local function buildAutoPushpin(frame, args, lat, lon)
if not lat then return nil end
local country = getCountryName(args)
if not country or isNone(country) then return nil end
local data = mw.title.new("Module:Location map/data/" .. country)
if not (data and data.exists) then return nil end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" }), getGenitiveName(args)) or ""
return frame:expandTemplate{ title = "Location map", args = {
country,
border = "infobox",
float = "center",
width = MAP_WIDTH,
max_width = MAP_WIDTH,
maplink = "",
label = name,
lat = string.format("%.6f", lat),
long = string.format("%.6f", lon),
marksize = "6",
position = getManual(args, { "soiaghey_lipaid" }),
caption = caption,
relief = getManual(args, { "releef_caslys-çheerey" }),
} }
end
-- Wikidata shape sources: OSM relation (P402) or a Commons geoshape page (P3896, "Data:Meath.map").
local function getWdShape()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local osm = entity:getBestStatements("P402")
if osm and #osm > 0 then return { service = "geoshape", id = entity.id } end
local geoshape = entity:getBestStatements("P3896")
local snak = geoshape and geoshape[1] and geoshape[1].mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and type(snak.datavalue.value) == "string" then
local title = snak.datavalue.value:gsub("^Data:", "")
return { service = "page", title = title }
end
return nil
end
-- Item without a point (P625) but with a shape: the shape alone, centred and zoomed by the map itself.
local function buildShapeOnlyMap(frame, shape)
local data = { type = "ExternalData", service = shape.service,
properties = { stroke = "#FF0000", ["stroke-width"] = 2, fill = "#606060", ["fill-opacity"] = 0.1 } }
if shape.service == "geoshape" then data.ids = shape.id else data.title = shape.title end
local ok, rendered = pcall(function()
return frame:extensionTag("mapframe", mw.text.jsonEncode(data), { width = MAP_WIDTH, height = "250", align = "center" })
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Interactive map from the coordinates (manual decimal equivalent, else Wikidata P625); the shape alone when there is no point.
local function buildMapframe(frame, args, manualCoords)
-- Wikidata P625 only: passing coordinates makes Module:Mapframe error on gv.wiki.
local shape = getWdShape()
-- Manual coordinates cannot go to Module:Infobox mapframe, but an outline needs no point.
if manualCoords ~= nil then return shape and buildShapeOnlyMap(frame, shape) or nil end
if not getWdCoordinates() then
if shape then return buildShapeOnlyMap(frame, shape) end
return nil
end
-- An item with a shape (a county, say) is fitted by the map itself; a plain point gets a fixed zoom.
local zoom = getManual(args, { "zoom_caslys-çheerey", "mapframe-zoom" }) or (not shape and "12" or nil)
local callArgs = { "Infobox mapframe", "autoWithCaption",
onByDefault = "yes",
["mapframe-marker-color"] = "d33",
["mapframe-frame-width"] = MAP_WIDTH,
["mapframe-zoom"] = zoom,
}
local ok, rendered = pcall(function()
return frame:callParserFunction{ name = "#invoke", args = callArgs }
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Blank map first; the interactive map sits in a collapsed block opened by a toggle link.
local function buildSwitcher(frame, args, first, second)
local expand = getManual(args, { "lipaid_caslys2" }) or "Eddyr-obbragh"
local collapse = getManual(args, { "lipaid_caslys_follaghey" }) or "follee"
return first .. '<div class="mw-collapsible mw-collapsed" data-expandtext="' .. expand ..
'" data-collapsetext="' .. collapse .. '" style="text-align:center; margin-top:0.3em;">' ..
'<div style="text-align:center; padding-top:1.6em; clear:both;">' .. second .. '</div></div>'
end
----------------------------------------------------------------------
-- Coordinates row
----------------------------------------------------------------------
local function buildCoordinatesRow(frame, args, manualCoords)
local coordText, fromWd
if manualCoords == "suppress" then
return nil
elseif type(manualCoords) == "table" then
coordText = expandCoord(frame, args, manualCoords)
else
local lat, lon = getWdCoordinates()
if not lat then return nil end
coordText = expandCoord(frame, args, { lat = { lat }, long = { lon } })
fromWd = true
end
local label = "Co-ordnaidyn"
local qualifier = getManual(args, { "mair_coor" })
if qualifier then label = label .. " (" .. qualifier .. ")" end
local value = coordText
if fromWd then
value = value .. getWdReference("P625")
else
local ref = getManual(args, { "imraa_coordnaidyn" })
if ref then value = value .. wrapReference(ref) end
end
local note = getManual(args, { "fo-noteyn_coordnaidyn" })
if note then value = value .. note end
return '<tr class="mergedbottomrow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">' .. label .. ': ' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local genitive = getGenitiveName(args)
local manualCoords = getManualCoordinates(args)
local rows = {}
local manualMapCount = 0
local function addAll(list)
for _, row in ipairs(list) do
table.insert(rows, row)
manualMapCount = manualMapCount + 1
end
end
addAll(buildStaticMaps(args, genitive))
addAll(buildOverlayMaps(args, genitive))
local dot = buildDotMap(frame, args)
if dot then addAll({ dot }) end
addAll(buildPushpinMaps(frame, args))
local frameSetting = (getManual(args, { "mapframe" }) or ""):lower()
local wantMapframe = frameSetting == "yes"
local suppressMapframe = frameSetting == "no" or frameSetting == "none"
-- No manual map: blank country map with a dot, else an interactive map, else the P242 locator image.
if manualMapCount == 0 then
local lat, lon
if type(manualCoords) == "table" and manualCoords.decimal then
lat, lon = manualCoords.decimal[1], manualCoords.decimal[2]
elseif manualCoords == nil then
lat, lon = getWdCoordinates()
end
local pushpin = buildAutoPushpin(frame, args, lat, lon)
if pushpin then
local interactive = (not suppressMapframe) and buildMapframe(frame, args, manualCoords) or nil
if interactive then
table.insert(rows, mapRow(buildSwitcher(frame, args, pushpin, interactive)))
else
table.insert(rows, mapRow(pushpin))
end
elseif lat then
wantMapframe = true
else
local file = getWdFile("P242")
if file then
local locator = '[[Coadan:' .. file .. '|' .. MAP_WIDTH .. 'px|none|link=|Soiaghey ' .. genitive .. ']]'
local interactive = (not suppressMapframe) and buildMapframe(frame, args, manualCoords) or nil
if interactive then
table.insert(rows, mapRow(buildSwitcher(frame, args, locator, interactive)))
else
table.insert(rows, mapRow(locator))
end
elseif getWdShape() then
wantMapframe = true
end
end
end
if wantMapframe and not suppressMapframe then
local mapframe = buildMapframe(frame, args, manualCoords)
if mapframe then table.insert(rows, mapRow(mapframe)) end
elseif manualMapCount > 0 and not suppressMapframe and getWdShape() then
-- Manual maps stay as given; the item's outline is offered behind a toggle under them.
local mapframe = buildMapframe(frame, args, manualCoords)
if mapframe then table.insert(rows, mapRow(buildSwitcher(frame, args, "", mapframe))) end
end
local coordRow = buildCoordinatesRow(frame, args, manualCoords)
if coordRow then table.insert(rows, coordRow) end
local extra = getManual(args, { "coord_a" })
if extra and not isNone(extra) then
table.insert(rows, '<tr class="mergedtoprow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">Co-ordnaidyn: ' .. extra .. '</td></tr>')
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
0rclyqz7tluyaou8btawstv2rkrfhcb
395331
395330
2026-10-26T14:37:06Z
MacTire02
219
++
395331
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAP_WIDTH = "300"
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function normaliseSize(size)
if size and size:match("^%d+$") then return size .. "px" end
return size
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function getGenitiveName(args)
local manual = getManual(args, { "ennym_gienneydagh", "ennym_oikoil_gienneydagh" })
if manual then return manual end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local ok, Enmyn = pcall(require, "Module:Enmyn çheerey")
if ok and Enmyn and Enmyn.genitive then
local okGen, genitive = pcall(Enmyn.genitive, name)
if okGen and genitive and genitive ~= "" then return genitive end
end
return name
end
local function getWdFile(property)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
local file = snak.datavalue.value
if file and file ~= "" then return file end
end
end
return nil
end
-- Best-rank P625 as latitude, longitude numbers.
local function getWdCoordinates()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P625")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "globecoordinate") then
return nil
end
local value = snak.datavalue.value
if value.latitude and value.longitude then return value.latitude, value.longitude end
return nil
end
----------------------------------------------------------------------
-- Manual coordinates (old template's latd/latm/lats/latNS/longd/... shape)
----------------------------------------------------------------------
local function dmsParts(deg, min, sec, dir)
local parts = { deg }
if min then table.insert(parts, min) end
if sec then table.insert(parts, sec) end
if dir then table.insert(parts, dir) end
return parts
end
-- Returns "suppress", or { lat = parts, long = parts, decimal = {lat, long}|nil }, or nil.
local function getManualCoordinates(args)
-- coord=none hides the coordinates; latd=none is the legacy way.
if isNone(getManual(args, { "coord" })) then return "suppress" end
local latd = getManual(args, { "latd" })
if not latd then return nil end
if isNone(latd) then return "suppress" end
local longd = getManual(args, { "longd" })
if not longd then return nil end
local latm, lats, latNS = getManual(args, { "latm" }), getManual(args, { "lats" }), getManual(args, { "latNS" })
local longm, longs, longEW = getManual(args, { "longm" }), getManual(args, { "longs" }), getManual(args, { "longEW" })
local isDms = latm or latNS or longm or longEW
local result = {
lat = isDms and dmsParts(latd, latm, lats, latNS) or { latd },
long = isDms and dmsParts(longd, longm, longs, longEW) or { longd },
}
if not isDms then
local la, lo = tonumber(latd), tonumber(longd)
if la and lo then result.decimal = { la, lo } end
else
-- Decimal equivalent for the interactive map.
local function toDecimal(d, m, s, dir)
local value = tonumber(d)
if not value then return nil end
value = value + (tonumber(m) or 0) / 60 + (tonumber(s) or 0) / 3600
if dir == "S" or dir == "W" then value = -value end
return value
end
local la, lo = toDecimal(latd, latm, lats, latNS), toDecimal(longd, longm, longs, longEW)
if la and lo then result.decimal = { la, lo } end
end
return result
end
local function coordType(args)
local custom = getManual(args, { "sorçh_coor" })
if custom then return custom end
local text = "type:city"
local population = getManual(args, { "slane_earroo_yn_phobble" })
local number = population and tonumber((population:gsub("[,%s]", "")))
if number and number > 0 then text = text .. "(" .. string.format("%d", number) .. ")" end
local region = getManual(args, { "ard_coordnaidyn" })
if region then text = text .. "_region:" .. region end
return text
end
local function expandCoord(frame, args, coords)
local callArgs = {}
for _, v in ipairs(coords.lat) do table.insert(callArgs, v) end
for _, v in ipairs(coords.long) do table.insert(callArgs, v) end
table.insert(callArgs, coordType(args))
callArgs.display = "inline,title"
local format = getManual(args, { "cummey_coordnaidyn" })
callArgs.format = format or "dms"
return frame:expandTemplate{ title = "coord", args = callArgs }
end
----------------------------------------------------------------------
-- Map rows
----------------------------------------------------------------------
local function mapRow(inner)
return '<tr><td colspan="2" style="text-align:center; padding:0.2em 0.4em;"><div style="display:flex; flex-direction:column; align-items:center;">' .. inner .. '</div></td></tr>'
end
local function captionDiv(caption)
if not caption or caption == "" then return "" end
return '<div style="padding-top:2pt;">' .. caption .. '</div>'
end
-- Caption: manual text, "none" to hide, else "Soiaghey <genitive>".
local function resolveCaption(manual, genitive)
if manual and isNone(manual) then return nil end
return manual or ("Soiaghey " .. genitive)
end
-- Static locator maps: base "jalloo_caslys-çheerey" plus "1".
local function buildStaticMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "1" }) do
local file = getManual(args, { "jalloo_caslys-çheerey" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey" .. suffix })) or (MAP_WIDTH .. "px")
local alt = getManual(args, { "alt_caslys-çheerey" .. suffix }) or ""
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" .. suffix }), genitive)
local tooltip = caption or ("Soiaghey " .. genitive)
table.insert(rows, mapRow('<div style="pointer-events:none;">[[Coadan:' .. file .. '|' .. width .. '|none|link=|alt=' .. alt .. '|' .. tooltip .. ']]</div>' .. captionDiv(caption)))
end
end
return rows
end
-- Basic map with a red dot placed by clee/baare offsets: "" and "2".
local function buildOverlayMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "2" }) do
local file = getManual(args, { "jalloo_caslys-çheerey_bunneydagh" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_bunneydagh" .. suffix })) or "240px"
local left = getManual(args, { "clee" .. suffix }) or "0"
local top = getManual(args, { "baare" .. suffix }) or "0"
local before = getManual(args, { "ennym_er_caslys" })
local after = getManual(args, { "ennym_caslys_jesh" })
local dot = (before and ('<sub>' .. before .. '</sub>') or "") .. ' [[Coadan:Red pog.svg|8px|link=]]' .. (after and (' <sub>' .. after .. '</sub>') or "")
local html = '<div style="position:relative;">[[Coadan:' .. file .. '|' .. width .. '|link=|Soiaghey ' .. genitive .. ']]<div style="position:absolute; left:' .. left .. '; top:' .. top .. ';">' .. dot .. '</div></div>'
html = html .. captionDiv(resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey_bunneydagh" .. suffix, "fo-heidyl_caslys-çheerey" }), genitive))
table.insert(rows, mapRow(html))
end
end
return rows
end
-- Dot map through {{sar-hoiaghey}}.
local function buildDotMap(frame, args)
local file = getManual(args, { "jalloo_caslys-çheerey_ponk" })
if not file or isNone(file) then return nil end
local name = getManual(args, { "ennym_oikoil", "ennym" }) or mw.title.getCurrentTitle().text
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_ponk" })) or "180px"
local rendered = frame:expandTemplate{ title = "sar-hoiaghey", args = {
bun = file,
lheead_bun = width,
alt_bun = getManual(args, { "alt_bun_caslys-çheerey_ponk" }) or "",
["fo-heidyl_bun"] = name,
snaue = "Red pog.svg",
lheead_snaue = "6px",
alt_snaue = getManual(args, { "alt_caslys-çheerey_ponk" }) or "",
["fo-heidyl_snaue"] = getManual(args, { "fo-heidyl_caslys-çheerey_ponk" }) or "",
x = getManual(args, { "ponk_x" }) or "",
y = getManual(args, { "ponk_y" }) or "",
} }
return mapRow('<div class="center">' .. rendered .. captionDiv(getManual(args, { "fo-heidyl_caslys-çheerey_ponk" })) .. '</div>')
end
-- Pushpin maps through {{Caslys-çheerey soiaghey}}: base "broo-freeney" plus "1".
local function buildPushpinMaps(frame, args)
local rows = {}
local manual = getManual(args, { "latd" })
local name = getManual(args, { "ennym", "ennym_oikoil" }) or getManual(args, { "ennym_gienneydagh" }) or mw.title.getCurrentTitle().text
local usesDms = getManual(args, { "latm" }) or getManual(args, { "latNS" })
local usesLongDms = getManual(args, { "longm" }) or getManual(args, { "longEW" })
for _, suffix in ipairs({ "", "1" }) do
local map = getManual(args, { "caslys-çheerey_broo-freeney" .. suffix })
if map and not isNone(map) then
local labelSwitch = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix })
local label = ""
if not (labelSwitch and labelSwitch:lower() == "none") then
label = getManual(args, { "lipaid_broo-freeney" .. suffix }) or name
end
local rendered = frame:expandTemplate{ title = "Caslys-çheerey soiaghey", args = {
map,
label = label,
alt = getManual(args, { "alt_caslys-çheerey_broo-freeney" .. suffix }) or "",
lat = (not usesDms) and (getManual(args, { "latd" }) or "") or "",
long = (not usesLongDms) and (getManual(args, { "longd" }) or "") or "",
lat_deg = usesDms and (getManual(args, { "latd" }) or "") or "",
lat_min = usesDms and (getManual(args, { "latm" }) or "") or "",
lat_sec = usesDms and (getManual(args, { "lats" }) or "") or "",
lat_dir = getManual(args, { "latNS" }) or "",
lon_deg = usesLongDms and (getManual(args, { "longd" }) or "") or "",
lon_min = usesLongDms and (getManual(args, { "longm" }) or "") or "",
lon_sec = usesLongDms and (getManual(args, { "longs" }) or "") or "",
lon_dir = getManual(args, { "longEW" }) or "",
marksize = "6",
float = "none",
caption = "",
border = "none",
position = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix }) or "",
width = getManual(args, { "mooadys_caslys-çheerey_broo-freeney" .. suffix }) or "250",
AlternativeMap = getManual(args, { "jalloo_broo-freeney" .. suffix }) or "",
} }
local caption = getManual(args, { "fo-heidyl_caslys-çheerey_broo-freeney" .. suffix, "fo-heidyl_caslys-çheerey" })
table.insert(rows, mapRow('<div class="center">' .. rendered .. captionDiv(caption) .. '</div>'))
end
end
return rows
end
-- Country (P17) name for picking the blank location map, e.g. "Mannin".
local function getCountryName(args)
local manual = getManual(args, { "caslys-çheerey_çheer" })
if manual then return manual end
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P17")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid") then
return nil
end
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return sitelink end
return nil
end
-- Blank country map with a red dot via {{Location map}}, when "Module:Location map/data/<country>" exists.
local function buildAutoPushpin(frame, args, lat, lon)
if not lat then return nil end
local country = getCountryName(args)
if not country or isNone(country) then return nil end
local data = mw.title.new("Module:Location map/data/" .. country)
if not (data and data.exists) then return nil end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" }), getGenitiveName(args)) or ""
return frame:expandTemplate{ title = "Location map", args = {
country,
border = "infobox",
float = "center",
width = MAP_WIDTH,
max_width = MAP_WIDTH,
maplink = "",
label = name,
lat = string.format("%.6f", lat),
long = string.format("%.6f", lon),
marksize = "6",
position = getManual(args, { "soiaghey_lipaid" }),
caption = caption,
relief = getManual(args, { "releef_caslys-çheerey" }),
} }
end
-- Wikidata shape sources: OSM relation (P402) or a Commons geoshape page (P3896, "Data:Meath.map").
local function getWdShape()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local osm = entity:getBestStatements("P402")
if osm and #osm > 0 then return { service = "geoshape", id = entity.id } end
local geoshape = entity:getBestStatements("P3896")
local snak = geoshape and geoshape[1] and geoshape[1].mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and type(snak.datavalue.value) == "string" then
local title = snak.datavalue.value:gsub("^Data:", "")
return { service = "page", title = title }
end
return nil
end
-- Item without a point (P625) but with a shape: the shape alone, centred and zoomed by the map itself.
local function buildShapeOnlyMap(frame, shape)
local data = { type = "ExternalData", service = shape.service,
properties = { stroke = "#FF0000", ["stroke-width"] = 2, fill = "#606060", ["fill-opacity"] = 0.1 } }
if shape.service == "geoshape" then data.ids = shape.id else data.title = shape.title end
local ok, rendered = pcall(function()
return frame:extensionTag("mapframe", mw.text.jsonEncode(data), { width = MAP_WIDTH, height = "250", align = "center" })
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Interactive map from the coordinates (manual decimal equivalent, else Wikidata P625); the shape alone when there is no point.
local function buildMapframe(frame, args, manualCoords)
-- Wikidata P625 only: passing coordinates makes Module:Mapframe error on gv.wiki.
local shape = getWdShape()
-- Manual coordinates cannot go to Module:Infobox mapframe, but an outline needs no point.
if manualCoords ~= nil then return shape and buildShapeOnlyMap(frame, shape) or nil end
if not getWdCoordinates() then
if shape then return buildShapeOnlyMap(frame, shape) end
return nil
end
-- An item with a shape (a county, say) is fitted by the map itself; a plain point gets a fixed zoom.
local zoom = getManual(args, { "zoom_caslys-çheerey", "mapframe-zoom" }) or (not shape and "12" or nil)
local callArgs = { "Infobox mapframe", "autoWithCaption",
onByDefault = "yes",
["mapframe-marker-color"] = "d33",
["mapframe-frame-width"] = MAP_WIDTH,
["mapframe-zoom"] = zoom,
}
local ok, rendered = pcall(function()
return frame:callParserFunction{ name = "#invoke", args = callArgs }
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Blank map first; the interactive map sits in a collapsed block opened by a toggle link.
local function buildSwitcher(frame, args, first, second)
local expand = getManual(args, { "lipaid_caslys2" }) or "Eddyr-obbragh"
local collapse = getManual(args, { "lipaid_caslys_follaghey" }) or "follee"
return first .. '<div class="mw-collapsible mw-collapsed" data-expandtext="' .. expand ..
'" data-collapsetext="' .. collapse .. '" style="text-align:center; margin-top:0.3em;">' ..
'<div style="text-align:center; padding-top:1.6em; clear:both;">' .. second .. '</div></div>'
end
----------------------------------------------------------------------
-- Coordinates row
----------------------------------------------------------------------
local function buildCoordinatesRow(frame, args, manualCoords)
local coordText, fromWd
if manualCoords == "suppress" then
return nil
elseif type(manualCoords) == "table" then
coordText = expandCoord(frame, args, manualCoords)
else
local lat, lon = getWdCoordinates()
if not lat then return nil end
coordText = expandCoord(frame, args, { lat = { lat }, long = { lon } })
fromWd = true
end
local label = "Co-ordnaidyn"
local qualifier = getManual(args, { "mair_coor" })
if qualifier then label = label .. " (" .. qualifier .. ")" end
local value = coordText
if fromWd then
value = value .. getWdReference("P625")
else
local ref = getManual(args, { "imraa_coordnaidyn" })
if ref then value = value .. wrapReference(ref) end
end
local note = getManual(args, { "fo-noteyn_coordnaidyn" })
if note then value = value .. note end
return '<tr class="mergedbottomrow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">' .. label .. ': ' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local genitive = getGenitiveName(args)
local manualCoords = getManualCoordinates(args)
local rows = {}
local manualMapCount = 0
local function addAll(list)
for _, row in ipairs(list) do
table.insert(rows, row)
manualMapCount = manualMapCount + 1
end
end
addAll(buildStaticMaps(args, genitive))
addAll(buildOverlayMaps(args, genitive))
local dot = buildDotMap(frame, args)
if dot then addAll({ dot }) end
addAll(buildPushpinMaps(frame, args))
local frameSetting = (getManual(args, { "mapframe" }) or ""):lower()
local wantMapframe = frameSetting == "yes"
local suppressMapframe = frameSetting == "no" or frameSetting == "none"
-- No manual map: blank country map with a dot, else an interactive map, else the P242 locator image.
if manualMapCount == 0 then
local lat, lon
if type(manualCoords) == "table" and manualCoords.decimal then
lat, lon = manualCoords.decimal[1], manualCoords.decimal[2]
elseif manualCoords == nil then
lat, lon = getWdCoordinates()
end
local pushpin = buildAutoPushpin(frame, args, lat, lon)
if pushpin then
local interactive = (not suppressMapframe) and buildMapframe(frame, args, manualCoords) or nil
if interactive then
table.insert(rows, mapRow(buildSwitcher(frame, args, pushpin, interactive)))
else
table.insert(rows, mapRow(pushpin))
end
elseif lat then
wantMapframe = true
else
local file = getWdFile("P242")
if file then
local locator = '[[Coadan:' .. file .. '|' .. MAP_WIDTH .. 'px|none|link=|Soiaghey ' .. genitive .. ']]'
local interactive = (not suppressMapframe) and buildMapframe(frame, args, manualCoords) or nil
if interactive then
table.insert(rows, mapRow(buildSwitcher(frame, args, locator, interactive)))
else
table.insert(rows, mapRow(locator))
end
elseif getWdShape() then
wantMapframe = true
end
end
end
if wantMapframe and not suppressMapframe then
local mapframe = buildMapframe(frame, args, manualCoords)
if mapframe then table.insert(rows, mapRow(mapframe)) end
elseif manualMapCount > 0 and not suppressMapframe and getWdShape() then
-- Manual maps stay as given; the item's outline is offered behind a toggle under them.
local mapframe = buildMapframe(frame, args, manualCoords)
if mapframe then table.insert(rows, mapRow(buildSwitcher(frame, args, "", mapframe))) end
end
local coordRow = buildCoordinatesRow(frame, args, manualCoords)
if coordRow then table.insert(rows, coordRow) end
local extra = getManual(args, { "coord_a" })
if extra and not isNone(extra) then
table.insert(rows, '<tr class="mergedtoprow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">Co-ordnaidyn: ' .. extra .. '</td></tr>')
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
8ad33f8q5naea9vid3eqer878yun57z
395386
395331
2026-10-26T23:34:35Z
MacTire02
219
++
395386
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAP_WIDTH = "300"
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function normaliseSize(size)
if size and size:match("^%d+$") then return size .. "px" end
return size
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function getGenitiveName(args)
local manual = getManual(args, { "ennym_gienneydagh", "ennym_oikoil_gienneydagh" })
if manual then return manual end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local ok, Enmyn = pcall(require, "Module:Enmyn çheerey")
if ok and Enmyn and Enmyn.genitive then
local okGen, genitive = pcall(Enmyn.genitive, name)
if okGen and genitive and genitive ~= "" then return genitive end
end
return name
end
local function getWdFile(property)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
local file = snak.datavalue.value
if file and file ~= "" then return file end
end
end
return nil
end
-- Best-rank P625 as latitude, longitude numbers.
local function getWdCoordinates()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P625")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "globecoordinate") then
return nil
end
local value = snak.datavalue.value
if value.latitude and value.longitude then return value.latitude, value.longitude end
return nil
end
----------------------------------------------------------------------
-- Manual coordinates (old template's latd/latm/lats/latNS/longd/... shape)
----------------------------------------------------------------------
local function dmsParts(deg, min, sec, dir)
local parts = { deg }
if min then table.insert(parts, min) end
if sec then table.insert(parts, sec) end
if dir then table.insert(parts, dir) end
return parts
end
-- Returns "suppress", or { lat = parts, long = parts, decimal = {lat, long}|nil }, or nil.
local function getManualCoordinates(args)
-- coord=none hides the coordinates; latd=none is the legacy way.
if isNone(getManual(args, { "coord" })) then return "suppress" end
local latd = getManual(args, { "latd" })
if not latd then return nil end
if isNone(latd) then return "suppress" end
local longd = getManual(args, { "longd" })
if not longd then return nil end
local latm, lats, latNS = getManual(args, { "latm" }), getManual(args, { "lats" }), getManual(args, { "latNS" })
local longm, longs, longEW = getManual(args, { "longm" }), getManual(args, { "longs" }), getManual(args, { "longEW" })
local isDms = latm or latNS or longm or longEW
local result = {
lat = isDms and dmsParts(latd, latm, lats, latNS) or { latd },
long = isDms and dmsParts(longd, longm, longs, longEW) or { longd },
}
if not isDms then
local la, lo = tonumber(latd), tonumber(longd)
if la and lo then result.decimal = { la, lo } end
else
-- Decimal equivalent for the interactive map.
local function toDecimal(d, m, s, dir)
local value = tonumber(d)
if not value then return nil end
value = value + (tonumber(m) or 0) / 60 + (tonumber(s) or 0) / 3600
if dir == "S" or dir == "W" then value = -value end
return value
end
local la, lo = toDecimal(latd, latm, lats, latNS), toDecimal(longd, longm, longs, longEW)
if la and lo then result.decimal = { la, lo } end
end
return result
end
local function coordType(args)
local custom = getManual(args, { "sorçh_coor" })
if custom then return custom end
local text = "type:city"
local population = getManual(args, { "slane_earroo_yn_phobble" })
local number = population and tonumber((population:gsub("[,%s]", "")))
if number and number > 0 then text = text .. "(" .. string.format("%d", number) .. ")" end
local region = getManual(args, { "ard_coordnaidyn" })
if region then text = text .. "_region:" .. region end
return text
end
local function expandCoord(frame, args, coords)
local callArgs = {}
for _, v in ipairs(coords.lat) do table.insert(callArgs, v) end
for _, v in ipairs(coords.long) do table.insert(callArgs, v) end
table.insert(callArgs, coordType(args))
callArgs.display = "inline,title"
local format = getManual(args, { "cummey_coordnaidyn" })
callArgs.format = format or "dms"
return frame:expandTemplate{ title = "coord", args = callArgs }
end
----------------------------------------------------------------------
-- Map rows
----------------------------------------------------------------------
local function mapRow(inner)
return '<tr><td colspan="2" style="text-align:center; padding:0.2em 0.4em;"><div style="display:flex; flex-direction:column; align-items:center;">' .. inner .. '</div></td></tr>'
end
local function captionDiv(caption)
if not caption or caption == "" then return "" end
return '<div style="padding-top:2pt;">' .. caption .. '</div>'
end
-- Caption: manual text, "none" to hide, else "Soiaghey <genitive>".
local function resolveCaption(manual, genitive)
if manual and isNone(manual) then return nil end
return manual or ("Soiaghey " .. genitive)
end
-- Static locator maps: base "jalloo_caslys-çheerey" plus "1".
local function buildStaticMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "1" }) do
local file = getManual(args, { "jalloo_caslys-çheerey" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey" .. suffix })) or (MAP_WIDTH .. "px")
local alt = getManual(args, { "alt_caslys-çheerey" .. suffix }) or ""
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" .. suffix }), genitive)
local tooltip = caption or ("Soiaghey " .. genitive)
table.insert(rows, mapRow('<div style="pointer-events:none;">[[Coadan:' .. file .. '|' .. width .. '|none|link=|alt=' .. alt .. '|' .. tooltip .. ']]</div>' .. captionDiv(caption)))
end
end
return rows
end
-- Basic map with a red dot placed by clee/baare offsets: "" and "2".
local function buildOverlayMaps(args, genitive)
local rows = {}
for _, suffix in ipairs({ "", "2" }) do
local file = getManual(args, { "jalloo_caslys-çheerey_bunneydagh" .. suffix })
if file and not isNone(file) then
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_bunneydagh" .. suffix })) or "240px"
local left = getManual(args, { "clee" .. suffix }) or "0"
local top = getManual(args, { "baare" .. suffix }) or "0"
local before = getManual(args, { "ennym_er_caslys" })
local after = getManual(args, { "ennym_caslys_jesh" })
local dot = (before and ('<sub>' .. before .. '</sub>') or "") .. ' [[Coadan:Red pog.svg|8px|link=]]' .. (after and (' <sub>' .. after .. '</sub>') or "")
local html = '<div style="position:relative;">[[Coadan:' .. file .. '|' .. width .. '|link=|Soiaghey ' .. genitive .. ']]<div style="position:absolute; left:' .. left .. '; top:' .. top .. ';">' .. dot .. '</div></div>'
html = html .. captionDiv(resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey_bunneydagh" .. suffix, "fo-heidyl_caslys-çheerey" }), genitive))
table.insert(rows, mapRow(html))
end
end
return rows
end
-- Dot map through {{sar-hoiaghey}}.
local function buildDotMap(frame, args)
local file = getManual(args, { "jalloo_caslys-çheerey_ponk" })
if not file or isNone(file) then return nil end
local name = getManual(args, { "ennym_oikoil", "ennym" }) or mw.title.getCurrentTitle().text
local width = normaliseSize(getManual(args, { "mooadys_caslys-çheerey_ponk" })) or "180px"
local rendered = frame:expandTemplate{ title = "sar-hoiaghey", args = {
bun = file,
lheead_bun = width,
alt_bun = getManual(args, { "alt_bun_caslys-çheerey_ponk" }) or "",
["fo-heidyl_bun"] = name,
snaue = "Red pog.svg",
lheead_snaue = "6px",
alt_snaue = getManual(args, { "alt_caslys-çheerey_ponk" }) or "",
["fo-heidyl_snaue"] = getManual(args, { "fo-heidyl_caslys-çheerey_ponk" }) or "",
x = getManual(args, { "ponk_x" }) or "",
y = getManual(args, { "ponk_y" }) or "",
} }
return mapRow('<div class="center">' .. rendered .. captionDiv(getManual(args, { "fo-heidyl_caslys-çheerey_ponk" })) .. '</div>')
end
-- Pushpin maps through {{Caslys-çheerey soiaghey}}: base "broo-freeney" plus "1".
local function buildPushpinMaps(frame, args)
local rows = {}
local manual = getManual(args, { "latd" })
local name = getManual(args, { "ennym", "ennym_oikoil" }) or getManual(args, { "ennym_gienneydagh" }) or mw.title.getCurrentTitle().text
local usesDms = getManual(args, { "latm" }) or getManual(args, { "latNS" })
local usesLongDms = getManual(args, { "longm" }) or getManual(args, { "longEW" })
for _, suffix in ipairs({ "", "1" }) do
local map = getManual(args, { "caslys-çheerey_broo-freeney" .. suffix })
if map and not isNone(map) then
local labelSwitch = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix })
local label = ""
if not (labelSwitch and labelSwitch:lower() == "none") then
label = getManual(args, { "lipaid_broo-freeney" .. suffix }) or name
end
local rendered = frame:expandTemplate{ title = "Caslys-çheerey soiaghey", args = {
map,
label = label,
alt = getManual(args, { "alt_caslys-çheerey_broo-freeney" .. suffix }) or "",
lat = (not usesDms) and (getManual(args, { "latd" }) or "") or "",
long = (not usesLongDms) and (getManual(args, { "longd" }) or "") or "",
lat_deg = usesDms and (getManual(args, { "latd" }) or "") or "",
lat_min = usesDms and (getManual(args, { "latm" }) or "") or "",
lat_sec = usesDms and (getManual(args, { "lats" }) or "") or "",
lat_dir = getManual(args, { "latNS" }) or "",
lon_deg = usesLongDms and (getManual(args, { "longd" }) or "") or "",
lon_min = usesLongDms and (getManual(args, { "longm" }) or "") or "",
lon_sec = usesLongDms and (getManual(args, { "longs" }) or "") or "",
lon_dir = getManual(args, { "longEW" }) or "",
marksize = "6",
float = "none",
caption = "",
border = "none",
position = getManual(args, { "soiaghey_lipaid_broo-freeney" .. suffix }) or "",
width = getManual(args, { "mooadys_caslys-çheerey_broo-freeney" .. suffix }) or "250",
AlternativeMap = getManual(args, { "jalloo_broo-freeney" .. suffix }) or "",
} }
local caption = getManual(args, { "fo-heidyl_caslys-çheerey_broo-freeney" .. suffix, "fo-heidyl_caslys-çheerey" })
table.insert(rows, mapRow('<div class="center">' .. rendered .. captionDiv(caption) .. '</div>'))
end
end
return rows
end
-- Country (P17) name for picking the blank location map, e.g. "Mannin".
local function getCountryName(args)
local manual = getManual(args, { "caslys-çheerey_çheer" })
if manual then return manual end
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements("P17")
if not statements or #statements == 0 then return nil end
local snak = statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid") then
return nil
end
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return sitelink end
return nil
end
-- Blank country map with a red dot via {{Location map}}, when "Module:Location map/data/<country>" exists.
local function buildAutoPushpin(frame, args, lat, lon)
if not lat then return nil end
local country = getCountryName(args)
if not country or isNone(country) then return nil end
local data = mw.title.new("Module:Location map/data/" .. country)
if not (data and data.exists) then return nil end
local name = getManual(args, { "ennym", "ennym_oikoil" }) or mw.title.getCurrentTitle().text
local caption = resolveCaption(getManual(args, { "fo-heidyl_caslys-çheerey" }), getGenitiveName(args)) or ""
-- Hover text is the caption alone, as plain text (not "X is located in Y").
local altText = caption:gsub("%[%[[^%]|]*|([^%]]*)%]%]", "%1"):gsub("%[%[([^%]]*)%]%]", "%1"):gsub("<[^>]*>", "")
return frame:expandTemplate{ title = "Location map", args = {
country,
alt = altText ~= "" and altText or nil,
border = "infobox",
float = "center",
width = MAP_WIDTH,
max_width = MAP_WIDTH,
maplink = "",
label = name,
lat = string.format("%.6f", lat),
long = string.format("%.6f", lon),
marksize = "6",
position = getManual(args, { "soiaghey_lipaid" }),
caption = caption,
relief = getManual(args, { "releef_caslys-çheerey" }),
} }
end
-- Wikidata shape sources: OSM relation (P402) or a Commons geoshape page (P3896, "Data:Meath.map").
local function getWdShape()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local osm = entity:getBestStatements("P402")
if osm and #osm > 0 then return { service = "geoshape", id = entity.id } end
local geoshape = entity:getBestStatements("P3896")
local snak = geoshape and geoshape[1] and geoshape[1].mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and type(snak.datavalue.value) == "string" then
local title = snak.datavalue.value:gsub("^Data:", "")
return { service = "page", title = title }
end
return nil
end
-- Item without a point (P625) but with a shape: the shape alone, centred and zoomed by the map itself.
local function buildShapeOnlyMap(frame, shape)
local data = { type = "ExternalData", service = shape.service,
properties = { stroke = "#FF0000", ["stroke-width"] = 2, fill = "#606060", ["fill-opacity"] = 0.1 } }
if shape.service == "geoshape" then data.ids = shape.id else data.title = shape.title end
local ok, rendered = pcall(function()
return frame:extensionTag("mapframe", mw.text.jsonEncode(data), { width = MAP_WIDTH, height = "250", align = "center" })
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Interactive map from the coordinates (manual decimal equivalent, else Wikidata P625); the shape alone when there is no point.
local function buildMapframe(frame, args, manualCoords)
-- Wikidata P625 only: passing coordinates makes Module:Mapframe error on gv.wiki.
local shape = getWdShape()
-- Manual coordinates cannot go to Module:Infobox mapframe, but an outline needs no point.
if manualCoords ~= nil then return shape and buildShapeOnlyMap(frame, shape) or nil end
if not getWdCoordinates() then
if shape then return buildShapeOnlyMap(frame, shape) end
return nil
end
-- An item with a shape (a county, say) is fitted by the map itself; a plain point gets a fixed zoom.
local zoom = getManual(args, { "zoom_caslys-çheerey", "mapframe-zoom" }) or (not shape and "12" or nil)
local callArgs = { "Infobox mapframe", "autoWithCaption",
onByDefault = "yes",
["mapframe-marker-color"] = "d33",
["mapframe-frame-width"] = MAP_WIDTH,
["mapframe-zoom"] = zoom,
}
local ok, rendered = pcall(function()
return frame:callParserFunction{ name = "#invoke", args = callArgs }
end)
if not ok or not rendered or rendered == "" then return nil end
return rendered
end
-- Blank map first; the interactive map sits in a collapsed block opened by a toggle link.
local function buildSwitcher(frame, args, first, second)
local expand = getManual(args, { "lipaid_caslys2" }) or "Eddyr-obbragh"
local collapse = getManual(args, { "lipaid_caslys_follaghey" }) or "follee"
return first .. '<div class="mw-collapsible mw-collapsed" data-expandtext="' .. expand ..
'" data-collapsetext="' .. collapse .. '" style="text-align:center; margin-top:0.3em;">' ..
'<div style="text-align:center; padding-top:1.6em; clear:both;">' .. second .. '</div></div>'
end
----------------------------------------------------------------------
-- Coordinates row
----------------------------------------------------------------------
local function buildCoordinatesRow(frame, args, manualCoords)
local coordText, fromWd
if manualCoords == "suppress" then
return nil
elseif type(manualCoords) == "table" then
coordText = expandCoord(frame, args, manualCoords)
else
local lat, lon = getWdCoordinates()
if not lat then return nil end
coordText = expandCoord(frame, args, { lat = { lat }, long = { lon } })
fromWd = true
end
local label = "Co-ordnaidyn"
local qualifier = getManual(args, { "mair_coor" })
if qualifier then label = label .. " (" .. qualifier .. ")" end
local value = coordText
if fromWd then
value = value .. getWdReference("P625")
else
local ref = getManual(args, { "imraa_coordnaidyn" })
if ref then value = value .. wrapReference(ref) end
end
local note = getManual(args, { "fo-noteyn_coordnaidyn" })
if note then value = value .. note end
return '<tr class="mergedbottomrow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">' .. label .. ': ' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local genitive = getGenitiveName(args)
local manualCoords = getManualCoordinates(args)
local rows = {}
local manualMapCount = 0
local function addAll(list)
for _, row in ipairs(list) do
table.insert(rows, row)
manualMapCount = manualMapCount + 1
end
end
addAll(buildStaticMaps(args, genitive))
addAll(buildOverlayMaps(args, genitive))
local dot = buildDotMap(frame, args)
if dot then addAll({ dot }) end
addAll(buildPushpinMaps(frame, args))
local frameSetting = (getManual(args, { "mapframe" }) or ""):lower()
local wantMapframe = frameSetting == "yes"
local suppressMapframe = frameSetting == "no" or frameSetting == "none"
-- No manual map: blank country map with a dot, else an interactive map, else the P242 locator image.
if manualMapCount == 0 then
local lat, lon
if type(manualCoords) == "table" and manualCoords.decimal then
lat, lon = manualCoords.decimal[1], manualCoords.decimal[2]
elseif manualCoords == nil then
lat, lon = getWdCoordinates()
end
local pushpin = buildAutoPushpin(frame, args, lat, lon)
if pushpin then
local interactive = (not suppressMapframe) and buildMapframe(frame, args, manualCoords) or nil
if interactive then
table.insert(rows, mapRow(buildSwitcher(frame, args, pushpin, interactive)))
else
table.insert(rows, mapRow(pushpin))
end
elseif lat then
wantMapframe = true
else
local file = getWdFile("P242")
if file then
local locator = '[[Coadan:' .. file .. '|' .. MAP_WIDTH .. 'px|none|link=|Soiaghey ' .. genitive .. ']]'
local interactive = (not suppressMapframe) and buildMapframe(frame, args, manualCoords) or nil
if interactive then
table.insert(rows, mapRow(buildSwitcher(frame, args, locator, interactive)))
else
table.insert(rows, mapRow(locator))
end
elseif getWdShape() then
wantMapframe = true
end
end
end
if wantMapframe and not suppressMapframe then
local mapframe = buildMapframe(frame, args, manualCoords)
if mapframe then table.insert(rows, mapRow(mapframe)) end
elseif manualMapCount > 0 and not suppressMapframe and getWdShape() then
-- Manual maps stay as given; the item's outline is offered behind a toggle under them.
local mapframe = buildMapframe(frame, args, manualCoords)
if mapframe then table.insert(rows, mapRow(buildSwitcher(frame, args, "", mapframe))) end
end
local coordRow = buildCoordinatesRow(frame, args, manualCoords)
if coordRow then table.insert(rows, coordRow) end
local extra = getManual(args, { "coord_a" })
if extra and not isNone(extra) then
table.insert(rows, '<tr class="mergedtoprow"><td colspan="2" style="text-align:center; padding:0.2em 0.4em 0.7em;">Co-ordnaidyn: ' .. extra .. '</td></tr>')
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
ah7n7jl2o5elbcn2p9brciv9cuyihig
Module:Kishtey fys boayl/aarheynn
828
56343
395333
395237
2026-10-26T14:54:26Z
MacTire02
219
++
395333
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_LEVELS = 6
local DEFAULT_LABELS = { [0] = "Çheer", "Steat", "Ard", "Slyst", "Baljaght", "Aarheynn", "Aarheynn" }
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
-- Id of the first best-rank item value of a property on an entity.
local function getItemId(entityId, property)
local statements = mw.wikibase.getBestStatements(entityId, property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
end
return nil
end
-- Manx article link for an item, else its Manx label; nil when it has neither.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- All P31 values of an item.
local function getClassIds(id)
local ids = {}
for _, statement in ipairs(mw.wikibase.getBestStatements(id, "P31") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
ids[value.id or ("Q" .. tostring(value["numeric-id"]))] = true
end
end
return ids
end
-- Types that make a place a dependency rather than a country. Add more here.
local DEPENDENCY_CLASSES = {
"Q185086", -- Crown Dependency
"Q161243", -- dependent territory
"Q783733", -- unincorporated territory of the United States
"Q462778", -- insular area of the United States
"Q1352230", -- territory of the United States
}
local COUNTRY_LABEL = "[[Rolley çheeraghyn y theihll|Çheer]]"
local DEPENDENCY_LABEL = "[[Rolley croghaneyn y theihll|Croghane]]"
-- Row labels for particular types of unit (below country level); a type listed here beats its plain Manx label.
local TYPE_LABELS = {
Q202156 = "[[Queiggaghyn Nerin|Queiggey]]", -- province of Ireland
}
-- First-level label: "Croghane" when the country (P17) of this page is a dependency, else "Çheer".
local function getCountryLabel()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
local countryId = currentId and getItemId(currentId, "P17")
if not countryId then return COUNTRY_LABEL end
local classes = getClassIds(countryId)
for _, class in ipairs(DEPENDENCY_CLASSES) do
if classes[class] then return DEPENDENCY_LABEL end
end
return COUNTRY_LABEL
end
-- Manx label of an item's type (P31), used as the row label.
local function typeLabel(id)
local classes = getClassIds(id)
for class, label in pairs(TYPE_LABELS) do
if classes[class] then return label end
end
local typeId = getItemId(id, "P31")
if not typeId then return nil end
local label = mw.wikibase.getLabelByLang(typeId, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
-- Wikidata hierarchy, top-down: country (P17) first, then P131 ancestors below it.
local function getWdHierarchy()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
if not currentId then return nil end
local countryId = getItemId(currentId, "P17")
local chain = {}
local seen = { [currentId] = true }
local nextId = getItemId(currentId, "P131")
local first = true
while nextId and not seen[nextId] and #chain < MAX_LEVELS + 1 do
seen[nextId] = true
if nextId == countryId then break end
table.insert(chain, { id = nextId, property = first and "P131" or nil })
first = false
nextId = getItemId(nextId, "P131")
end
-- Reverse to top-down order.
local levels = {}
if countryId then
table.insert(levels, { id = countryId, property = "P17", label = getCountryLabel() })
end
for i = #chain, 1, -1 do
table.insert(levels, chain[i])
end
return levels
end
local function trClass(isFirst)
return isFirst and "mergedtoprow" or "mergedrow"
end
local function buildRow(label, value, isFirst)
return '<tr class="' .. trClass(isFirst) .. '"><th scope="row" style="text-align:left; vertical-align:top; padding:0.15em 0.6em 0.15em 0.6em;">' ..
label .. '</th><td style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;">' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- aarheynn_wd = none switches the Wikidata fill off; manual rows still show.
local wdOff = isNone(getManual(args, { "aarheynn_wd" }) or "")
local wd
local function wdLevel(n)
if wdOff then return nil end
if wd == nil then wd = getWdHierarchy() or false end
return wd and wd[n + 1] or nil
end
local rows = {}
for n = 0, MAX_LEVELS do
local suffix = (n == 0) and "" or tostring(n)
local valueNames = { "aarheynn" .. suffix, "ennym_aarheynn" .. suffix }
if n == 0 then table.insert(valueNames, "çheer") end
local manual = getManual(args, valueNames)
local customLabel = getManual(args, { "sorçh_aarheynn" .. suffix })
local value, label
if manual then
if not isNone(manual) then
value = applyRefNote(manual,
getManual(args, { "imraa_aarheynn" .. suffix }),
getManual(args, { "noteyn_aarheynn" .. suffix }), frame)
label = customLabel or (n == 0 and getCountryLabel() or DEFAULT_LABELS[n])
end
else
local level = wdLevel(n)
if level then
value = itemText(level.id)
if value then
label = customLabel or level.label or typeLabel(level.id) or DEFAULT_LABELS[n]
if level.property then value = value .. getWdReference(level.property) end
end
end
end
if value then
table.insert(rows, buildRow(label, value, #rows == 0))
end
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
0dpefr7efkayei9e98jszr539mcew72
395336
395333
2026-10-26T15:03:11Z
MacTire02
219
++
395336
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_LEVELS = 6
local DEFAULT_LABELS = { [0] = "Çheer", "Steat", "Ard", "Slyst", "Baljaght", "Aarheynn", "Aarheynn" }
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
-- Id of the first best-rank item value of a property on an entity.
local function getItemId(entityId, property)
local statements = mw.wikibase.getBestStatements(entityId, property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
end
return nil
end
-- Manx article link for an item, else its Manx label; nil when it has neither.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- All P31 values of an item.
local function getClassIds(id)
local ids = {}
for _, statement in ipairs(mw.wikibase.getBestStatements(id, "P31") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
ids[value.id or ("Q" .. tostring(value["numeric-id"]))] = true
end
end
return ids
end
-- Types that make a place a dependency rather than a country. Add more here.
local DEPENDENCY_CLASSES = {
"Q185086", -- Crown Dependency
"Q161243", -- dependent territory
"Q783733", -- unincorporated territory of the United States
"Q462778", -- insular area of the United States
"Q1352230", -- territory of the United States
}
local COUNTRY_LABEL = "[[Rolley çheeraghyn y theihll|Çheer]]"
local DEPENDENCY_LABEL = "[[Rolley croghaneyn y theihll|Croghane]]"
-- Row labels for particular types of unit (below country level); a type listed here beats its plain Manx label.
local TYPE_LABELS = {
Q202156 = "[[Queiggaghyn Nerin|Queiggey]]", -- province of Ireland
}
-- First-level label: "Croghane" when the country (P17) of this page is a dependency, else "Çheer".
local function getCountryLabel()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
local countryId = currentId and getItemId(currentId, "P17")
if not countryId then return COUNTRY_LABEL end
local classes = getClassIds(countryId)
for _, class in ipairs(DEPENDENCY_CLASSES) do
if classes[class] then return DEPENDENCY_LABEL end
end
return COUNTRY_LABEL
end
-- Manx label of an item's type (P31), used as the row label.
local function typeLabel(id)
local classes = getClassIds(id)
for class, label in pairs(TYPE_LABELS) do
if classes[class] then return label end
end
local typeId = getItemId(id, "P31")
if not typeId then return nil end
local label = mw.wikibase.getLabelByLang(typeId, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
-- Wikidata hierarchy, top-down: country (P17) first, then P131 ancestors below it.
local function getWdHierarchy()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
if not currentId then return nil end
local countryId = getItemId(currentId, "P17")
local chain = {}
local seen = { [currentId] = true }
local nextId = getItemId(currentId, "P131")
local previousId = nil
while nextId and not seen[nextId] and #chain < MAX_LEVELS + 1 do
seen[nextId] = true
if nextId == countryId then break end
-- The "located in" claim sits on the item below this one (the page itself for the first step).
table.insert(chain, { id = nextId, property = "P131", from = previousId })
previousId = nextId
nextId = getItemId(nextId, "P131")
end
-- Reverse to top-down order.
local levels = {}
if countryId then
table.insert(levels, { id = countryId, property = "P17", label = getCountryLabel() })
end
for i = #chain, 1, -1 do
table.insert(levels, chain[i])
end
return levels
end
local function trClass(isFirst)
return isFirst and "mergedtoprow" or "mergedrow"
end
local function buildRow(label, value, isFirst)
return '<tr class="' .. trClass(isFirst) .. '"><th scope="row" style="text-align:left; vertical-align:top; padding:0.15em 0.6em 0.15em 0.6em;">' ..
label .. '</th><td style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;">' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- aarheynn_wd = none switches the Wikidata fill off; manual rows still show.
local wdOff = isNone(getManual(args, { "aarheynn_wd" }) or "")
local wd
local function wdLevel(n)
if wdOff then return nil end
if wd == nil then wd = getWdHierarchy() or false end
return wd and wd[n + 1] or nil
end
local rows = {}
for n = 0, MAX_LEVELS do
local suffix = (n == 0) and "" or tostring(n)
local valueNames = { "aarheynn" .. suffix, "ennym_aarheynn" .. suffix }
if n == 0 then table.insert(valueNames, "çheer") end
local manual = getManual(args, valueNames)
local customLabel = getManual(args, { "sorçh_aarheynn" .. suffix })
local value, label
if manual then
if not isNone(manual) then
value = applyRefNote(manual,
getManual(args, { "imraa_aarheynn" .. suffix }),
getManual(args, { "noteyn_aarheynn" .. suffix }), frame)
label = customLabel or (n == 0 and getCountryLabel() or DEFAULT_LABELS[n])
end
else
local level = wdLevel(n)
if level then
value = itemText(level.id)
if value then
label = customLabel or level.label or typeLabel(level.id) or DEFAULT_LABELS[n]
if level.property then value = value .. getWdReference(level.property, level.id, level.from) end
end
end
end
if value then
table.insert(rows, buildRow(label, value, #rows == 0))
end
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
1p85ab11h49944pw63fqnfutkyxw9qw
395352
395336
2026-10-26T19:44:52Z
MacTire02
219
++
395352
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_LEVELS = 6
local DEFAULT_LABELS = { [0] = "Çheer", "Steat", "Ard", "Slyst", "Baljaght", "Aarheynn", "Aarheynn" }
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
-- Id of the first best-rank item value of a property on an entity.
local function getItemId(entityId, property)
local statements = mw.wikibase.getBestStatements(entityId, property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
end
return nil
end
-- Manx article link for an item, else its Manx label; nil when it has neither.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- All P31 values of an item.
local function getClassIds(id)
local ids = {}
for _, statement in ipairs(mw.wikibase.getAllStatements(id, "P31") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
ids[value.id or ("Q" .. tostring(value["numeric-id"]))] = true
end
end
return ids
end
-- Types that make a place a dependency rather than a country. Add more here.
local DEPENDENCY_CLASSES = {
"Q185086", -- Crown Dependency
"Q161243", -- dependent territory
"Q783733", -- unincorporated territory of the United States
"Q462778", -- insular area of the United States
"Q1352230", -- territory of the United States
}
local COUNTRY_LABEL = "[[Rolley çheeraghyn y theihll|Çheer]]"
local DEPENDENCY_LABEL = "[[Rolley croghaneyn y theihll|Croghane]]"
-- Row labels for particular types of unit (below country level); a type listed here beats its plain Manx label.
local TYPE_LABELS = {
Q202156 = "[[Queiggaghyn Nerin|Queiggey]]", -- province of Ireland
}
-- First-level label: "Croghane" when the country (P17) of this page is a dependency, else "Çheer".
local function getCountryLabel()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
local countryId = currentId and getItemId(currentId, "P17")
if not countryId then return COUNTRY_LABEL end
local classes = getClassIds(countryId)
for _, class in ipairs(DEPENDENCY_CLASSES) do
if classes[class] then return DEPENDENCY_LABEL end
end
return COUNTRY_LABEL
end
-- Manx label of an item's type (P31), used as the row label.
local function typeLabel(id)
local classes = getClassIds(id)
for class, label in pairs(TYPE_LABELS) do
if classes[class] then return label end
end
local typeId = getItemId(id, "P31")
if not typeId then return nil end
local label = mw.wikibase.getLabelByLang(typeId, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
-- Wikidata hierarchy, top-down: country (P17) first, then P131 ancestors below it.
local function getWdHierarchy()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
if not currentId then return nil end
local countryId = getItemId(currentId, "P17")
local chain = {}
local seen = { [currentId] = true }
local nextId = getItemId(currentId, "P131")
local previousId = nil
while nextId and not seen[nextId] and #chain < MAX_LEVELS + 1 do
seen[nextId] = true
if nextId == countryId then break end
-- The "located in" claim sits on the item below this one (the page itself for the first step).
table.insert(chain, { id = nextId, property = "P131", from = previousId })
previousId = nextId
nextId = getItemId(nextId, "P131")
end
-- Reverse to top-down order.
local levels = {}
if countryId then
table.insert(levels, { id = countryId, property = "P17", label = getCountryLabel() })
end
for i = #chain, 1, -1 do
table.insert(levels, chain[i])
end
return levels
end
local function trClass(isFirst)
return isFirst and "mergedtoprow" or "mergedrow"
end
local function buildRow(label, value, isFirst)
return '<tr class="' .. trClass(isFirst) .. '"><th scope="row" style="text-align:left; vertical-align:top; padding:0.15em 0.6em 0.15em 0.6em;">' ..
label .. '</th><td style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;">' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- aarheynn_wd = none switches the Wikidata fill off; manual rows still show.
local wdOff = isNone(getManual(args, { "aarheynn_wd" }) or "")
local wd
local function wdLevel(n)
if wdOff then return nil end
if wd == nil then wd = getWdHierarchy() or false end
return wd and wd[n + 1] or nil
end
local rows = {}
for n = 0, MAX_LEVELS do
local suffix = (n == 0) and "" or tostring(n)
local valueNames = { "aarheynn" .. suffix, "ennym_aarheynn" .. suffix }
if n == 0 then table.insert(valueNames, "çheer") end
local manual = getManual(args, valueNames)
local customLabel = getManual(args, { "sorçh_aarheynn" .. suffix })
local value, label
if manual then
if not isNone(manual) then
value = applyRefNote(manual,
getManual(args, { "imraa_aarheynn" .. suffix }),
getManual(args, { "noteyn_aarheynn" .. suffix }), frame)
label = customLabel or (n == 0 and getCountryLabel() or DEFAULT_LABELS[n])
end
else
local level = wdLevel(n)
if level then
value = itemText(level.id)
if value then
label = customLabel or level.label or typeLabel(level.id) or DEFAULT_LABELS[n]
if level.property then value = value .. getWdReference(level.property, level.id, level.from) end
end
end
end
if value then
table.insert(rows, buildRow(label, value, #rows == 0))
end
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
b6j1vt3jjvenhwfc8j4d7e72dx0h2lo
395382
395352
2026-10-26T23:03:33Z
MacTire02
219
++
395382
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_LEVELS = 6
local DEFAULT_LABELS = { [0] = "Çheer", "Steat", "Ard", "Slyst", "Baljaght", "Aarheynn", "Aarheynn" }
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
-- Id of the first best-rank item value of a property on an entity.
local function getItemId(entityId, property)
local statements = mw.wikibase.getBestStatements(entityId, property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
end
return nil
end
-- Manx article link for an item, else its Manx label; nil when it has neither.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- All P31 values of an item.
local function getClassIds(id)
local ids = {}
for _, statement in ipairs(mw.wikibase.getAllStatements(id, "P31") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
ids[value.id or ("Q" .. tostring(value["numeric-id"]))] = true
end
end
return ids
end
-- Types that make a place a dependency rather than a country. Add more here.
local DEPENDENCY_CLASSES = {
"Q185086", -- Crown Dependency
"Q161243", -- dependent territory
"Q783733", -- unincorporated territory of the United States
"Q462778", -- insular area of the United States
"Q1352230", -- territory of the United States
}
local COUNTRY_LABEL = "[[Rolley çheeraghyn y theihll|Çheer]]"
local DEPENDENCY_LABEL = "[[Rolley croghaneyn y theihll|Croghane]]"
-- Row labels for particular types of unit (below country level); a type listed here beats its plain Manx label.
local TYPE_LABELS = {
Q202156 = "[[Queiggaghyn Nerin|Queiggey]]", -- province of Ireland
}
-- First-level label: "Croghane" when the country (P17) of this page is a dependency, else "Çheer".
local function getCountryLabel()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
local countryId = currentId and getItemId(currentId, "P17")
if not countryId then return COUNTRY_LABEL end
local classes = getClassIds(countryId)
for _, class in ipairs(DEPENDENCY_CLASSES) do
if classes[class] then return DEPENDENCY_LABEL end
end
return COUNTRY_LABEL
end
-- Manx label of an item's type (P31), used as the row label.
local function typeLabel(id)
local classes = getClassIds(id)
for class, label in pairs(TYPE_LABELS) do
if classes[class] then return label end
end
local typeId = getItemId(id, "P31")
if not typeId then return nil end
local label = mw.wikibase.getLabelByLang(typeId, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
-- Wikidata hierarchy, top-down: country (P17) first, then P131 ancestors below it.
local function getWdHierarchy()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
if not currentId then return nil end
local countryId = getItemId(currentId, "P17")
local chain = {}
local seen = { [currentId] = true }
local nextId = getItemId(currentId, "P131")
local previousId = nil
while nextId and not seen[nextId] and #chain < MAX_LEVELS + 1 do
seen[nextId] = true
if nextId == countryId then break end
-- The "located in" claim sits on the item below this one (the page itself for the first step).
table.insert(chain, { id = nextId, property = "P131", from = previousId })
previousId = nextId
nextId = getItemId(nextId, "P131")
end
-- Reverse to top-down order.
local levels = {}
if countryId then
table.insert(levels, { id = countryId, property = "P17", label = getCountryLabel() })
end
for i = #chain, 1, -1 do
table.insert(levels, chain[i])
end
return levels
end
local function trClass(isFirst)
return isFirst and "mergedtoprow" or "mergedrow"
end
local function buildRow(label, value, isFirst)
return '<tr class="' .. trClass(isFirst) .. '"><th scope="row" style="text-align:left; vertical-align:top; padding:0.15em 0.6em 0.15em 0.6em;">' ..
label .. '</th><td style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;">' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- aarheynn_wd = none switches the Wikidata fill off; manual rows still show.
local wdOff = isNone(getManual(args, { "aarheynn_wd" }) or "")
local wd
local function wdLevel(n)
if wdOff then return nil end
if wd == nil then wd = getWdHierarchy() or false end
return wd and wd[n + 1] or nil
end
local rows = {}
for n = 0, MAX_LEVELS do
local suffix = (n == 0) and "" or tostring(n)
local valueNames = { "aarheynn" .. suffix, "ennym_aarheynn" .. suffix }
if n == 0 then table.insert(valueNames, "çheer") end
local manual = getManual(args, valueNames)
local customLabel = getManual(args, { "sorçh_aarheynn" .. suffix })
local value, label
if manual then
if not isNone(manual) then
value = applyRefNote(manual,
getManual(args, { "imraa_aarheynn" .. suffix }),
getManual(args, { "noteyn_aarheynn" .. suffix }), frame)
label = customLabel or (n == 0 and getCountryLabel() or DEFAULT_LABELS[n])
end
else
local level = wdLevel(n)
if level then
value = itemText(level.id)
if value then
label = customLabel or level.label or typeLabel(level.id) or DEFAULT_LABELS[n]
-- No Wikidata references on these rows (Module:Citation errors on some items).
end
end
end
if value then
table.insert(rows, buildRow(label, value, #rows == 0))
end
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
hi7222zp2fu8s843rmuxm5sy4a2to9s
395383
395382
2026-10-26T23:27:39Z
MacTire02
219
++
395383
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_LEVELS = 6
local DEFAULT_LABELS = { [0] = "Çheer", "Steat", "Ard", "Slyst", "Baljaght", "Aarheynn", "Aarheynn" }
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
-- Id of the first best-rank item value of a property on an entity.
local function getItemId(entityId, property)
local statements = mw.wikibase.getBestStatements(entityId, property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
end
return nil
end
-- Manx article link for an item, else its Manx label; nil when it has neither.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- All P31 values of an item.
local function getClassIds(id)
local ids = {}
for _, statement in ipairs(mw.wikibase.getAllStatements(id, "P31") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
ids[value.id or ("Q" .. tostring(value["numeric-id"]))] = true
end
end
return ids
end
-- Types that make a place a dependency rather than a country. Add more here.
local DEPENDENCY_CLASSES = {
"Q185086", -- Crown Dependency
"Q161243", -- dependent territory
"Q783733", -- unincorporated territory of the United States
"Q462778", -- insular area of the United States
"Q1352230", -- territory of the United States
}
local COUNTRY_LABEL = "[[Rolley çheeraghyn y theihll|Çheer]]"
local DEPENDENCY_LABEL = "[[Rolley croghaneyn y theihll|Croghane]]"
-- Row labels for particular types of unit (below country level); a type listed here beats its plain Manx label.
local TYPE_LABELS = {
Q202156 = "[[Queiggaghyn Nerin|Queiggey]]", -- province of Ireland
}
-- First-level label: "Croghane" when the country (P17) of this page is a dependency, else "Çheer".
local function getCountryLabel()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
local countryId = currentId and getItemId(currentId, "P17")
if not countryId then return COUNTRY_LABEL end
local classes = getClassIds(countryId)
for _, class in ipairs(DEPENDENCY_CLASSES) do
if classes[class] then return DEPENDENCY_LABEL end
end
return COUNTRY_LABEL
end
-- Manx label of an item's type (P31), used as the row label.
local function typeLabel(id)
local classes = getClassIds(id)
for class, label in pairs(TYPE_LABELS) do
if classes[class] then return label end
end
local typeId = getItemId(id, "P31")
if not typeId then return nil end
local label = mw.wikibase.getLabelByLang(typeId, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
-- Classes that are never a place's state or region: electoral districts and European Parliament constituencies.
local NOT_ADMIN_CLASSES = { "Q192611", "Q2631496" }
-- First P131 value that is a real administrative parent, skipping electoral districts.
local function getAdminParent(id)
for _, statement in ipairs(mw.wikibase.getBestStatements(id, "P131") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
local parent = value.id or ("Q" .. tostring(value["numeric-id"]))
local classes = getClassIds(parent)
local skip = false
for _, class in ipairs(NOT_ADMIN_CLASSES) do
if classes[class] then skip = true end
end
if not skip then return parent end
end
end
return nil
end
-- Wikidata hierarchy, top-down: country (P17) first, then P131 ancestors below it.
local function getWdHierarchy()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
if not currentId then return nil end
local countryId = getItemId(currentId, "P17")
local chain = {}
local seen = { [currentId] = true }
local nextId = getAdminParent(currentId)
local previousId = nil
while nextId and not seen[nextId] and #chain < MAX_LEVELS + 1 do
seen[nextId] = true
if nextId == countryId then break end
-- The "located in" claim sits on the item below this one (the page itself for the first step).
table.insert(chain, { id = nextId, property = "P131", from = previousId })
previousId = nextId
nextId = getAdminParent(nextId)
end
-- Reverse to top-down order.
local levels = {}
if countryId then
table.insert(levels, { id = countryId, property = "P17", label = getCountryLabel() })
end
for i = #chain, 1, -1 do
table.insert(levels, chain[i])
end
return levels
end
local function trClass(isFirst)
return isFirst and "mergedtoprow" or "mergedrow"
end
local function buildRow(label, value, isFirst)
return '<tr class="' .. trClass(isFirst) .. '"><th scope="row" style="text-align:left; vertical-align:top; padding:0.15em 0.6em 0.15em 0.6em;">' ..
label .. '</th><td style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;">' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- aarheynn_wd = none switches the Wikidata fill off; manual rows still show.
local wdOff = isNone(getManual(args, { "aarheynn_wd" }) or "")
local wd
local function wdLevel(n)
if wdOff then return nil end
if wd == nil then wd = getWdHierarchy() or false end
return wd and wd[n + 1] or nil
end
local rows = {}
for n = 0, MAX_LEVELS do
local suffix = (n == 0) and "" or tostring(n)
local valueNames = { "aarheynn" .. suffix, "ennym_aarheynn" .. suffix }
if n == 0 then table.insert(valueNames, "çheer") end
local manual = getManual(args, valueNames)
local customLabel = getManual(args, { "sorçh_aarheynn" .. suffix })
local value, label
if manual then
if not isNone(manual) then
value = applyRefNote(manual,
getManual(args, { "imraa_aarheynn" .. suffix }),
getManual(args, { "noteyn_aarheynn" .. suffix }), frame)
label = customLabel or (n == 0 and getCountryLabel() or DEFAULT_LABELS[n])
end
else
local level = wdLevel(n)
if level then
value = itemText(level.id)
if value then
label = customLabel or level.label or typeLabel(level.id) or DEFAULT_LABELS[n]
-- No Wikidata references on these rows (Module:Citation errors on some items).
end
end
end
if value then
table.insert(rows, buildRow(label, value, #rows == 0))
end
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
64ln5o8uvy5oswxio9pjq01zabe3hm2
395384
395383
2026-10-26T23:29:15Z
MacTire02
219
++
395384
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_LEVELS = 6
local DEFAULT_LABELS = { [0] = "Çheer", "Steat", "Ard", "Slyst", "Baljaght", "Aarheynn", "Aarheynn" }
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
-- Id of the first best-rank item value of a property on an entity.
local function getItemId(entityId, property)
local statements = mw.wikibase.getBestStatements(entityId, property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
end
return nil
end
-- Manx article link for an item, else its Manx label; nil when it has neither.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- All P31 values of an item.
local function getClassIds(id)
local ids = {}
for _, statement in ipairs(mw.wikibase.getAllStatements(id, "P31") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
ids[value.id or ("Q" .. tostring(value["numeric-id"]))] = true
end
end
return ids
end
-- Types that make a place a dependency rather than a country. Add more here.
local DEPENDENCY_CLASSES = {
"Q185086", -- Crown Dependency
"Q161243", -- dependent territory
"Q783733", -- unincorporated territory of the United States
"Q462778", -- insular area of the United States
"Q1352230", -- territory of the United States
}
local COUNTRY_LABEL = "[[Rolley çheeraghyn y theihll|Çheer]]"
local DEPENDENCY_LABEL = "[[Rolley croghaneyn y theihll|Croghane]]"
-- Row labels for particular types of unit (below country level); a type listed here beats its plain Manx label.
local TYPE_LABELS = {
Q202156 = "[[Queiggaghyn Nerin|Queiggey]]", -- province of Ireland
Q179872 = "[[Condaeghyn Nerin|Coontae]]", -- county of Ireland
}
-- First-level label: "Croghane" when the country (P17) of this page is a dependency, else "Çheer".
local function getCountryLabel()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
local countryId = currentId and getItemId(currentId, "P17")
if not countryId then return COUNTRY_LABEL end
local classes = getClassIds(countryId)
for _, class in ipairs(DEPENDENCY_CLASSES) do
if classes[class] then return DEPENDENCY_LABEL end
end
return COUNTRY_LABEL
end
-- Manx label of an item's type (P31), used as the row label.
local function typeLabel(id)
local classes = getClassIds(id)
for class, label in pairs(TYPE_LABELS) do
if classes[class] then return label end
end
local typeId = getItemId(id, "P31")
if not typeId then return nil end
local label = mw.wikibase.getLabelByLang(typeId, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
-- Classes that are never a place's state or region: electoral districts and European Parliament constituencies.
local NOT_ADMIN_CLASSES = { "Q192611", "Q2631496" }
-- First P131 value that is a real administrative parent, skipping electoral districts.
local function getAdminParent(id)
for _, statement in ipairs(mw.wikibase.getBestStatements(id, "P131") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
local parent = value.id or ("Q" .. tostring(value["numeric-id"]))
local classes = getClassIds(parent)
local skip = false
for _, class in ipairs(NOT_ADMIN_CLASSES) do
if classes[class] then skip = true end
end
if not skip then return parent end
end
end
return nil
end
-- Wikidata hierarchy, top-down: country (P17) first, then P131 ancestors below it.
local function getWdHierarchy()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
if not currentId then return nil end
local countryId = getItemId(currentId, "P17")
local chain = {}
local seen = { [currentId] = true }
local nextId = getAdminParent(currentId)
local previousId = nil
while nextId and not seen[nextId] and #chain < MAX_LEVELS + 1 do
seen[nextId] = true
if nextId == countryId then break end
-- The "located in" claim sits on the item below this one (the page itself for the first step).
table.insert(chain, { id = nextId, property = "P131", from = previousId })
previousId = nextId
nextId = getAdminParent(nextId)
end
-- Reverse to top-down order.
local levels = {}
if countryId then
table.insert(levels, { id = countryId, property = "P17", label = getCountryLabel() })
end
for i = #chain, 1, -1 do
table.insert(levels, chain[i])
end
return levels
end
local function trClass(isFirst)
return isFirst and "mergedtoprow" or "mergedrow"
end
local function buildRow(label, value, isFirst)
return '<tr class="' .. trClass(isFirst) .. '"><th scope="row" style="text-align:left; vertical-align:top; padding:0.15em 0.6em 0.15em 0.6em;">' ..
label .. '</th><td style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;">' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- aarheynn_wd = none switches the Wikidata fill off; manual rows still show.
local wdOff = isNone(getManual(args, { "aarheynn_wd" }) or "")
local wd
local function wdLevel(n)
if wdOff then return nil end
if wd == nil then wd = getWdHierarchy() or false end
return wd and wd[n + 1] or nil
end
local rows = {}
for n = 0, MAX_LEVELS do
local suffix = (n == 0) and "" or tostring(n)
local valueNames = { "aarheynn" .. suffix, "ennym_aarheynn" .. suffix }
if n == 0 then table.insert(valueNames, "çheer") end
local manual = getManual(args, valueNames)
local customLabel = getManual(args, { "sorçh_aarheynn" .. suffix })
local value, label
if manual then
if not isNone(manual) then
value = applyRefNote(manual,
getManual(args, { "imraa_aarheynn" .. suffix }),
getManual(args, { "noteyn_aarheynn" .. suffix }), frame)
label = customLabel or (n == 0 and getCountryLabel() or DEFAULT_LABELS[n])
end
else
local level = wdLevel(n)
if level then
value = itemText(level.id)
if value then
label = customLabel or level.label or typeLabel(level.id) or DEFAULT_LABELS[n]
-- No Wikidata references on these rows (Module:Citation errors on some items).
end
end
end
if value then
table.insert(rows, buildRow(label, value, #rows == 0))
end
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
t6be3652avitcj6gt4p6cikm0oyxxmx
395385
395384
2026-10-26T23:30:02Z
MacTire02
219
++
395385
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_LEVELS = 6
local DEFAULT_LABELS = { [0] = "Çheer", "Steat", "Ard", "Slyst", "Baljaght", "Aarheynn", "Aarheynn" }
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function applyRefNote(value, ref, note, frame)
if note and note ~= "" and frame then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref and ref ~= "" then
value = value .. wrapReference(ref)
end
return value
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
-- Id of the first best-rank item value of a property on an entity.
local function getItemId(entityId, property)
local statements = mw.wikibase.getBestStatements(entityId, property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
end
return nil
end
-- Manx article link for an item, else its Manx label; nil when it has neither.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- All P31 values of an item.
local function getClassIds(id)
local ids = {}
for _, statement in ipairs(mw.wikibase.getAllStatements(id, "P31") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
ids[value.id or ("Q" .. tostring(value["numeric-id"]))] = true
end
end
return ids
end
-- Types that make a place a dependency rather than a country. Add more here.
local DEPENDENCY_CLASSES = {
"Q185086", -- Crown Dependency
"Q161243", -- dependent territory
"Q783733", -- unincorporated territory of the United States
"Q462778", -- insular area of the United States
"Q1352230", -- territory of the United States
}
local COUNTRY_LABEL = "[[Rolley çheeraghyn y theihll|Çheer]]"
local DEPENDENCY_LABEL = "[[Rolley croghaneyn y theihll|Croghane]]"
-- Row labels for particular types of unit (below country level); a type listed here beats its plain Manx label.
local TYPE_LABELS = {
Q202156 = "[[Queiggaghyn Nerin|Queiggey]]", -- province of Ireland
Q179872 = "[[Coondaeghyn Nerin|Coontae]]", -- county of Ireland
}
-- First-level label: "Croghane" when the country (P17) of this page is a dependency, else "Çheer".
local function getCountryLabel()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
local countryId = currentId and getItemId(currentId, "P17")
if not countryId then return COUNTRY_LABEL end
local classes = getClassIds(countryId)
for _, class in ipairs(DEPENDENCY_CLASSES) do
if classes[class] then return DEPENDENCY_LABEL end
end
return COUNTRY_LABEL
end
-- Manx label of an item's type (P31), used as the row label.
local function typeLabel(id)
local classes = getClassIds(id)
for class, label in pairs(TYPE_LABELS) do
if classes[class] then return label end
end
local typeId = getItemId(id, "P31")
if not typeId then return nil end
local label = mw.wikibase.getLabelByLang(typeId, "gv")
if label and label ~= "" then return ucfirst(label) end
return nil
end
-- Classes that are never a place's state or region: electoral districts and European Parliament constituencies.
local NOT_ADMIN_CLASSES = { "Q192611", "Q2631496" }
-- First P131 value that is a real administrative parent, skipping electoral districts.
local function getAdminParent(id)
for _, statement in ipairs(mw.wikibase.getBestStatements(id, "P131") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
local parent = value.id or ("Q" .. tostring(value["numeric-id"]))
local classes = getClassIds(parent)
local skip = false
for _, class in ipairs(NOT_ADMIN_CLASSES) do
if classes[class] then skip = true end
end
if not skip then return parent end
end
end
return nil
end
-- Wikidata hierarchy, top-down: country (P17) first, then P131 ancestors below it.
local function getWdHierarchy()
local currentId = mw.wikibase.getEntityIdForCurrentPage()
if not currentId then return nil end
local countryId = getItemId(currentId, "P17")
local chain = {}
local seen = { [currentId] = true }
local nextId = getAdminParent(currentId)
local previousId = nil
while nextId and not seen[nextId] and #chain < MAX_LEVELS + 1 do
seen[nextId] = true
if nextId == countryId then break end
-- The "located in" claim sits on the item below this one (the page itself for the first step).
table.insert(chain, { id = nextId, property = "P131", from = previousId })
previousId = nextId
nextId = getAdminParent(nextId)
end
-- Reverse to top-down order.
local levels = {}
if countryId then
table.insert(levels, { id = countryId, property = "P17", label = getCountryLabel() })
end
for i = #chain, 1, -1 do
table.insert(levels, chain[i])
end
return levels
end
local function trClass(isFirst)
return isFirst and "mergedtoprow" or "mergedrow"
end
local function buildRow(label, value, isFirst)
return '<tr class="' .. trClass(isFirst) .. '"><th scope="row" style="text-align:left; vertical-align:top; padding:0.15em 0.6em 0.15em 0.6em;">' ..
label .. '</th><td style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;">' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- aarheynn_wd = none switches the Wikidata fill off; manual rows still show.
local wdOff = isNone(getManual(args, { "aarheynn_wd" }) or "")
local wd
local function wdLevel(n)
if wdOff then return nil end
if wd == nil then wd = getWdHierarchy() or false end
return wd and wd[n + 1] or nil
end
local rows = {}
for n = 0, MAX_LEVELS do
local suffix = (n == 0) and "" or tostring(n)
local valueNames = { "aarheynn" .. suffix, "ennym_aarheynn" .. suffix }
if n == 0 then table.insert(valueNames, "çheer") end
local manual = getManual(args, valueNames)
local customLabel = getManual(args, { "sorçh_aarheynn" .. suffix })
local value, label
if manual then
if not isNone(manual) then
value = applyRefNote(manual,
getManual(args, { "imraa_aarheynn" .. suffix }),
getManual(args, { "noteyn_aarheynn" .. suffix }), frame)
label = customLabel or (n == 0 and getCountryLabel() or DEFAULT_LABELS[n])
end
else
local level = wdLevel(n)
if level then
value = itemText(level.id)
if value then
label = customLabel or level.label or typeLabel(level.id) or DEFAULT_LABELS[n]
-- No Wikidata references on these rows (Module:Citation errors on some items).
end
end
end
if value then
table.insert(rows, buildRow(label, value, #rows == 0))
end
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
qmnnik70zmc7j6yh67u5l3pqomw6vld
Module:Kishtey fys boayl/soiag
828
56344
395332
395255
2026-10-26T14:46:07Z
MacTire02
219
++
395332
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_PARTS = 50
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
-- Item values of a property as a list of Manx links or labels.
local function getWdItemList(property, limit)
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements(property)
local items = {}
if not statements then return items end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local sitelink = mw.wikibase.sitelink(id)
local text
if sitelink and sitelink ~= "" then
text = "[[" .. sitelink .. "]]"
else
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then text = label end
end
if text then table.insert(items, text) end
if #items >= limit then break end
end
end
return items
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local function row(class, label, value)
return '<tr class="' .. class .. '"><th scope="row" ' .. TH .. '>' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
-- Label of the first seat by the item's type (P31). Add exceptions to this list; the first match wins.
local SEAT_LABELS = {
{ class = "Q179872", label = "Balley coontae" }, -- county of Ireland
{ class = "Q47168", label = "Soiag y choontae" }, -- county of the United States
}
local DEFAULT_SEAT_LABEL = "Preeu-valley"
local function getSeatLabel()
local entity = mw.wikibase.getEntityObject()
local types = {}
for _, statement in ipairs(entity and entity:getBestStatements("P31") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
types[snak.datavalue.value.id or ("Q" .. tostring(snak.datavalue.value["numeric-id"]))] = true
end
end
for _, rule in ipairs(SEAT_LABELS) do
if types[rule.class] then return rule.label end
end
return DEFAULT_SEAT_LABEL
end
-- Seat line (soiag; legacy soieag accepted): manual (or none), else Wikidata capital (P36) for the first seat only.
local function buildSeat(frame, args, suffix, defaultLabel, property)
local manual = getManual(args, { "soiag" .. suffix, "soieag" .. suffix })
if isNone(manual) then return nil end
local value = manual
if not value and property then
local items = getWdItemList(property, 3)
if #items > 0 then value = table.concat(items, ", ") .. getWdReference(property) end
elseif value then
local note = getManual(args, { "noteyn_soiag" .. suffix, "noteyn_soieag" .. suffix })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_soiag" .. suffix, "imraa_soieag" .. suffix })
if ref then value = value .. (wrapReference(ref) or "") end
end
if not value then return nil end
local label = getManual(args, { "sorçh_soiag" .. suffix, "sorçh_soieag" .. suffix }) or defaultLabel
return { label = label, value = value }
end
-- Parts list: manual p1..p50 or Wikidata P150, as a sentence, a collapsible list or a plain list.
local function buildParts(frame, args)
local title = getManual(args, { "ayrnyn" })
if isNone(title) then return nil end
local items = {}
for n = 1, MAX_PARTS do
local item = getManual(args, { "p" .. n })
if item then table.insert(items, item) end
end
local fromWd = false
local label = getManual(args, { "sorçh_ayrnyn" })
if #items == 0 and not title then
items = getWdItemList("P150", MAX_PARTS)
fromWd = #items > 0
if not fromWd then return nil end
label = label or "Ayrnyn"
end
label = label or "Baljyn corpagh"
local mode = getManual(args, { "aght_ayrnyn" })
local value
if #items == 0 then
value = title
elseif mode == "para" then
value = (title and ("<b>" .. title .. ": </b>") or "") .. table.concat(items, ", ")
else
local expand
if mode == "coll" then expand = ""
elseif mode == "list" then expand = "y"
else expand = (#items >= 6) and "" or "y" end
local callArgs = { title = title or "", expand = expand }
for i, item in ipairs(items) do callArgs[i] = item end
value = frame:expandTemplate{ title = "Collapsible list", args = callArgs }
end
local ref = fromWd and getWdReference("P150") or getManual(args, { "imraa_ayrnyn" })
if ref and ref ~= "" then value = value .. (fromWd and ref or (wrapReference(ref) or "")) end
local note = getManual(args, { "noteyn_ayrnyn" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
return { label = label, value = value }
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
local function add(entry)
if entry then
table.insert(rows, row(#rows == 0 and "mergedtoprow" or "mergedrow", entry.label, entry.value))
end
end
add(buildSeat(frame, args, "", getSeatLabel(), "P36"))
add(buildSeat(frame, args, "1", "Eear-hoiag", nil))
add(buildParts(frame, args))
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
7cxycfwk5csnnf9cyybwph0y2nklg45
395344
395332
2026-10-26T17:12:37Z
MacTire02
219
++
395344
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_PARTS = 50
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
-- Item values of a property as a list of Manx links or labels.
local function getWdItemList(property, limit)
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements(property)
local items = {}
if not statements then return items end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local sitelink = mw.wikibase.sitelink(id)
local text
if sitelink and sitelink ~= "" then
text = "[[" .. sitelink .. "]]"
else
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then text = label end
end
if text then table.insert(items, text) end
if #items >= limit then break end
end
end
return items
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local function row(class, label, value)
return '<tr class="' .. class .. '"><th scope="row" ' .. TH .. '>' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
-- Label of the first seat by the item's type (P31). Add exceptions to this list; the first match wins.
local SEAT_LABELS = {
{ class = "Q179872", label = "Balley coontae" }, -- county of Ireland
{ class = "Q47168", label = "Soiag y choontae" }, -- county of the United States
}
local DEFAULT_SEAT_LABEL = "Preeu-valley"
local function getSeatLabel()
local entity = mw.wikibase.getEntityObject()
local types = {}
for _, statement in ipairs(entity and entity:getBestStatements("P31") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
types[snak.datavalue.value.id or ("Q" .. tostring(snak.datavalue.value["numeric-id"]))] = true
end
end
for _, rule in ipairs(SEAT_LABELS) do
if types[rule.class] then return rule.label end
end
return DEFAULT_SEAT_LABEL
end
-- Seat line (soiag; legacy soieag accepted): manual (or none), else Wikidata capital (P36) for the first seat only.
local function buildSeat(frame, args, suffix, defaultLabel, property)
local manual = getManual(args, { "soiag" .. suffix, "soieag" .. suffix, suffix == "" and "preeu-valley" or "preeu-valley" .. suffix })
if isNone(manual) then return nil end
local value = manual
if not value and property then
local items = getWdItemList(property, 3)
if #items > 0 then value = table.concat(items, ", ") .. getWdReference(property) end
elseif value then
local note = getManual(args, { "noteyn_soiag" .. suffix, "noteyn_soieag" .. suffix })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_soiag" .. suffix, "imraa_soieag" .. suffix })
if ref then value = value .. (wrapReference(ref) or "") end
end
if not value then return nil end
local label = getManual(args, { "sorçh_soiag" .. suffix, "sorçh_soieag" .. suffix }) or defaultLabel
return { label = label, value = value }
end
-- Parts list: manual p1..p50 or Wikidata P150, as a sentence, a collapsible list or a plain list.
local function buildParts(frame, args)
local title = getManual(args, { "ayrnyn" })
if isNone(title) then return nil end
local items = {}
for n = 1, MAX_PARTS do
local item = getManual(args, { "p" .. n })
if item then table.insert(items, item) end
end
local fromWd = false
local label = getManual(args, { "sorçh_ayrnyn" })
if #items == 0 and not title then
items = getWdItemList("P150", MAX_PARTS)
fromWd = #items > 0
if not fromWd then return nil end
label = label or "Ayrnyn"
end
label = label or "Baljyn corpagh"
local mode = getManual(args, { "aght_ayrnyn" })
local value
if #items == 0 then
value = title
elseif mode == "para" then
value = (title and ("<b>" .. title .. ": </b>") or "") .. table.concat(items, ", ")
else
local expand
if mode == "coll" then expand = ""
elseif mode == "list" then expand = "y"
else expand = (#items >= 6) and "" or "y" end
local callArgs = { title = title or "", expand = expand }
for i, item in ipairs(items) do callArgs[i] = item end
value = frame:expandTemplate{ title = "Collapsible list", args = callArgs }
end
local ref = fromWd and getWdReference("P150") or getManual(args, { "imraa_ayrnyn" })
if ref and ref ~= "" then value = value .. (fromWd and ref or (wrapReference(ref) or "")) end
local note = getManual(args, { "noteyn_ayrnyn" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
return { label = label, value = value }
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
local function add(entry)
if entry then
table.insert(rows, row(#rows == 0 and "mergedtoprow" or "mergedrow", entry.label, entry.value))
end
end
add(buildSeat(frame, args, "", getSeatLabel(), "P36"))
add(buildSeat(frame, args, "1", "Eear-hoiag", nil))
add(buildParts(frame, args))
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
8nhnss42pjp59v6hgh6q85ej0vwqggu
395351
395344
2026-10-26T19:44:24Z
MacTire02
219
++
395351
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_PARTS = 50
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
-- Item values of a property as a list of Manx links or labels.
local function getWdItemList(property, limit)
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements(property)
local items = {}
if not statements then return items end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local sitelink = mw.wikibase.sitelink(id)
local text
if sitelink and sitelink ~= "" then
text = "[[" .. sitelink .. "]]"
else
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then text = label end
end
if text then table.insert(items, text) end
if #items >= limit then break end
end
end
return items
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local function row(class, label, value)
return '<tr class="' .. class .. '"><th scope="row" ' .. TH .. '>' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
-- Label of the first seat by the item's type (P31). Add exceptions to this list; the first match wins.
local SEAT_LABELS = {
{ class = "Q179872", label = "Balley coontae" }, -- county of Ireland
{ class = "Q47168", label = "Soiag y choontae" }, -- county of the United States
}
local DEFAULT_SEAT_LABEL = "Preeu-valley"
local function getSeatLabel()
local entity = mw.wikibase.getEntityObject()
local types = {}
for _, statement in ipairs(entity and entity:getAllStatements("P31") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
types[snak.datavalue.value.id or ("Q" .. tostring(snak.datavalue.value["numeric-id"]))] = true
end
end
for _, rule in ipairs(SEAT_LABELS) do
if types[rule.class] then return rule.label end
end
return DEFAULT_SEAT_LABEL
end
-- Seat line (soiag; legacy soieag accepted): manual (or none), else Wikidata capital (P36) for the first seat only.
local function buildSeat(frame, args, suffix, defaultLabel, property)
local manual = getManual(args, { "soiag" .. suffix, "soieag" .. suffix, suffix == "" and "preeu-valley" or "preeu-valley" .. suffix })
if isNone(manual) then return nil end
local value = manual
if not value and property then
local items = getWdItemList(property, 3)
if #items > 0 then value = table.concat(items, ", ") .. getWdReference(property) end
elseif value then
local note = getManual(args, { "noteyn_soiag" .. suffix, "noteyn_soieag" .. suffix })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_soiag" .. suffix, "imraa_soieag" .. suffix })
if ref then value = value .. (wrapReference(ref) or "") end
end
if not value then return nil end
local label = getManual(args, { "sorçh_soiag" .. suffix, "sorçh_soieag" .. suffix }) or defaultLabel
return { label = label, value = value }
end
-- Parts list: manual p1..p50 or Wikidata P150, as a sentence, a collapsible list or a plain list.
local function buildParts(frame, args)
local title = getManual(args, { "ayrnyn" })
if isNone(title) then return nil end
local items = {}
for n = 1, MAX_PARTS do
local item = getManual(args, { "p" .. n })
if item then table.insert(items, item) end
end
local fromWd = false
local label = getManual(args, { "sorçh_ayrnyn" })
if #items == 0 and not title then
items = getWdItemList("P150", MAX_PARTS)
fromWd = #items > 0
if not fromWd then return nil end
label = label or "Ayrnyn"
end
label = label or "Baljyn corpagh"
local mode = getManual(args, { "aght_ayrnyn" })
local value
if #items == 0 then
value = title
elseif mode == "para" then
value = (title and ("<b>" .. title .. ": </b>") or "") .. table.concat(items, ", ")
else
local expand
if mode == "coll" then expand = ""
elseif mode == "list" then expand = "y"
else expand = (#items >= 6) and "" or "y" end
local callArgs = { title = title or "", expand = expand }
for i, item in ipairs(items) do callArgs[i] = item end
value = frame:expandTemplate{ title = "Collapsible list", args = callArgs }
end
local ref = fromWd and getWdReference("P150") or getManual(args, { "imraa_ayrnyn" })
if ref and ref ~= "" then value = value .. (fromWd and ref or (wrapReference(ref) or "")) end
local note = getManual(args, { "noteyn_ayrnyn" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
return { label = label, value = value }
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
local function add(entry)
if entry then
table.insert(rows, row(#rows == 0 and "mergedtoprow" or "mergedrow", entry.label, entry.value))
end
end
add(buildSeat(frame, args, "", getSeatLabel(), "P36"))
add(buildSeat(frame, args, "1", "Eear-hoiag", nil))
add(buildParts(frame, args))
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
sjnwvwcr6eo8862tblf19tg285crb91
395381
395351
2026-10-26T23:03:05Z
MacTire02
219
++
395381
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_PARTS = 50
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
-- Item values of a property as a list of Manx links or labels.
local function getWdItemList(property, limit, linkLabels)
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements(property)
local items = {}
if not statements then return items end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local sitelink = mw.wikibase.sitelink(id)
local text
if sitelink and sitelink ~= "" then
text = "[[" .. sitelink .. "]]"
else
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then text = linkLabels and ("[[" .. mw.text.nowiki(label) .. "]]") or label end
end
if text then table.insert(items, text) end
if #items >= limit then break end
end
end
return items
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local function row(class, label, value)
return '<tr class="' .. class .. '"><th scope="row" ' .. TH .. '>' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
-- Label of the first seat by the item's type (P31). Add exceptions to this list; the first match wins.
local SEAT_LABELS = {
{ class = "Q179872", label = "Balley coontae" }, -- county of Ireland
{ class = "Q47168", label = "Soiag y choontae" }, -- county of the United States
}
local DEFAULT_SEAT_LABEL = "Preeu-valley"
local function getSeatLabel()
local entity = mw.wikibase.getEntityObject()
local types = {}
for _, statement in ipairs(entity and entity:getAllStatements("P31") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
types[snak.datavalue.value.id or ("Q" .. tostring(snak.datavalue.value["numeric-id"]))] = true
end
end
for _, rule in ipairs(SEAT_LABELS) do
if types[rule.class] then return rule.label end
end
return DEFAULT_SEAT_LABEL
end
-- Seat line (soiag; legacy soieag accepted): manual (or none), else Wikidata capital (P36) for the first seat only.
local function buildSeat(frame, args, suffix, defaultLabel, property)
local manual = getManual(args, { "soiag" .. suffix, "soieag" .. suffix, suffix == "" and "preeu-valley" or "preeu-valley" .. suffix })
if isNone(manual) then return nil end
local value = manual
if not value and property then
local items = getWdItemList(property, 3, true)
if #items > 0 then value = table.concat(items, ", ") .. getWdReference(property) end
elseif value then
local note = getManual(args, { "noteyn_soiag" .. suffix, "noteyn_soieag" .. suffix })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_soiag" .. suffix, "imraa_soieag" .. suffix })
if ref then value = value .. (wrapReference(ref) or "") end
end
if not value then return nil end
local label = getManual(args, { "sorçh_soiag" .. suffix, "sorçh_soieag" .. suffix }) or defaultLabel
return { label = label, value = value }
end
-- Parts list: manual p1..p50 or Wikidata P150, as a sentence, a collapsible list or a plain list.
local function buildParts(frame, args)
local title = getManual(args, { "ayrnyn" })
if isNone(title) then return nil end
local items = {}
for n = 1, MAX_PARTS do
local item = getManual(args, { "p" .. n })
if item then table.insert(items, item) end
end
local fromWd = false
local label = getManual(args, { "sorçh_ayrnyn" })
if #items == 0 and not title then
items = getWdItemList("P150", MAX_PARTS)
fromWd = #items > 0
if not fromWd then return nil end
label = label or "Ayrnyn"
end
label = label or "Baljyn corpagh"
local mode = getManual(args, { "aght_ayrnyn" })
local value
if #items == 0 then
value = title
elseif mode == "para" then
value = (title and ("<b>" .. title .. ": </b>") or "") .. table.concat(items, ", ")
else
local expand
if mode == "coll" then expand = ""
elseif mode == "list" then expand = "y"
else expand = (#items >= 6) and "" or "y" end
local callArgs = { title = title or "", expand = expand }
for i, item in ipairs(items) do callArgs[i] = item end
value = frame:expandTemplate{ title = "Collapsible list", args = callArgs }
end
local ref = fromWd and getWdReference("P150") or getManual(args, { "imraa_ayrnyn" })
if ref and ref ~= "" then value = value .. (fromWd and ref or (wrapReference(ref) or "")) end
local note = getManual(args, { "noteyn_ayrnyn" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
return { label = label, value = value }
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
local function add(entry)
if entry then
table.insert(rows, row(#rows == 0 and "mergedtoprow" or "mergedrow", entry.label, entry.value))
end
end
add(buildSeat(frame, args, "", getSeatLabel(), "P36"))
add(buildSeat(frame, args, "1", "Eear-hoiag", nil))
add(buildParts(frame, args))
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
5mmpj59ia79btvs6nijpx6edjzpev5f
395398
395381
2026-10-27T00:28:21Z
MacTire02
219
++
395398
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_PARTS = 50
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
-- Item values of a property as a list of Manx links or labels.
local function getWdItemList(property, limit, linkLabels)
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements(property)
local items = {}
if not statements then return items end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local sitelink = mw.wikibase.sitelink(id)
local text
if sitelink and sitelink ~= "" then
text = "[[" .. sitelink .. "]]"
else
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then text = linkLabels and ("[[" .. mw.text.nowiki(label) .. "]]") or label end
end
if text then table.insert(items, text) end
if #items >= limit then break end
end
end
return items
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local function row(class, label, value)
return '<tr class="' .. class .. '"><th scope="row" ' .. TH .. '>' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
-- Label of the first seat by the item's type (P31). Add exceptions to this list; the first match wins.
local SEAT_LABELS = {
{ class = "Q179872", label = "Balley coontae" }, -- county of Ireland
{ class = "Q47168", label = "Soiag y choontae" }, -- county of the United States
}
local DEFAULT_SEAT_LABEL = "Preeu-valley"
local function getSeatLabel()
local entity = mw.wikibase.getEntityObject()
local types = {}
for _, statement in ipairs(entity and entity:getAllStatements("P31") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
types[snak.datavalue.value.id or ("Q" .. tostring(snak.datavalue.value["numeric-id"]))] = true
end
end
for _, rule in ipairs(SEAT_LABELS) do
if types[rule.class] then return rule.label end
end
return DEFAULT_SEAT_LABEL
end
-- Seat line (soiag; legacy soieag accepted): manual (or none), else Wikidata capital (P36) for the first seat only.
local function buildSeat(frame, args, suffix, defaultLabel, property)
local manual = getManual(args, { "soiag" .. suffix, "soieag" .. suffix, suffix == "" and "preeu-valley" or "preeu-valley" .. suffix })
if isNone(manual) then return nil end
local value = manual
if not value and property then
local items = getWdItemList(property, 3, true)
if #items > 0 then value = table.concat(items, ", ") .. getWdReference(property) end
elseif value then
local note = getManual(args, { "noteyn_soiag" .. suffix, "noteyn_soieag" .. suffix })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_soiag" .. suffix, "imraa_soieag" .. suffix })
if ref then value = value .. (wrapReference(ref) or "") end
end
if not value then return nil end
local label = getManual(args, { "sorçh_soiag" .. suffix, "sorçh_soieag" .. suffix }) or defaultLabel
return { label = label, value = value }
end
-- Sort key: display text, lower case, without the articles y / yn / ny, accents and ç folded away.
local FOLD = { ["ç"] = "c", ["á"] = "a", ["é"] = "e", ["í"] = "i", ["ó"] = "o", ["ú"] = "u", ["ö"] = "o", ["ä"] = "a", ["ë"] = "e", ["ï"] = "i", ["ü"] = "u" }
local function sortKey(text)
local shown = text:match("%[%[[^%]|]*|([^%]]*)%]%]") or text:match("%[%[([^%]]*)%]%]") or text
shown = mw.ustring.lower(shown)
for from, to in pairs(FOLD) do shown = mw.ustring.gsub(shown, from, to) end
local words = {}
for word in string.gmatch(shown, "%S+") do
if word ~= "y" and word ~= "yn" and word ~= "ny" then table.insert(words, word) end
end
return table.concat(words, " ")
end
-- Parts list: manual p1..p50 or Wikidata P150, as a sentence, a collapsible list or a plain list.
local function buildParts(frame, args)
local title = getManual(args, { "ayrnyn" })
if isNone(title) then return nil end
local items = {}
for n = 1, MAX_PARTS do
local item = getManual(args, { "p" .. n })
if item then table.insert(items, item) end
end
local fromWd = false
local label = getManual(args, { "sorçh_ayrnyn" })
if #items == 0 and not title then
items = getWdItemList("P150", MAX_PARTS)
table.sort(items, function(a, b)
local ka, kb = sortKey(a), sortKey(b)
if ka ~= kb then return ka < kb end
return a < b
end)
fromWd = #items > 0
if not fromWd then return nil end
label = label or "Ayrnyn"
end
label = label or "Baljyn corpagh"
local mode = getManual(args, { "aght_ayrnyn" })
local value
if #items == 0 then
value = title
elseif mode == "para" then
value = (title and ("<b>" .. title .. ": </b>") or "") .. table.concat(items, ", ")
else
local expand
if mode == "coll" then expand = ""
elseif mode == "list" then expand = "y"
else expand = (#items >= 6) and "" or "y" end
local callArgs = { title = title or "", expand = expand }
for i, item in ipairs(items) do callArgs[i] = item end
value = frame:expandTemplate{ title = "Collapsible list", args = callArgs }
end
local ref = fromWd and getWdReference("P150") or getManual(args, { "imraa_ayrnyn" })
if ref and ref ~= "" then value = value .. (fromWd and ref or (wrapReference(ref) or "")) end
local note = getManual(args, { "noteyn_ayrnyn" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
return { label = label, value = value }
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local rows = {}
local function add(entry)
if entry then
table.insert(rows, row(#rows == 0 and "mergedtoprow" or "mergedrow", entry.label, entry.value))
end
end
add(buildSeat(frame, args, "", getSeatLabel(), "P36"))
add(buildSeat(frame, args, "1", "Eear-hoiag", nil))
add(buildParts(frame, args))
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
mpwn4ie3hm852izjh7srepjpbj6s8z5
Module:Kishtey fys boayl/bunneeaght
828
56346
395337
395267
2026-10-26T15:09:05Z
MacTire02
219
++
395337
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local MAX_EVENTS = 5
local MAX_ITEMS = 10
-- Years below this get the BNJ suffix (common era); earlier-era years always get RC.
local BNJ_BELOW = 100
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property)
if not okWd or not Wd or not Wd._reference then return "" end
local ok, result = pcall(Wd._reference, { "best", property })
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function withRefNote(value, frame, ref, note)
if note and note ~= "" then
value = value .. frame:expandTemplate{ title = "efn", args = { note } }
end
if ref then value = value .. (wrapReference(ref) or "") end
return value
end
-- Date from the first best-rank time statement, formatted to its precision in Manx.
local function getWdDate(property)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "time" then
local value = snak.datavalue.value
local sign, y, m, d = tostring(value.time):match("^([+-])(%d+)%-(%d+)%-(%d+)")
if y then
local precision = value.precision or 9
local yearNumber = tonumber(y)
if sign == "-" then return yearNumber .. " RC" end
if precision >= 11 and tonumber(m) > 0 and tonumber(d) > 0 and yearNumber >= BNJ_BELOW then
return mw.getContentLanguage():formatDate("j F Y", string.format("%04d-%02d-%02d", yearNumber, tonumber(m), tonumber(d)))
elseif precision == 10 and tonumber(m) > 0 and yearNumber >= BNJ_BELOW then
return mw.getContentLanguage():formatDate("F Y", string.format("%04d-%02d-01", yearNumber, tonumber(m)))
elseif precision == 8 then
return tostring(math.floor(yearNumber / 10) * 10) .. "s"
elseif precision <= 7 then
return nil
end
if yearNumber < BNJ_BELOW then return yearNumber .. " BNJ" end
return tostring(yearNumber)
end
end
end
return nil
end
-- Item values of a property as Manx links or labels, comma-separated.
local function getWdItems(property)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local statements = entity:getBestStatements(property)
if not statements then return nil end
local items = {}
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local value = snak.datavalue.value
local id = value.id or ("Q" .. tostring(value["numeric-id"]))
local sitelink = mw.wikibase.sitelink(id)
local text
if sitelink and sitelink ~= "" then
text = "[[" .. sitelink .. "]]"
else
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then text = label end
end
if text then table.insert(items, text) end
if #items >= MAX_ITEMS then break end
end
end
if #items == 0 then return nil end
return table.concat(items, ", ")
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local SUBTH = 'style="vertical-align:top; text-align:left; font-weight:normal; width:8em; max-width:8em; padding:0.15em 0.4em 0.15em 1.7em; text-indent:-0.8em;"'
-- Bullet row with a hanging indent.
local function subrow(label, value)
return '<tr class="mergedrow"><th scope="row" ' .. SUBTH .. '>• ' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
local function row(class, label, value)
return '<tr class="' .. class .. '"><th scope="row" ' .. TH .. '>' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
-- One line: manual value (or none), else Wikidata. Returns value and whether it came from Wikidata.
local function resolve(args, names, fetch, property)
local manual = getManual(args, names)
if isNone(manual) then return nil end
if manual then return manual, false end
local value = fetch()
if value then return value .. getWdReference(property), true end
return nil
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
-- bunneeaght_wd = none switches every Wikidata fill in this section off.
local wdOff = isNone(getManual(args, { "bunneeaght_wd" }))
-- Manual dated events: date_bunneeaght[N] with enmys_bunneeaght[N].
local events = {}
local eventsOff = false
for n = 0, MAX_EVENTS do
local suffix = (n == 0) and "" or tostring(n)
local date = getManual(args, { "date_bunneeaght" .. suffix })
if isNone(date) then
if n == 0 then eventsOff = true end
elseif date then
table.insert(events, { date = date, text = getManual(args, { "enmys_bunneeaght" .. suffix }) or "" })
end
end
local founder = resolve(args, { "bunneyder" }, function() return not wdOff and getWdItems("P112") or nil end, "P112")
local namedAfter = resolve(args, { "enmysit_son" }, function() return not wdOff and getWdItems("P138") or nil end, "P138")
local inception
if #events == 0 and not eventsOff and not wdOff then
inception = getWdDate("P571")
if inception then inception = inception .. getWdReference("P571") end
end
local endDate = getManual(args, { "date_mooghey" })
local endText = getManual(args, { "enmys_mooghey" })
local endLabel, endValue
if isNone(endDate) then
endDate = nil
elseif endDate then
endLabel, endValue = endText or "Mooghey", endDate
else
local wdEnd = not wdOff and getWdDate("P576") or nil
if wdEnd then endLabel, endValue = "Mooghey", wdEnd .. getWdReference("P576") end
end
local rows = {}
local function add(class, label, value) table.insert(rows, row(class, label, value)) end
local function nextClass() return (#rows == 0) and "mergedtoprow" or "mergedrow" end
if #events > 0 or getManual(args, { "bunneyder" }) or getManual(args, { "enmysit_son" }) then
local note = getManual(args, { "fo-noteyn_bunneeaght" }) or ""
table.insert(rows, '<tr class="' .. nextClass() .. '"><td colspan="2" style="padding:0.2em 0.6em;"><b>Bunneeaght</b>' .. note .. '</td></tr>')
for _, event in ipairs(events) do
table.insert(rows, subrow(event.text, event.date))
end
elseif inception then
add(nextClass(), "Bunneeaght", inception)
end
if endLabel then add(nextClass(), endLabel, endValue) end
if founder then add(nextClass(), "Bunneyder", withRefNote(founder, frame, getManual(args, { "imraa_bunneyder" }), getManual(args, { "noteyn_bunneyder" }))) end
if namedAfter then add(nextClass(), "Enmysit son", withRefNote(namedAfter, frame, getManual(args, { "imraa_enmysit_son" }), getManual(args, { "noteyn_enmysit_son" }))) end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
mittbqixedrhq2xf9n2jgt7mcsro2po
Module:Kishtey fys boayl/reiltys
828
56347
395335
395266
2026-10-26T15:02:45Z
MacTire02
219
++
395335
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local okEnnym, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local MAX_LEADERS = 6
local MAX_CONSTITUENCIES = 12
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
local function entityId(value)
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
-- Manx link or label for an item.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- Person: Manx link/label, else label in any language as a red link.
local function personText(id)
local text = itemText(id)
if text then return text end
if okEnnym and EnnymWd and EnnymWd.labelWithFallback then
local ok, _, _, raw = pcall(EnnymWd.labelWithFallback, id)
if ok and raw and raw ~= "" then return "[[" .. mw.text.nowiki(raw) .. "]]" end
end
local label = mw.wikibase.getLabel(id)
if label and label ~= "" then return "[[" .. mw.text.nowiki(label) .. "]]" end
return nil
end
-- First best-rank item of a property on the current page or on another item.
local function firstItem(id, property)
local statements
if id then
statements = mw.wikibase.getBestStatements(id, property)
else
local entity = mw.wikibase.getEntityObject()
statements = entity and entity:getBestStatements(property)
end
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
return entityId(snak.datavalue.value), statement
end
end
return nil
end
-- Office item as a Manx link or label; English label as a last resort.
local function officeText(id)
local text = itemText(id)
if text then return text:sub(1, 2) == "[[" and text or ucfirst(text) end
local label = mw.wikibase.getLabel(id)
if label and label ~= "" then return ucfirst(label) end
return nil
end
-- Office the person currently holds (P39, no end time); prefers one qualified "of" this place.
local function personOffice(personId, placeId)
local statements = mw.wikibase.getBestStatements(personId, "P39")
local fallback
for _, statement in ipairs(statements or {}) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and not ended then
local id = entityId(snak.datavalue.value)
fallback = fallback or id
for _, q in ipairs((statement.qualifiers and statement.qualifiers.P642) or {}) do
if q.datavalue and entityId(q.datavalue.value) == placeId then return id end
end
end
end
return fallback
end
-- Current heads of government (P6): no end date; title from the place's office (P1313), else the person's own office (P39).
local function getWdLeaders()
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements("P6")
local leaders = {}
if not statements then return leaders end
local officeId = firstItem(nil, "P1313")
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" and not ended then
local id = entityId(snak.datavalue.value)
local text = personText(id)
if text then
local label = officeId and officeText(officeId)
local labelRef = ""
if label then
labelRef = getWdReference("P1313", officeId)
else
local held = personOffice(id, entity.id)
label = held and officeText(held)
if label then labelRef = getWdReference("P39", held, id) end
end
table.insert(leaders, { text = text, label = label or "Toshiagh", id = id, labelRef = labelRef })
end
if #leaders >= MAX_LEADERS then break end
end
end
return leaders
end
local function getCountryName(args)
local manual = getManual(args, { "aarheynn", "ennym_aarheynn", "çheer" })
if manual then return manual end
local id = firstItem(nil, "P17")
return id and mw.wikibase.getLabelByLang(id, "gv") or nil
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local SUBTH = 'style="vertical-align:top; text-align:left; font-weight:normal; width:8em; max-width:8em; padding:0.15em 0.4em 0.15em 1.7em; text-indent:-0.8em;"'
local function row(label, value, class)
return '<tr class="mergedrow"><th scope="row" ' .. SUBTH .. '>• ' .. label .. '</th><td ' .. TD .. (class and (' class="' .. class .. '"') or '') .. '>' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "reiltys_wd" }))
local rows = {}
local wdRefProperty
-- Government type: manual, else basic form of government (P122).
local kind = getManual(args, { "sorçh_reiltys" })
if not isNone(kind) then
if not kind and not wdOff then
local id = firstItem(nil, "P122")
local text = id and itemText(id)
if text then kind = ucfirst(text) .. getWdReference("P122") end
end
if kind then table.insert(rows, row("Sorçh", kind)) end
end
-- Governing body: manual only.
local body = getManual(args, { "colught_reirey" })
if body and not isNone(body) then table.insert(rows, row("Colught", body, "agent")) end
-- Leaders: new toshiagh names first, then legacy fer-toshee (misnomer, "male leader") and fer_toshee.
local function leaderNames(base, suffix)
return { base .. "_toshiagh" .. suffix, base .. "_fer-toshee" .. suffix, base .. "_fer_toshee" .. suffix }
end
local manualLeaders = 0
for n = 0, MAX_LEADERS do
local suffix = (n == 0) and "" or tostring(n)
local title = getManual(args, leaderNames("enmys", suffix))
if title and not isNone(title) then
local nameParams = { "toshiagh" .. suffix, "fer-toshee" .. suffix }
for _, p in ipairs(leaderNames("ennym", suffix)) do table.insert(nameParams, p) end
local name = getManual(args, nameParams) or ""
local party = (n == 0) and getManual(args, { "partee_toshiagh", "partee_fer-toshee", "partee_fer_toshee" }) or nil
if party and not isNone(party) then
local country = getCountryName(args)
local rendered = country and frame:expandTemplate{ title = "ParteePol", args = { country, party } } or party
name = name .. " (" .. rendered .. ")"
end
local note = getManual(args, leaderNames("noteyn", suffix))
if note then name = name .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, leaderNames("imraa", suffix))
if ref then name = name .. (wrapReference(ref) or "") end
table.insert(rows, row(title, name))
manualLeaders = manualLeaders + 1
end
end
if manualLeaders == 0 and not wdOff and not isNone(getManual(args, leaderNames("enmys", ""))) then
local leaders = getWdLeaders()
for _, leader in ipairs(leaders) do
table.insert(rows, row(leader.label, leader.text .. getWdReference("P6", leader.id) .. leader.labelRef))
end
end
-- Constituencies: rheynn-reihys, rheynn-reihys2..N (list), rheynnyn-reihys (free text); else P7938.
local function constNames(base, n) return { base .. "-reihys" .. n, base .. "_reihys" .. n } end
local constNone = isNone(getManual(args, constNames("rheynn", ""))) or isNone(getManual(args, constNames("rheynnyn", "")))
if not constNone then
local items, plural = {}, false
for n = 1, MAX_CONSTITUENCIES do
local value = getManual(args, constNames("rheynn", (n == 1) and "" or tostring(n)))
if value then table.insert(items, value) end
end
local freeText = getManual(args, constNames("rheynnyn", ""))
local fromWd = false
if freeText then
plural = true
items = { freeText }
elseif #items == 0 and not wdOff then
local entity = mw.wikibase.getEntityObject()
for _, statement in ipairs(entity and entity:getBestStatements("P7938") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local text = itemText(entityId(snak.datavalue.value))
if text then table.insert(items, text) end
end
if #items >= MAX_CONSTITUENCIES then break end
end
fromWd = #items > 0
end
if #items > 0 then
plural = plural or #items > 1
local value = (#items == 1) and items[1] or frame:expandTemplate{ title = "Unbulleted list", args = items }
if fromWd then value = value .. getWdReference("P7938") end
local note = getManual(args, { "noteyn_rheynn-reihys", "noteyn_rheynn_reihys" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_rheynn-reihys", "imraa_rheynn_reihys" })
if ref then value = value .. (wrapReference(ref) or "") end
local label = getManual(args, { "enmys_rheynn_reihys", "enmys_rheynn-reihys" }) or (plural and "Rheynnyn-reihys" or "Rheynn-reihys")
table.insert(rows, row(label, value))
end
end
if #rows == 0 then return nil end
local note = getManual(args, { "fo-noteyn_reiltys" }) or ""
local header = '<tr class="mergedtoprow"><td colspan="2" style="padding:0.2em 0.6em;"><b>Reiltys</b>' .. note .. '</td></tr>'
return header .. table.concat(rows)
end
return p
h0d9tmxnxvi783dd7b4zz51rt471cbc
395346
395335
2026-10-26T17:31:08Z
MacTire02
219
++
395346
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local okEnnym, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local MAX_LEADERS = 6
local MAX_CONSTITUENCIES = 12
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
local function entityId(value)
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
-- Manx link or label for an item.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- Person: Manx link/label, else label in any language as a red link.
local function personText(id)
local text = itemText(id)
if text then return text end
if okEnnym and EnnymWd and EnnymWd.labelWithFallback then
local ok, _, _, raw = pcall(EnnymWd.labelWithFallback, id)
if ok and raw and raw ~= "" then return "[[" .. mw.text.nowiki(raw) .. "]]" end
end
local label = mw.wikibase.getLabel(id)
if label and label ~= "" then return "[[" .. mw.text.nowiki(label) .. "]]" end
return nil
end
-- Body (executive/legislative): Manx link, else external link to the Wikidata item so shared generic names never collide as red links.
local function bodyText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return "[https://www.wikidata.org/wiki/" .. id .. " " .. ucfirst(label) .. "]" end
if okEnnym and EnnymWd and EnnymWd.labelWithFallback then
local ok, text = pcall(EnnymWd.labelWithFallback, id)
if ok and text and text ~= "" then return text end
end
local en = mw.wikibase.getLabel(id)
if en and en ~= "" then return "[https://www.wikidata.org/wiki/" .. id .. " " .. mw.text.nowiki(en) .. "]" end
return nil
end
-- First best-rank item of a property on the current page or on another item.
local function firstItem(id, property)
local statements
if id then
statements = mw.wikibase.getBestStatements(id, property)
else
local entity = mw.wikibase.getEntityObject()
statements = entity and entity:getBestStatements(property)
end
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
return entityId(snak.datavalue.value), statement
end
end
return nil
end
-- Office item as a Manx link or label; English label as a last resort.
local function officeText(id)
local text = itemText(id)
if text then return text:sub(1, 2) == "[[" and text or ucfirst(text) end
local label = mw.wikibase.getLabel(id)
if label and label ~= "" then return ucfirst(label) end
return nil
end
-- Office the person currently holds (P39, no end time); prefers one qualified "of" this place.
local function personOffice(personId, placeId)
local statements = mw.wikibase.getBestStatements(personId, "P39")
local fallback
for _, statement in ipairs(statements or {}) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and not ended then
local id = entityId(snak.datavalue.value)
fallback = fallback or id
for _, q in ipairs((statement.qualifiers and statement.qualifiers.P642) or {}) do
if q.datavalue and entityId(q.datavalue.value) == placeId then return id end
end
end
end
return fallback
end
-- Current heads of government (P6): no end date; title from the place's office (P1313), else the person's own office (P39).
local function getWdLeaders()
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements("P6")
local leaders = {}
if not statements then return leaders end
local officeId = firstItem(nil, "P1313")
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" and not ended then
local id = entityId(snak.datavalue.value)
local text = personText(id)
if text then
local label = officeId and officeText(officeId)
local labelRef = ""
if label then
labelRef = getWdReference("P1313", officeId)
else
local held = personOffice(id, entity.id)
label = held and officeText(held)
if label then labelRef = getWdReference("P39", held, id) end
end
table.insert(leaders, { text = text, label = label or "Toshiagh", id = id, labelRef = labelRef })
end
if #leaders >= MAX_LEADERS then break end
end
end
return leaders
end
local function getCountryName(args)
local manual = getManual(args, { "aarheynn", "ennym_aarheynn", "çheer" })
if manual then return manual end
local id = firstItem(nil, "P17")
return id and mw.wikibase.getLabelByLang(id, "gv") or nil
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local SUBTH = 'style="vertical-align:top; text-align:left; font-weight:normal; width:8em; max-width:8em; padding:0.15em 0.4em 0.15em 1.7em; text-indent:-0.8em;"'
local function row(label, value, class)
return '<tr class="mergedrow"><th scope="row" ' .. SUBTH .. '>• ' .. label .. '</th><td ' .. TD .. (class and (' class="' .. class .. '"') or '') .. '>' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "reiltys_wd" }))
local rows = {}
local wdRefProperty
-- Government type: manual, else basic form of government (P122).
local kind = getManual(args, { "sorçh_reiltys" })
if not isNone(kind) then
if not kind and not wdOff then
local id = firstItem(nil, "P122")
local text = id and itemText(id)
if text then kind = ucfirst(text) .. getWdReference("P122") end
end
if kind then table.insert(rows, row("Sorçh", kind)) end
end
-- Governing/executive body: manual, else executive body (P208).
local body = getManual(args, { "colught_reirey", "colught_gimmeeyder" })
if not isNone(body) then
if not body and not wdOff then
local id = firstItem(nil, "P208")
local text = id and bodyText(id)
if text then body = text .. getWdReference("P208", id) end
end
if body then table.insert(rows, row("[[Çhionnal kiannoortagh]]", body, "agent")) end
end
-- Legislature: manual, else legislative body (P194).
local legislature = getManual(args, { "çhionnal", "quaiyl" })
if not isNone(legislature) then
if not legislature and not wdOff then
local id = firstItem(nil, "P194")
local text = id and bodyText(id)
if text then legislature = text .. getWdReference("P194", id) end
end
if legislature then
local note = getManual(args, { "noteyn_çhionnal", "noteyn_quaiyl" })
if note then legislature = legislature .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_çhionnal", "imraa_quaiyl" })
if ref then legislature = legislature .. (wrapReference(ref) or "") end
table.insert(rows, row("[[Çhionnal slattyssagh]]", legislature))
end
end
for _, house in ipairs({
{ { "thie_heose", "quaiyl_syrjey" }, "[[Thie heose]]" },
{ { "thie_heese", "quaiyl_s'inshley", "quaiyl_sinshley" }, "[[Thie heese]]" },
}) do
local value = getManual(args, house[1])
if value and not isNone(value) then table.insert(rows, row(house[2], value)) end
end
-- Leaders: new toshiagh names first, then legacy fer-toshee (misnomer, "male leader") and fer_toshee.
local function leaderNames(base, suffix)
return { base .. "_toshiagh" .. suffix, base .. "_fer-toshee" .. suffix, base .. "_fer_toshee" .. suffix }
end
local manualLeaders = 0
for n = 0, MAX_LEADERS do
local suffix = (n == 0) and "" or tostring(n)
local title = getManual(args, leaderNames("enmys", suffix))
if title and not isNone(title) then
local nameParams = { "toshiagh" .. suffix, "fer-toshee" .. suffix }
for _, p in ipairs(leaderNames("ennym", suffix)) do table.insert(nameParams, p) end
local name = getManual(args, nameParams) or ""
local party = (n == 0) and getManual(args, { "partee_toshiagh", "partee_fer-toshee", "partee_fer_toshee" }) or nil
if party and not isNone(party) then
local country = getCountryName(args)
local rendered = country and frame:expandTemplate{ title = "ParteePol", args = { country, party } } or party
name = name .. " (" .. rendered .. ")"
end
local note = getManual(args, leaderNames("noteyn", suffix))
if note then name = name .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, leaderNames("imraa", suffix))
if ref then name = name .. (wrapReference(ref) or "") end
table.insert(rows, row(title, name))
manualLeaders = manualLeaders + 1
end
end
if manualLeaders == 0 and not wdOff and not isNone(getManual(args, leaderNames("enmys", ""))) then
local leaders = getWdLeaders()
for _, leader in ipairs(leaders) do
table.insert(rows, row(leader.label, leader.text .. getWdReference("P6", leader.id) .. leader.labelRef))
end
if #leaders == 0 then
-- No person recorded: show the office itself (P1313), or the office item if P6 points at one.
local officeId = firstItem(nil, "P1313") or firstItem(nil, "P6")
local text = officeId and officeText(officeId)
if text then
table.insert(rows, row("Toshiagh", text .. getWdReference(firstItem(nil, "P1313") and "P1313" or "P6", officeId)))
end
end
end
-- Constituencies: rheynn-reihys, rheynn-reihys2..N (list), rheynnyn-reihys (free text); else P7938.
local function constNames(base, n) return { base .. "-reihys" .. n, base .. "_reihys" .. n } end
local constNone = isNone(getManual(args, constNames("rheynn", ""))) or isNone(getManual(args, constNames("rheynnyn", "")))
if not constNone then
local items, plural = {}, false
for n = 1, MAX_CONSTITUENCIES do
local value = getManual(args, constNames("rheynn", (n == 1) and "" or tostring(n)))
if value then table.insert(items, value) end
end
local freeText = getManual(args, constNames("rheynnyn", ""))
local fromWd = false
if freeText then
plural = true
items = { freeText }
elseif #items == 0 and not wdOff then
local entity = mw.wikibase.getEntityObject()
for _, statement in ipairs(entity and entity:getBestStatements("P7938") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local text = itemText(entityId(snak.datavalue.value))
if text then table.insert(items, text) end
end
if #items >= MAX_CONSTITUENCIES then break end
end
fromWd = #items > 0
end
if #items > 0 then
plural = plural or #items > 1
local value = (#items == 1) and items[1] or frame:expandTemplate{ title = "Unbulleted list", args = items }
if fromWd then value = value .. getWdReference("P7938") end
local note = getManual(args, { "noteyn_rheynn-reihys", "noteyn_rheynn_reihys" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_rheynn-reihys", "imraa_rheynn_reihys" })
if ref then value = value .. (wrapReference(ref) or "") end
local label = getManual(args, { "enmys_rheynn_reihys", "enmys_rheynn-reihys" }) or (plural and "Rheynnyn-reihys" or "Rheynn-reihys")
table.insert(rows, row(label, value))
end
end
if #rows == 0 then return nil end
local note = getManual(args, { "fo-noteyn_reiltys" }) or ""
local header = '<tr class="mergedtoprow"><td colspan="2" style="padding:0.2em 0.6em;"><b>Reiltys</b>' .. note .. '</td></tr>'
return header .. table.concat(rows)
end
return p
sh616312r235xpbmk32rn09xa8gv37x
395347
395346
2026-10-26T17:36:48Z
MacTire02
219
++
395347
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local okEnnym, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local MAX_LEADERS = 6
local MAX_CONSTITUENCIES = 12
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
local function entityId(value)
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
-- Manx link or label for an item.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- Person: Manx link/label, else label in any language as a red link.
local function personText(id)
local text = itemText(id)
if text then return text end
if okEnnym and EnnymWd and EnnymWd.labelWithFallback then
local ok, _, _, raw = pcall(EnnymWd.labelWithFallback, id)
if ok and raw and raw ~= "" then return "[[" .. mw.text.nowiki(raw) .. "]]" end
end
local label = mw.wikibase.getLabel(id)
if label and label ~= "" then return "[[" .. mw.text.nowiki(label) .. "]]" end
return nil
end
-- Body (executive/legislative): Manx link, else external link to the Wikidata item so shared generic names never collide as red links.
local function bodyText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return "[https://www.wikidata.org/wiki/" .. id .. " " .. ucfirst(label) .. "]" end
if okEnnym and EnnymWd and EnnymWd.labelWithFallback then
local ok, text = pcall(EnnymWd.labelWithFallback, id)
if ok and text and text ~= "" then return text end
end
local en = mw.wikibase.getLabel(id)
if en and en ~= "" then return "[https://www.wikidata.org/wiki/" .. id .. " " .. mw.text.nowiki(en) .. "]" end
return nil
end
-- First best-rank item of a property on the current page or on another item.
local function firstItem(id, property)
local statements
if id then
statements = mw.wikibase.getBestStatements(id, property)
else
local entity = mw.wikibase.getEntityObject()
statements = entity and entity:getBestStatements(property)
end
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
return entityId(snak.datavalue.value), statement
end
end
return nil
end
-- Office item as a Manx link or label; English label as a last resort.
local function officeText(id)
local text = itemText(id)
if text then return text:sub(1, 2) == "[[" and text or ucfirst(text) end
return bodyText(id)
end
-- Office the person currently holds (P39, no end time); prefers one qualified "of" this place.
local function personOffice(personId, placeId)
local statements = mw.wikibase.getBestStatements(personId, "P39")
local fallback
for _, statement in ipairs(statements or {}) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and not ended then
local id = entityId(snak.datavalue.value)
fallback = fallback or id
for _, q in ipairs((statement.qualifiers and statement.qualifiers.P642) or {}) do
if q.datavalue and entityId(q.datavalue.value) == placeId then return id end
end
end
end
return fallback
end
-- Current heads of government (P6): no end date; title from the place's office (P1313), else the person's own office (P39).
local function getWdLeaders()
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements("P6")
local leaders = {}
if not statements then return leaders end
local officeId = firstItem(nil, "P1313")
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" and not ended then
local id = entityId(snak.datavalue.value)
local text = personText(id)
if text then
local label = officeId and officeText(officeId)
local labelRef = ""
if label then
labelRef = getWdReference("P1313", officeId)
else
local held = personOffice(id, entity.id)
label = held and officeText(held)
if label then labelRef = getWdReference("P39", held, id) end
end
table.insert(leaders, { text = text, label = label or "Toshiagh", id = id, labelRef = labelRef })
end
if #leaders >= MAX_LEADERS then break end
end
end
return leaders
end
local function getCountryName(args)
local manual = getManual(args, { "aarheynn", "ennym_aarheynn", "çheer" })
if manual then return manual end
local id = firstItem(nil, "P17")
return id and mw.wikibase.getLabelByLang(id, "gv") or nil
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local SUBTH = 'style="vertical-align:top; text-align:left; font-weight:normal; width:8em; max-width:8em; padding:0.15em 0.4em 0.15em 1.7em; text-indent:-0.8em;"'
local function row(label, value, class)
return '<tr class="mergedrow"><th scope="row" ' .. SUBTH .. '>• ' .. label .. '</th><td ' .. TD .. (class and (' class="' .. class .. '"') or '') .. '>' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "reiltys_wd" }))
local rows = {}
local wdRefProperty
-- Government type: manual, else basic form of government (P122).
local kind = getManual(args, { "sorçh_reiltys" })
if not isNone(kind) then
if not kind and not wdOff then
local id = firstItem(nil, "P122")
local text = id and itemText(id)
if text then kind = ucfirst(text) .. getWdReference("P122") end
end
if kind then table.insert(rows, row("Sorçh", kind)) end
end
-- Governing/executive body: manual, else executive body (P208).
local body = getManual(args, { "colught_reirey", "colught_gimmeeyder" })
if not isNone(body) then
if not body and not wdOff then
local id = firstItem(nil, "P208")
local text = id and bodyText(id)
if text then body = text .. getWdReference("P208", id) end
end
if body then table.insert(rows, row("[[Çhionnal kiannoortagh]]", body, "agent")) end
end
-- Legislature: manual, else legislative body (P194).
local legislature = getManual(args, { "çhionnal", "quaiyl" })
if not isNone(legislature) then
if not legislature and not wdOff then
local id = firstItem(nil, "P194")
local text = id and bodyText(id)
if text then legislature = text .. getWdReference("P194", id) end
end
if legislature then
local note = getManual(args, { "noteyn_çhionnal", "noteyn_quaiyl" })
if note then legislature = legislature .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_çhionnal", "imraa_quaiyl" })
if ref then legislature = legislature .. (wrapReference(ref) or "") end
table.insert(rows, row("[[Çhionnal slattyssagh]]", legislature))
end
end
for _, house in ipairs({
{ { "thie_heose", "quaiyl_syrjey" }, "[[Thie heose]]" },
{ { "thie_heese", "quaiyl_s'inshley", "quaiyl_sinshley" }, "[[Thie heese]]" },
}) do
local value = getManual(args, house[1])
if value and not isNone(value) then table.insert(rows, row(house[2], value)) end
end
-- Leaders: new toshiagh names first, then legacy fer-toshee (misnomer, "male leader") and fer_toshee.
local function leaderNames(base, suffix)
return { base .. "_toshiagh" .. suffix, base .. "_fer-toshee" .. suffix, base .. "_fer_toshee" .. suffix }
end
local manualLeaders = 0
for n = 0, MAX_LEADERS do
local suffix = (n == 0) and "" or tostring(n)
local title = getManual(args, leaderNames("enmys", suffix))
if title and not isNone(title) then
local nameParams = { "toshiagh" .. suffix, "fer-toshee" .. suffix }
for _, p in ipairs(leaderNames("ennym", suffix)) do table.insert(nameParams, p) end
local name = getManual(args, nameParams) or ""
local party = (n == 0) and getManual(args, { "partee_toshiagh", "partee_fer-toshee", "partee_fer_toshee" }) or nil
if party and not isNone(party) then
local country = getCountryName(args)
local rendered = country and frame:expandTemplate{ title = "ParteePol", args = { country, party } } or party
name = name .. " (" .. rendered .. ")"
end
local note = getManual(args, leaderNames("noteyn", suffix))
if note then name = name .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, leaderNames("imraa", suffix))
if ref then name = name .. (wrapReference(ref) or "") end
table.insert(rows, row(title, name))
manualLeaders = manualLeaders + 1
end
end
if manualLeaders == 0 and not wdOff and not isNone(getManual(args, leaderNames("enmys", ""))) then
local leaders = getWdLeaders()
for _, leader in ipairs(leaders) do
table.insert(rows, row(leader.label, leader.text .. getWdReference("P6", leader.id) .. leader.labelRef))
end
if #leaders == 0 then
-- No person recorded: show the office itself (P1313), or the office item if P6 points at one.
local officeId = firstItem(nil, "P1313") or firstItem(nil, "P6")
local text = officeId and officeText(officeId)
if text then
table.insert(rows, row("Toshiagh", text .. getWdReference(firstItem(nil, "P1313") and "P1313" or "P6", officeId)))
end
end
end
-- Constituencies: rheynn-reihys, rheynn-reihys2..N (list), rheynnyn-reihys (free text); else P7938.
local function constNames(base, n) return { base .. "-reihys" .. n, base .. "_reihys" .. n } end
local constNone = isNone(getManual(args, constNames("rheynn", ""))) or isNone(getManual(args, constNames("rheynnyn", "")))
if not constNone then
local items, plural = {}, false
for n = 1, MAX_CONSTITUENCIES do
local value = getManual(args, constNames("rheynn", (n == 1) and "" or tostring(n)))
if value then table.insert(items, value) end
end
local freeText = getManual(args, constNames("rheynnyn", ""))
local fromWd = false
if freeText then
plural = true
items = { freeText }
elseif #items == 0 and not wdOff then
local entity = mw.wikibase.getEntityObject()
for _, statement in ipairs(entity and entity:getBestStatements("P7938") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local text = itemText(entityId(snak.datavalue.value))
if text then table.insert(items, text) end
end
if #items >= MAX_CONSTITUENCIES then break end
end
fromWd = #items > 0
end
if #items > 0 then
plural = plural or #items > 1
local value = (#items == 1) and items[1] or frame:expandTemplate{ title = "Unbulleted list", args = items }
if fromWd then value = value .. getWdReference("P7938") end
local note = getManual(args, { "noteyn_rheynn-reihys", "noteyn_rheynn_reihys" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_rheynn-reihys", "imraa_rheynn_reihys" })
if ref then value = value .. (wrapReference(ref) or "") end
local label = getManual(args, { "enmys_rheynn_reihys", "enmys_rheynn-reihys" }) or (plural and "Rheynnyn-reihys" or "Rheynn-reihys")
table.insert(rows, row(label, value))
end
end
if #rows == 0 then return nil end
local note = getManual(args, { "fo-noteyn_reiltys" }) or ""
local header = '<tr class="mergedtoprow"><td colspan="2" style="padding:0.2em 0.6em;"><b>Reiltys</b>' .. note .. '</td></tr>'
return header .. table.concat(rows)
end
return p
c1yt2jir7uab9ybuu5tk52bsjfgn34a
395348
395347
2026-10-26T17:40:45Z
MacTire02
219
++
395348
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local okEnnym, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local MAX_LEADERS = 6
local MAX_CONSTITUENCIES = 12
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
local function entityId(value)
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
-- Manx link or label for an item.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- Person: Manx link/label, else label in any language as a red link.
local function personText(id)
local text = itemText(id)
if text then return text end
if okEnnym and EnnymWd and EnnymWd.labelWithFallback then
local ok, _, _, raw = pcall(EnnymWd.labelWithFallback, id)
if ok and raw and raw ~= "" then return "[[" .. mw.text.nowiki(raw) .. "]]" end
end
local label = mw.wikibase.getLabel(id)
if label and label ~= "" then return "[[" .. mw.text.nowiki(label) .. "]]" end
return nil
end
-- Body (executive/legislative): Manx link, else external link to the Wikidata item so shared generic names never collide as red links.
local function bodyText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return "[https://www.wikidata.org/wiki/" .. id .. " " .. ucfirst(label) .. "]" end
if okEnnym and EnnymWd and EnnymWd.labelWithFallback then
local ok, text = pcall(EnnymWd.labelWithFallback, id)
if ok and text and text ~= "" then return text end
end
local en = mw.wikibase.getLabel(id)
if en and en ~= "" then return "[https://www.wikidata.org/wiki/" .. id .. " " .. mw.text.nowiki(en) .. "]" end
return nil
end
-- First best-rank item of a property on the current page or on another item.
local function firstItem(id, property)
local statements
if id then
statements = mw.wikibase.getBestStatements(id, property)
else
local entity = mw.wikibase.getEntityObject()
statements = entity and entity:getBestStatements(property)
end
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
return entityId(snak.datavalue.value), statement
end
end
return nil
end
-- Office item as a Manx link or label; English label as a last resort.
local function officeText(id)
local text = itemText(id)
if text then return text:sub(1, 2) == "[[" and text or ucfirst(text) end
return bodyText(id)
end
-- Office the person currently holds (P39, no end time); prefers one qualified "of" this place.
local function personOffice(personId, placeId)
local statements = mw.wikibase.getBestStatements(personId, "P39")
local fallback
for _, statement in ipairs(statements or {}) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and not ended then
local id = entityId(snak.datavalue.value)
fallback = fallback or id
for _, q in ipairs((statement.qualifiers and statement.qualifiers.P642) or {}) do
if q.datavalue and entityId(q.datavalue.value) == placeId then return id end
end
end
end
return fallback
end
-- Current heads of government (P6): no end date; title from the place's office (P1313), else the person's own office (P39).
local function getWdLeaders()
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements("P6")
local leaders = {}
if not statements then return leaders end
local officeId = firstItem(nil, "P1313")
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" and not ended then
local id = entityId(snak.datavalue.value)
local text = personText(id)
if text then
local label = officeId and officeText(officeId)
local labelRef = ""
if label then
labelRef = getWdReference("P1313", officeId)
else
local held = personOffice(id, entity.id)
label = held and officeText(held)
if label then labelRef = getWdReference("P39", held, id) end
end
table.insert(leaders, { text = text, label = label or "Toshiagh", id = id, labelRef = labelRef })
end
if #leaders >= MAX_LEADERS then break end
end
end
return leaders
end
local function getCountryName(args)
local manual = getManual(args, { "aarheynn", "ennym_aarheynn", "çheer" })
if manual then return manual end
local id = firstItem(nil, "P17")
return id and mw.wikibase.getLabelByLang(id, "gv") or nil
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local SUBTH = 'style="vertical-align:top; text-align:left; font-weight:normal; width:8em; max-width:8em; padding:0.15em 0.4em 0.15em 1.7em; text-indent:-0.8em;"'
local function row(label, value, class)
return '<tr class="mergedrow"><th scope="row" ' .. SUBTH .. '>• ' .. label .. '</th><td ' .. TD .. (class and (' class="' .. class .. '"') or '') .. '>' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "reiltys_wd" }))
local rows = {}
local wdRefProperty
-- Government type: manual, else basic form of government (P122).
local kind = getManual(args, { "sorçh_reiltys" })
if not isNone(kind) then
if not kind and not wdOff then
local id = firstItem(nil, "P122")
local text = id and itemText(id)
if text then kind = ucfirst(text) .. getWdReference("P122") end
end
if kind then table.insert(rows, row("Sorçh", kind)) end
end
-- Governing/executive body: manual, else executive body (P208).
local body = getManual(args, { "colught_reirey", "colught_gimmeeyder" })
if not isNone(body) then
if not body and not wdOff then
local id = firstItem(nil, "P208")
local text = id and bodyText(id)
if text then body = text .. getWdReference("P208", id) end
end
if body then table.insert(rows, row("[[Çhionnal kiannoortagh]]", body, "agent")) end
end
-- Legislature: manual, else legislative body (P194).
local legislature = getManual(args, { "çhionnal", "quaiyl" })
if not isNone(legislature) then
if not legislature and not wdOff then
local id = firstItem(nil, "P194")
local text = id and bodyText(id)
if text then legislature = text .. getWdReference("P194", id) end
end
if legislature then
local note = getManual(args, { "noteyn_çhionnal", "noteyn_quaiyl" })
if note then legislature = legislature .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_çhionnal", "imraa_quaiyl" })
if ref then legislature = legislature .. (wrapReference(ref) or "") end
table.insert(rows, row("[[Çhionnal slattyssagh]]", legislature))
end
end
for _, house in ipairs({
{ { "thie_heose", "quaiyl_syrjey" }, "[[Thie heose]]" },
{ { "thie_heese", "quaiyl_s'inshley", "quaiyl_sinshley" }, "[[Thie heese]]" },
}) do
local value = getManual(args, house[1])
if value and not isNone(value) then table.insert(rows, row(house[2], value)) end
end
-- Leaders: new toshiagh names first, then legacy fer-toshee (misnomer, "male leader") and fer_toshee.
local function leaderNames(base, suffix)
return { base .. "_toshiagh" .. suffix, base .. "_fer-toshee" .. suffix, base .. "_fer_toshee" .. suffix }
end
local manualLeaders = 0
for n = 0, MAX_LEADERS do
local suffix = (n == 0) and "" or tostring(n)
local title = getManual(args, leaderNames("enmys", suffix))
if title and not isNone(title) then
local nameParams = { "toshiagh" .. suffix, "fer-toshee" .. suffix }
for _, p in ipairs(leaderNames("ennym", suffix)) do table.insert(nameParams, p) end
local name = getManual(args, nameParams) or ""
local party = (n == 0) and getManual(args, { "partee_toshiagh", "partee_fer-toshee", "partee_fer_toshee" }) or nil
if party and not isNone(party) then
local country = getCountryName(args)
local rendered = country and frame:expandTemplate{ title = "ParteePol", args = { country, party } } or party
name = name .. " (" .. rendered .. ")"
end
local note = getManual(args, leaderNames("noteyn", suffix))
if note then name = name .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, leaderNames("imraa", suffix))
if ref then name = name .. (wrapReference(ref) or "") end
table.insert(rows, row(title, name))
manualLeaders = manualLeaders + 1
end
end
if manualLeaders == 0 and not wdOff and not isNone(getManual(args, leaderNames("enmys", ""))) then
local leaders = getWdLeaders()
for _, leader in ipairs(leaders) do
table.insert(rows, row(leader.label, leader.text .. getWdReference("P6", leader.id) .. leader.labelRef))
end
if #leaders == 0 then
-- No person under P6: label is the office item (P1313, or P6 if it is an office); value is its current holder (P1308).
local viaOffice = firstItem(nil, "P1313")
local officeId = viaOffice or firstItem(nil, "P6")
local label = officeId and officeText(officeId)
if label then
local property = viaOffice and "P1313" or "P6"
local holders = mw.wikibase.getBestStatements(officeId, "P1308")
local holderText, holderId
for _, statement in ipairs(holders or {}) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" and not ended then
holderId = entityId(snak.datavalue.value)
holderText = personText(holderId)
if holderText then break end
end
end
if holderText then
table.insert(rows, row(label .. getWdReference(property, officeId), holderText .. getWdReference("P1308", holderId, officeId)))
else
table.insert(rows, row(label .. getWdReference(property, officeId), " "))
end
end
end
end
-- Constituencies: rheynn-reihys, rheynn-reihys2..N (list), rheynnyn-reihys (free text); else P7938.
local function constNames(base, n) return { base .. "-reihys" .. n, base .. "_reihys" .. n } end
local constNone = isNone(getManual(args, constNames("rheynn", ""))) or isNone(getManual(args, constNames("rheynnyn", "")))
if not constNone then
local items, plural = {}, false
for n = 1, MAX_CONSTITUENCIES do
local value = getManual(args, constNames("rheynn", (n == 1) and "" or tostring(n)))
if value then table.insert(items, value) end
end
local freeText = getManual(args, constNames("rheynnyn", ""))
local fromWd = false
if freeText then
plural = true
items = { freeText }
elseif #items == 0 and not wdOff then
local entity = mw.wikibase.getEntityObject()
for _, statement in ipairs(entity and entity:getBestStatements("P7938") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local text = itemText(entityId(snak.datavalue.value))
if text then table.insert(items, text) end
end
if #items >= MAX_CONSTITUENCIES then break end
end
fromWd = #items > 0
end
if #items > 0 then
plural = plural or #items > 1
local value = (#items == 1) and items[1] or frame:expandTemplate{ title = "Unbulleted list", args = items }
if fromWd then value = value .. getWdReference("P7938") end
local note = getManual(args, { "noteyn_rheynn-reihys", "noteyn_rheynn_reihys" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_rheynn-reihys", "imraa_rheynn_reihys" })
if ref then value = value .. (wrapReference(ref) or "") end
local label = getManual(args, { "enmys_rheynn_reihys", "enmys_rheynn-reihys" }) or (plural and "Rheynnyn-reihys" or "Rheynn-reihys")
table.insert(rows, row(label, value))
end
end
if #rows == 0 then return nil end
local note = getManual(args, { "fo-noteyn_reiltys" }) or ""
local header = '<tr class="mergedtoprow"><td colspan="2" style="padding:0.2em 0.6em;"><b>Reiltys</b>' .. note .. '</td></tr>'
return header .. table.concat(rows)
end
return p
k6jm2lshjvkgcj4ubvial394clbd9ey
395349
395348
2026-10-26T17:44:29Z
MacTire02
219
mannagh vel toshiagh ny meoir recortyssit ayns WD
395349
Scribunto
text/plain
local p = {}
local okWd, Wd = pcall(require, "Module:Wd")
local okEnnym, EnnymWd = pcall(require, "Module:Kishtey fys çheer/ennym-wd")
local MAX_LEADERS = 6
local MAX_CONSTITUENCIES = 12
local function getManual(args, names)
for _, name in ipairs(names) do
local value = args[name]
if value and mw.text.trim(value) ~= "" then
return mw.text.trim(value)
end
end
return nil
end
local function isNone(value)
return value ~= nil and mw.text.trim(value):lower() == "none"
end
local function getWdReference(property, value, eid)
if not okWd or not Wd or not Wd._reference then return "" end
local callArgs = { "best", property }
if value then table.insert(callArgs, value) end
if eid then callArgs.eid = eid end
local ok, result = pcall(Wd._reference, callArgs)
if ok and type(result) == "string" then return result end
return ""
end
-- Wraps a manual citation in <ref>, unless it already holds one or more references.
local function wrapReference(ref)
if not ref or ref == "" then return nil end
local withoutMarkers = mw.ustring.gsub(ref, "\127UNIQ.-QINU\127", "")
if mw.ustring.gsub(withoutMarkers, "%s+", "") == "" then return ref end
if mw.ustring.find(mw.ustring.lower(ref), "<ref", 1, true) then return ref end
local withoutNumbers = mw.ustring.gsub(ref, "%[%d+%]", "")
if mw.ustring.gsub(withoutNumbers, "%s+", "") == "" then return ref end
return "<ref>" .. ref .. "</ref>"
end
local function ucfirst(text)
if not text or text == "" then return text end
return mw.ustring.upper(mw.ustring.sub(text, 1, 1)) .. mw.ustring.sub(text, 2)
end
local function entityId(value)
return value.id or ("Q" .. tostring(value["numeric-id"]))
end
-- Manx link or label for an item.
local function itemText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return label end
return nil
end
-- Person: Manx link/label, else label in any language as a red link.
local function personText(id)
local text = itemText(id)
if text then return text end
if okEnnym and EnnymWd and EnnymWd.labelWithFallback then
local ok, _, _, raw = pcall(EnnymWd.labelWithFallback, id)
if ok and raw and raw ~= "" then return "[[" .. mw.text.nowiki(raw) .. "]]" end
end
local label = mw.wikibase.getLabel(id)
if label and label ~= "" then return "[[" .. mw.text.nowiki(label) .. "]]" end
return nil
end
-- Body (executive/legislative): Manx link, else external link to the Wikidata item so shared generic names never collide as red links.
local function bodyText(id)
local sitelink = mw.wikibase.sitelink(id)
if sitelink and sitelink ~= "" then return "[[" .. sitelink .. "]]" end
local label = mw.wikibase.getLabelByLang(id, "gv")
if label and label ~= "" then return "[https://www.wikidata.org/wiki/" .. id .. " " .. ucfirst(label) .. "]" end
if okEnnym and EnnymWd and EnnymWd.labelWithFallback then
local ok, text = pcall(EnnymWd.labelWithFallback, id)
if ok and text and text ~= "" then return text end
end
local en = mw.wikibase.getLabel(id)
if en and en ~= "" then return "[https://www.wikidata.org/wiki/" .. id .. " " .. mw.text.nowiki(en) .. "]" end
return nil
end
-- First best-rank item of a property on the current page or on another item.
local function firstItem(id, property)
local statements
if id then
statements = mw.wikibase.getBestStatements(id, property)
else
local entity = mw.wikibase.getEntityObject()
statements = entity and entity:getBestStatements(property)
end
if not statements then return nil end
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
return entityId(snak.datavalue.value), statement
end
end
return nil
end
-- Office item as a Manx link or label; English label as a last resort.
local function officeText(id)
local text = itemText(id)
if text then return text:sub(1, 2) == "[[" and text or ucfirst(text) end
return bodyText(id)
end
-- Office the person currently holds (P39, no end time); prefers one qualified "of" this place.
local function personOffice(personId, placeId)
local statements = mw.wikibase.getBestStatements(personId, "P39")
local fallback
for _, statement in ipairs(statements or {}) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and not ended then
local id = entityId(snak.datavalue.value)
fallback = fallback or id
for _, q in ipairs((statement.qualifiers and statement.qualifiers.P642) or {}) do
if q.datavalue and entityId(q.datavalue.value) == placeId then return id end
end
end
end
return fallback
end
-- Current heads of government (P6): no end date; title from the place's office (P1313), else the person's own office (P39).
local function getWdLeaders()
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local statements = entity:getBestStatements("P6")
local leaders = {}
if not statements then return leaders end
local officeId = firstItem(nil, "P1313")
for _, statement in ipairs(statements) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" and not ended then
local id = entityId(snak.datavalue.value)
local text = personText(id)
if text then
local label = officeId and officeText(officeId)
local labelRef = ""
if label then
labelRef = getWdReference("P1313", officeId)
else
local held = personOffice(id, entity.id)
label = held and officeText(held)
if label then labelRef = getWdReference("P39", held, id) end
end
table.insert(leaders, { text = text, label = label or "Toshiagh", id = id, labelRef = labelRef })
end
if #leaders >= MAX_LEADERS then break end
end
end
return leaders
end
local function getCountryName(args)
local manual = getManual(args, { "aarheynn", "ennym_aarheynn", "çheer" })
if manual then return manual end
local id = firstItem(nil, "P17")
return id and mw.wikibase.getLabelByLang(id, "gv") or nil
end
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local SUBTH = 'style="vertical-align:top; text-align:left; font-weight:normal; width:8em; max-width:8em; padding:0.15em 0.4em 0.15em 1.7em; text-indent:-0.8em;"'
local function row(label, value, class)
return '<tr class="mergedrow"><th scope="row" ' .. SUBTH .. '>• ' .. label .. '</th><td ' .. TD .. (class and (' class="' .. class .. '"') or '') .. '>' .. value .. '</td></tr>'
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "reiltys_wd" }))
local rows = {}
local wdRefProperty
-- Government type: manual, else basic form of government (P122).
local kind = getManual(args, { "sorçh_reiltys" })
if not isNone(kind) then
if not kind and not wdOff then
local id = firstItem(nil, "P122")
local text = id and itemText(id)
if text then kind = ucfirst(text) .. getWdReference("P122") end
end
if kind then table.insert(rows, row("Sorçh", kind)) end
end
-- Governing/executive body: manual, else executive body (P208).
local body = getManual(args, { "colught_reirey", "colught_gimmeeyder" })
if not isNone(body) then
if not body and not wdOff then
local id = firstItem(nil, "P208")
local text = id and bodyText(id)
if text then body = text .. getWdReference("P208", id) end
end
if body then table.insert(rows, row("[[Çhionnal kiannoortagh]]", body, "agent")) end
end
-- Legislature: manual, else legislative body (P194).
local legislature = getManual(args, { "çhionnal", "quaiyl" })
if not isNone(legislature) then
if not legislature and not wdOff then
local id = firstItem(nil, "P194")
local text = id and bodyText(id)
if text then legislature = text .. getWdReference("P194", id) end
end
if legislature then
local note = getManual(args, { "noteyn_çhionnal", "noteyn_quaiyl" })
if note then legislature = legislature .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_çhionnal", "imraa_quaiyl" })
if ref then legislature = legislature .. (wrapReference(ref) or "") end
table.insert(rows, row("[[Çhionnal slattyssagh]]", legislature))
end
end
for _, house in ipairs({
{ { "thie_heose", "quaiyl_syrjey" }, "[[Thie heose]]" },
{ { "thie_heese", "quaiyl_s'inshley", "quaiyl_sinshley" }, "[[Thie heese]]" },
}) do
local value = getManual(args, house[1])
if value and not isNone(value) then table.insert(rows, row(house[2], value)) end
end
-- Leaders: new toshiagh names first, then legacy fer-toshee (misnomer, "male leader") and fer_toshee.
local function leaderNames(base, suffix)
return { base .. "_toshiagh" .. suffix, base .. "_fer-toshee" .. suffix, base .. "_fer_toshee" .. suffix }
end
local manualLeaders = 0
for n = 0, MAX_LEADERS do
local suffix = (n == 0) and "" or tostring(n)
local title = getManual(args, leaderNames("enmys", suffix))
if title and not isNone(title) then
local nameParams = { "toshiagh" .. suffix, "fer-toshee" .. suffix }
for _, p in ipairs(leaderNames("ennym", suffix)) do table.insert(nameParams, p) end
local name = getManual(args, nameParams) or ""
local party = (n == 0) and getManual(args, { "partee_toshiagh", "partee_fer-toshee", "partee_fer_toshee" }) or nil
if party and not isNone(party) then
local country = getCountryName(args)
local rendered = country and frame:expandTemplate{ title = "ParteePol", args = { country, party } } or party
name = name .. " (" .. rendered .. ")"
end
local note = getManual(args, leaderNames("noteyn", suffix))
if note then name = name .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, leaderNames("imraa", suffix))
if ref then name = name .. (wrapReference(ref) or "") end
table.insert(rows, row(title, name))
manualLeaders = manualLeaders + 1
end
end
if manualLeaders == 0 and not wdOff and not isNone(getManual(args, leaderNames("enmys", ""))) then
local leaders = getWdLeaders()
for _, leader in ipairs(leaders) do
table.insert(rows, row(leader.label, leader.text .. getWdReference("P6", leader.id) .. leader.labelRef))
end
if #leaders == 0 then
-- No person under P6: label is the office item (P1313, or P6 if it is an office); value is its current holder (P1308).
local viaOffice = firstItem(nil, "P1313")
local officeId = viaOffice or firstItem(nil, "P6")
local label = officeId and officeText(officeId)
if label then
local property = viaOffice and "P1313" or "P6"
local holders = mw.wikibase.getBestStatements(officeId, "P1308")
local holderText, holderId
for _, statement in ipairs(holders or {}) do
local snak = statement.mainsnak
local ended = statement.qualifiers and statement.qualifiers.P582
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" and not ended then
holderId = entityId(snak.datavalue.value)
holderText = personText(holderId)
if holderText then break end
end
end
if holderText then
table.insert(rows, row(label .. getWdReference(property, officeId), holderText .. getWdReference("P1308", holderId, officeId)))
end
end
end
end
-- Constituencies: rheynn-reihys, rheynn-reihys2..N (list), rheynnyn-reihys (free text); else P7938.
local function constNames(base, n) return { base .. "-reihys" .. n, base .. "_reihys" .. n } end
local constNone = isNone(getManual(args, constNames("rheynn", ""))) or isNone(getManual(args, constNames("rheynnyn", "")))
if not constNone then
local items, plural = {}, false
for n = 1, MAX_CONSTITUENCIES do
local value = getManual(args, constNames("rheynn", (n == 1) and "" or tostring(n)))
if value then table.insert(items, value) end
end
local freeText = getManual(args, constNames("rheynnyn", ""))
local fromWd = false
if freeText then
plural = true
items = { freeText }
elseif #items == 0 and not wdOff then
local entity = mw.wikibase.getEntityObject()
for _, statement in ipairs(entity and entity:getBestStatements("P7938") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local text = itemText(entityId(snak.datavalue.value))
if text then table.insert(items, text) end
end
if #items >= MAX_CONSTITUENCIES then break end
end
fromWd = #items > 0
end
if #items > 0 then
plural = plural or #items > 1
local value = (#items == 1) and items[1] or frame:expandTemplate{ title = "Unbulleted list", args = items }
if fromWd then value = value .. getWdReference("P7938") end
local note = getManual(args, { "noteyn_rheynn-reihys", "noteyn_rheynn_reihys" })
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, { "imraa_rheynn-reihys", "imraa_rheynn_reihys" })
if ref then value = value .. (wrapReference(ref) or "") end
local label = getManual(args, { "enmys_rheynn_reihys", "enmys_rheynn-reihys" }) or (plural and "Rheynnyn-reihys" or "Rheynn-reihys")
table.insert(rows, row(label, value))
end
end
if #rows == 0 then return nil end
local note = getManual(args, { "fo-noteyn_reiltys" }) or ""
local header = '<tr class="mergedtoprow"><td colspan="2" style="padding:0.2em 0.6em;"><b>Reiltys</b>' .. note .. '</td></tr>'
return header .. table.concat(rows)
end
return p
fgibs8qnw67xve7d84j2e74rdbvpxrl
Module:Kishtey fys boayl/pobble
828
56352
395316
395285
2026-10-26T13:29:06Z
MacTire02
219
++
395316
Scribunto
text/plain
local p = {}
local U = require("Module:Kishtey fys boayl/unnidyn")
local getManual, isNone, wrapReference = U.getManual, U.isNone, U.wrapReference
local getWdReference, formatNumber, toNumber = U.getWdReference, U.formatNumber, U.toNumber
local KM2_PER_MI2 = U.KM2_PER_MI2
local CENSUS_QID = "Q39825"
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local SUBTH = 'style="vertical-align:top; text-align:left; font-weight:normal; width:8em; max-width:8em; padding:0.15em 0.4em 0.15em 1.7em; text-indent:-0.8em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local function topRow(class, label, value)
return '<tr class="' .. class .. '"><th scope="row" ' .. TH .. '>' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
local function subrow(label, value)
return '<tr class="mergedrow"><th scope="row" ' .. SUBTH .. '>• ' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
-- A year/date in normal weight after a bold label.
local function yearSpan(year)
return year and (' <span style="font-weight:normal;">(' .. year .. ')</span>') or ""
end
-- Whole-number display: numeric values get thousands separators, anything else is shown as typed.
local function displayNumber(text)
local n = toNumber(text)
if n and text:match("^[%d,%s .]+$") then return formatNumber(n, 0) end
return text
end
-- Census-type determination methods: the generic item or any item labelled "census".
local function isCensusMethod(qid)
if not qid then return false end
if qid == CENSUS_QID then return true end
local ok, label = pcall(mw.wikibase.getLabelByLang, qid, "en")
return ok and label ~= nil and mw.ustring.find(mw.ustring.lower(label), "census", 1, true) ~= nil
end
-- Latest census and latest other (estimate) P1082 statements: {amount, raw, year}.
local function getWdPopulation()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil, nil end
local census, estimate
-- getAllStatements: a preferred-rank statement must not hide the census; deprecated ones are skipped by hand.
for _, statement in ipairs(entity:getAllStatements("P1082") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "quantity" then
local raw = snak.datavalue.value.amount
local amount = tonumber(raw)
local time = statement.qualifiers and statement.qualifiers.P585
local timeValue = time and time[1] and time[1].datavalue and time[1].datavalue.value
local year = timeValue and timeValue.time and tonumber(timeValue.time:match("(%-?%d+)%-"))
if amount and year then
local method = statement.qualifiers and statement.qualifiers.P459
local methodValue = method and method[1] and method[1].datavalue and method[1].datavalue.value
local entry = { amount = amount, raw = (raw:gsub("^%+", "")), year = year, key = U.referenceKey(statement) }
if isCensusMethod(methodValue and U.entityId(methodValue)) then
if not census or year > census.year then census = entry end
elseif not estimate or year > estimate.year then
estimate = entry
end
end
end
end
return census, estimate
end
-- Demonym (P1549) in Manx only.
local function getWdDemonym()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
for _, statement in ipairs(entity:getBestStatements("P1549") or {}) do
local snak = statement.mainsnak
local value = snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.value
if value and value.language == "gv" and value.text and value.text ~= "" then return value.text end
end
return nil
end
-- Density in both units, primary first. population/area are numbers; manual strings win over computed ones.
local function densityText(population, areaKm2, kmManual, miManual, primary)
if isNone(kmManual) or isNone(miManual) then return nil end
if kmManual == "auto" then kmManual = nil end
if miManual == "auto" then miManual = nil end
local km, mi = kmManual, miManual
local density = toNumber(kmManual)
if not density and toNumber(miManual) then density = toNumber(miManual) / KM2_PER_MI2 end
if not density and population and areaKm2 and areaKm2 > 0 then density = population / areaKm2 end
if not km and density then km = formatNumber(density, 1) end
if not mi and density then mi = formatNumber(density * KM2_PER_MI2, 1) end
if not km and not mi then return nil end
local kmText = km and (km .. "/km<sup>2</sup>")
local miText = mi and (mi .. "/mi ker")
local first, second = kmText, miText
if primary == "imperial" then first, second = miText, kmText end
if first and second then return first .. " (" .. second .. ")" end
return first or second
end
-- Area in km² of a sub-area from its manual km²/mi² parameters.
local function subAreaKm2(args, stem)
local km = toNumber(getManual(args, { stem .. "_km2" }))
if km then return km end
local mi = toNumber(getManual(args, { stem .. "_mi_ker" }))
return mi and mi * KM2_PER_MI2 or nil
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "pobble_wd" }))
local unit = U.resolveUnit(args)
local primary = (unit == "imperial") and "imperial" or "metric"
local function withNotes(value, noteNames, refNames)
local note = getManual(args, noteNames)
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, refNames)
if ref then value = value .. (wrapReference(ref) or "") end
return value
end
-- Settlement figure: manual, else the latest Wikidata census (or estimate when there is no census).
local mainRaw = getManual(args, { "earroo_yn_phobble" })
local mainYear = U.yearOnly(getManual(args, { "blein_earroo_yn_phobble", "earroo_yn_phobble_er" }))
local mainText, mainNumber, mainRef, mainKey
local ooleyText, ooleyYear, ooleyNumber, ooleyRef, ooleyKey
local ooleyRaw = getManual(args, { "ooley_earroo_yn_phobble" })
if mainRaw and not isNone(mainRaw) then
mainText, mainNumber = displayNumber(mainRaw), toNumber(mainRaw)
elseif not mainRaw and not ooleyRaw and not wdOff then
local census, estimate = getWdPopulation()
local main = census or estimate
if main then
mainText, mainNumber, mainYear = formatNumber(main.amount, 0), main.amount, tostring(main.year)
mainRef = getWdReference("P1082", main.raw)
mainKey = main.key
end
if census and estimate and estimate.year > census.year then
ooleyText, ooleyNumber, ooleyYear = formatNumber(estimate.amount, 0), estimate.amount, tostring(estimate.year)
ooleyRef = getWdReference("P1082", estimate.raw)
ooleyKey = estimate.key
end
end
if ooleyRaw and not isNone(ooleyRaw) then
ooleyText, ooleyNumber = displayNumber(ooleyRaw), toNumber(ooleyRaw)
ooleyYear = U.yearOnly(getManual(args, { "blein_ooley_earroo_yn_phobble", "ooley_earroo_yn_phobble_er" }))
end
-- Total of the whole municipality (legacy slane_).
local totalRaw = getManual(args, { "slane_earroo_yn_phobble" })
local totalNumber = toNumber(totalRaw)
local hasTotal = totalRaw and not isNone(totalRaw)
local SUBS = {
{ pop = "earroo_yn_phobble_baljagh", label = "Baljagh", area = "eaghtyr_baljagh", dens = "glooaght_y_phobble_baljagh", densLabel = "Glooaght valjagh" },
{ pop = "earroo_yn_phobble_çheerey", label = "Çheerey", area = "eaghtyr_çheerey", dens = "glooaght_y_phobble_çheerey", densLabel = "Glooaght çheerey" },
{ pop = "earroo_yn_phobble_moir", label = "Moirvaljagh", area = "eaghtyr_moir", dens = "glooaght_y_phobble_moir", densLabel = "Glooaght voirvaljagh" },
{ pop = "earroo_yn_phobble_bane1", labelParam = "enmys_earroo_yn_phobble_bane1", area = "eaghtyr_bane1", dens = "glooaght_y_phobble_bane1", densLabelParam = "marennym_glooaght_y_phobble_bane1" },
{ pop = "earroo_yn_phobble_bane2", labelParam = "enmys_earroo_yn_phobble_bane2", area = "eaghtyr_bane2", dens = "glooaght_y_phobble_bane2", densLabelParam = "marennym_glooaght_y_phobble_bane2", densLabelAlt = "marennym_earroo_yn_phobble_bane2" },
}
local subValues = {}
for index, sub in ipairs(SUBS) do
subValues[index] = getManual(args, { sub.pop })
end
local subRows = {}
-- "Slane" (total) row. With a separate municipality total, the settlement figure gets its own row named after the place type.
local slaneLabel = getManual(args, { "enmys_eaghtyr_slane", "sorçh_slane" }) or "Slane"
if hasTotal then
table.insert(subRows, subrow(slaneLabel, withNotes(displayNumber(totalRaw), { "noteyn_slane_earroo_yn_phobble" }, { "imraa_slane_earroo_yn_phobble" })))
if mainText then
local kind = getManual(args, { "sorçh_boayl", "sorçh_balley", "sorçh" }) or "Ard-valley"
table.insert(subRows, subrow(kind, withNotes(mainText .. (mainRef or ""), { "noteyn_earroo_yn_phobble" }, { "imraa_earroo_yn_phobble" })))
end
elseif mainText then
table.insert(subRows, subrow(slaneLabel, withNotes(mainText .. (mainRef or ""), { "noteyn_earroo_yn_phobble" }, { "imraa_earroo_yn_phobble" })))
end
if ooleyText then
table.insert(subRows, subrow("Ooley" .. yearSpan(ooleyYear), withNotes(ooleyText .. (ooleyRef or ""), { "noteyn_ooley_earroo_yn_phobble" }, { "imraa_ooley_earroo_yn_phobble" })))
end
-- Density of the whole settlement; the references of the Wikidata inputs go with it.
local base = totalNumber or ooleyNumber or mainNumber
local baseRef = (not totalNumber) and (ooleyNumber and ooleyRef or (not ooleyNumber and mainRef)) or ""
local totalArea, areaRaw, areaKey = U.getTotalAreaKm2(args, wdOff)
local baseKey = (not totalNumber) and (ooleyNumber and ooleyKey or (not ooleyNumber and mainKey)) or nil
local density = densityText(base, totalArea, getManual(args, { "glooaght_y_phobble_km2" }), getManual(args, { "glooaght_y_phobble_mi_ker" }), primary)
if density then
local computed = not getManual(args, { "glooaght_y_phobble_km2", "glooaght_y_phobble_mi_ker" })
if computed then
-- One footnote when population and area share the same source.
local sameSource = baseKey and areaKey and baseKey ~= "" and baseKey == areaKey
density = density .. (baseRef or "") .. ((areaRaw and not sameSource) and getWdReference("P2046", areaRaw) or "")
end
table.insert(subRows, subrow("Glooaght", withNotes(density, { "noteyn_glooaght_y_phobble" }, { "imraa_glooaght_y_phobble" })))
end
for index, sub in ipairs(SUBS) do
local raw = subValues[index]
if raw and not isNone(raw) then
local label = sub.label or getManual(args, { sub.labelParam }) or ""
-- Linked only when a target is given in kiangley_<parameter>.
local target = getManual(args, { "kiangley_" .. sub.pop })
if target and not isNone(target) and label ~= "" then label = "[[" .. target .. "|" .. label .. "]]" end
local note = getManual(args, { "fo-noteyn_" .. sub.pop }) or ""
table.insert(subRows, subrow(label .. note, displayNumber(raw)))
local subDensity = densityText(toNumber(raw), subAreaKm2(args, sub.area), getManual(args, { sub.dens .. "_km2" }), getManual(args, { sub.dens .. "_mi_ker" }), primary)
if subDensity then
local densLabel = sub.densLabel or ("Glooaght " .. (getManual(args, { sub.densLabelParam, sub.densLabelAlt or sub.densLabelParam }) or ""))
table.insert(subRows, subrow(densLabel, subDensity))
end
end
end
local extra = getManual(args, { "note_earroo_yn_phobble" })
if extra and not isNone(extra) and #subRows > 0 then
table.insert(subRows, '<tr class="mergedrow"><td></td><td ' .. TD .. '><small>' .. extra .. '</small></td></tr>')
end
-- Header: the year of the settlement figure, as a year only.
local rows = {}
local headerNote = getManual(args, { "fo-noteyn_earroo_yn_phobble" }) or ""
if #subRows > 0 then
table.insert(rows, '<tr class="mergedtoprow"><td colspan="2" style="padding:0.2em 0.6em;"><b>Earroo yn phobble</b>' .. yearSpan(mainYear) .. headerNote .. '</td></tr>')
end
for _, row in ipairs(subRows) do table.insert(rows, row) end
-- Demonym: manual, else Wikidata (Manx value only).
local demonym = getManual(args, { "ennym_ny_cummaltee" })
local demonymRef = ""
if not demonym and not wdOff then
demonym = getWdDemonym()
if demonym then demonymRef = getWdReference("P1549") end
end
if demonym and not isNone(demonym) then
table.insert(rows, topRow("mergedtoprow", "Ennym ny cummaltee", demonym .. demonymRef))
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
7whkg4uax6mc49dj3mjmceexp73l4i2
395320
395316
2026-10-26T13:49:47Z
MacTire02
219
++
395320
Scribunto
text/plain
local p = {}
local U = require("Module:Kishtey fys boayl/unnidyn")
local getManual, isNone, wrapReference = U.getManual, U.isNone, U.wrapReference
local getWdReference, formatNumber, toNumber = U.getWdReference, U.formatNumber, U.toNumber
local KM2_PER_MI2 = U.KM2_PER_MI2
local CENSUS_QID = "Q39825"
local TH = 'style="text-align:left; vertical-align:top; padding:0.15em 0.6em;"'
local SUBTH = 'style="vertical-align:top; text-align:left; font-weight:normal; width:8em; max-width:8em; padding:0.15em 0.4em 0.15em 1.7em; text-indent:-0.8em;"'
local TD = 'style="vertical-align:top; padding:0.15em 0.6em 0.15em 0.2em;"'
local function topRow(class, label, value)
return '<tr class="' .. class .. '"><th scope="row" ' .. TH .. '>' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
local function subrow(label, value)
return '<tr class="mergedrow"><th scope="row" ' .. SUBTH .. '>• ' .. label .. '</th><td ' .. TD .. '>' .. value .. '</td></tr>'
end
-- A year/date in normal weight after a bold label.
local function yearSpan(year)
return year and (' <span style="font-weight:normal;">(' .. year .. ')</span>') or ""
end
-- Whole-number display: numeric values get thousands separators, anything else is shown as typed.
local function displayNumber(text)
local n = toNumber(text)
if n and text:match("^[%d,%s .]+$") then return formatNumber(n, 0) end
return text
end
-- Census-type determination methods: the generic item or any item labelled "census".
local function isCensusMethod(qid)
if not qid then return false end
if qid == CENSUS_QID then return true end
local ok, label = pcall(mw.wikibase.getLabelByLang, qid, "en")
return ok and label ~= nil and mw.ustring.find(mw.ustring.lower(label), "census", 1, true) ~= nil
end
-- Latest census and latest other (estimate) P1082 statements: {amount, raw, year}.
local function getWdPopulation()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil, nil end
local census, estimate
-- getAllStatements: a preferred-rank statement must not hide the census; deprecated ones are skipped by hand.
for _, statement in ipairs(entity:getAllStatements("P1082") or {}) do
local snak = statement.mainsnak
if statement.rank ~= "deprecated" and snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "quantity" then
local raw = snak.datavalue.value.amount
local amount = tonumber(raw)
local time = statement.qualifiers and statement.qualifiers.P585
local timeValue = time and time[1] and time[1].datavalue and time[1].datavalue.value
local year = timeValue and timeValue.time and tonumber(timeValue.time:match("(%-?%d+)%-"))
if amount and year then
local method = statement.qualifiers and statement.qualifiers.P459
local methodValue = method and method[1] and method[1].datavalue and method[1].datavalue.value
local entry = { amount = amount, raw = (raw:gsub("^%+", "")), year = year, key = U.referenceKey(statement) }
if isCensusMethod(methodValue and U.entityId(methodValue)) then
if not census or year > census.year then census = entry end
elseif not estimate or year > estimate.year then
estimate = entry
end
end
end
end
return census, estimate
end
-- Demonym (P1549) in Manx only.
local function getWdDemonym()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
for _, statement in ipairs(entity:getBestStatements("P1549") or {}) do
local snak = statement.mainsnak
local value = snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.value
if value and value.language == "gv" and value.text and value.text ~= "" then return value.text end
end
return nil
end
-- Density in both units, primary first. population/area are numbers; manual strings win over computed ones.
local function densityText(population, areaKm2, kmManual, miManual, primary)
if isNone(kmManual) or isNone(miManual) then return nil end
if kmManual == "auto" then kmManual = nil end
if miManual == "auto" then miManual = nil end
local km, mi = kmManual, miManual
local density = toNumber(kmManual)
if not density and toNumber(miManual) then density = toNumber(miManual) / KM2_PER_MI2 end
if not density and population and areaKm2 and areaKm2 > 0 then density = population / areaKm2 end
if not km and density then km = formatNumber(density, 1) end
if not mi and density then mi = formatNumber(density * KM2_PER_MI2, 1) end
if not km and not mi then return nil end
local kmText = km and (km .. "/km<sup>2</sup>")
local miText = mi and (mi .. "/mi ker")
local first, second = kmText, miText
if primary == "imperial" then first, second = miText, kmText end
if first and second then return first .. " (" .. second .. ")" end
return first or second
end
-- Area in km² of a sub-area from its manual km²/mi² parameters.
local function subAreaKm2(args, stem)
local km = toNumber(getManual(args, { stem .. "_km2" }))
if km then return km end
local mi = toNumber(getManual(args, { stem .. "_mi_ker" }))
return mi and mi * KM2_PER_MI2 or nil
end
-- Manx label of the item's type (first P31), so the row suits a village, county or gmina alike.
local function typeLabel()
local entity = mw.wikibase.getEntityObject()
local statements = entity and entity:getBestStatements("P31")
local snak = statements and statements[1] and statements[1].mainsnak
if not (snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid") then return nil end
local label = mw.wikibase.getLabelByLang(U.entityId(snak.datavalue.value), "gv")
if not label or label == "" then return nil end
return mw.ustring.upper(mw.ustring.sub(label, 1, 1)) .. mw.ustring.sub(label, 2)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "pobble_wd" }))
local unit = U.resolveUnit(args)
local primary = (unit == "imperial") and "imperial" or "metric"
local function withNotes(value, noteNames, refNames)
local note = getManual(args, noteNames)
if note then value = value .. frame:expandTemplate{ title = "efn", args = { note } } end
local ref = getManual(args, refNames)
if ref then value = value .. (wrapReference(ref) or "") end
return value
end
-- Settlement figure: manual, else the latest Wikidata census (or estimate when there is no census).
local mainRaw = getManual(args, { "earroo_yn_phobble" })
local mainYear = U.yearOnly(getManual(args, { "blein_earroo_yn_phobble", "earroo_yn_phobble_er" }))
local mainText, mainNumber, mainRef, mainKey
local ooleyText, ooleyYear, ooleyNumber, ooleyRef, ooleyKey
local ooleyRaw = getManual(args, { "ooley_earroo_yn_phobble" })
if mainRaw and not isNone(mainRaw) then
mainText, mainNumber = displayNumber(mainRaw), toNumber(mainRaw)
elseif not mainRaw and not ooleyRaw and not wdOff then
local census, estimate = getWdPopulation()
local main = census or estimate
if main then
mainText, mainNumber, mainYear = formatNumber(main.amount, 0), main.amount, tostring(main.year)
mainRef = getWdReference("P1082", main.raw)
mainKey = main.key
end
if census and estimate and estimate.year > census.year then
ooleyText, ooleyNumber, ooleyYear = formatNumber(estimate.amount, 0), estimate.amount, tostring(estimate.year)
ooleyRef = getWdReference("P1082", estimate.raw)
ooleyKey = estimate.key
end
end
if ooleyRaw and not isNone(ooleyRaw) then
ooleyText, ooleyNumber = displayNumber(ooleyRaw), toNumber(ooleyRaw)
ooleyYear = U.yearOnly(getManual(args, { "blein_ooley_earroo_yn_phobble", "ooley_earroo_yn_phobble_er" }))
end
-- Total of the whole municipality (legacy slane_).
local totalRaw = getManual(args, { "slane_earroo_yn_phobble" })
local totalNumber = toNumber(totalRaw)
local hasTotal = totalRaw and not isNone(totalRaw)
local SUBS = {
{ pop = "earroo_yn_phobble_baljagh", label = "Baljagh", area = "eaghtyr_baljagh", dens = "glooaght_y_phobble_baljagh", densLabel = "Glooaght valjagh" },
{ pop = "earroo_yn_phobble_çheerey", label = "Çheerey", area = "eaghtyr_çheerey", dens = "glooaght_y_phobble_çheerey", densLabel = "Glooaght çheerey" },
{ pop = "earroo_yn_phobble_moir", label = "Moirvaljagh", area = "eaghtyr_moir", dens = "glooaght_y_phobble_moir", densLabel = "Glooaght voirvaljagh" },
{ pop = "earroo_yn_phobble_bane1", labelParam = "enmys_earroo_yn_phobble_bane1", area = "eaghtyr_bane1", dens = "glooaght_y_phobble_bane1", densLabelParam = "marennym_glooaght_y_phobble_bane1" },
{ pop = "earroo_yn_phobble_bane2", labelParam = "enmys_earroo_yn_phobble_bane2", area = "eaghtyr_bane2", dens = "glooaght_y_phobble_bane2", densLabelParam = "marennym_glooaght_y_phobble_bane2", densLabelAlt = "marennym_earroo_yn_phobble_bane2" },
}
local subValues = {}
for index, sub in ipairs(SUBS) do
subValues[index] = getManual(args, { sub.pop })
end
local subRows = {}
-- "Slane" (total) row. With a separate municipality total, the settlement figure gets its own row named after the place type.
local slaneLabel = getManual(args, { "enmys_eaghtyr_slane", "sorçh_slane" }) or "Slane"
if hasTotal then
table.insert(subRows, subrow(slaneLabel, withNotes(displayNumber(totalRaw), { "noteyn_slane_earroo_yn_phobble" }, { "imraa_slane_earroo_yn_phobble" })))
if mainText then
local kind = getManual(args, { "sorçh_boayl", "sorçh_balley", "sorçh" }) or typeLabel() or "Boayl"
table.insert(subRows, subrow(kind, withNotes(mainText .. (mainRef or ""), { "noteyn_earroo_yn_phobble" }, { "imraa_earroo_yn_phobble" })))
end
elseif mainText then
table.insert(subRows, subrow(slaneLabel, withNotes(mainText .. (mainRef or ""), { "noteyn_earroo_yn_phobble" }, { "imraa_earroo_yn_phobble" })))
end
if ooleyText then
table.insert(subRows, subrow("Ooley" .. yearSpan(ooleyYear), withNotes(ooleyText .. (ooleyRef or ""), { "noteyn_ooley_earroo_yn_phobble" }, { "imraa_ooley_earroo_yn_phobble" })))
end
-- Density of the whole settlement; the references of the Wikidata inputs go with it.
local base = totalNumber or ooleyNumber or mainNumber
local baseRef = (not totalNumber) and (ooleyNumber and ooleyRef or (not ooleyNumber and mainRef)) or ""
local totalArea, areaRaw, areaKey = U.getTotalAreaKm2(args, wdOff)
local baseKey = (not totalNumber) and (ooleyNumber and ooleyKey or (not ooleyNumber and mainKey)) or nil
local density = densityText(base, totalArea, getManual(args, { "glooaght_y_phobble_km2" }), getManual(args, { "glooaght_y_phobble_mi_ker" }), primary)
if density then
local computed = not getManual(args, { "glooaght_y_phobble_km2", "glooaght_y_phobble_mi_ker" })
if computed then
-- One footnote when population and area share the same source.
local sameSource = baseKey and areaKey and baseKey ~= "" and baseKey == areaKey
density = density .. (baseRef or "") .. ((areaRaw and not sameSource) and getWdReference("P2046", areaRaw) or "")
end
table.insert(subRows, subrow("Glooaght", withNotes(density, { "noteyn_glooaght_y_phobble" }, { "imraa_glooaght_y_phobble" })))
end
for index, sub in ipairs(SUBS) do
local raw = subValues[index]
if raw and not isNone(raw) then
local label = sub.label or getManual(args, { sub.labelParam }) or ""
-- Linked only when a target is given in kiangley_<parameter>.
local target = getManual(args, { "kiangley_" .. sub.pop })
if target and not isNone(target) and label ~= "" then label = "[[" .. target .. "|" .. label .. "]]" end
local note = getManual(args, { "fo-noteyn_" .. sub.pop }) or ""
table.insert(subRows, subrow(label .. note, displayNumber(raw)))
local subDensity = densityText(toNumber(raw), subAreaKm2(args, sub.area), getManual(args, { sub.dens .. "_km2" }), getManual(args, { sub.dens .. "_mi_ker" }), primary)
if subDensity then
local densLabel = sub.densLabel or ("Glooaght " .. (getManual(args, { sub.densLabelParam, sub.densLabelAlt or sub.densLabelParam }) or ""))
table.insert(subRows, subrow(densLabel, subDensity))
end
end
end
local extra = getManual(args, { "note_earroo_yn_phobble" })
if extra and not isNone(extra) and #subRows > 0 then
table.insert(subRows, '<tr class="mergedrow"><td></td><td ' .. TD .. '><small>' .. extra .. '</small></td></tr>')
end
-- Header: the year of the settlement figure, as a year only.
local rows = {}
local headerNote = getManual(args, { "fo-noteyn_earroo_yn_phobble" }) or ""
if #subRows > 0 then
table.insert(rows, '<tr class="mergedtoprow"><td colspan="2" style="padding:0.2em 0.6em;"><b>Earroo yn phobble</b>' .. yearSpan(mainYear) .. headerNote .. '</td></tr>')
end
for _, row in ipairs(subRows) do table.insert(rows, row) end
-- Demonym: manual, else Wikidata (Manx value only).
local demonym = getManual(args, { "ennym_ny_cummaltee" })
local demonymRef = ""
if not demonym and not wdOff then
demonym = getWdDemonym()
if demonym then demonymRef = getWdReference("P1549") end
end
if demonym and not isNone(demonym) then
table.insert(rows, topRow("mergedtoprow", "Ennym ny cummaltee", demonym .. demonymRef))
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
k78eikj4lxrmt7f0wgrw8j9kg0grx4z
Module:Kishtey fys boayl/crysshraa
828
56355
395334
395295
2026-10-26T15:02:21Z
MacTire02
219
++
395334
Scribunto
text/plain
local p = {}
local U = require("Module:Kishtey fys boayl/unnidyn")
local getManual, isNone = U.getManual, U.isNone
-- "+1", "+01:00", "UTC+0100", "−5:30" -> "UTC+01:00" (linked); anything else is shown as typed.
local function formatOffset(text)
if not text or text == "" then return nil end
local clean = mw.ustring.gsub(text, "−", "-")
clean = clean:gsub("^%[%[", ""):gsub("%]%]$", ""):gsub("^UTC", ""):gsub("^%s+", "")
local sign, hours, minutes = clean:match("^([+-])(%d%d?):?(%d?%d?)$")
if not sign then return text end
if minutes == "" then minutes = "00" end
return "[[UTC" .. sign .. string.format("%02d", tonumber(hours)) .. ":" .. minutes .. "]]"
end
local function zoneText(name, offset)
local offsetText = formatOffset(offset)
if name and offsetText then return name .. " (" .. offsetText .. ")" end
return name or offsetText
end
-- Time zones from Wikidata (P421): the item's Manx name, with its UTC offset (P2907) when it has one.
local function getWdZones()
local entity = mw.wikibase.getEntityObject()
if not entity then return {} end
local zones = {}
for _, statement in ipairs(entity:getBestStatements("P421") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
local id = U.entityId(snak.datavalue.value)
local label = mw.wikibase.getLabel(id) or ""
local text
local offsetRef = ""
if label:match("^UTC[+-−]") then
text = formatOffset(label)
else
local offset
offsetRef = ""
for _, st in ipairs(mw.wikibase.getBestStatements(id, "P2907") or {}) do
local q = st.mainsnak and st.mainsnak.datavalue and st.mainsnak.datavalue.value
local amount = q and tonumber(q.amount)
if amount then
local sign = amount < 0 and "-" or "+"
local abs = math.abs(amount)
offset = sign .. string.format("%02d:%02d", math.floor(abs), math.floor((abs % 1) * 60 + 0.5))
offsetRef = U.getWdReference("P2907", nil, id)
break
end
end
text = zoneText(U.itemText(id) or (label ~= "" and label) or nil, offset)
end
if text then table.insert(zones, { text = text, id = id, offsetRef = offsetRef }) end
end
end
return zones
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "crysshraa_wd", "cryss_hraa_wd" }))
local rows = {}
-- Standard time: up to two manual lines.
local lines = {}
local suppressed = false
for index = 1, 2 do
local suffix = tostring(index)
local name = getManual(args, { "cryss_hraa" .. suffix, index == 1 and "cryss_hraa" or "cryss_hraa" .. suffix })
local offset = getManual(args, { "ashchur_utc" .. suffix, index == 1 and "ashchur_utc" or "ashchur_utc" .. suffix, "ashchur" .. suffix, index == 1 and "ashchur" or "ashchur" .. suffix })
if isNone(name) or isNone(offset) then suppressed = true end
if not suppressed then
local text = zoneText(name, offset)
if text then table.insert(lines, text) end
end
end
local fromWd = false
local refs = ""
if #lines == 0 and not suppressed and not wdOff then
for _, zone in ipairs(getWdZones()) do
table.insert(lines, zone.text .. U.getWdReference("P421", zone.id) .. zone.offsetRef)
end
fromWd = #lines > 0
end
if #lines > 0 then
local label = (#lines > 1) and "[[Cryss hraa|Cryssyn traa]]" or "[[Cryss hraa]]"
local value = table.concat(lines, "<br/>")
if not fromWd then
value = U.withNotes(frame, args, value, { "noteyn_cryss_hraa", "noteyn_ashchur_utc" }, { "imraa_cryss_hraa", "imraa_ashchur_utc" })
end
table.insert(rows, U.row("mergedtoprow", label, value))
-- Daylight saving time (THHL); the older _TTSL names still work.
local summer = {}
for index = 1, 2 do
local suffix = tostring(index)
local nameKeys, offsetKeys = {}, {}
for _, tag in ipairs({ "THHL", "TTSL" }) do
table.insert(nameKeys, "cryss_hraa" .. suffix .. "_" .. tag)
table.insert(offsetKeys, "ashchur_utc" .. suffix .. "_" .. tag)
if index == 1 then
table.insert(nameKeys, "cryss_hraa_" .. tag)
table.insert(offsetKeys, "ashchur_utc_" .. tag)
end
end
local name, offset = getManual(args, nameKeys), getManual(args, offsetKeys)
if not isNone(name) and not isNone(offset) then
local text = zoneText(name, offset)
if text then table.insert(summer, text) end
end
end
if #summer > 0 then
local text = U.withNotes(frame, args, table.concat(summer, "<br/>"), { "noteyn_cryss_hraa_THHL", "noteyn_cryss_hraa_TTSL" }, { "imraa_cryss_hraa_THHL", "imraa_cryss_hraa_TTSL" })
table.insert(rows, '<tr class="mergedrow"><th scope="row" style="text-align:left; vertical-align:top; white-space:nowrap; font-weight:normal; padding:0.15em 0.4em 0.15em 1.7em; text-indent:-0.8em;">• Sourey ([[Traa hashtee hollys y laa|THHL]])</th><td ' .. U.TD .. '>' .. text .. '</td></tr>')
end
end
if #rows == 0 then return nil end
return table.concat(rows)
end
return p
k5hmcu25ul0jnutygevmlaex4zgsd0t
Module:Kishtey fys boayl/coadyn
828
56356
395308
395291
2026-10-26T12:44:05Z
MacTire02
219
++
395308
Scribunto
text/plain
local p = {}
local U = require("Module:Kishtey fys boayl/unnidyn")
local getManual, isNone = U.getManual, U.isNone
-- Wikidata string values of a property on the item (or on item `id`), plus the references for them.
local function getWdValues(property, id)
local statements
if id then
statements = mw.wikibase.getBestStatements(id, property)
else
local entity = mw.wikibase.getEntityObject()
statements = entity and entity:getBestStatements(property)
end
local values = {}
for _, statement in ipairs(statements or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
table.insert(values, snak.datavalue.value)
end
end
if #values == 0 then return nil end
return values, U.getWdReference(property, nil, id)
end
-- Manual lists such as "IM1 / IM2" or "IM1, IM2" become separate items; markup is left alone.
local function splitList(text)
if text:find("[%[{<]") then return { text } end
local items = {}
for part in string.gmatch(text, "[^/,;]+") do
part = mw.text.trim(part)
if part ~= "" then table.insert(items, part) end
end
return #items > 0 and items or { text }
end
-- One item as is; several as a horizontal list.
local function joinList(frame, items)
if #items == 1 then return items[1] end
return frame:expandTemplate{ title = "Hlist", args = items }
end
-- The country's international dialling code (P474): the item's own country (P17), else the item itself.
local function getWdCallingCode()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local candidates = {}
for _, statement in ipairs(entity:getBestStatements("P17") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
table.insert(candidates, U.entityId(snak.datavalue.value))
end
end
for _, id in ipairs(candidates) do
local values, refs = getWdValues("P474", id)
if values then return values[1], refs end
end
return nil
end
local function labelFor(args, names, singular, plural, count)
return getManual(args, names) or (count > 1 and plural or singular)
end
local function postalRow(frame, args, wdOff)
local items, refs = nil, ""
local manual = getManual(args, { "coad_postagh" })
if isNone(manual) then return nil end
if manual then
items = splitList(manual)
elseif not wdOff then
items, refs = getWdValues("P281")
end
if not items then return nil end
local value = joinList(frame, items)
if manual then
value = U.withNotes(frame, args, value, { "noteyn_coad_postagh" }, { "imraa_coad_postagh" })
else
value = value .. refs
end
local label = labelFor(args, { "sorçh_coad_postagh" }, "Coad postagh", "Coadyn postagh", #items)
return U.row("mergedrow", label, '<span class="postal-code">' .. value .. '</span>', "adr")
end
-- Area codes, each with the international dialling code in front: "+44 1624".
local function dialRow(frame, args, wdOff)
local items, refs = nil, ""
local manual = getManual(args, { "coad_ardjynagh" })
if isNone(manual) then return nil end
if manual then
items = splitList(manual)
elseif not wdOff then
items, refs = getWdValues("P473")
end
if not items then return nil end
local prefix = getManual(args, { "coad_çhellvane_cheer", "coad_çhellvane_ashoonagh" })
local prefixRefs = ""
if prefix == nil and not wdOff then prefix, prefixRefs = getWdCallingCode() end
if isNone(prefix) then prefix = nil end
if prefix then
for index, code in ipairs(items) do
if not code:find("[%[{<]") then items[index] = prefix .. " " .. (code:gsub("^0+", "")) end
end
end
local value = joinList(frame, items)
if manual then
value = U.withNotes(frame, args, value, { "noteyn_coad_ardjynagh" }, { "imraa_coad_ardjynagh" })
else
value = value .. refs
end
value = value .. (prefixRefs or "")
local link = "[[Plan earrooaghey çhellvane|"
local label = getManual(args, { "sorçh_coad_ardjynagh" }) or (link .. (#items > 1 and "Coadyn çhellvane" or "Coad çhellvane") .. "]]")
return U.row("mergedrow", label, value)
end
-- One code line: manual value (or none), else Wikidata. Returns the row or nil.
local function codeRow(frame, args, wdOff, spec)
local manual = getManual(args, spec.names)
if isNone(manual) then return nil end
local value = manual
if value then
value = U.withNotes(frame, args, value, { "noteyn_" .. spec.names[1] }, { "imraa_" .. spec.names[1] })
elseif spec.property and not wdOff then
local values, refs = getWdValues(spec.property)
if values then value = joinList(frame, values) .. refs end
end
if not value then return nil end
local label = getManual(args, spec.labelNames or {}) or spec.label
return U.row("mergedrow", label, value, spec.tdClass)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "coadyn_wd" }))
local rows = {}
local function add(row) if row then table.insert(rows, row) end end
add(postalRow(frame, args, wdOff))
add(codeRow(frame, args, wdOff, { names = { "coad_postagh2" }, labelNames = { "sorçh_coad_postagh2" }, label = "Coad postagh elley", tdClass = "adr" }))
add(dialRow(frame, args, wdOff))
add(codeRow(frame, args, wdOff, { names = { "geocode" }, label = "Geocode", tdClass = "nickname" }))
add(codeRow(frame, args, wdOff, { names = { "coad_iso" }, label = "Coad ISO 3166", property = "P300", tdClass = "nickname" }))
add(codeRow(frame, args, wdOff, { names = { "plait_recortyssee" }, label = "[[Plait recortyssee carbyd|Recortyssey carbyd]]", property = "P395" }))
if #rows == 0 then return nil end
rows[1] = rows[1]:gsub('^<tr class="mergedrow"', '<tr class="mergedtoprow"', 1)
return table.concat(rows)
end
return p
cxlh3hb53qv6dw33gyi5t29aaigg384
395309
395308
2026-10-26T12:47:27Z
MacTire02
219
++
395309
Scribunto
text/plain
local p = {}
local U = require("Module:Kishtey fys boayl/unnidyn")
local getManual, isNone = U.getManual, U.isNone
-- Lists such as "IM1 / IM2", "IM1, IM2" or "IM1<br>IM2" become separate items. Inside markup only
-- spaced slashes, commas, semicolons and line breaks count, so link targets like [[a/b]] survive.
local function splitList(text)
local marked = text:gsub("<br%s*/?>", "\1"):gsub("%s+/%s+", "\1"):gsub(",%s+", "\1"):gsub(";%s*", "\1")
if not text:find("[%[{<]") then marked = marked:gsub("/", "\1"):gsub(",", "\1") end
local items = {}
for part in string.gmatch(marked, "[^\1]+") do
part = mw.text.trim(part)
if part ~= "" then table.insert(items, part) end
end
return #items > 0 and items or { text }
end
-- Wikidata string values of a property on the item (or on item `id`), plus the references for them.
local function getWdValues(property, id)
local statements
if id then
statements = mw.wikibase.getBestStatements(id, property)
else
local entity = mw.wikibase.getEntityObject()
statements = entity and entity:getBestStatements(property)
end
local values = {}
for _, statement in ipairs(statements or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
for _, item in ipairs(splitList(snak.datavalue.value)) do table.insert(values, item) end
end
end
if #values == 0 then return nil end
return values, U.getWdReference(property, nil, id)
end
-- One item as is; several as a horizontal list.
local function joinList(frame, items)
if #items == 1 then return items[1] end
return frame:expandTemplate{ title = "Hlist", args = items }
end
-- The country's international dialling code (P474): the item's own country (P17), else the item itself.
local function getWdCallingCode()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local candidates = {}
for _, statement in ipairs(entity:getBestStatements("P17") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
table.insert(candidates, U.entityId(snak.datavalue.value))
end
end
for _, id in ipairs(candidates) do
local values, refs = getWdValues("P474", id)
if values then return values[1], refs end
end
return nil
end
local function labelFor(args, names, singular, plural, count)
return getManual(args, names) or (count > 1 and plural or singular)
end
local function postalRow(frame, args, wdOff)
local items, refs = nil, ""
local manual = getManual(args, { "coad_postagh" })
if isNone(manual) then return nil end
if manual then
items = splitList(manual)
elseif not wdOff then
items, refs = getWdValues("P281")
end
if not items then return nil end
local value = joinList(frame, items)
if manual then
value = U.withNotes(frame, args, value, { "noteyn_coad_postagh" }, { "imraa_coad_postagh" })
else
value = value .. refs
end
local label = labelFor(args, { "sorçh_coad_postagh" }, "Coad postagh", "Coadyn postagh", #items)
return U.row("mergedrow", label, '<span class="postal-code">' .. value .. '</span>', "adr")
end
-- Area codes, each with the international dialling code in front: "+44 1624".
local function dialRow(frame, args, wdOff)
local items, refs = nil, ""
local manual = getManual(args, { "coad_ardjynagh" })
if isNone(manual) then return nil end
if manual then
items = splitList(manual)
elseif not wdOff then
items, refs = getWdValues("P473")
end
if not items then return nil end
local prefix = getManual(args, { "coad_çhellvane_cheer", "coad_çhellvane_ashoonagh" })
local prefixRefs = ""
if prefix == nil and not wdOff then prefix, prefixRefs = getWdCallingCode() end
if isNone(prefix) then prefix = nil end
if prefix then
for index, code in ipairs(items) do
if not code:find("[%[{<]") then items[index] = prefix .. " " .. (code:gsub("^0+", "")) end
end
end
local value = joinList(frame, items)
if manual then
value = U.withNotes(frame, args, value, { "noteyn_coad_ardjynagh" }, { "imraa_coad_ardjynagh" })
else
value = value .. refs
end
value = value .. (prefixRefs or "")
local link = "[[Plan earrooaghey çhellvane|"
local label = getManual(args, { "sorçh_coad_ardjynagh" }) or (link .. (#items > 1 and "Coadyn çhellvane" or "Coad çhellvane") .. "]]")
return U.row("mergedrow", label, value)
end
-- One code line: manual value (or none), else Wikidata. Returns the row or nil.
local function codeRow(frame, args, wdOff, spec)
local manual = getManual(args, spec.names)
if isNone(manual) then return nil end
local value = manual
if value then
value = U.withNotes(frame, args, value, { "noteyn_" .. spec.names[1] }, { "imraa_" .. spec.names[1] })
elseif spec.property and not wdOff then
local values, refs = getWdValues(spec.property)
if values then value = joinList(frame, values) .. refs end
end
if not value then return nil end
local label = getManual(args, spec.labelNames or {}) or spec.label
return U.row("mergedrow", label, value, spec.tdClass)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "coadyn_wd" }))
local rows = {}
local function add(row) if row then table.insert(rows, row) end end
add(postalRow(frame, args, wdOff))
add(codeRow(frame, args, wdOff, { names = { "coad_postagh2" }, labelNames = { "sorçh_coad_postagh2" }, label = "Coad postagh elley", tdClass = "adr" }))
add(dialRow(frame, args, wdOff))
add(codeRow(frame, args, wdOff, { names = { "geocode" }, label = "Geocode", tdClass = "nickname" }))
add(codeRow(frame, args, wdOff, { names = { "coad_iso" }, label = "Coad ISO 3166", property = "P300", tdClass = "nickname" }))
add(codeRow(frame, args, wdOff, { names = { "plait_recortyssee" }, label = "[[Plait recortyssee carbyd|Recortyssey carbyd]]", property = "P395" }))
if #rows == 0 then return nil end
rows[1] = rows[1]:gsub('^<tr class="mergedrow"', '<tr class="mergedtoprow"', 1)
return table.concat(rows)
end
return p
it1kbrhrj9whl091m4xutkkj74j0hny
395313
395309
2026-10-26T13:04:39Z
MacTire02
219
++
395313
Scribunto
text/plain
local p = {}
local U = require("Module:Kishtey fys boayl/unnidyn")
local getManual, isNone = U.getManual, U.isNone
-- Lists such as "IM1 / IM2", "IM1, IM2" or "IM1<br>IM2" become separate items. Inside markup only
-- spaced slashes, commas, semicolons and line breaks count, so link targets like [[a/b]] survive.
local function splitList(text)
local marked = text:gsub("<br%s*/?>", "\1"):gsub("%s+/%s+", "\1"):gsub(",%s+", "\1"):gsub(";%s*", "\1")
if not text:find("[%[{<]") then marked = marked:gsub("/", "\1"):gsub(",", "\1") end
local items = {}
for part in string.gmatch(marked, "[^\1]+") do
part = mw.text.trim(part)
if part ~= "" then table.insert(items, part) end
end
return #items > 0 and items or { text }
end
-- Wikidata string values of a property on the item (or on item `id`), plus the references for them.
local function getWdValues(property, id)
local statements
if id then
statements = mw.wikibase.getBestStatements(id, property)
else
local entity = mw.wikibase.getEntityObject()
statements = entity and entity:getBestStatements(property)
end
local values = {}
for _, statement in ipairs(statements or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
for _, item in ipairs(splitList(snak.datavalue.value)) do table.insert(values, item) end
end
end
if #values == 0 then return nil end
return values, U.getWdReference(property, nil, id)
end
-- One item as is; several as a horizontal list.
local function joinList(frame, items)
if #items == 1 then return items[1] end
return frame:expandTemplate{ title = "Hlist", args = items }
end
-- The country's international dialling code (P474): the item's own country (P17), else the item itself.
local function getWdCallingCode()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local candidates = {}
for _, statement in ipairs(entity:getBestStatements("P17") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
table.insert(candidates, U.entityId(snak.datavalue.value))
end
end
for _, id in ipairs(candidates) do
local values, refs = getWdValues("P474", id)
if values then return values[1], refs end
end
return nil
end
local function labelFor(args, names, singular, plural, count)
return getManual(args, names) or (count > 1 and plural or singular)
end
local function postalRow(frame, args, wdOff)
local items, refs = nil, ""
local manual = getManual(args, { "coad_postagh" })
if isNone(manual) then return nil end
if manual then
items = splitList(manual)
elseif not wdOff then
items, refs = getWdValues("P281")
end
if not items then return nil end
local value = joinList(frame, items)
if manual then
value = U.withNotes(frame, args, value, { "noteyn_coad_postagh" }, { "imraa_coad_postagh" })
else
value = value .. refs
end
local label = labelFor(args, { "sorçh_coad_postagh" }, "Coad postagh", "Coadyn postagh", #items)
return U.row("mergedrow", label, '<span class="postal-code">' .. value .. '</span>', "adr")
end
-- Area codes, each with the international dialling code in front: "+44 1624".
local function dialRow(frame, args, wdOff)
local items, refs = nil, ""
local manual = getManual(args, { "coad_ardjynagh" })
if isNone(manual) then return nil end
if manual then
items = splitList(manual)
elseif not wdOff then
items, refs = getWdValues("P473")
end
if not items then return nil end
local prefix = getManual(args, { "coad_çhellvane_cheer", "coad_çhellvane_ashoonagh" })
local prefixRefs = ""
if prefix == nil and not wdOff then prefix, prefixRefs = getWdCallingCode() end
if isNone(prefix) then prefix = nil end
if prefix then
for index, code in ipairs(items) do
if not code:find("[%[{<]") then items[index] = prefix .. " " .. (code:gsub("^0+", "")) end
end
end
local value = joinList(frame, items)
if manual then
value = U.withNotes(frame, args, value, { "noteyn_coad_ardjynagh" }, { "imraa_coad_ardjynagh" })
else
value = value .. refs
end
value = value .. (prefixRefs or "")
local link = "[[Plan earrooaghey çhellvane|"
local label = getManual(args, { "sorçh_coad_ardjynagh" }) or (link .. (#items > 1 and "Coadyn çhellvane" or "Coad çhellvane") .. "]]")
return U.row("mergedrow", label, value)
end
-- One code line: manual value (or none), else Wikidata. Returns the row or nil.
local function codeRow(frame, args, wdOff, spec)
local manual = getManual(args, spec.names)
if isNone(manual) then return nil end
local value = manual
if value then
value = U.withNotes(frame, args, value, { "noteyn_" .. spec.names[1] }, { "imraa_" .. spec.names[1] })
elseif spec.property and not wdOff then
local values, refs = getWdValues(spec.property)
if values then value = joinList(frame, values) .. refs end
end
if not value then return nil end
local label = getManual(args, spec.labelNames or {}) or spec.label
return U.row("mergedrow", label, value, spec.tdClass)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "coadyn_wd" }))
local rows = {}
local function add(row) if row then table.insert(rows, row) end end
add(postalRow(frame, args, wdOff))
add(codeRow(frame, args, wdOff, { names = { "coad_postagh2" }, labelNames = { "sorçh_coad_postagh2" }, label = "Coad postagh elley", tdClass = "adr" }))
add(dialRow(frame, args, wdOff))
add(codeRow(frame, args, wdOff, { names = { "ogher_ingagh_os" }, label = "[[Ingagh Ashoonagh OS|Ogher ingagh OS]]", property = "P613" }))
add(codeRow(frame, args, wdOff, { names = { "ogher_ingagh_yernagh" }, label = "[[Corys ogher ingagh Nerin|Ogher ingagh Yernagh]]", property = "P4091" }))
add(codeRow(frame, args, wdOff, { names = { "geocode" }, label = "Geocode", tdClass = "nickname" }))
add(codeRow(frame, args, wdOff, { names = { "coad_iso" }, label = "Coad ISO 3166", property = "P300", tdClass = "nickname" }))
add(codeRow(frame, args, wdOff, { names = { "plait_recortyssee" }, label = "[[Plait recortyssee carbyd|Recortyssey carbyd]]", property = "P395" }))
if #rows == 0 then return nil end
rows[1] = rows[1]:gsub('^<tr class="mergedrow"', '<tr class="mergedtoprow"', 1)
return table.concat(rows)
end
return p
j79g3flbczutfpwkdamvvavi8q7qhnr
395318
395313
2026-10-26T13:40:42Z
MacTire02
219
++
395318
Scribunto
text/plain
local p = {}
local U = require("Module:Kishtey fys boayl/unnidyn")
local getManual, isNone = U.getManual, U.isNone
-- Lists such as "IM1 / IM2", "IM1, IM2" or "IM1<br>IM2" become separate items. Inside markup only
-- spaced slashes, commas, semicolons and line breaks count, so link targets like [[a/b]] survive.
local function splitList(text)
local marked = text:gsub("<br%s*/?>", "\1"):gsub("%s+/%s+", "\1"):gsub(",%s+", "\1"):gsub(";%s*", "\1")
if not text:find("[%[{<]") then marked = marked:gsub("/", "\1"):gsub(",", "\1") end
local items = {}
for part in string.gmatch(marked, "[^\1]+") do
part = mw.text.trim(part)
if part ~= "" then table.insert(items, part) end
end
return #items > 0 and items or { text }
end
-- Wikidata string values of a property on the item (or on item `id`), plus the references for them.
local function getWdValues(property, id)
local statements
if id then
statements = mw.wikibase.getBestStatements(id, property)
else
local entity = mw.wikibase.getEntityObject()
statements = entity and entity:getBestStatements(property)
end
local values = {}
for _, statement in ipairs(statements or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "string" then
for _, item in ipairs(splitList(snak.datavalue.value)) do table.insert(values, item) end
end
end
if #values == 0 then return nil end
return values, U.getWdReference(property, nil, id)
end
-- One item as is; several as a horizontal list.
local function joinList(frame, items)
if #items == 1 then return items[1] end
return frame:expandTemplate{ title = "Hlist", args = items }
end
-- The country's international dialling code (P474): the item's own country (P17), else the item itself.
local function getWdCallingCode()
local entity = mw.wikibase.getEntityObject()
if not entity then return nil end
local candidates = {}
for _, statement in ipairs(entity:getBestStatements("P17") or {}) do
local snak = statement.mainsnak
if snak and snak.snaktype == "value" and snak.datavalue and snak.datavalue.type == "wikibase-entityid" then
table.insert(candidates, U.entityId(snak.datavalue.value))
end
end
for _, id in ipairs(candidates) do
local values, refs = getWdValues("P474", id)
if values then return values[1], refs end
end
return nil
end
local function labelFor(args, names, singular, plural, count)
return getManual(args, names) or (count > 1 and plural or singular)
end
local function postalRow(frame, args, wdOff)
local items, refs = nil, ""
local manual = getManual(args, { "coad_postagh" })
if isNone(manual) then return nil end
if manual then
items = splitList(manual)
elseif not wdOff then
items, refs = getWdValues("P281")
end
if not items then return nil end
local value = joinList(frame, items)
if manual then
value = U.withNotes(frame, args, value, { "noteyn_coad_postagh" }, { "imraa_coad_postagh" })
else
value = value .. refs
end
local label = labelFor(args, { "sorçh_coad_postagh" }, "Coad postagh", "Coadyn postagh", #items)
return U.row("mergedrow", label, '<span class="postal-code">' .. value .. '</span>', "adr")
end
-- Area codes, each with the international dialling code in front: "+44 1624".
local function dialRow(frame, args, wdOff)
local items, refs = nil, ""
local manual = getManual(args, { "coad_ardjynagh" })
if isNone(manual) then return nil end
if manual then
items = splitList(manual)
elseif not wdOff then
items, refs = getWdValues("P473")
end
if not items then return nil end
local prefix = getManual(args, { "coad_çhellvane_cheer", "coad_çhellvane_ashoonagh" })
local prefixRefs = ""
if prefix == nil and not wdOff then prefix, prefixRefs = getWdCallingCode() end
if isNone(prefix) then prefix = nil end
if prefix then
for index, code in ipairs(items) do
if not code:find("[%[{<]") then items[index] = prefix .. " " .. (code:gsub("^0+", "")) end
end
end
local value = joinList(frame, items)
if manual then
value = U.withNotes(frame, args, value, { "noteyn_coad_ardjynagh" }, { "imraa_coad_ardjynagh" })
else
value = value .. refs
end
value = value .. (prefixRefs or "")
local link = "[[Plan earrooaghey çhellvane|"
local label = getManual(args, { "sorçh_coad_ardjynagh" }) or (link .. (#items > 1 and "Coadyn çhellvane" or "Coad çhellvane") .. "]]")
return U.row("mergedrow", label, value)
end
-- One code line: manual value (or none), else Wikidata. Returns the row or nil.
local function codeRow(frame, args, wdOff, spec)
local manual = getManual(args, spec.names)
if isNone(manual) then return nil end
local value = manual
if value then
value = U.withNotes(frame, args, value, { "noteyn_" .. spec.names[1] }, { "imraa_" .. spec.names[1] })
elseif spec.property and not wdOff then
local values, refs = getWdValues(spec.property)
if values then value = joinList(frame, values) .. refs end
end
if not value then return nil end
local label = getManual(args, spec.labelNames or {}) or spec.label
return U.row("mergedrow", label, value, spec.tdClass)
end
function p.main(frame, args)
if not args then
args = frame
frame = mw.getCurrentFrame()
end
local wdOff = isNone(getManual(args, { "coadyn_wd" }))
local rows = {}
local function add(row) if row then table.insert(rows, row) end end
add(postalRow(frame, args, wdOff))
add(codeRow(frame, args, wdOff, { names = { "coad_postagh2" }, labelNames = { "sorçh_coad_postagh2" }, label = "Coad postagh elley", tdClass = "adr" }))
add(dialRow(frame, args, wdOff))
add(codeRow(frame, args, wdOff, { names = { "ogher_ingagh_os" }, label = "[[Ingagh Ashoonagh OS|Ogher ingagh OS]]", property = "P613" }))
add(codeRow(frame, args, wdOff, { names = { "ogher_ingagh_yernagh" }, label = "[[Corys ogher ingagh Nerin|Ogher ingagh Yernagh]]", property = "P4091" }))
add(codeRow(frame, args, wdOff, { names = { "geocode" }, label = "Geocode", tdClass = "nickname" }))
add(codeRow(frame, args, wdOff, { names = { "coad_iso" }, label = "Coad ISO 3166", property = "P300", tdClass = "nickname" }))
add(codeRow(frame, args, wdOff, { names = { "plait_recortyssee" }, label = "[[Plait recortyssee carbyd]]", property = "P395" }))
if #rows == 0 then return nil end
rows[1] = rows[1]:gsub('^<tr class="mergedrow"', '<tr class="mergedtoprow"', 1)
return table.concat(rows)
end
return p
trdg1mqhwm9h0xpdrr4kgblex97xe6j
Corys ingagh ogheragh Nerin
0
56360
395311
2026-10-26T13:03:02Z
MacTire02
219
MacTire02 moved page [[Corys ingagh ogheragh Nerin]] to [[Corys ogher ingagh Nerin]]
395311
wikitext
text/x-wiki
#REDIRECT [[Corys ogher ingagh Nerin]]
i8fq91gm7r91fz5hvqgctljtiyvl72c
Clowan:Kishtey fys boayl/noa
10
56361
395322
2026-10-26T13:54:27Z
MacTire02
219
MacTire02 moved page [[Clowan:Kishtey fys boayl/noa]] to [[Clowan:Kishtey fys boayl]]: kishtey fys noa kiaglt rish WD
395322
wikitext
text/x-wiki
#REDIRECT [[Clowan:Kishtey fys boayl]]
5sdqh5lrijridoahsts4cm037o7s76e
Ronney:Artyn lesh teks ayns Ladinish
14
56363
395411
2026-10-27T01:04:25Z
MacTire02
219
ronney noa
395411
wikitext
text/x-wiki
{{Non-Manx-language text category}}
ftm4vo8zcojmgp8zf3wygcgvg0ztoi7
395412
395411
2026-10-27T01:06:08Z
MacTire02
219
MacTire02 moved page [[Ronney:Artyn lesh teks ayns Ladin]] to [[Ronney:Artyn lesh teks ayns Ladinish]]
395411
wikitext
text/x-wiki
{{Non-Manx-language text category}}
ftm4vo8zcojmgp8zf3wygcgvg0ztoi7
Ronney:Artyn lesh teks ayns Ladin
14
56364
395413
2026-10-27T01:06:08Z
MacTire02
219
MacTire02 moved page [[Ronney:Artyn lesh teks ayns Ladin]] to [[Ronney:Artyn lesh teks ayns Ladinish]]
395413
wikitext
text/x-wiki
#REDIRECT [[:Ronney:Artyn lesh teks ayns Ladinish]]
17hrmk3td032x0h51hxkwga07rzerd9
Clowan:Lhiass-chiannoort Vannin
10
56365
395418
2026-10-27T01:27:41Z
MacTire02
219
clowan noa
395418
wikitext
text/x-wiki
{{Navbox
|name = Lhiass-chiannoort Vannin
|title = [[Lhiass-chiannoort Vannin|Lhiass-chiannoortyn Vannin]]
|listclass = hlist
|image =
|state={{{state<includeonly>|collapsed</includeonly>}}}
|list1 =
* [[Henry Hope (lhiass-chiannoort Vannin)|Hope]]
* [[Richard Dawson (offishear yn Armee Ghoaldagh)|Dawson]]
* [[Alexander Shaw (offishear yn Armee Ghoaldagh)|Shaw]]
* [[Henry Murray (politickeyr Goaldagh)|Murray]]
* [[Cornelius Smelt|Smelt]]
* [[John Ready|Ready]]
* [[Charles Hope (lhiass-choannoort)|Hope]]
* [[Francis Pigott Stainsby Conant|Pigott-Stainsby-Conant]]
* [[Henry Loch, 1d Varran Loch|Loch]]
* [[Spencer Walpole|Walpole]]
* [[Joseph West Ridgeway|Ridgeway]]
* [[John Henniker-Major, 5oo Barran Henniker|Henniker-Major]]
* [[George Somerset, 3oo Barran Raglan|Somerset]]
* [[William Fry (offishear yn Armee Ghoaldagh)|Fry]]
* [[Claude Hill|Hill]]
* [[Montagu Sherard Dawes Butler|Butler]]
* [[William Leveson-Gower, 4oo Eearley Granville|Granville]]
* [[Geoffrey Rhodes Bromet|Bromet]]
* [[Ambrose Flux Dundas|Flux Dundas]]
* [[Ronald Garvey|Garvey]]
* [[Peter Stallard|Stallard]]
* [[John Warburton Paul|Paul]]
* [[Nigel Cecil|Cecil]]
* [[Laurence New|New]]
* [[Laurence Jones (offishear y Çhirveish Aer Reeoil)|Jones]]
* [[Timothy Daunt|Daunt]]
* [[Ian Macfadyen|MacFadyen]]
* [[Paul Haddacks|Haddacks]]
* [[Adam Wood|Wood]]
* [[Richard Gozney|Gozney]]
* [[John Lorimer (offishear yn Armee Ghoaldagh)|Lorimer]]
}}<noinclude>
{{navbox documentation}}
[[Ronney:Kishtaghyn stiuree bentyn rish toshee pholitickagh Vannin]]
</noinclude>
4zxvna97c51dgwulfaf48u2f4710z8t