Random Includes and Random Quotes (Fortune Cookies)
These are Trac wiki macros to pick a random selection or selections from a page that contains bulleted items.
RandomInclude includes some number of bulleted items on that page. The purpose of this macro is to display a sample of pages from your wiki.
RandomQuote includes one random item from that page, and strips the bullet from it. It is used to include a changing fortune cookie on a page.
If you have any issues, create a new ticket.
0 / 1
Download the zipped source from here.
Find 10 bulleted (*) items on RandomPage and include those items in the current page:
Display a (pseudo-)randomly chosen quote from a source page "Fortune Cookies":
Display a quote from QuotePage: