Difference between revisions of "Template:Fence"

From Wurmpedia
Jump to navigation Jump to search
m (???)
m (changes to if statements)
Line 11: Line 11:
 
|material=stone brick
 
|material=stone brick
 
|examine=Description
 
|examine=Description
|type=(iron, high iron, portcullis, chain, stone, low stone, tall stone, stone parapet)
+
|type=(iron, high iron, portcullis, chain, stone, low stone, tall stone, stone parapet)}}
}}
 
  
 
OPTIONAL
 
OPTIONAL
Line 33: Line 32:
 
|name='''{{PAGENAME}}'''
 
|name='''{{PAGENAME}}'''
 
|active={{#if:{{{rendered|}}}|[[Clay]]|[[Mallet]], [[Hammer]] or [[Trowel]]}}
 
|active={{#if:{{{rendered|}}}|[[Clay]]|[[Mallet]], [[Hammer]] or [[Trowel]]}}
|passive={{#if:{{{rendered|}}}|
+
|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]]}}
{{#switch:{{{type}}}
+
|groupM={{#if:{{{rendered|}}}|Render fence|Fence >  
|iron = [[Iron fence{{#if:{{{gate|}}}||gate}}]]
+
{{#switch: {{{type}}}
|high iron = [[High iron fence{{#if:{{{gate|}}}||gate}}]]
+
|iron = Iron
|portcullis = [[Portcullis]]
+
|high iron = Iron
|chain = [[Chain fence]]
+
|portcullis = Stone
|stone = [[Stone fence]]
+
|chain = Iron
|low stone = [[Low stone wall]]
+
|low stone = Stone
|tall stone = [[Tall stone wall]]
+
|tall stone = Stone
|stone parapet = [[Stone parapet]]
+
|stone parapet = Stone
}}|[[Tile Border]]}}
+
}}
 
+
> 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)|
 
<!-- Materials -->
 
<!-- Materials -->
 
{{#switch: {{{type}}}
 
{{#switch: {{{type}}}
 
|iron = * 10x [[{{{material|Stone brick}}}]]
 
|iron = * 10x [[{{{material|Stone brick}}}]]
* 1x [[Iron fence bars]]
+
* 1x [[Iron fence bar]]
|portcullis = *15x [[{{{material|Stone brick}}}]]
+
|portcullis - *15x [[{{{material|Stone brick}}}]]
 
* 2x [[Iron fence bars]]
 
* 2x [[Iron fence bars]]
 
* 2x [[Small wheel]]
 
* 2x [[Small wheel]]
 
* 1x [[Cordage rope]]
 
* 1x [[Cordage rope]]
|stone  = * 10x [[{{{material|Stone brick}}}]]
+
|stone  = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
|low stone  = * 10x [[{{{material|Rock shard}}}]] (200.00 kg)
+
|low stone  = * 10x [[{{{material|Rock shard}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
 
|chain  = * 10x [[{{{material|Stone brick}}}]]
 
|chain  = * 10x [[{{{material|Stone brick}}}]]
 
* 6x [[Large chain link]]
 
* 6x [[Large chain link]]
Line 68: Line 66:
 
|result=*'''{{PAGENAME}}'''
 
|result=*'''{{PAGENAME}}'''
 
|skill=Masonry
 
|skill=Masonry
|improveItem={{#if:{{{rendered|}}}|Stone brick|{{{material}}}}}
+
|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}}}]] 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|stone brick}}}]] in your [[inventory]] to start building it.}}
{{#if:{{{type|stone parapet}}}|*Can only be built on building tile borders.|}}
+
{{#ifeq:{{{type}}}|stone parapet|*Can only be built on building tile borders.}}
{{#if:{{{type|low stone}}}|*When using combined shards, the wall will only use 20.00 kg of the total shard weight per success.|}}
 
 
}}
 
}}
 
== Description ==
 
== Description ==
 
''{{{examine|Description}}}''
 
''{{{examine|Description}}}''
 
 
{{#if:{{{gate|}}}| Gates can be locked with a [[gate lock]], then controlled by deed [[permissions]] if applicable, as well as the [[key]].}}
 
{{#if:{{{gate|}}}| Gates can be locked with a [[gate lock]], then controlled by deed [[permissions]] if applicable, as well as the [[key]].}}
{{#if:{{{type|stone parapet}}}||A stone parapet which alternates between the height of a [[small barrel]] and a [[large barrel]].  Can easily be seen over by an avatar.  Can only be built on building borders.
+
{{#ifeq:{{{type}}}stone parapet|A stone parapet which alternates between the height of a [[small barrel]] and a [[large barrel]].  Can easily be seen over by an avatar.  Can only be built on building borders.
 
 
It is not possible to shoot arrows over either a stone parapet or a [[wooden parapet]] while target shooting. However, it works just fine when aiming at a living target.}}
 
  
{{#if:{{{type|stone parapet}}}||
+
It is not possible to shoot arrows over either a stone parapet or a [[wooden parapet]] while target shooting. However, it works just fine when aiming at a living target.}}|
 
== Skill required ==
 
== Skill required ==
 
{{Template:Fence skill table}}
 
{{Template:Fence skill table}}
 
+
}}
<!-- The above info should not show on parapets, so the brackets below close an if statement for that -->
 
|}}
 
 
== 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.
Line 97: Line 89:
  
 
{{#if:{{{gate|}}}|[[Category:Gates]]|[[Category:Fences]]}}
 
{{#if:{{{gate|}}}|[[Category:Gates]]|[[Category:Fences]]}}
{{#if:{{{type|stone parapet}}}||[[Category:Walls]]}}
+
{{#ifeq:{{{type}}}|stone parapet|[[Category:Walls]]}}
 
{{#if:{{{examine|}}}||[[Category:Missing description]]}}
 
{{#if:{{{examine|}}}||[[Category:Missing description]]}}
 
[[Category:Masonry items]]
 
[[Category:Masonry items]]

Revision as of 20:42, 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"