(Created page with "Generic wrapper template to render randomized sequences of items. ==Usage== Create your own templates that extend this one and populate them with the items that you want to render. Then use those templates directly in your pages. Helps avoid the clutter of long strings of semicolon-separated items that would otherwise would have to be recurred to with the ItemSlot template. ==Parameters== * items – semicolon-separated list of item names * tooltip – optional toolti...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Generic wrapper template to render randomized sequences of items.
Generic template to render an indiscriminately randomized sequence of items.


==Usage==
== Usage ==
<pre>
{{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]]
}}
</pre>
Produces:
<div style="display:flex">
{{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]]
}}
</div>
== Parameters ==
* '''items''' (required) – Semicolon-separated list of item names. <ref>See [[Template:ItemSlot]]</ref>
* '''tooltip''' (optional) – Text displayed when hovering over the item sequence. Defaults to the first item if omitted. <ref>See [[Template:ItemSlot]]</ref>
* '''link''' (optional) – Page to link to when the item sequence is clicked. <ref>See [[Template:ItemSlot]]</ref>
* '''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.


Create your own templates that extend this one and populate them with the items that you want to render. Then use those templates directly in your pages. Helps avoid the clutter of long strings of semicolon-separated items that would otherwise would have to be recurred to with the ItemSlot template.
== Notes ==
 
* Multiple invocations on the same template will produce independent random orders unless a numeric `reseed` is provided.
==Parameters==
* items – semicolon-separated list of item names
* tooltip – optional tooltip
* link – optional link target

Latest revision as of 21:06, 28 December 2025

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:


Blue Apricorn Sprout.pngRed Apricorn Sprout.pngPink Apricorn Sprout.pngWhite Apricorn Sprout.pngYellow Apricorn Sprout.pngGreen Apricorn Sprout.pngBlack 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.