Template:Random page in category

From HandWiki

Random page in this category

Template documentation[view] [edit] [history] [purge]

Error: no shortcuts were specified and the |msg= parameter was not set.

This template creates a link to random page from a category.

Usage

  • First parameter is the category from which to get a random page. If it is not specified, it defaults to current page, which works only on category pages.
  • Parameter |ns= is for specifying the namespace number. Separate multiple namespace numbers with ; or ! (e.g. |ns=2;118)
  • Parameter |type= specified the type of page to return (page, subcat, or file). |type=subcat and |type=file are equivalent to |ns=14 and |ns=6, respectively.
  • Parameter |action= specifies an action to perform on the page (e.g. |action=edit). See Parameters to index.php§Actions.
  • Parameter |text= is for specifying different link text.

TemplateData

No description.

Template parameters

ParameterDescriptionTypeStatus
Category1

Category from which page will be selected

Page nameoptional
Namespacens

no description

Unknownoptional
typetype

no description

Unknownoptional
actionaction

no description

Unknownoptional
texttext

no description

Unknownoptional

Examples

See also