DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:rndtxt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
plugin:rndtxt [2021-03-31 17:21] – created andiplugin:rndtxt [2021-03-31 23:00] StarArmy
Line 11: Line 11:
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : random+tags       : random, rpg
  
 downloadurl: https://github.com/splitbrain/dokuwiki-plugin-rndtxt/zipball/master downloadurl: https://github.com/splitbrain/dokuwiki-plugin-rndtxt/zipball/master
Line 22: Line 22:
  
 This plugin will output one of the given choices at random. Note, that it disables caching for the page to give a new random pick on every page load. This plugin will output one of the given choices at random. Note, that it disables caching for the page to give a new random pick on every page load.
- 
  
 ===== Installation ===== ===== Installation =====
Line 35: Line 34:
 I love {?bananas|turtles|big giraffes|you?}! I love {?bananas|turtles|big giraffes|you?}!
 </code> </code>
 +
 +You can also put choices one per line:
 +
 +<code>
 +She has {?
 +dark green|
 +emerald green|
 +bright green|
 +teal|
 +cerulean|
 +aquamarine|
 +dark blue|
 +sky blue|
 +steel blue|
 +pale blue|
 +bright blue|
 +deep blue|
 +blue-gray|
 +black|
 +golden|
 +red|
 +dark brown|
 +light brown|
 +gray|
 +violet|
 +?} eyes.
 +</code>
 +
 +Contents of the random list are not parsed (e.g. they cannot contain wiki links).
 +
 +===== Acknowledgements =====
 +Development of this plugin was funded by the [[https://stararmy.com/wiki|Star Army Roleplaying Community]](([[https://forum.dokuwiki.org/d/19016-200-bounty-randomizer-extension|Dokuwiki User Forum thread: $200 Bounty: Randomizer Extension]])).
plugin/rndtxt.txt · Last modified: 2024-03-25 03:57 by StarArmy

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki