Diff: Help/RandomPagePlugin
Differences between current version and predecessor to the previous major change of Help/RandomPagePlugin.
Other diffs: Previous Revision, Previous Author
Newer page: | version 6 | Last edited on 17 January 2022 3:00 | by harold | |
Older page: | version 5 | Last edited on 9 September 2007 0:16 | by harold | Revert |
@@ -1,27 +1,51 @@
-_short description_
+The **~RandomPage** [[Help:WikiPlugin|plugin]] displays a list of randomly chosen pages or redirects to a random page.
-!
Usage
-<verbatim>
-
<?plugin
RandomPage ?
>
-</verbatim>
+==
Usage ==
+{{{
+<<
RandomPage arguments>
>
+}}}
-!
Arguments
+==
Arguments ==
-page _(default
: current pagename)_
:
- The page to execute upon.
+All [[Help
:PageList|PageList]] arguments, plus the following ones
:
-! Example
+{| class="bordered"
+|-
+
! Argument
+! Description
+! Default value
+|-
+| **numpages**
+| Number of pages to list. The number of random pages should be between 1 and 20. If greater, 20 will be used.
+| 20
+|-
+| **redirect**
+| Boolean. If true, do not display random page link, redirect to random page.
+| false
+|-
+| **hidename**
+| Boolean. If true, hide name (only for numpages=1)
+| false
+|-
+| **exclude**
+| Pages to exclude from random
+| RandomPage, HomePage, AllPages, RecentChanges, RecentEdits, FullRecentChanges
+|}
-<verbatim>
-<?plugin RandomPage ?>
-</verbatim>
+== Example ==
-<?plugin
RandomPage ?
>
+{{{
+<
<RandomPage numpages=10 >
>
+}}}
-! Author
-PhpWiki:ReiniUrban
+<<RandomPage numpages=10 >>
-! See Also
+== Author ==
+* [[Help:Reini Urban|Reini Urban]]
+== See Also ==
+
+<noinclude>
----
-PhpWikiDocumentation Help:WikiPlugin
+[[
PhpWikiDocumentation]] [[CategoryWikiPlugin]]
+</noinclude>
current version
The RandomPage plugin displays a list of randomly chosen pages or redirects to a random page.
Usage
<<RandomPage arguments>>
Arguments
All PageList arguments, plus the following ones:
Argument |
Description |
Default value |
---|---|---|
numpages |
Number of pages to list. The number of random pages should be between 1 and 20. If greater, 20 will be used. |
20 |
redirect |
Boolean. If true, do not display random page link, redirect to random page. |
false |
hidename |
Boolean. If true, hide name (only for numpages=1) |
false |
exclude |
Pages to exclude from random |
RandomPage, HomePage, AllPages, RecentChanges, RecentEdits, FullRecentChanges |
Example
<<RandomPage numpages=10 >>
Plugin RandomPage disabled. Plugin not run: not in browse mode
<?plugin RandomPage numpages=10 ?>