MediaWiki:ListPages/code.js

// Gets a list of pages from a specific category $(function {    var tagPages = $('#listcatpages');    if (!tagPages.length) return;    var sCategoryName = $('#listcatpages').text;    var sCurrUrl = window.location.hostname;    $.get("//" + sCurrUrl + "/api.php?format=json&action=query&list=categorymembers&cmtitle=Category:" + sCategoryName, function (data, textStatus, jqXHR) { var sSeparator = "•"; var arrPages=""; $.each(data.query.categorymembers, function (i, entries) {           arrPages += ""+entries.title+""+" •" ;        }); $('#listcatpages').html(arrPages); }); });