<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ATransclude_random_subpage%2Fdoc</id>
	<title>Template:Transclude random subpage/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ATransclude_random_subpage%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Transclude_random_subpage/doc&amp;action=history"/>
	<updated>2026-12-02T00:25:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:Transclude_random_subpage/doc&amp;diff=171146&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Text replacement - &quot;Portal:BattleMechs&quot; to &quot;Portal:Mechs&quot;</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Transclude_random_subpage/doc&amp;diff=171146&amp;oldid=prev"/>
		<updated>2024-11-14T20:43:03Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;Portal:BattleMechs&amp;quot; to &amp;quot;Portal:Mechs&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;
&amp;lt;!-- EDIT TEMPLATE DOCUMENTATION AFTER THIS LINE --&amp;gt;&lt;br /&gt;
{{Lua|Module:Transclude random subpage}}&lt;br /&gt;
This template pulls in the content of one sub-subpage randomly chosen from a set of numerically-named sub-subpages. Designed primarily for use on portals.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
=== Default ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Transclude random subpage&lt;br /&gt;
 |max      = &lt;br /&gt;
 |subpage  =&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Full ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Transclude random subpage&lt;br /&gt;
 |max         = &lt;br /&gt;
 |subpage     = &lt;br /&gt;
 |rootpage    = &lt;br /&gt;
 |several     = &lt;br /&gt;
 |prefix      = &lt;br /&gt;
 |more        = &lt;br /&gt;
 |leftfooter  = &lt;br /&gt;
 |rightfooter = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
;{{para|max}}: The maximum number of sub-subpages. Must be a positive integer.&lt;br /&gt;
;{{para|subpage}}: The subpage of the root that is the parent of the transcluded sub-subpages, e.g. &amp;#039;&amp;#039;Selected article&amp;#039;&amp;#039;.&lt;br /&gt;
;{{para|rootpage}}: (Optional) The root of the transcluded page, that is, the page the transclusion takes place on. e.g. &amp;#039;&amp;#039;Portal:Foo&amp;#039;&amp;#039;.&lt;br /&gt;
;{{para|several}}: (Optional) specify how many subpages are to be transcluded, default is one.&lt;br /&gt;
;{{para|prefix}}: optional prefix to prepend to every transcluded subpage. E.g. use {{para|prefix|*}} to generate [[Help:Wikitext#Lists|an unordered list]].&lt;br /&gt;
;{{para|more}}: (Optional) link text for a wikilink under transcluded page in the right footer.&lt;br /&gt;
;{{para|leftfooter}}: optional left footer.&lt;br /&gt;
;{{para|rightfooter}}: optional right footer.&lt;br /&gt;
&lt;br /&gt;
== Setting up the subpage, and the sub-subpages ==&lt;br /&gt;
* Create the subpage first. If your portal is {{code|Portal:Foo}}, then the subpage could be {{code|Portal:Foo/Selected bar}}.&lt;br /&gt;
* On the subpage (in this case, {{code|Portal:Foo/Selected bar}}), place the template {{tlx|numbered subpages}} on that page and save it.&lt;br /&gt;
* Create subpages for that subpage, naming them /1, /2, /3, etc., and on each one, copy/paste the content you wish to transclude. In this example, that would be a description of a different bar (tavern) lifted from an article about a bar, for each numerical page.&lt;br /&gt;
To see an example, see [[Portal:Mechs]] -- it uses this template and a corresponding subpage scheme.&lt;br /&gt;
&lt;br /&gt;
== Why this template? ==&lt;br /&gt;
This template was created to enable {{tlx|Random portal component}} to be replaced with standard portal box notation, including {{tlx|Box-header colour}} and {{tlx|Box-footer}}.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
{{tlx|Random portal component|max{{=}}22|header{{=}}&amp;#039;&amp;#039;Selected article&amp;#039;&amp;#039;|subpage=Selected article}}&lt;br /&gt;
&lt;br /&gt;
could be replaced by this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Box-header colour|Selected article}}&lt;br /&gt;
{{Transclude random subpage |max=22|subpage=Selected article}}&lt;br /&gt;
{{Box-footer}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This also allows a box to be modified (edited) independently of its contents, and to match the other boxes on the page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line --&amp;gt;&lt;br /&gt;
[[Category:Portal namespace templates|Random subpage, transclude]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>