Difference between revisions of "Template:Fence"

From Wurmpedia
Jump to navigation Jump to search
m (wip)
(upgrade)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
[[Category:Template]]
 
[[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 Gates!
+
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.''
+
''Note: Still a WIP, some elements may not show up properly yet. Also, only works for stone/iron, not wood/rope''
  
 
<pre>
 
<pre>
{{Template:Iron fence
+
{{Template:Fence
 
|babel=I
 
|babel=I
 
|image=Iron fence.jpg
 
|image=Iron fence.jpg
Line 15: Line 15:
 
|gate=yes
 
|gate=yes
 
|rendered=yes
 
|rendered=yes
|type=(iron, high iron, chain, stone, low stone, tall stone)
+
|type=(iron, high iron, chain, stone, low stone, tall stone, stone parapet)
 +
|optionaltext=*(any notes you wish to add)
  
 
</Pre>
 
</Pre>
Line 28: Line 29:
 
[[CDB|Main]] / [[Skills]] / [[Masonry]] / '''{{PAGENAME}}'''
 
[[CDB|Main]] / [[Skills]] / [[Masonry]] / '''{{PAGENAME}}'''
 
{{itemBox
 
{{itemBox
|image={{{image|Iron fence.jpg}}}
+
|image={{{image}}}
 
|name='''{{PAGENAME}}'''
 
|name='''{{PAGENAME}}'''
|active={{#if:{{{rendered|}}}|[[Clay]]|[[Mallet]] or [[Hammer]]}}
+
|active={{#if:{{{rendered|}}}|[[Clay]]|[[Mallet]], [[Hammer]] or [[Trowel]]}}
|passive={{#if:{{{rendered|}}}|{{#if:{{{gate|}}}|[[Iron fence gate]]|[[Iron fence]]}}|[[Tile Border]]}}
+
|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 > Iron > Build {{PAGENAME}}}}
+
|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)|
 
|materials={{#if:{{{rendered|}}}|* [[{{{material|Clay}}}]] (5.00 kg)|
{{#switch: {{lc:{{{type}}}}}
+
<!-- brix-->
  | iron or stone or low stone or chain = * 10x [[{{{material|bricks}}}]]{{#if:lc:{{{{{type|low stone}}}}}| (200.00 kg)
+
{{#switch: {{{{{type}}}
  | high iron = * 16x [[{{{material|stone brick}}}]]
+
  | iron or stone or low stone or chain = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{{{type|low stone}}}}}| (200.00 kg)
  | tall stone = * 20x [[{{{material|stone brick}}}]]
+
  | high iron = * 16x [[{{{material|Stone brick}}}]]
 +
  | tall stone = * 20x [[{{{material|Stone brick}}}]]
 +
| stone parapet = * 15x [[{{{material|Stone brick}}}]]
 +
 
 
}}}}
 
}}}}
 
<!-- 2nd line of mats -->
 
<!-- 2nd line of mats -->
{{#switch: {{lc:{{{type}}}}}
+
{{#switch: {{{{{type}}}
 
  | iron = * 1x [[Iron fence bar]]
 
  | iron = * 1x [[Iron fence bar]]
 +
| high iron = * 2x [[Iron fence bar]]
 
  | chain = * 6x [[Large chain link]]
 
  | chain = * 6x [[Large chain link]]
 
}}
 
}}
Line 47: Line 52:
 
|skill=Masonry
 
|skill=Masonry
 
|improveItem={{{material|bricks}}}
 
|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.}}
+
|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.}}
 
}}
 
}}
  
Line 90: Line 98:
 
* 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}}}
  
 
== See also ==
 
== See also ==

Revision as of 10: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}}

OPTIONAL
|gate=yes
|rendered=yes
|type=(iron, high iron, chain, stone, low stone, tall stone, stone parapet)
|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"