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

From blackwiki
Jump to navigation Jump to search
blackwiki>Doniago
(hopefully fixing this; will revert if not)
blackwiki>Technical 13
(This should fix most uses, although it does not have all of the additional features of the original.)
Line 1: Line 1:
{{#if:{{#ifeq:{{NAMESPACE}}|{{ns:14}}|*|{{{1<includeonly>|</includeonly>}}}}}
+
{{#if:{{#ifeq:{{NAMESPACENUMBER}}|14|*|{{{1<includeonly>|</includeonly>}}}}}
|<span class="plainlinks">[http://tools.wikimedia.de/~erwin85/randomarticle.php?lang=en&family=wikipedia&categories={{urlencode:{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}}}{{#if:{{{2|}}}|&subcats=1&d={{{2}}}}}{{#if:{{{ns|}}}|&namespaces={{{ns}}}}} {{{text|Random page in {{#if:{{{1|}}}|category {{{1}}}|this category}}}}}]</span>
+
|[[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}}
 
}}<noinclude>
 
}}<noinclude>
  
 
{{doc}}
 
{{doc}}
 
</noinclude>
 
</noinclude>

Revision as of 16:20, 31 March 2014

This category currently contains no pages or media.