DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:rndtxt

rndtxt Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin Output a random text choice

Last updated on
2021-03-31
Provides
Syntax
Repository
Source

Tagged with random, rpg

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

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

Separate your choices by the | character and enclose them in {? and ?}. Like this:

I love {?bananas|turtles|big giraffes|you?}!

You can also put choices one per line:

She has {?
dark green|
emerald green|
bright green|
sky blue|
pale blue|
bright blue|
deep blue|
blue-gray|
black|
brown
?} eyes.

Contents of the random list are not parsed (e.g. they cannot contain wiki links).

Acknowledgements

Development of this plugin was funded by the Star Army Roleplaying Community1).

plugin/rndtxt.txt · Last modified: 2021-04-01 21:44 by Aleksandr

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