Difference between revisions of "Template:Fence"

From Wurmpedia
Jump to navigation Jump to search
m (changes to if statements)
m
Line 81: Line 81:
 
== Notes ==
 
== Notes ==
 
* Repair {{PAGENAME}} with {{#if:{{{rendered|}}}|[[stone brick]]|{{{material}}}}}. Each {{#if:{{{rendered|}}}|[[stone brick]]|{{{material}}}}} will repair up to 10 damage depending on quality and repairing skill.
 
* Repair {{PAGENAME}} with {{#if:{{{rendered|}}}|[[stone brick]]|{{{material}}}}}. Each {{#if:{{{rendered|}}}|[[stone brick]]|{{{material}}}}} will repair up to 10 damage depending on quality and repairing skill.
* At 60 damage, {{#if:{{{type|iron}}}{{{type|high iron}}}{{{type|chain}}}|cracks will form on the wall|the iron fence bars will turn rusty in color.}}
+
* At 60 damage, {{#switch: {{{type}}}
 +
|iron = the iron fence bars will turn rusty in color.
 +
|high iron = the iron fence bars will turn rusty in color.
 +
|portcullis = cracks will form on the wall.
 +
|chain = the iron chains will turn rusty in color.
 +
|low stone = cracks will form on the wall.
 +
|tall stone = cracks will form on the wall.
 +
|stone parapet = cracks will form on the wall.
 +
}}
 
{{#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.}}
 
{{#if:{{{optionaltext|}}}|* {{{optionaltext}}}}}
 
{{#if:{{{optionaltext|}}}|* {{{optionaltext}}}}}

Revision as of 12:45, 21 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"