<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://projectrebearth.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AChain</id>
	<title>Template:Chain - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://projectrebearth.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AChain"/>
	<link rel="alternate" type="text/html" href="https://projectrebearth.com/index.php?title=Template:Chain&amp;action=history"/>
	<updated>2026-04-16T10:49:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://projectrebearth.com/index.php?title=Template:Chain&amp;diff=916&amp;oldid=prev</id>
		<title>East6: Created page with &quot;&lt;includeonly&gt;&lt;templatestyles src=&quot;Chain/styles.css&quot; /&gt;{{#invoke:Chain|render |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|{{{15|}}} |title={{{title|}}}|direction={{{direction|}}} }}&lt;/includeonly&gt;&lt;noinclude&gt; == Chain == Renders a visual horizontal (or vertical) flow diagram showing a production chain: alternating resources and buildings connected by arrows.  == Usage == &lt;pre&gt; {{Chain|Gr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://projectrebearth.com/index.php?title=Template:Chain&amp;diff=916&amp;oldid=prev"/>
		<updated>2026-02-26T13:56:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;includeonly&amp;gt;&amp;lt;templatestyles src=&amp;quot;Chain/styles.css&amp;quot; /&amp;gt;{{#invoke:Chain|render |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|{{{15|}}} |title={{{title|}}}|direction={{{direction|}}} }}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt; == Chain == Renders a visual horizontal (or vertical) flow diagram showing a production chain: alternating resources and buildings connected by arrows.  == Usage == &amp;lt;pre&amp;gt; {{Chain|Gr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;templatestyles src=&amp;quot;Chain/styles.css&amp;quot; /&amp;gt;{{#invoke:Chain|render&lt;br /&gt;
|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|{{{15|}}}&lt;br /&gt;
|title={{{title|}}}|direction={{{direction|}}}&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Chain ==&lt;br /&gt;
Renders a visual horizontal (or vertical) flow diagram showing a production chain: alternating resources and buildings connected by arrows.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Chain|Grain|Windmill|Flour|Bakery|Food}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Renders a flow: &amp;#039;&amp;#039;&amp;#039;Grain → Windmill → Flour → Bakery → Food&amp;#039;&amp;#039;&amp;#039; with resource icons, wikilinks, and styled boxes.&lt;br /&gt;
&lt;br /&gt;
=== With optional title ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Chain|Grain|Windmill|Flour|Bakery|Food|title=Bread Chain}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Vertical layout ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Chain|Ore|Iron Mine|Ore|Refinery|Metal|Tools Workshop|Tools|direction=vertical}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt;, ... || Yes || Alternating resource and building names. Odd positions (1, 3, 5, ...) are &amp;#039;&amp;#039;&amp;#039;resources&amp;#039;&amp;#039;&amp;#039; (shown with {{tl|Icon}}). Even positions (2, 4, 6, ...) are &amp;#039;&amp;#039;&amp;#039;buildings&amp;#039;&amp;#039;&amp;#039; (shown as wikilinks).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; || No || Optional header label displayed above the chain.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;direction&amp;lt;/code&amp;gt; || No || &amp;lt;code&amp;gt;horizontal&amp;lt;/code&amp;gt; (default) or &amp;lt;code&amp;gt;vertical&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Rules ==&lt;br /&gt;
* Minimum 3 items (resource → building → resource).&lt;br /&gt;
* Supports up to 15 items.&lt;br /&gt;
* Resources get icons via &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Icon|name}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;; buildings are wikilinked.&lt;br /&gt;
&lt;br /&gt;
[[Category:Formatting templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>East6</name></author>
	</entry>
</feed>