Randomly select a page from a namespace and include it the current page
Compatible with DokuWiki
This is a useful plugin, if you want to include a randomly chosen page from a namespace, into the current one. Consider the use of Randominc if you want to change a static part of a page, to a randomly chosen part.
This plugin uses the include plugin and therefore it requires the include plugin to be installed.
Enclose the namespace from where to select the page in double curly brackets. Refer to Include Plugin for detailed information here are only described the added functionallities.
{{randominc>[ns]#[section]&[flags]}}
[ns] | namespace from which select the page to include |
---|
The plugin offers two syntaxes, {{randominc>...}}
and {{randomincsec>...}}
.
You may use two arguments to control the presentation of the random content:
Name | Value | Effect | Example |
---|---|---|---|
max-height | A valid CSS size | Content height limit | max-height: 100px |
max-width | A valid CSS size | Content width limit | max-width: 200px |
{{randominc>namespace1&max-height: 200px}}
<box 80% round blue | Random Content>{{randominc>namespace2&max-height: 250px}}</box>
{{randomincsec>:playground:test#abc&nofooter&noheader&noeditbtn}}
From release 2017-08-04 on, the Random Include plugin also supports all flags which are supported by the Include Plugin. E.g. {{randominc>:playground:test&link}}
would make the first heading of the included page be rendered as a link.
Changes:
The plugin is translated into Russian, English, and German. Thanks a lot to the translators, new languages are very welcome!
Please use the DokuWiki Localization Tool.
To report bugs or suggest features, please use GitHub Issues. The author does not monitor this page.
{{randominc>*}}
.~~NOCACHE~~
to the page.Tested on Release 2014-09-29d “Hrun”, it's work perfectly. — Alinea 2015-07-17 22:14
Included on http://pe.hillschmidt.de under Release 2017-02-19b „Frusterick Manners“ - perfect!