I am wondering if it's possible to display a random page from a wiki what changes each time the page is refreshed?
I tried using {{Special:Random}} but that did not work.
Does anyone else have any ideas?
I am wondering if it's possible to display a random page from a wiki what changes each time the page is refreshed?
I tried using {{Special:Random}} but that did not work.
Does anyone else have any ideas?
Hi!
It is possible and you are already close to it. :-)
Let's say you have a template called "Note". Then edit the wiki page Template:Note and on that page add
[[Special:Random]]
Now add the template on a page:
{{Note}}
and you should get a link to Special:Random, which brings you to a random page.
It's not a link I'm after, it's actually putting the random page inside a template.
For example, I have my main page and I have a section what displays a random page from my wiki on the main page.
I don't, but you could use jQuery's ajax call.
That's the outline. Unfortunately, I don't have a working example to give you right now.