Difference between revisions of "Template:Fence"

From Wurmpedia
Jump to navigation Jump to search
(dont worry, all these edits are totally just a mistake in the wiki, not me editing it 400 times)
m
 
(70 intermediate revisions by 8 users not shown)
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, portcullis, 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)
+
|inside=no
 +
|optionaltext=(any notes you wish to add)
  
 
</Pre>
 
</Pre>
Line 32: Line 33:
 
|name='''{{PAGENAME}}'''
 
|name='''{{PAGENAME}}'''
 
|active={{#if:{{{rendered|}}}|[[Clay]]|[[Mallet]], [[Hammer]] or [[Trowel]]}}
 
|active={{#if:{{{rendered|}}}|[[Clay]]|[[Mallet]], [[Hammer]] or [[Trowel]]}}
|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]]}}
+
|passive={{#if:{{{rendered|}}}
|groupM={{#if:{{{rendered|}}}|Render fence|Fence > {{#if:{{{type|iron}}}{{{type|high iron}}}{{{type|chain}}}|Iron|Stone}} > Build {{PAGENAME}}}}
+
|{{#if:{{{gate|}}}|{{#ifeq:{{{type}}}|iron|[[Iron fence gate]]|{{#ifeq:{{{type}}}|high iron|[[High iron fence gate]]|[[Portcullis]]}} }}
 +
|{{#switch: {{{type}}}
 +
|iron = [[Iron fence]]
 +
|high iron = [[High iron fence]]
 +
|portcullis = [[Portcullis]]
 +
|chain = [[Chain fence]]
 +
|stone = [[Stone fence]]
 +
|low stone = [[Low stone wall]]
 +
|tall stone = [[Tall stone wall]]
 +
|stone parapet = [[Stone parapet]]
 +
}} }} | [[Tile Border]]}}
 +
|groupM={{#if:{{{rendered|}}}|Render fence|Fence >
 +
{{#switch: {{{type}}}
 +
|iron = Iron
 +
|high iron = Iron
 +
|portcullis = Stone
 +
|chain = Iron
 +
|low stone = Stone
 +
|tall stone = Stone
 +
|stone parapet = Stone
 +
}}
 +
> 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}}}]]
|stone  = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
+
* 1x [[Iron fence bar]]
|low stone  = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
+
|portcullis = *15x [[{{{material|Stone brick}}}]]
|chain  = * 10x [[{{{material|Stone brick}}}]]{{#if:{{{type|low stone}}}| (200.00 kg)}}
+
* 2x [[Iron fence bars]]
|high iron = * 16x [[{{{material|Stone brick}}}]]
+
* 2x [[Small wheel]]
|tall stone = * 20x [[{{{material|Stone brick}}}]]
+
* 1x [[Cordage rope]]
|stone parapet = * 15x [[{{{material|Stone brick}}}]]
+
|stone  = * 10x [[{{{material|Stone brick}}}]]
 
+
|low stone  = * 10x [[{{{material|Rock shard}}}]] (200.00 kg)
 +
|chain  = * 10x [[{{{material|Stone brick}}}]]
 +
* 6x [[Large chain link]]
 +
|high iron = * 16x [[{{{material|Stone brick}}}]]
 +
* 2x [[Iron fence bars]]
 +
|tall stone = * 20x [[{{{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}}'''
 
|skill=Masonry
 
|skill=Masonry
 
|improveItem={{{material|bricks}}}
 
|improveItem={{{material|bricks}}}
|note=
+
|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.}}
 
+
{{#ifeq:{{{type}}}|stone parapet|*Can only be built on building tile borders.}}
{{#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.}}
 
 
}}
 
}}
 
 
== 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]].}}
 
 
== Skill required ==
 
== Skill required ==
To calculate the [[maximum slope]] you can build on, based on your [[carpentry]] or [[masonry]] skill, use the following formula submitted by [[Player:Ketza|Ketza]]:
+
{{Template:Fence skill table}}
  
''Max slope = (3 *'' √''skill) + 10''
 
 
{| class="wikitable" style="text-align: center;"
 
! width=50 | Skill
 
! width=50 | Max Slope
 
! width=50 | Skill
 
! width=50 | Max Slope
 
! width=50 | Skill
 
! width=50 | Max Slope
 
|-
 
|6 || 17 || 25 || 25 || 59 || 33
 
|-
 
|8 || 18 || 29 || 26 || 64 || 34
 
|-
 
|9 || 19 || 33 || 27 || 70 || 35
 
|-
 
|12 || 20 ||36 || 28 || 76 || 36
 
|-
 
|14 || 21 || 41 || 29 || 81 || 37
 
|-
 
|16 || 22 || 45 || 30 || 88 || 38
 
|-
 
|19 || 23 || 49 || 31 || 94 || 39
 
|-
 
|22 || 24 || 54 || 32 || ||
 
|}
 
 
'''Note:''' Maximum slope is rounded ''down''
 
  
 
== Notes ==
 
== Notes ==
 
* Repair {{PAGENAME}} with {{{material}}}. Each {{{material}}} will repair up to 10 damage depending on quality and repairing skill.
 
* Repair {{PAGENAME}} with {{{material}}}. Each {{{material}}} will repair up to 10 damage depending on quality and repairing skill.
* Once iron fence gates reach 60 damage, 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.
 +
|stone = cracks will form on the wall.
 +
|tall stone = cracks will form on the wall.
 +
|stone parapet = cracks will form on the wall.
 +
}}
 +
{{#ifeq:{{{inside}}}|no|* Can not be build inside buildings.}}
 
{{#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}}}
+
{{#ifeq:{{{type}}}|high iron|* High iron fence gates cannot be built in arched walls, [[iron fence gate]]s can.|}}
 +
{{#if:{{{gate|}}}|* Gates can be locked with a [[gate lock]], then controlled by deed [[permissions]] if applicable, as well as the [[key]].}}
 +
{{#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:{{{optionaltext|}}}|* {{{optionaltext}}}}}
  
 
== See also ==
 
== See also ==
Line 107: Line 110:
 
* [[:Category:Gates|Fence gates]]
 
* [[:Category:Gates|Fence gates]]
  
 +
* [[Empirical Evaluation of Fences]]
 +
 +
 +
 +
{{#if:{{{gate|}}}|[[Category:Gates]]|[[Category:Fences]]}}
 +
{{#ifeq:{{{type}}}|stone parapet|[[Category:Walls]]}}
 +
{{#if:{{{examine|}}}||[[Category:Missing description]]}}
 
[[Category:Masonry items]]
 
[[Category:Masonry items]]
 
[[Category:Babel/{{{babel}}}]]
 
[[Category:Babel/{{{babel}}}]]

Latest revision as of 13:24, 31 July 2023

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
|inside=no
|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"