From Wikipedia, the free encyclopedia
Content deleted Content added
|
 |
|||
| Line 1: | Line 1: | ||
|
{{#if:{{#ifeq:{{NAMESPACENUMBER}}|14|*| |
{{#if:{{#ifeq:{{NAMESPACENUMBER}}|14|*|}} |
||
|
|<span class=”plainlinks”>[https://RandomInCategory.toolforge.org/{{urlencode: |
|<span class=”plainlinks”>[https://RandomInCategory.toolforge.org/{{urlencode:|WIKI}}?site={{urlencode:{{SERVERNAME}}|WIKI}}{{#if:|&namespace={{urlencode:{{{ns}}}|WIKI}}}}{{#if:|&type={{urlencode:{{{type}}}|WIKI}}}}{{#if:|&returntype={{{returntype}}}}}{{#if:|&action={{urlencode:{{{action}}}|WIKI}}}} Random page ]</span> |
||
|
|{{Error|Error: A category needs to be specified or this template needs to be placed on a category page}} |
|{{Error|Error: A category needs to be specified or this template needs to be placed on a category page}} |
||
|
}}<noinclude> |
}}<noinclude> |
||
Latest revision as of 18:39, 11 October 2025
Random page needing maintenance
This template creates a link to random page from a category.
- 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, orfile).|type=page,|type=subcat, and|type=fileare equivalent to|ns=0,|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.
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Category | 1 |
Category from which page will be selected |
Page name | optional |
| Namespace | ns |
no description |
Unknown | optional |
| type | type |
no description |
Unknown | optional |
| action | action |
no description |
Unknown | optional |
| text | text |
no description |
Unknown | optional |


