Random Includes and Random Quotes (Fortune Cookies)

Description

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.

Bugs/Feature Requests

Existing bugs and feature requests for RandomIncludePlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out RandomIncludePlugin from here using Subversion, or browse the source with Trac.

Example

    [[RandomItem(RandomPage,10)]]

will find 10 bulleted (*) items on RandomPage? and include those items in the current page.

    [[RandomQuote]]

Displays a (pseudo-)randomly chosen quote from a source page "Fortune Cookies".

    [[RandomQuote(QuotePage]]

displays a quote from QuotePage?

Recent Changes

[2908] by Rottenchester on 12/15/07 13:07:05

Put license and url in setup.

[2907] by Rottenchester on 12/15/07 07:57:24

Initial import.

[2906] by Rottenchester on 12/15/07 07:56:44

New hack RandomIncludePlugin, created by Rottenchester

Author/Contributors

Author: Rottenchester
Contributors: