
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://zoophilia.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ARandom_portal_component%2Fdoc</id>
	<title>Template:Random portal component/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://zoophilia.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ARandom_portal_component%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Template:Random_portal_component/doc&amp;action=history"/>
	<updated>2026-05-02T13:39:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Template:Random_portal_component/doc&amp;diff=130262&amp;oldid=prev</id>
		<title>DogMike: Created page with &quot;{{Documentation subpage}} {{lua|Module:Random portal component}} &lt;!-- EDIT TEMPLATE DOCUMENTATION AFTER THIS LINE --&gt;  This template generates a box for a portal home page. Th...&quot;</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Template:Random_portal_component/doc&amp;diff=130262&amp;oldid=prev"/>
		<updated>2021-06-08T20:36:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{lua|Module:Random portal component}} &amp;lt;!-- EDIT TEMPLATE DOCUMENTATION AFTER THIS LINE --&amp;gt;  This template generates a box for a portal home page. Th...&amp;quot;&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;
{{lua|Module:Random portal component}}&lt;br /&gt;
&amp;lt;!-- EDIT TEMPLATE DOCUMENTATION AFTER THIS LINE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template generates a box for a portal home page. The content is drawn randomly from a pre-defined list.&lt;br /&gt;
&lt;br /&gt;
== Layout ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Random portal component&lt;br /&gt;
 |max      =&lt;br /&gt;
 |template =&lt;br /&gt;
 |header   =&lt;br /&gt;
 |footer   =&lt;br /&gt;
 |subpage  = &lt;br /&gt;
 |rootpage =&lt;br /&gt;
 |headertemplate = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;header&amp;#039;&amp;#039;&amp;#039;: (Optional) The header text of the box. If no header is passed to the template, the default is the subpage name.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;footer&amp;#039;&amp;#039;&amp;#039;: (Optional) The footer text in the box. E.g. &amp;#039;&amp;#039;Nominations for selected picture&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;rootpage&amp;#039;&amp;#039;&amp;#039;: (Optional) The root of the transcluded page, e.g. &amp;#039;&amp;#039;Portal:Foo&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;subpage&amp;#039;&amp;#039;&amp;#039;: The subpage of the transcluded page, e.g. &amp;#039;&amp;#039;Selected picture&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;max&amp;#039;&amp;#039;&amp;#039;: The maximum number of sub-subpages. Must be a positive integer.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;headertemplate&amp;#039;&amp;#039;&amp;#039;: (Optional) The name of the template to use for the box header, e.g. {{code|Box-header/10}} for [[Template:Box-header/10]]; default is the portal&amp;#039;s {{code|/box-header}} subpage&lt;br /&gt;
&lt;br /&gt;
=== Formatting subpages ===&lt;br /&gt;
* Create a sub-page first. If your portal is {{code|Portal:Foo}}, then a sub-page could be {{code|Portal:Foo/Selected bar}}.&lt;br /&gt;
* On the {{code|Portal:Foo/Selected bar}} sub-page, place the template {{tl|numbered subpages}} on the page and save it.&lt;br /&gt;
* Once the list of subject links have been created, use one of the {{code|Selected &amp;lt;subject&amp;gt;}} templates from below to format each of the subject sub-pages.&lt;br /&gt;
* This template calls {{code|/box-header}} (if {{code|headertemplate}} is not specified) and {{tl|box-footer}} for its color styles and closing. Either {{code|headertemplate}} must be used, or the {{code|/box-header}} subpage must exist for everything to work correctly.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
To see a real time example, see [[Special:Whatlinkshere/Template:{{BASEPAGENAME}}&amp;amp;hidelinks=1|what links here]] (the list of pages that currently transclude the {{tl|{{BASEPAGENAME}}}} template).&lt;br /&gt;
&lt;br /&gt;
Here is a stale example of the output generated by this template.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Box-header | title=Header&lt;br /&gt;
|editpage   = Template:Lorem ipsum&lt;br /&gt;
|border     = Black&lt;br /&gt;
|titleforeground = #ffe247&lt;br /&gt;
|titlebackground = #646464&lt;br /&gt;
|background = #FFFFFF&lt;br /&gt;
|foreground = black&lt;br /&gt;
}}&lt;br /&gt;
{{Lorem ipsum}}&lt;br /&gt;
{{Box-footer | Footer }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will produce:&lt;br /&gt;
&lt;br /&gt;
{{Box-header | title=Header&lt;br /&gt;
|editpage   = Template:Lorem ipsum&lt;br /&gt;
|border     = Black &lt;br /&gt;
|titleforeground = #ffe247&lt;br /&gt;
|titlebackground = #646464&lt;br /&gt;
|background = #FFFFFF&lt;br /&gt;
|foreground = black}}&lt;br /&gt;
{{Lorem ipsum}}&lt;br /&gt;
{{Box-footer | Footer }}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Portal template list}}&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:Wikipedia Portal templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>DogMike</name></author>
	</entry>
</feed>