Extension:RandomSelection

The RandomSelection extension allows for randomly-generated content inside your wiki; e.g. rotating images, random greetings, etc.

Tags
To choose between one or more options, simply place each option inside an  tag which are themselves placed inside   tags, like so:

This is the first choice. This is the second choice. And so on...

From each set of tags, precisely one  tag will be selected at random, and its contents shown. Anything can be placed inside of option tags: links, images, even templates. Note, however, that template arguments will not be expanded due to.

You can also have what is placed inside the option tags be sent as an argument to a template with the  tag, e.g.:

Template:Featured article/Elephant Template:Featured article/Giraffe Template:Featured article/Rhinoceros PageWithEditButton

You could then create a Template:PageWithEditButton with these contents: [ Edit]

This is useful if you want to set up randomly rotating featured articles and have an edit button to allow the user to edit the featured article blurbs.

Parameters to
If you wanted to disable caching for the options, you should add the uncached parameter.

This is the first choice. This is the second choice. And so on...

If you wanted to display one of three YouTube videos, you could try this (Extension:Widgets and Widget:YouTube required):  eR7-AUmiNcA cSCi7kCXKDA 7n2d9XPsmmE

Parameters to
If you'd like some options to be shown more often than others, you can add weight to the option tags, like so:

This option will be shown twice as often as a normal option. By default, options have a weight of 1. This option also has a weight of 1. Fractional portions are ignored.

Parser function
To choose between one or more options, simply place each option inside the  parser function, like so:

From each choice divided by a pipe, precisely one choice will be selected at random, and its contents shown. Anything can be placed inside: links, images, even templates.