Difference between revisions of "Template:Fence"

From Wurmpedia
Jump to navigation Jump to search
Line 10: Line 10:
 
|image=Iron fence.jpg
 
|image=Iron fence.jpg
 
|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, chain, stone, low stone, tall stone, stone parapet)}}
  
 
OPTIONAL
 
OPTIONAL
 
|gate=yes
 
|gate=yes
 
|rendered=yes
 
|rendered=yes
|optionaltext=*(any notes you wish to add)
+
|optionaltext=(any notes you wish to add)
  
 
</Pre>
 
</Pre>
Line 36: Line 36:
 
|materials={{#if:{{{rendered|}}}|* [[{{{material|Clay}}}]] (5.00 kg)|
 
|materials={{#if:{{{rendered|}}}|* [[{{{material|Clay}}}]] (5.00 kg)|
 
<!-- brix-->
 
<!-- brix-->
{{#switch: {{{type|}}}
+
{{#switch: {{{type}}}
 
|iron = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
 
|iron = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
 
  * 1x [[Iron fence bar]]
 
  * 1x [[Iron fence bar]]
Line 63: Line 63:
  
 
{{#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:{{{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.}}
+
{{#if:{{{type|stone parapet}}}||*Can only be built on building tile borders.}}
 
}}
 
}}
  
Line 106: Line 106:
 
* Once iron fence gates reach 60 damage, the iron fence bars will turn rusty in color.
 
* 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.}}
 
{{#if:{{{gate|}}}|* Intelligent monsters such as [[troll|trolls]] are able to open unlocked gates.}}
{{{optionaltext}}}
+
{{#if:{{{optionaltext|}}}|* {{{optionaltext}}}}}
  
 
== See also ==
 
== See also ==

Revision as of 19:25, 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, 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"