Template:Random page in category: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
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:{{NAMESPACENUMBER}}|14|*|{{{1<includeonly>|</includeonly>}}}}}
{{#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

Random page in this category

Template documentation (View · Edit · History · Purge)
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

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.