Board Thread:Support Requests - Designing Your Wiki/@comment-1789834-20130930211612/@comment-4519283-20130930225912

I can't figure out how to modify the existing Special:RandomWiki to produce a wiki of the same language, but I made a script that will (possibly) produce a random wiki of a certain language. The problem is that it keeps requesting Special:RandomWiki every 5 seconds until it finds one that matches. I haven't found Special:RandomWiki to return a wiki that isn't english yet, but I've manually put in a wiki of a different language and it works. The script is written in PHP (sorry, but that's the language I write in best), which means you'll have to install a PHP server on your machine. XAMPP is the one I use and it works for all operating systems. Create a new file called random.php in the htdocs folder and copy this text into the document (changing the XXX in the first line to the two/three letter language code like 'fr'). Now start XAMPP (go to the command panel and activate Apache - no need for the others) and type in: http://localhost/random.php. It will keep trying every 5 seconds. Depending on how many wikis there are in that language (and sheer luck), the script could take anywhere from a few seconds to hours to never working. If anyone knows of a way to download a list of all wikis, that would make the script much more efficient.