Forum:How do i make a random quote generator?

or something of that nature. (although, "generator" is a bit of an off term, because i input what it says, then it just says one of them at random on page load-up) I've seen them before, although more commonly under the topic of "did you know". I want the front page of my wiki to say quotes of the wiki's topic's that come from outside the wiki and are only in detail in the off wiki content.

Or if it's easier, have a random photo generator that shows a random screenshot of the content.

Bio of the Advance Wars Comedians Wiki

BionicleManFanatic 05:08, June 30, 2011 (UTC)
 * My wiki (The Sims Wiki) has this set up on our Community Portal. Here's what we have:

The first option you want randomly chosen from goes here Any additional option goes here And again... And again.

For instance, I can have a random number, 1 through 10, selected.

Here's the random number: 1  2  3  4  5  6  7  8  9  10  .

That really is best for simpler random choices, but it works for a basic usage. Hope I helped! --  LostInRiverview talk · blog 05:18, June 30, 2011 (UTC)
 * edit - Just so you know, every time you purge the page, a new option is chosen from the available options. This also happens every time you save a new edit, even if it's a null edit (as this purges the page). --  LostInRiverview talk · blog 05:20, June 30, 2011 (UTC)
 * Or, if the quotes are all in a Quotes category, you can use


 * Special:Randomincategory/Quote Category
 *  DaRanger ( Chat With Me ) 12:15, June 30, 2011 (UTC)

Thanks for your help! But it only seems to change if someone makes an edit. Is that abnormal?

BionicleManFanatic 21:20, June 30, 2011 (UTC)


 * No, that's normal, as the page is cached. You can disable caching on the page with this:



category=Browse cache=false

so this will make it say a new text every time the page reloads instead of every time there's an edit?

and do i put it on top or underneath the randomizer code?

~edit~

actually, it appears to change image every minute instead of every edit, i may not need it in that case.

BionicleManFanatic 22:10, June 30, 2011 (UTC)