Thread:Project:Support desk/Random page in a template?/reply (5)

I don't, but you could use jQuery's []


 * 1) Retrieve a random page title: https://en.wikipedia.org/w/api.php?action=query&list=random&rnnamespace=0&rnlimit=1&format=jsonfm (you'll see something different, but I got "Lake Nipigon").
 * 2) Give the title to the api to parse: https://www.mediawiki.org/w/api.php?action=parse&page=Lake+Nipigon&format=jsonfm
 * 3) Display the returned text parameter (probably in an frame since some pages can be quite large).

That's the outline. Unfortunately, I don't have a working example to give you right now.