SuperWikiImage-7M / scripts /wikipedia_template.py
KaraKaraWitch's picture
Super-squash branch 'main' using huggingface_hub
a454f6c verified
raw
history blame
32.2 kB
# https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q4663261&format=json&props=labels
stubs = {
"entities": {
"Q4663261": {
"type": "item",
"id": "Q4663261",
"labels": {
"cs": {"language": "cs", "value": "Wikipedie:Pahýl"},
"af": {"language": "af", "value": "Wikipedia:Saadjie"},
"ar": {"language": "ar", "value": "ويكيبيديا:بذرة"},
"as": {"language": "as", "value": "ৱিকিপিডিয়া:পোখালি"},
"az": {"language": "az", "value": "Vikipediya:Qaralama məqalələr"},
"be": {"language": "be", "value": "Вікіпедыя:Накід"},
"bg": {"language": "bg", "value": "Уикипедия:Мъниче"},
"ca": {"language": "ca", "value": "Viquipèdia:Esborrany"},
"ceb": {"language": "ceb", "value": "Wikipedia:Saha"},
"da": {"language": "da", "value": "Hjælp:Artikeludvidelse"},
"de": {"language": "de", "value": "Wikipedia:Lückenhaft"},
"dsb": {"language": "dsb", "value": "Wikipedija:Zarodk"},
"el": {"language": "el", "value": "Βικιπαίδεια:Λήμματα προς επέκταση"},
"en": {"language": "en", "value": "Wikipedia:Stub"},
"eo": {"language": "eo", "value": "Vikipedio:Ĝermo"},
"es": {"language": "es", "value": "Wikipedia:Esbozo"},
"eu": {"language": "eu", "value": "Wikipedia:Zirriborro"},
"fa": {"language": "fa", "value": "ویکی‌پدیا:مقاله خرد"},
"fi": {"language": "fi", "value": "Wikipedia:Tynkä"},
"fo": {"language": "fo", "value": "Wikipedia:Stubbi"},
"fr": {"language": "fr", "value": "Aide:Ébauche"},
"ga": {"language": "ga", "value": "Vicipéid:Síol"},
"haw": {"language": "haw", "value": "Wikipedia:ʻŌmuku"},
"he": {"language": "he", "value": "ויקיפדיה:קצרמר"},
"hr": {"language": "hr", "value": "Wikipedija:Mrva"},
"hsb": {"language": "hsb", "value": "Wikipedija:Zarodk"},
"hu": {"language": "hu", "value": "Wikipédia:Csonk"},
"ia": {"language": "ia", "value": "Wikipedia:Pecietta"},
"id": {"language": "id", "value": "Wikipedia:Tulisan rintisan"},
"ilo": {"language": "ilo", "value": "Wikipedia:Pungol"},
"is": {"language": "is", "value": "Wikipedia:Stubbur"},
"it": {"language": "it", "value": "Aiuto:Abbozzo"},
"ja": {"language": "ja", "value": "Wikipedia:スタブ"},
"jv": {"language": "jv", "value": "Wikipédia:Rintisan"},
"km": {"language": "km", "value": "វិគីភីឌា:អត្ថបទខ្លីមិនពេញលេញ"},
"ko": {"language": "ko", "value": "위키백과:토막글"},
"ku": {"language": "ku", "value": "Wîkîpediya:Şitl"},
"kw": {"language": "kw", "value": "Wikipedia:Stokk"},
"la": {"language": "la", "value": "Vicipaedia:Stipulae"},
"lbe": {"language": "lbe", "value": "Википедия:Кьурхь"},
"lt": {"language": "lt", "value": "Vikipedija:Nebaigtas straipsnis"},
"lv": {"language": "lv", "value": "Vikipēdija:Aizmetnis"},
"mk": {"language": "mk", "value": "Википедија:Никулец"},
"ms": {"language": "ms", "value": "Wikipedia:Rencana tunas"},
"mwl": {"language": "mwl", "value": "Biquipédia:Rabisco"},
"na": {"language": "na", "value": "Wikipedia:Kadudu"},
"nds": {"language": "nds", "value": "Wikipedia:Stubben"},
"nl": {"language": "nl", "value": "Wikipedia:Beginnetje"},
"nn": {"language": "nn", "value": "Wikipedia:Spire"},
"os": {"language": "os", "value": "Википеди:Къæртт"},
"pam": {"language": "pam", "value": "Wikipedia:Suli"},
"pl": {"language": "pl", "value": "Wikipedia:Zalążek artykułu"},
"pt": {"language": "pt", "value": "Wikipédia:Esboço"},
"ro": {"language": "ro", "value": "Wikipedia:Ciot"},
"ru": {"language": "ru", "value": "Википедия:Заготовка статьи"},
"rue": {"language": "rue", "value": "Вікіпедія:Стыржень"},
"scn": {"language": "scn", "value": "Wikipedia:Stub"},
"sk": {"language": "sk", "value": "Wikipédia:Výhonok"},
"sl": {"language": "sl", "value": "Wikipedija:Škrbina"},
"sq": {"language": "sq", "value": "Wikipedia:Cung"},
"sr": {"language": "sr", "value": "Википедија:Клица"},
"sv": {"language": "sv", "value": "Wikipedia:Stubbar"},
"szl": {"language": "szl", "value": "Wikipedyjo:Kůnski artikli"},
"ta": {"language": "ta", "value": "விக்கிப்பீடியா:குறுங்கட்டுரை"},
"tg": {"language": "tg", "value": "Википедиа:Мақолаи хурд"},
"th": {"language": "th", "value": "วิกิพีเดีย:โครง"},
"tk": {"language": "tk", "value": "Wikipediýa:Ownuk makala"},
"tl": {"language": "tl", "value": "Wikipedia:Usbong"},
"tr": {"language": "tr", "value": "Vikipedi:Taslak madde"},
"uk": {"language": "uk", "value": "Вікіпедія:Стаття-заготовка"},
"vi": {"language": "vi", "value": "Wikipedia:Bài sơ khai"},
"wa": {"language": "wa", "value": "Wikipedia:Djermons"},
"war": {"language": "war", "value": "Wikipedia:Turók"},
"yi": {"language": "yi", "value": "װיקיפּעדיע:שטומף"},
"yo": {"language": "yo", "value": "Wikipedia:Àwọn àyọkà kúkúrú"},
"zh": {"language": "zh", "value": "Wikipedia:小作品"},
"gu": {"language": "gu", "value": "વિકિપીડિયા:સ્ટબ"},
"ckb": {"language": "ckb", "value": "ویکیپیدیا:کۆلکە"},
"or": {"language": "or", "value": "ଉଇକିପିଡ଼ିଆ:Stub"},
"uz": {"language": "uz", "value": "Vikipediya:Chala maqola"},
"bs": {"language": "bs", "value": "Wikipedia:U začetku"},
"hy": {"language": "hy", "value": "Վիքիպեդիա:Անավարտ հոդված"},
"fur": {"language": "fur", "value": "Vichipedie:Aboç"},
"tt": {"language": "tt", "value": "Википедия:Мәкалә төпчекләре"},
"iu": {"language": "iu", "value": "ᐅᐃᑭᐱᑎᐊ:ᓇᐃᑦᑐᒥᒃ ᐅᖃᓕᒫᕐᕕᒃ"},
"mt": {"language": "mt", "value": "Wikipedija:Nebbieta"},
"se": {"language": "se", "value": "Wikipedia:Nalta"},
"ang": {"language": "ang", "value": "Wikipǣdia:Ānsund styccegewrit"},
"kk": {"language": "kk", "value": "Уикипедия:Мақалаға бастама"},
"nb": {"language": "nb", "value": "Wikipedia:Stubb"},
"nap": {"language": "nap", "value": "Ajùto:Stub"},
"cy": {"language": "cy", "value": "Wicipedia:Eginyn"},
"sah": {"language": "sah", "value": "Бикипиэдьийэ:Ыстатыйа омооно"},
"io": {"language": "io", "value": "Wikipedio:Kladi"},
"gsw": {"language": "gsw", "value": "Wikipedia:Stub"},
"nan": {"language": "nan", "value": "Wikipedia:Phí"},
"be-tarask": {"language": "be-tarask", "value": "Вікімэдыя:Накід"},
"yue": {"language": "yue", "value": "Wikipedia:楔位文章"},
"si": {"language": "si", "value": "විකිපීඩියා:අංකුර ලිපි"},
"oc": {"language": "oc", "value": "Ajuda:Esbòs"},
"ur": {"language": "ur", "value": "ویکیپیڈیا:نامکمل مضمون"},
"av": {"language": "av", "value": "Википедия:Макъала хІадури"},
"rup": {"language": "rup", "value": "Wikipedia:Ahurhire"},
"my": {"language": "my", "value": "ဝီကီပီးဒီးယား:Stub"},
"sco": {"language": "sco", "value": "Wikipedia:Stub"},
"ba": {"language": "ba", "value": "Википедия:Башланғыс мәҡәлә"},
"csb": {"language": "csb", "value": "Wiki:Ùzémk artikla"},
"lad": {"language": "lad", "value": "Vikipedya:Esbozo"},
"bho": {"language": "bho", "value": "विकिपीडिया:आधार"},
"en-ca": {"language": "en-ca", "value": "Wikipedia:Stub"},
"en-gb": {"language": "en-gb", "value": "Wikipedia:Stub"},
"pt-br": {"language": "pt-br", "value": "Wikipédia:Esboço"},
"ksh": {
"language": "ksh",
"value": "Wikipedia:Wat sinn Shtümmpshenß Sigge?",
},
"sd": {"language": "sd", "value": "وڪيپيڊيا:ڪچو مضمون"},
"su": {"language": "su", "value": "Wikipedia:Taratas"},
"jbo": {"language": "jbo", "value": "uikipedi'as:kevzu'i"},
"bn": {"language": "bn", "value": "উইকিপিডিয়া:অসম্পূর্ণ"},
"gn": {"language": "gn", "value": "Vikipetã:Haipy mbyky"},
"wuu": {"language": "wuu", "value": "Wikipedia:小作品"},
"nrm": {"language": "nrm", "value": "Wikipedia:Choutchette"},
"vep": {"language": "vep", "value": "Vikipedii:Ezitegez"},
"hi": {"language": "hi", "value": "विकियात्रा:आधार लेख"},
"azb": {"language": "azb", "value": "ویکی‌پدیا:قارالاما مقاله"},
"sh": {"language": "sh", "value": "Wikipedia:Članci u začetku"},
"ce": {"language": "ce", "value": "Википеди:Йаззам кечбар"},
"shn": {"language": "shn", "value": "ဝီႇၶီႇၽီးတီးယႃး:Stub"},
"vo": {"language": "vo", "value": "Vükiped:Sid"},
"min": {"language": "min", "value": "Wikipedia:Padoman rancangan"},
"gor": {"language": "gor", "value": "Wikipedia:Artikel buntato"},
"bug": {"language": "bug", "value": "Wikipedia:Tulisan rintisan"},
"bjn": {"language": "bjn", "value": "Wikipidia:Tulisan rintisan"},
"cbk-zam": {"language": "cbk-zam", "value": "Wikipedia:Stub"},
"ne": {"language": "ne", "value": "अपुरो"},
"gv": {"language": "gv", "value": "Wikipedia:Bun"},
"arz": {"language": "arz", "value": "ويكيبيديا:تقاوى"},
"vec": {"language": "vec", "value": "Ajuto:Spigaso"},
"sat": {"language": "sat", "value": "ᱣᱤᱠᱤᱯᱤᱰᱤᱭᱟ:Stub"},
"gan": {"language": "gan", "value": "Wikipedia:細文章"},
"hyw": {"language": "hyw", "value": "Ուիքիփետիա:Անաւարտ յօդուած"},
"om": {"language": "om", "value": "Wikipedia:Xinnoo"},
"kn": {"language": "kn", "value": "ವಿಕಿಪೀಡಿಯ:ಚುಟುಕು"},
"pa": {"language": "pa", "value": "ਵਿਕੀਪੀਡੀਆ:ਆਧਾਰ"},
"mad": {"language": "mad", "value": "Wikipèḍia:Bhâbhâdhân"},
"te": {"language": "te", "value": "వికీపీడియా:మొలక"},
"co": {"language": "co", "value": "Wikipedia:Articuli da cumplittà"},
"ary": {"language": "ary", "value": "ويكيبيديا:بذرة"},
"ml": {"language": "ml", "value": "വിക്കിപീഡിയ: അപൂർണ്ണലേഖനം"},
"ks": {"language": "ks", "value": "Wikipedia:نامُکَمَل مَضموٗن"},
"smn": {"language": "smn", "value": "Wikipedia:Narcce"},
"lg": {"language": "lg", "value": "Wikipedia:Stub"},
"gl": {
"language": "gl",
"value": "Wikipedia:Marcadores de traballo en progreso",
},
"nqo": {"language": "nqo", "value": "ߥߞߌߔߋߘߌߦߊ:ߣߐ߬ߣߐ߬ߟߌ"},
"bxr": {"language": "bxr", "value": "Википеэди:Stub"},
"tn": {"language": "tn", "value": "Wikipedia:Tsebe e nnyane"},
"bcl": {"language": "bcl", "value": "Wikipedia:Tamboan"},
"lb": {"language": "lb", "value": "Wikipedia:Skizzen"},
"en-us": {"language": "en-us", "value": "Wikipedia:Stub"},
"mn": {"language": "mn", "value": "Wikipedia:Stub"},
"zh-tw": {"language": "zh-tw", "value": "Wikipedia:小作品"},
"zh-hant": {"language": "zh-hant", "value": "Wikipedia:小作品"},
},
}
},
"success": 1,
}
stubs = [v["value"].lower() for v in stubs["entities"]["Q4663261"]["labels"].values()]
citations = {
"entities": {
"Q7106262": {
"type": "item",
"id": "Q7106262",
"labels": {
"or": {"language": "or", "value": "ପ୍ରମାଣ ଦରକାର"},
"sq": {"language": "sq", "value": "Wikipedia:Citim i duhur"},
"my": {"language": "my", "value": "ဝီကီပီးဒီးယား:Citation needed"},
"nl": {"language": "nl", "value": "Help:Referentie gewenst"},
"ar": {"language": "ar", "value": "ويكيبيديا:بحاجة لمصدر"},
"as": {"language": "as", "value": "উদ্ধৃতিৰ প্ৰয়োজন"},
"mk": {"language": "mk", "value": "Википедија:Се бара извор"},
"si": {"language": "si", "value": "තහවුරු කිරීමක් අවශ්‍යයි"},
"arz": {"language": "arz", "value": "عايز مصدر"},
"fr": {"language": "fr", "value": "Aide:Référence nécessaire"},
"ja": {
"language": "ja",
"value": "Wikipedia:「要出典」をクリックされた方へ",
},
"en": {"language": "en", "value": "Wikipedia:Citation needed"},
"nb": {"language": "nb", "value": "Hjelp:Trenger referanse"},
"cy": {"language": "cy", "value": "Wicipedia:Angen ffynhonnell"},
"fa": {"language": "fa", "value": "ویکی‌پدیا:نیازمند منبع"},
"ur": {"language": "ur", "value": "حوالہ درکار"},
"km": {"language": "km", "value": "ត្រូវការអំណះអំណាង"},
"de": {"language": "de", "value": "Wikipedia:Citation needed"},
"th": {"language": "th", "value": "วิกิพีเดีย:ต้องการอ้างอิง"},
"sco": {"language": "sco", "value": "Wikipedia:Citation needit"},
"gl": {"language": "gl", "value": "Wikipedia:Cómpre referencia"},
"bn": {"language": "bn", "value": "উইকিপিডিয়া:তথ্যসূত্র প্রয়োজন"},
"lo": {"language": "lo", "value": "ວິກິພີເດຍ:ຕ້ອງການອ້າງອີງ"},
"ang": {"language": "ang", "value": "Wikipǣdia:Sēðung þurfed"},
"ilo": {"language": "ilo", "value": "Wikipedia:Masapul a dakamaten"},
"de-ch": {"language": "de-ch", "value": "Wikipedia:Citation needed"},
"en-ca": {"language": "en-ca", "value": "Wikipedia:Citation needed"},
"en-gb": {"language": "en-gb", "value": "Wikipedia:Citation needed"},
"lb": {"language": "lb", "value": "Wikipedia:Source"},
"hi": {"language": "hi", "value": "विकिपीडिया:उद्धरण आवश्यक"},
"zh-hans": {"language": "zh-hans", "value": "项目:来源请求"},
"ps": {"language": "ps", "value": "ويکيپېډيا:سرچينه پکارده"},
"gu": {"language": "gu", "value": "વિકિપીડિયા:Citation needed"},
"ml": {"language": "ml", "value": "വിക്കിപീഡിയ:Citation needed"},
"sd": {"language": "sd", "value": "وڪيپيڊيا:حوالو گھربل"},
"zh": {"language": "zh", "value": "Wikipedia:来源请求"},
"bho": {"language": "bho", "value": "विकिपीडिया:प्रमाण जरूरी"},
"zh-hant": {"language": "zh-hant", "value": "專案:來源請求"},
"el": {"language": "el", "value": "Βικιπαίδεια:Παράθεση πηγών"},
"ta": {"language": "ta", "value": "விக்கிப்பீடியா:சான்று தேவை"},
"sv": {"language": "sv", "value": "Hjälp:Bättre källa"},
"ko": {"language": "ko", "value": "위키백과:출처 필요"},
"ts": {"language": "ts", "value": "Wikipedia:Kulaveka vumbhoni"},
"kn": {"language": "kn", "value": "ವಿಕಿಪೀಡಿಯ:Citation needed"},
"mnw": {"language": "mnw", "value": "ဝဳကဳပဳဒဳယာ:Citation needed"},
"azb": {"language": "azb", "value": "ویکی‌پدیا:قایناق لازیم"},
"sat": {"language": "sat", "value": "ᱣᱤᱠᱤᱞᱤᱰᱤᱭᱟᱺᱡᱚᱱᱚᱲ ᱜᱚᱲᱚ"},
"pt": {"language": "pt", "value": "Predefinição:Carece de fontes"},
"ru": {"language": "ru", "value": "Википедия:О пользе ссылок"},
"shn": {"language": "shn", "value": "ဝီႇၶီႇၽီးတီးယႃး:Citation needed"},
"zh-cn": {"language": "zh-cn", "value": "Wikipedia:来源请求"},
"ig": {"language": "ig", "value": "Wikipedia:Citation needed"},
"kk": {"language": "kk", "value": "Уикипедия:Дереккөзі жоқ"},
"lld": {"language": "lld", "value": "Wikipedia:Mancia na referënza"},
"az": {"language": "az", "value": "Vikipediya:İstinad tələb olunur"},
"sl": {"language": "sl", "value": "Wikipedija:Navedi vir"},
"mt": {"language": "mt", "value": "Wikipedija:Bżonn referenza"},
"vi": {"language": "vi", "value": "Wikipedia:Cần chú thích"},
"uz": {"language": "uz", "value": "Vikipediya:Manba kerak"},
},
}
},
"success": 1,
}
citations = [
v["value"].lower() for v in citations["entities"]["Q7106262"]["labels"].values()
]
redirects = {
"entities": {
"Q6042392": {
"type": "item",
"id": "Q6042392",
"labels": {
"zh-hans": {"language": "zh-hans", "value": "模板:Redirect"},
"zh-hant": {"language": "zh-hant", "value": "模板:Redirect"},
"zh-hk": {"language": "zh-hk", "value": "模板:Redirect"},
"pl": {"language": "pl", "value": "Szablon:Przekierowanie"},
"eu": {"language": "eu", "value": "Txantiloi:Birzuzendua"},
"bs": {"language": "bs", "value": "Šablon:Preusmjerenje"},
"ko": {"language": "ko", "value": "틀:다른 뜻 넘어옴"},
"he": {"language": "he", "value": "תבנית:מפנה"},
"fr": {"language": "fr", "value": "Modèle:Redirect"},
"es": {"language": "es", "value": "Plantilla:Redirige aquí"},
"de": {"language": "de", "value": "Vorlage:Weiterleitungshinweis"},
"ja": {"language": "ja", "value": "Template:Redirect"},
"br": {"language": "br", "value": "Patrom:Adkas"},
"sq": {"language": "sq", "value": "Stampa:Redirect"},
"yue": {"language": "yue", "value": "Template:跳轉"},
"ar": {"language": "ar", "value": "قالب:تحويل"},
"pt": {"language": "pt", "value": "Predefinição:Redirect"},
"ru": {"language": "ru", "value": "Шаблон:Перенаправление"},
"en": {"language": "en", "value": "Template:Redirect"},
"tr": {"language": "tr", "value": "Şablon:Yönlendirme"},
"ro": {"language": "ro", "value": "Format:Trimite"},
"ca": {"language": "ca", "value": "Plantilla:Redirect"},
"mk": {"language": "mk", "value": "Предлошка:Пренасочување"},
"uk": {"language": "uk", "value": "Шаблон:Перенаправлено"},
"cy": {"language": "cy", "value": "Nodyn:Ailgyfeirio"},
"sl": {"language": "sl", "value": "Predloga:Preusmeritev"},
"bg": {"language": "bg", "value": "Шаблон:От пренасочване"},
"fa": {"language": "fa", "value": "الگو:تغییرمسیر"},
"ur": {"language": "ur", "value": "رجوع مکرر"},
"hr": {"language": "hr", "value": "Predložak:Preusmjerava"},
"de-ch": {
"language": "de-ch",
"value": "Vorlage:Weiterleitungshinweis",
},
"en-ca": {"language": "en-ca", "value": "Template:Redirect"},
"en-gb": {"language": "en-gb", "value": "Template:Redirect"},
"fi": {"language": "fi", "value": "Malline:Ohjaa tänne"},
"pt-br": {"language": "pt-br", "value": "Predefinição:Redirect"},
"vi": {"language": "vi", "value": "Bản mẫu:Đổi hướng"},
"zh": {"language": "zh", "value": "Template:Redirect"},
"gl": {"language": "gl", "value": "Modelo:Redirección"},
"ilo": {"language": "ilo", "value": "Plantilia:Baw-ing"},
"nb": {"language": "nb", "value": "Mal:Omdirigering"},
"be-tarask": {
"language": "be-tarask",
"value": "Шаблён:Перанакіроўваецца сюды",
},
"mt": {"language": "mt", "value": "Mudell:Rindirizz"},
"nn": {"language": "nn", "value": "Mal:Omdirigering"},
"se": {"language": "se", "value": "Málle:Stivre deike"},
"sh": {"language": "sh", "value": "Šablon:Redirect"},
"sv": {"language": "sv", "value": "Mall:Omdirigering"},
"ace": {"language": "ace", "value": "Seunaleuëk:Redirect"},
"as": {"language": "as", "value": "সাঁচ:Redirect"},
"be": {"language": "be", "value": "Шаблон:Перанакіраванне"},
"dv": {"language": "dv", "value": "ފަންވަތް:Redirect"},
"el": {"language": "el", "value": "Πρότυπο:Ανακατεύθυνση"},
"gd": {"language": "gd", "value": "Teamplaid:Redirect"},
"gv": {"language": "gv", "value": "Clowan:Aastiurey"},
"hu": {"language": "hu", "value": "Sablon:Redir"},
"ia": {"language": "ia", "value": "Patrono:Redirect"},
"ka": {"language": "ka", "value": "თარგი:Redirect"},
"kk": {"language": "kk", "value": "Үлгі:Redirect"},
"kn": {"language": "kn", "value": "ಟೆಂಪ್ಲೇಟು:Redirect"},
"mr": {"language": "mr", "value": "साचा:पुनर्निर्देशन"},
"ms": {"language": "ms", "value": "Templat:Lencong"},
"new": {"language": "new", "value": "Template:Redirect"},
"or": {"language": "or", "value": "ଛାଞ୍ଚ:Redirect"},
"si": {"language": "si", "value": "සැකිල්ල:යළියොමුව"},
"su": {"language": "su", "value": "Citakan:Redirect"},
"tpi": {"language": "tpi", "value": "Templet:Redirect"},
"lt": {"language": "lt", "value": "Šablonas:Redirect"},
"eo": {"language": "eo", "value": "Ŝablono:Alidirekto"},
"bn": {"language": "bn", "value": "টেমপ্লেট:পুনর্নির্দেশ"},
"sk": {"language": "sk", "value": "Šablóna:Presmerovanie"},
"ce": {"language": "ce", "value": "Кеп:ДӀасахьажорг"},
"hy": {"language": "hy", "value": "Կաղապար:Redirect"},
"bar": {"language": "bar", "value": "Vorlog:Weiterleitungshinweis"},
"ckb": {"language": "ckb", "value": "داڕێژە:ڕەوانەکەر"},
"lzh": {"language": "lzh", "value": "Template:Redirect"},
"cs": {"language": "cs", "value": "Šablona:Přesměrování"},
"et": {"language": "et", "value": "Mall:Suunamine"},
"tt": {"language": "tt", "value": "Калып:Redirect"},
"nl": {"language": "nl", "value": "Sjabloon:Doorverwijzing"},
"id": {"language": "id", "value": "Templat:Redirect"},
"map-bms": {"language": "map-bms", "value": "Cithakan:Redirect"},
"my": {"language": "my", "value": "တမ်းပလိတ်:Redirect"},
"gsw": {"language": "gsw", "value": "Vorlage:Weiterleitungshinweis"},
"fo": {"language": "fo", "value": "Fyrimynd:Redirect"},
"cv": {"language": "cv", "value": "Шаблон:Redirect"},
"sr": {"language": "sr", "value": "Шаблон:Redirect"},
"azb": {"language": "azb", "value": "شابلون:یوْللاندیرما"},
"gu": {"language": "gu", "value": "ઢાંચો:Redirect"},
"gom": {"language": "gom", "value": "सांचो:Redirect"},
"mai": {"language": "mai", "value": "आकृति:Redirect"},
"sa": {"language": "sa", "value": "फलकम्:Header"},
"az": {"language": "az", "value": "Şablon:İstiqamətləndirmə"},
"lv": {"language": "lv", "value": "Veidne:Pāradresācija"},
"xmf": {"language": "xmf", "value": "თარგი:Redirect"},
"arz": {"language": "arz", "value": "قالب:Redirect"},
"sd": {"language": "sd", "value": "سانچو:Redirect"},
"ku": {"language": "ku", "value": "Şablon:Beralîkirin"},
"so": {"language": "so", "value": "Template:Redirect"},
"tcy": {"language": "tcy", "value": "ಟೆಂಪ್ಲೇಟ್:Redirect"},
"ky": {"language": "ky", "value": "Калып:Багыттама"},
"ta": {"language": "ta", "value": "வார்ப்புரு:Redirect"},
"sco": {"language": "sco", "value": "Template:Redirect"},
"nan": {"language": "nan", "value": "Pang-bô͘:Redirect"},
"tl": {"language": "tl", "value": "Padron:Redirect"},
"ast": {"language": "ast", "value": "Plantía:Redirixe equí"},
"tg": {"language": "tg", "value": "Шаблон:Равонакунӣ"},
"bcl": {"language": "bcl", "value": "Plantilya:Redirect"},
"xh": {"language": "xh", "value": "Template:Redirect"},
"ne": {"language": "ne", "value": "ढाँचा:Redirect"},
"hi": {"language": "hi", "value": "साँचा:Redirect"},
"ml": {"language": "ml", "value": "ഫലകം:Redirect"},
"rn": {"language": "rn", "value": "Ingero:Redirect"},
"shn": {"language": "shn", "value": "ထႅမ်းပလဵၵ်ႉ:Redirect"},
"ba": {"language": "ba", "value": "Ҡалып:Redirect"},
"mwl": {"language": "mwl", "value": "Modelo:Redirect"},
"min": {"language": "min", "value": "Templat:Redirect"},
"cbk-zam": {"language": "cbk-zam", "value": "Plantilla:Redirige aquí"},
"ban": {"language": "ban", "value": "Mal:Redirect"},
"co": {"language": "co", "value": "Template:Redirect"},
"th": {"language": "th", "value": "แม่แบบ:เปลี่ยนทาง"},
"gan": {"language": "gan", "value": "模板:Redirect"},
"gor": {"language": "gor", "value": "Templat:Redirect"},
"kw": {"language": "kw", "value": "Skantlyn:Redirect"},
"mnw": {"language": "mnw", "value": "ထာမ်ပလိက်:Redirect"},
"kab": {"language": "kab", "value": "Talɣa:Redirect"},
"av": {"language": "av", "value": "Халип:Буссинаби"},
"gn": {"language": "gn", "value": "Tembiecharã:Redirige aquí"},
"nah": {"language": "nah", "value": "Nemachiyōtīlli:Redirige"},
"te": {"language": "te", "value": "మూస:Redirect3"},
"uz": {"language": "uz", "value": "Andoza:Yoʻnaltirish"},
"tk": {"language": "tk", "value": "Şablon:Redirect"},
"is": {"language": "is", "value": "Snið:Tilvísun"},
"pa": {"language": "pa", "value": "ਫਰਮਾ:Redirect"},
"lld": {"language": "lld", "value": "Template:Redirect"},
"kcg": {"language": "kcg", "value": "Ta‌̱mpi‌̱let:Redirect"},
"blk": {"language": "blk", "value": "တမ်းပလေက်:Redirect"},
"bxr": {"language": "bxr", "value": "Загбар:Redirect"},
"mn": {"language": "mn", "value": "Загвар:Redirect"},
"rue": {"language": "rue", "value": "Шаблона:Redirect"},
"ps": {"language": "ps", "value": "کينډۍ:مخګرځ"},
},
}
},
"success": 1,
}
redirects_list = [
v["value"].lower() for v in redirects["entities"]["Q6042392"]["labels"].values()
]
section_reference_texts = {
# Incomplete. - Shinon
"en": [
"References",
"Reference",
"See also",
"External Links",
"footnotes",
"notes",
"footnote",
"note",
],
"zh": ["参考", "注释", "外部", "关连", "相关"],
"ja": ["外部", "関連", "脚注"],
"ko": ["같이 보기", "각주", "참고자료", "참고 자료", "외부 링크"],
"ru": ["Примечания", "Документальные фильмы", "Ссылки", "Литература"],
"uk": ["Джерела", "Примітки", "Література", "Посилання"],
"fr": [
"Références",
"Bibliographie",
"Référence",
"Articles connexes",
"Liens externes",
"Voir aussi",
], # Should we include "Annexes"?
"af": [
"Eksterne skakels",
"Eksterne skakel",
"Verwysings",
"Verwysing",
"Verdere leesstof",
"Verdere leeswerk",
],
}
section_reference_list = []
for lang_references in section_reference_texts.values():
section_reference_list.extend([i.lower() for i in lang_references])