الفرق بين المراجعتين لصفحة: «الصفحة الرئيسية»
المظهر
لا ملخص تعديل |
لا ملخص تعديل |
||
سطر ٩: | سطر ٩: | ||
* [https://arbaeenjournal.com/ مجلة الاربعين] | * [https://arbaeenjournal.com/ مجلة الاربعين] | ||
* [https://www.alssebtjournal.org/ مجلة السبط] | * [https://www.alssebtjournal.org/ مجلة السبط] | ||
<code><script> | |||
mw.loader.using('mediawiki.api').done(function() { | |||
var api = new mw.Api(); | |||
var allTalkPages = []; | |||
function getPages(apcontinue) { | |||
api.get({ | |||
action: 'query', | |||
list: 'allpages', | |||
apnamespace: 1, | |||
aplimit: 'max', | |||
apcontinue: apcontinue || '' | |||
}).done(function(data) { | |||
allTalkPages = allTalkPages.concat(data.query.allpages); | |||
if (data.continue && data.continue.apcontinue) { | |||
getPages(data.continue.apcontinue); | |||
} else { | |||
allTalkPages.sort(function(a,b){ | |||
return a.title.localeCompare(b.title); | |||
}); | |||
var container = document.getElementById('talk-pages-list'); | |||
allTalkPages.forEach(function(page){ | |||
var link = document.createElement('a'); | |||
link.href = mw.util.getUrl(page.title); | |||
link.textContent = page.title.replace(/^نقاش:/, ''); // إزالة بادئة النقاش | |||
link.style.display = 'block'; | |||
container.appendChild(link); | |||
}); | |||
} | |||
}); | |||
} | |||
getPages(); | |||
}); | |||
</script> | |||
<div id="talk-pages-list"> | |||
<b>جارِ تحميل قائمة النقاشات كاملة...</b> | |||
</div> | |||
</code> |
مراجعة ١٠:٣٠، ٩ يوليو ٢٠٢٥
ويكيبيديا الاربعين لتوثيق زيارة الاربعين حول العالم

استشر دليل المستخدم لمعلومات حول استخدام برنامج الويكي.
البداية
<script>
mw.loader.using('mediawiki.api').done(function() {
var api = new mw.Api();
var allTalkPages = [];
function getPages(apcontinue) {
api.get({
action: 'query',
list: 'allpages',
apnamespace: 1,
aplimit: 'max',
apcontinue: apcontinue ||
}).done(function(data) {
allTalkPages = allTalkPages.concat(data.query.allpages);
if (data.continue && data.continue.apcontinue) {
getPages(data.continue.apcontinue);
} else {
allTalkPages.sort(function(a,b){
return a.title.localeCompare(b.title);
});
var container = document.getElementById('talk-pages-list');
allTalkPages.forEach(function(page){
var link = document.createElement('a');
link.href = mw.util.getUrl(page.title);
link.textContent = page.title.replace(/^نقاش:/, ); // إزالة بادئة النقاش
link.style.display = 'block';
container.appendChild(link);
});
}
});
}
getPages();
});
</script>
جارِ تحميل قائمة النقاشات كاملة...