Extension:RandomSelection/ru

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

Теги
Чтобы выбрать один и более вариантов, поместите каждое содержимое в тег, которые в свою очередь помещаются в тег , например:

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.

Parameters to
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):

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:

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.

См. также

 * — Allows for randomisation of multimedia content on a page