Difference between revisions of "Template:Fence"
Jump to navigation
Jump to search
m |
m (more switches) |
||
| Line 32: | 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|}}}|{{#if:{{{gate|}}}|{{#ifeq:{{{type}}}|iron|[[Iron fence gate]]|[[High iron fence gate]]}}|{{# | + | |passive={{#if:{{{rendered|}}} |
| + | |{{#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]] | ||
| + | |low stone = [[Low stone wall]] | ||
| + | |tall stone = [[Tall stone wall]] | ||
| + | |stone parapet = [[Stone parapet]] | ||
| + | }} | ||
|groupM={{#if:{{{rendered|}}}|Render fence|Fence > | |groupM={{#if:{{{rendered|}}}|Render fence|Fence > | ||
{{#switch: {{{type}}} | {{#switch: {{{type}}} | ||
Revision as of 20:02, 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"