Template:Chain
From Project Rebearth
Chain
[edit]Renders a visual horizontal (or vertical) flow diagram showing a production chain: alternating resources and buildings connected by arrows.
Usage
[edit]{{Chain|Grain|Windmill|Flour|Bakery|Food}}
Renders a flow: Grain → Windmill → Flour → Bakery → Food with resource icons, wikilinks, and styled boxes.
With optional title
[edit]{{Chain|Grain|Windmill|Flour|Bakery|Food|title=Bread Chain}}
Vertical layout
[edit]{{Chain|Ore|Iron Mine|Ore|Refinery|Metal|Tools Workshop|Tools|direction=vertical}}
Parameters
[edit]| Parameter | Required | Description |
|---|---|---|
1, 2, 3, ... |
Yes | Alternating resource and building names. Odd positions (1, 3, 5, ...) are resources (shown with {{Icon}}). Even positions (2, 4, 6, ...) are buildings (shown as wikilinks). |
title |
No | Optional header label displayed above the chain. |
direction |
No | horizontal (default) or vertical.
|
Rules
[edit]- Minimum 3 items (resource → building → resource).
- Supports up to 15 items.
- Resources get icons via
{{Icon|name}}; buildings are wikilinked.