<noinclude>
[[Category:Template]]
Creating a fence page has never been easier! Just copy and paste and fill in the stuff below for all Iron Fence/Iron Fence Gatesstone or iron fences or gates!
''Note: Still a WIP, some elements may not show up properly yet.Also, only works for stone/iron, not wood/rope''
<pre>
{{Template:Iron fenceFence
|babel=I
|image=Iron fence.jpg
|gate=yes
|rendered=yes
|type=(iron, high iron, chain, stone, low stone, tall stone, stone parapet)|optionaltext=*(any notes you wish to add)
</Pre>
[[CDB|Main]] / [[Skills]] / [[Masonry]] / '''{{PAGENAME}}'''
{{itemBox
|image={{{image|Iron fence.jpg}}}
|name='''{{PAGENAME}}'''
|active={{#if:{{{rendered|}}}|[[Clay]]|[[Mallet]], [[Hammer]] or [[HammerTrowel]]}}|passive={{#if:{{{rendered|}}}|{{#if:{{{gate|}}}|{{#if:{{{type|iron}}}[[Iron fence gate]]|[[High iron fence gate]]}}|{{#if:{{{type|iron}}}|[[Iron fence]]|[[High iron fence]]}}}}|[[Tile Border]]}}|groupM={{#if:{{{rendered|}}}|Render fence|Fence > {{#if:{{{type|iron}}}{{{type|high iron}}}{{{type|chain}}}|Iron |Stone}} > Build {{PAGENAME}}}}
|materials={{#if:{{{rendered|}}}|* [[{{{material|Clay}}}]] (5.00 kg)|
<!-- brix-->{{#switch: {{lc:{{{type}}}}} | iron or stone or low stone or chain = * 10x [[{{{material|bricksStone brick}}}]]{{#if:lc:{{{{{type|low stone}}}}}| (200.00 kg) | high iron = * 16x [[{{{material|stone Stone brick}}}]] | tall stone = * 20x [[{{{material|Stone brick}}}]] |stone parapet = * 15x [[{{{material|Stone brick}}}]]
}}}}
<!-- 2nd line of mats -->
{{#switch: {{lc:{{{type}}}}}
| iron = * 1x [[Iron fence bar]]
| high iron = * 2x [[Iron fence bar]]
| chain = * 6x [[Large chain link]]
}}
|skill=Masonry
|improveItem={{{material|bricks}}}
|note= {{#if:{{{rendered|}}}|*You may use a [[crowbar]] to return a {{PAGENAME}} back to its original unrendered state.|*You must have at least one [[{{{material|brick}}}]] in your [[inventory]] to start building it.}}{{#if:{{{type|stone parapet}}}|*Can only be built on building tile borders.}}
}}
* Once iron fence gates reach 60 damage, the iron fence bars will turn rusty in color.
{{#if:{{{gate|}}}|* Intelligent monsters such as [[troll|trolls]] are able to open unlocked gates.}}
{{{optionaltext}}}
== See also ==