Extension:RandomSelection/de

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:

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.

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

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.



Parameter für
If you wanted to disable caching for the options, you should add the  parameter.

If you wanted to display one of three YouTube videos, you could try this ( and required):



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



Parserfunktion
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.



Siehe auch

 * — Allows for randomisation of multimedia content on a page