%RANDOMQUOTE{...}% variable gets expanded to a random quote selected from a RandomQuotes? page.
| %RANDOMQUOTE% Parameter | Explanation | Default |
|---|---|---|
web | Name of the web where the random quotes topic is stored. | Main |
quotes_file | Alternate name for the random quotes topic | RandomQuotes? |
format | Format of one item. Can include variables in the table below. | "\"$saying\"--$author" |
Format $variables | Description |
|---|---|
| $saying | Text of the random quote |
| $category | What type of quote is this? (could be used to match with Topic Classification) |
| $author | Who said it? |
%RANDOMQUOTE{ format="<p><cite>$saying</cite></p><p align='right'>�$author</p>" }%
It is impossible to make anything foolproof because fools are so ingenious.
—Murphy's Law
%<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%
data/debug.txt) RandomQuotePlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/Main/RandomQuotes.txt | RandomQuotesPlugin data topic |
data/TWiki/RandomQuotePlugin.txt | Plugin topic |
data/TWiki/RandomQuotePlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/RandomQuotePlugin.pm | Plugin Perl module |
| Plugin Author: | JasonTromm |
| Plugin Version: | 03 Jul 2003 (V0.001) |
| Change History: | |
| 03 Jun 2003: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/RandomQuotePlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/RandomQuotePluginDev |
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| | RandomQuotePlugin.zip | manage | 8.5 K | 03 Jul 2003 - 21:00 | JasonTromm | Complete package with example "Murphy's Laws" |