Difference between revisions of "Category:Random page in category"

From blackwiki
Jump to navigation Jump to search
blackwiki>Yarnalgo
(add check so that if no category specified AND not on a category page, it will cause error message)
blackwiki>Yarnalgo
m (fix)
Line 1: Line 1:
{{#if:{{{1<includeonly>|{{#ifeq:{{NAMESPACE}}|{{ns:14}}|*}}</includeonly>}}}
+
{{#if:{{#ifeq:{{NAMESPACE}}|{{ns:14}}|*|{{{1|}}}}}}}}
 
|<span class="plainlinks">[http://toolserver.org/~erwin85/randomarticle.php?lang=en&family=wikipedia&categories={{urlencode:{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}}}{{#if:{{{2|}}}|&subcats=1&d={{{2}}}}} {{{text|Random page in {{#if:{{{1|}}}|category {{{1}}}|this category}}}}}]</span>
 
|<span class="plainlinks">[http://toolserver.org/~erwin85/randomarticle.php?lang=en&family=wikipedia&categories={{urlencode:{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}}}{{#if:{{{2|}}}|&subcats=1&d={{{2}}}}} {{{text|Random page in {{#if:{{{1|}}}|category {{{1}}}|this category}}}}}]</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}}

Revision as of 20:47, 29 December 2009

} |Random page in this category |Error: A category needs to be specified or this template needs to be placed on a category page }}

Documentation[create]

This category currently contains no pages or media.