Template:Random page in category: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>LostInRiverview (←Created page with "{{#if:{{#ifeq:{{NAMESPACENUMBER}}|14|*|{{{1<includeonly>|</includeonly>}}}}} |[[Special:RandomInCategory/{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}|{{{text|Random pa...") |
sims>C.Syde65 m (Fix.) |
||
Line 1: | Line 1: | ||
{{#if:{{#ifeq:{{ |
{{#if:{{#ifeq:{{NAMESPACE}}|{{ns:14}}|*|{{{1<includeonly>|</includeonly>}}}}} |
||
|[[Special:RandomInCategory/{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}|{{{text|Random page in {{#if:{{{1|}}}|category {{{1}}}|this category}}}}}]] |
|[[Special:RandomInCategory/{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}|{{{text|Random page in {{#if:{{{1|}}}|category {{{1}}}|this category}}}}}]] |
||
|{{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}} |
Revision as of 07:18, 16 March 2018
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.
- <text> parameter is for specifying different link text.
Examples
- {{Random page in category}} would produce on Category:Sims: Random page in category Sims
- {{Random page in category|<Sims>}} produces: Random page in category Sims
- {{Random page in category|<Sims>|<text=Random page>}} produces: Random page
Attribution
This template originated from the template of the same name on Wikipedia. The template code is used in accordance with Creative Commons Attribution-ShareAlike License. A history of modifications to the template on Wikipedia can be found here.
Visit Template:Random page in category/doc to edit this text! (How does this work?) (Refresh this text - why?)