Template:RandomItemSequence: Difference between revisions

(Created page with "<includeonly> {{#invoke:RandomItemSequence|render | items={{{items|}}} | tooltip={{{tooltip|}}} | link={{{link|}}} }} </includeonly> <noinclude> {{documentation}} </noinclude>")
 
(Add reseed parameter)
 
Line 4: Line 4:
   | tooltip={{{tooltip|}}}
   | tooltip={{{tooltip|}}}
   | link={{{link|}}}
   | link={{{link|}}}
  | reseed={{{reseed|}}}
}}
}}
</includeonly>
</includeonly>

Latest revision as of 20:03, 28 December 2025


[view | edit | history | purge]Documentation

Generic template to render an indiscriminately randomized sequence of items.

Usage

{{RandomItemSequence
| items = Red Apricorn Sprout; Blue Apricorn Sprout; Pink Apricorn Sprout; Yellow Apricorn Sprout; Green Apricorn Sprout; Black Apricorn Sprout; White Apricorn Sprout
| tooltip = Apricorn Sprouts
| link = [[Apricorn Sprout]]
}}

Produces:


Pink Apricorn Sprout.pngBlack Apricorn Sprout.pngBlue Apricorn Sprout.pngRed Apricorn Sprout.pngWhite Apricorn Sprout.pngGreen Apricorn Sprout.pngYellow Apricorn Sprout.png
Apricorn Sprouts



Parameters

  • items (required) – Semicolon-separated list of item names. [1]
  • tooltip (optional) – Text displayed when hovering over the item sequence. Defaults to the first item if omitted. [2]
  • link (optional) – Page to link to when the item sequence is clicked. [3]
  • reseed (optional) – Numeric value used to explicitly seed the random number generator. If provided, the same seed will produce the same item sequence every time.

Notes

  • Multiple invocations on the same template will produce independent random orders unless a numeric `reseed` is provided.
[view | edit | history | purge]The above documentation is transcluded from Template:RandomItemSequence/doc.