Difference between revisions of "Template:Fence"

From Wurmpedia
Jump to navigation Jump to search
m (MIGHT BE THE FINAL EDIT?!)
m (I lied, this is probably last edit though)
Line 11: Line 11:
 
|material=stone brick
 
|material=stone brick
 
|examine=Description
 
|examine=Description
|type=(iron, high iron, chain, stone, low stone, tall stone, stone parapet)}}
+
|type=(iron, high iron, portcullis, chain, stone, low stone, tall stone, stone parapet)}}
  
 
OPTIONAL
 
OPTIONAL
Line 35: Line 35:
 
|groupM={{#if:{{{rendered|}}}|Render fence|Fence > {{#if:{{{type|iron}}}{{{type|high iron}}}{{{type|chain}}}|Stone|Iron}} > Build {{PAGENAME}}}}
 
|groupM={{#if:{{{rendered|}}}|Render fence|Fence > {{#if:{{{type|iron}}}{{{type|high iron}}}{{{type|chain}}}|Stone|Iron}} > Build {{PAGENAME}}}}
 
|materials={{#if:{{{rendered|}}}|* [[{{{material|Clay}}}]] (5.00 kg)|
 
|materials={{#if:{{{rendered|}}}|* [[{{{material|Clay}}}]] (5.00 kg)|
<!-- brix-->
+
<!-- Materials -->
 
{{#switch: {{{type}}}
 
{{#switch: {{{type}}}
|iron = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
+
|iron = * 10x [[{{{material|Stone brick}}}]]
 
  * 1x [[Iron fence bar]]
 
  * 1x [[Iron fence bar]]
 +
|portcullis - *15x [[{{{material|Stone brick}}}]]
 +
* 2x [[Iron fence bars]]
 +
* 2x [[Small wheel]]
 +
* 1x [[Cordage rope]]
 
|stone  = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
 
|stone  = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
|low stone  = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
+
|low stone  = * 10x [[{{{material|Rock shard}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
|chain  = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
+
|chain  = * 10x [[{{{material|Stone brick}}}]]
 +
* 6x [[Large chain link]]
 
|high iron = * 16x [[{{{material|Stone brick}}}]]
 
|high iron = * 16x [[{{{material|Stone brick}}}]]
 +
* 2x [[Iron fence bars]]
 
|tall stone = * 20x [[{{{material|Stone brick}}}]]
 
|tall stone = * 20x [[{{{material|Stone brick}}}]]
 
|stone parapet = * 15x [[{{{material|Stone brick}}}]]
 
|stone parapet = * 15x [[{{{material|Stone brick}}}]]
 
}}
 
}}
<!-- 2nd line of mats -->
+
 
{{#switch: {{{type}}}
+
 
|iron = * 1x [[Iron fence bar]]
 
|high iron = * 2x [[Iron fence bar]]
 
|chain = * 6x [[Large chain link]]
 
}}
 
 
}}
 
}}
 
|result=*'''{{PAGENAME}}'''
 
|result=*'''{{PAGENAME}}'''

Revision as of 12:39, 16 August 2017

Creating a fence page has never been easier! Just copy and paste and fill in the stuff below for all stone 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

{{Template:Fence
|babel=I
|image=Iron fence.jpg
|material=stone brick
|examine=Description
|type=(iron, high iron, portcullis, chain, stone, low stone, tall stone, stone parapet)}}

OPTIONAL
|gate=yes
|rendered=yes
|optionaltext=(any notes you wish to add)

  • Image = image file for page
  • Material = what type of brick is used (singular)
  • Examine = right-click description
  • Gate = include if the page is a gate
  • Rendered = include if the fence is "rendered"