Help:RandomSelection

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

Syntax
The extension brings the following set of tags to customize your own random selection:
 * The  tag is the parent tag of the set.
 * The uncached attribute disables caching. Used as.
 * The before attribute adds text before the option. Used as  (accepts wikitext).
 * The after attribute adds text after the option. Used as  (accepts wikitext).
 * The  tag is chosen between all the used option tags, and it will show its contents. You can add links, images and even templates.
 * The weight attribute defines the weight of the option, which is 1 by default, if you want it to have more chances to appear. Used as  (only accepts numbers, and decimal values are ignored).
 * The  tag can make that what's inside the   tags is sent as a template argument.

It also brings a parser function called, which accepts links, images, and even templates. Used as:

Examples
Basic usage is like this:

It's also possible to use the before and after attributes of the  tag to add random videos, using EmbedVideo for example (where VideoIDn is a Youtube video ID):

The example below will display a flag image icon:

The above example results in the following:



Further help and feedback
de:Hilfe:RandomSelection es:Ayuda:Selección aleatoria fr:Aide:RandomSelection it:Aiuto:RandomSelection ja:ヘルプ:RandomSelection pt-br:Ajuda:RandomSelection tr:Yardım:RandomSelection