m (+fr) Tag: Source edit |
mNo edit summary Tag: Help |
||
Line 1: | Line 1: | ||
+ | {{Enabled by default}} |
||
− | {{Extension infobox |
||
+ | |||
− | | version = 2.3.0 |
||
− | | author = Ross McClure, Jack Phoenix and others |
||
− | | link = [[mw:Extension:RandomSelection|MediaWiki.org]] |
||
− | | desc = {{int:randomselection-desc}} |
||
− | | default = yes |
||
− | }} |
||
'''RandomSelection''' is an [[Help:Extensions|extension]] that allows for randomly-generated content inside your wiki; e.g. rotating images, random greetings, etc. |
'''RandomSelection''' is an [[Help:Extensions|extension]] that allows for randomly-generated content inside your wiki; e.g. rotating images, random greetings, etc. |
||
Revision as of 10:13, 15 September 2021
- This extension is enabled by default on Fandom.
RandomSelection is an extension that allows for randomly-generated content inside your wiki; e.g. rotating images, random greetings, etc.
Syntax
<choose> <option>Option 1</option> <option>Option 2</option> </choose>
This example will display a flag image:
<choose> <option>[[File:Icon-German.png|18px]]</option> <option>[[File:Icon-English.png|18px]]</option> <option>[[File:Icon-Spanish.png|18px]]</option> <option>[[File:Icon-Finnish.png|18px]]</option> <option>[[File:Icon-French.png|18px]]</option> <option>[[File:Icon-Italian.png|18px]]</option> <option>[[File:Icon-Japanese.png|18px]]</option> <option>[[File:Icon-Korean.png|18px]]</option> <option>[[File:Icon-Dutch.png|18px]]</option> <option>[[File:Icon-Polish.png|18px]]</option> <option>[[File:Icon-Portuguese.png|18px]]</option> <option>[[File:Icon-Russian.png|18px]]</option> <option>[[File:Icon-Vietnamese.png|18px]]</option> <option>[[File:Icon-Chinese.png|18px]]</option> </choose>
Note that you can weight the options. This example will give a 3x weighting to option 1:
<choose> <option weight="3">Option 1</option> <option>Option 2</option> </choose>
Links, images, and templates can all be included as options.
See also
Further help and feedback
- Browse and search other help pages at Help:Contents
- Check Fandom Community Central for sources of further help and support
- Check Contacting Fandom for how to report any errors or unclear steps in this article