Memory Alpha

Help:Random selection

Revision as of 16:24, November 11, 2010 by Sulfur (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
39,334pages on
this wiki
Help icon  Contents → Random selection

The RandomSelection MediaWiki extension can be used to generate a random option from a given set.


 <option>Option 1</option>
 <option>Option 2</option>

This example will display a flag image corresponding to one of the Memory Alpha languages:


Note that you can weight the options. This example will give a 3x weighting to option 1:

 <option weight="3">Option 1</option>
 <option>Option 2</option>

Links, images, and templates can all be included as options.

See Random Pic of the Day for an example of this extension in use.

Around Wikia's network

Random Wiki