| 1 | = Random Includes and Random Quotes (Fortune Cookies) = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | Wiki macros to pick a random selection or selections from a page that contains bulleted items. |
| 6 | |
| 7 | 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. |
| 8 | |
| 9 | 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. |
| 10 | |
| 11 | == Bugs/Feature Requests == |
| 12 | |
| 13 | Existing bugs and feature requests for RandomIncludePlugin are |
| 14 | [report:9?COMPONENT=RandomIncludePlugin here]. |
| 15 | |
| 16 | If you have any issues, create a |
| 17 | [http://trac-hacks.org/newticket?component=RandomIncludePlugin&owner=Rottenchester new ticket]. |
| 18 | |
| 19 | == Download == |
| 20 | |
| 21 | Download the zipped source from [download:randomincludeplugin here]. |
| 22 | |
| 23 | == Source == |
| 24 | |
| 25 | You can check out RandomIncludePlugin from [http://trac-hacks.org/svn/randomincludeplugin here] using Subversion, or [source:randomincludeplugin browse the source] with Trac. |
| 26 | |
| 27 | == Example == |
| 28 | |
| 29 | {{{ |
| 30 | |
| 31 | [[RandomItem(RandomPage,10)]] |
| 32 | |
| 33 | }}} |
| 34 | |
| 35 | will find 10 bulleted (*) items on RandomPage and include those items in the current page. |
| 36 | |
| 37 | {{{ |
| 38 | |
| 39 | [[RandomQuote]] |
| 40 | |
| 41 | }}} |
| 42 | |
| 43 | Displays a (pseudo-)randomly chosen quote from a source page "Fortune Cookies". |
| 44 | |
| 45 | {{{ |
| 46 | |
| 47 | [[RandomQuote(QuotePage]] |
| 48 | |
| 49 | }}} |
| 50 | |
| 51 | displays a quote from QuotePage |
| 52 | |
| 53 | |
| 54 | == Recent Changes == |
| 55 | |
| 56 | [[ChangeLog(randomincludeplugin, 3)]] |
| 57 | |
| 58 | == Author/Contributors == |
| 59 | |
| 60 | '''Author:''' [wiki:Rottenchester] [[BR]] |
| 61 | '''Contributors:''' |