<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://consumerrights.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ARandom_page_in_category%2Fdoc</id>
	<title>Template:Random page in category/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://consumerrights.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ARandom_page_in_category%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://consumerrights.wiki/index.php?title=Template:Random_page_in_category/doc&amp;action=history"/>
	<updated>2026-04-29T05:51:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://consumerrights.wiki/index.php?title=Template:Random_page_in_category/doc&amp;diff=18718&amp;oldid=prev</id>
		<title>ConsciousCode: Importing from Wikipedia:Template:Random_page_in_category/doc</title>
		<link rel="alternate" type="text/html" href="https://consumerrights.wiki/index.php?title=Template:Random_page_in_category/doc&amp;diff=18718&amp;oldid=prev"/>
		<updated>2025-08-13T06:05:44Z</updated>

		<summary type="html">&lt;p&gt;Importing from Wikipedia:Template:Random_page_in_category/doc&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}&lt;br /&gt;
{{template shortcut|RPC}}&lt;br /&gt;
&lt;br /&gt;
This template creates a link to random page from a category.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
* 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.&lt;br /&gt;
* Parameter {{Para|ns}} is for specifying the [[Wikipedia:Namespace|namespace number]]. Separate multiple namespace numbers with &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;!&amp;lt;/code&amp;gt; (e.g. {{Para|ns|2;118}})&lt;br /&gt;
* Parameter {{Para|type}} specified the type of page to return (&amp;lt;code&amp;gt;page&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;subcat&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;file&amp;lt;/code&amp;gt;). {{Para|type|page}}, {{Para|type|subcat}}, and {{Para|type|file}} are equivalent to {{Para|ns|0}}, {{Para|ns|14}}, and {{Para|ns|6}}, respectively.&lt;br /&gt;
* Parameter {{Para|action}} specifies an action to perform on the page (e.g. {{Para|action|edit}}). See [[:mw:Manual:Parameters to index.php#Actions|Parameters to index.php§Actions]].&lt;br /&gt;
* Parameter {{Para|text}} is for specifying different link text.&lt;br /&gt;
&lt;br /&gt;
===TemplateData===&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Category&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Category from which page will be selected&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ns&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Namespace&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;type&amp;quot;: {},&lt;br /&gt;
		&amp;quot;action&amp;quot;: {},&lt;br /&gt;
		&amp;quot;text&amp;quot;: {}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
* {{Tld|Random page in category}} would produce on [[:Category:Physics]]: {{Random page in category|Physics}}&lt;br /&gt;
* {{Tld|Random page in category|Physics}} produces: {{Random page in category|Physics}}&lt;br /&gt;
* {{Tld|Random page in category|Physics|text{{=}}Random page}} produces: {{Random page in category|Physics|text=Random page}}&lt;br /&gt;
* {{Tld|Random page in category|Pending AfC submissions|ns{{=}}2;118|type{{=}}page}} produces: {{Random page in category|Pending AfC submissions|ns=2;118|type=page}}&lt;br /&gt;
* {{Tld|Random page in category|States of the United States|type{{=}}subcat}} produces: {{Random page in category|States of the United States|type=subcat}}&lt;br /&gt;
* {{Tld|Random page in category|Featured pictures|type{{=}}file}} produces: {{Random page in category|Featured pictures|type=file}}&lt;br /&gt;
* {{Tld|Random page in category|Primary colors|action{{=}}edit|type{{=}}page|text{{=}}Edit an article about a primary color}} produces: {{Random page in category|Primary colors|action=edit|type=page|text=Edit an article about a primary color}}&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* [[:toolforge:RandomInCategory|Random page in category on toolserver]] – the tool this template is based upon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Internal link templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>ConsciousCode</name></author>
	</entry>
</feed>