Template:Show RandomSelection options/doc
Jump to navigation
Jump to search
Description
For Category:Random templates, will show the possibilities of a template.
It could be used, for instance, to auto-update Template:DYKdb.
Templates that call templates yield incomplete lists: only the caller's possibilities are listed.
Usage
{{Show RandomSelection options|template|mode=mode|pre=boolean}}
Where mode is one of:
list
(default if omitted)gallery
table
raw
|pre=true
preformats the result, analogous to <pre>...</pre>
. This allows copying it as wikitext, as might be useful for debugging.
Examples
Example 1
As DYKdb
{{Show RandomSelection options|DidYouKnow|mode=raw}}
Extended content
|
---|
|
Example 2
Gallery of images
{{Show RandomSelection options|Randomkiss|mode=gallery}}
Example 3
Table of coin outcomes
{{Show RandomSelection options|Coin|mode=table}}
Weight | Result |
---|---|
999 | HEADS |
999 | TAILS |
1 | EDGE |
20 | DOWN THE DRAIN |
Example 4
Multi-column list of Magic Eight Ball answers
{{Show RandomSelection options|Eightball}}
- Signs point to yes.
- Yes.
- Reply hazy, try again.
- Without a doubt.
- My sources say no.
- As I see it, yes.
- You may rely on it.
- Concentrate and ask again.
- Outlook not so good.
- It is decidedly so.
- It seems unlikely.
- No
- You will see.
- Better not tell you now.
- Very doubtful.
- Yes - definitely.
- It is certain.
- Cannot predict now.
- Most likely.
- Ask again later.
- My reply is no.
- Outlook good.
- Don't count on it.
- No way.
- Probably
- Maybe
Example 5
Preformatted raw list of gender outcomes
{{Show RandomSelection options|Gender|mode=raw|pre=true}}
sexy male attractive female feminist gay lesbian half-crazed insane gay lesbian