This script will transform wikidata names that have been copied from a page like this. (once the Edit button has been clicked and the Wikipedia titles copied). You will have to open a new EmEditor document, paste what you copied, then run the script (as a macro). The output after running the script will be as seen below. The text will then be copied to the clipboard and the new doc will be closed without saving. You can see how this script has been used to add content here.
==Translations==
arc: ܩܛܝܣܦܘܢ; ar: طيسفون; arz: قطيسفون; az: Ktesifon; bg: Ктезифон; bn: তিসফুন; br: Ktesiphon; bs: Ktesifon; ca: Ctesifont; ceb: Ctesiphon; ckb: تیسفۆن; cs: Ktésifón; cy: Ctesiphon; da: Ktesifon; de: Seleukia-Ktesiphon; el: Κτησιφών; en: Ctesiphon; eo: Seleŭkio-Ktesifono; es: Ctesifonte; et: Ktesiphon; eu: Ktesifon; fa: تیسفون; fi: Ktesifon; fr: Ctésiphon; he: קטסיפון; hr: Ktezifont; hu: Ktésziphón; hy: Տիզբոն; id: Ctesiphon; it: Ctesifonte; ja: クテシフォン; jv: Ctesiphon; ka: ქტესიფონი; kn: ಟೆಸಿಫಾನ್; ko: 크테시폰; ku: Tîsfûn; la: Ctesiphon; lt: Ktesifonas; mg: Ktesifôna; ms: Tisfun; nl: Ctesiphon; no: Ktesifon; oc: Ctesifont; pl: Ktezyfon; pnb: مدائن; ps: تیسفون; pt: Ctesifonte; ro: Ctesiphon; ru: Ктесифон; sh: Ktesifon; sk: Ktésifón; sl: Ktezifon; sr: Ктесифон; sv: Ktesifon; tl: Ctesifonte; tr: Tizpon; uk: Ктесифон; ur: مدائن; uz: Ktesifon; vi: Ctesiphon; war: Ctesiphon; wuu: 泰西封; zh_yue: 泰西封; zh: 泰西封`