مستخدم:Zaher.Kadour/templates.js
يمكن توفير توثيق لسكربت المستخدم هذا في الصفحة : مستخدم:Zaher.Kadour/templates. |
ملاحظة: بعد الحفظ، قد يلزمك إفراغ الكاش لرؤية التغييرات.
//<source lang=javascript>
function autoEdTemplates(str) { //MAIN FUNCTION describes list of fixes
//Replace redirects to about with about
str = str.replace(/\|Cities]]/g, "|المدن]]");
str = str.replace(/\|City]]/g, "|المدن]]");
str = str.replace(/\|Towns]]/g, "|البلدات]]");
str = str.replace(/\|Town]]/g, "|البلدات]]");
str = str.replace(/\|Villages]]/g, "|القرى]]");
str = str.replace(/\|Village]]/g, "|القرى]]");
str = str.replace(/\Footnotes/g, "ملاحظات");
str = str.replace(/\Footnote/g, "ملاحظات");
str = str.replace(/\This populated place also has portions in an adjacent county or counties/g, "مكان مأهول لديه أجزاء في المقاطعة/المقاطعات المجاورة");
str = str.replace(/\= Wisconsin/g, "= ويسكونسن");
str = str.replace(/\]]s/g, "]]");
str = str.replace(/\)]]/g, ")|]]");
return str;
}
//</source>