Template:Armor: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Added support for multiple areas, so that later indexing is easier)
m (updated logic handling and documentation)
Line 9: Line 9:
|'''Type:'''||{{#If:{{{type|}}}|{{SkillCode|{{{type}}}}}|''Unknown''}}
|'''Type:'''||{{#If:{{{type|}}}|{{SkillCode|{{{type}}}}}|''Unknown''}}
|-
|-
|'''Areas Covered'''||{{{area|''Unknown''}}}{{#if:{{{area2|}}}|, {{{area2}}}}}{{#if:{{{area3|}}}|, {{{area3}}}}}{{#if:{{{area4|}}}|, {{{area4}}}}}{{#if:{{{area5|}}}|, {{{area5}}}}}{{#if:{{{area6|}}}|, {{{area6}}}}}
|'''Areas Covered'''||{{#if:{{{area|}}}|{{{area}}}|''Unknown''}}{{#if:{{{area2|}}}|, {{{area2}}}}}{{#if:{{{area3|}}}|, {{{area3}}}}}{{#if:{{{area4|}}}|, {{{area4}}}}}{{#if:{{{area5|}}}|, {{{area5}}}}}{{#if:{{{area6|}}}|, {{{area6}}}}}
|-
|-
|'''Hindrance'''||{{{hindrance|''Unknown''}}}
|'''Hindrance'''||{{#if:{{{hindrance|}}}|{{{hindrance}}}|''Unknown''}}
|-
|-
|'''Protection'''||{{{puncture|''Unknown''}}} protection and {{{punctureab|''Unknown''}}} damage absorption for puncture attacks.<br>{{{slice|''Unknown''}}} protection and {{{sliceab|''Unknown''}}} damage absorption for slice attacks.<br>{{{impact|''Unknown''}}} protection and {{{impactab|''Unknown''}}} damage absorption for impact attacks.<br>{{{fire|''Unknown''}}} protection and {{{fireab|''Unknown''}}} damage absorption for fire attacks.<br>{{{cold|''Unknown''}}} protection and {{{coldab|''Unknown''}}} damage absorption for cold attacks.<br>{{{electric|''Unknown''}}} protection and {{{electricab|''Unknown''}}} damage absorption for electrical attacks.
|'''Protection'''||{{#if:{{{puncture|}}}|{{{puncture}}}|''Unknown''}} protection and {{#if:{{{punctureab|}}}|{{{punctureab}}}|''Unknown''}} damage absorption for puncture attacks.<br>{{#if:{{{slice|}}}|{{{slice}}}|''Unknown''}} protection and {{#if:{{{sliceab|}}}|{{{sliceab}}}|''Unknown''}} damage absorption for slice attacks.<br>{{#if:{{{impact|}}}|{{{impact}}}|''Unknown''}} protection and {{#if:{{{impactab|}}}|{{{impactab}}}|''Unknown''}} damage absorption for impact attacks.<br>{{#if:{{{fire|}}}|{{{fire}}}|''Unknown''}} protection and {{#if:{{{fireab|}}}|{{{fireab}}}|''Unknown''}} damage absorption for fire attacks.<br>{{#if:{{{cold|}}}|{{{cold}}}|''Unknown''}} protection and {{#if:{{{coldab|}}}|{{{coldab}}}|''Unknown''}} damage absorption for cold attacks.<br>{{#if:{{{electric|}}}|{{{electric}}}|''Unknown''}} protection and {{#if:{{{electricab|}}}|{{{electricab}}}|''Unknown''}} damage absorption for electrical attacks.
|-
|-
|'''Metal:'''||{{#switch:{{lc:{{{metal|}}}}}|y=Yes|n=No|''Unknown''}}
|'''Metal:'''||{{#switch:{{lc:{{{metal|}}}}}|yes|y=Yes|no|n=No|''Unknown''}}
|-
|-
|'''Weight:'''||{{{weight|''?''}}} stones
|'''Weight:'''||{{#if:{{{weight|}}}|{{{weight}}}|''?''}} stones
|-
|-
| '''Appraised Cost:''' || {{{appcost|''?''}}} Kronars
| '''Appraised Cost:'''||{{#if:{{{appcost|}}}|{{{appcost}}}|''?''}} Kronars
|-
|-
{{#if:{{{shop|}}}|
{{#if:{{IfOR|{{{shop|}}}|{{{cost|}}}|
{{#ifeq:{{lc:{{{shop}}}}}|n
{{#ifeq:{{lc:{{{shop}}}}}|n
|{{!}} '''For Sale At (Base Cost):'''{{!}}{{!}}Not sold
|{{!}} '''For Sale At (Base Cost):'''{{!}}{{!}}Not sold
|{{!}} '''For Sale At (Base Cost):'''{{!}}{{!}} <DL><DT>[[{{{shop}}}]]<DD>({{{cost|''Unknown''}}}){{#if:{{{shop2|}}} | <DT>[[{{{shop2}}}]]<DD>({{{cost2|''Unknown''}}}) }}{{#if:{{{shop3|}}}|<DT>[[{{{shop3}}}]]<DD>({{{cost3|''Unknown''}}})}}</DL>}}
|{{!}} '''For Sale At (Base Cost):'''{{!}}{{!}} <DL><DT>{{#if{{{shop|}}}|[[{{{shop}}}]]|''Unknown''}}<DD>{{#if:{{{cost|}}}|({{{cost}}})|''Unknown''}}{{#if:{{{shop2|}}} | <DT>[[{{{shop2}}}]]<DD>({{{cost2|''Unknown''}}}) }}{{#if:{{{shop3|}}}|<DT>[[{{{shop3}}}]]<DD>({{{cost3|''Unknown''}}})}}</DL>}}
}}
}}
|-
{{#if: {{{shop|}}} | {{!}}- }}
| '''Special Properties:'''
| '''Special Properties:'''
|{{IfMatch|y|{{lc:{{{magic}}}}}|{{lc:{{{cambrinth}}}}}|true=*This item is magical.|false=None}}
|{{IfMatch|y|{{lc:{{{magic}}}}}|{{lc:{{{cambrinth}}}}}|true=*This item is magical.|false=None}}
|}{{#if:{{{notes|}}}|==Notes==<br>{{{notes}}}}}<noinclude>
|}<noinclude>
==Usage Documentation==
==Usage Documentation==
This template is for use with armor that is <b>non-forged, non-tanned</b> or a derivative thereof. Please consult the [[Elanthipedia:Manual_of_Style/new#Forged Equipment|Manual of Style]] for information on listing forged items.<br>
This template is for use with armor that is <b>non-forged, non-tanned</b> or a derivative thereof. Please consult the [[Elanthipedia:Manual_of_Style/Items#Crafted Equipment|Manual of Style]] for information on listing crafted items.<br>
Currently the only special properties this page is set up to display is magical equipment. If you have other suggestions, please list them on the [[Template_talk:Armor|discussion page]].
Currently the only special properties this page is set up to display is magical equipment. If you have other suggestions, please list them on the [[Template_talk:Armor|discussion page]].


Line 71: Line 71:
|shop3=
|shop3=
|cost3=
|cost3=
|notes=(any additional notes)
}}
}}
</pre>
</pre>

Revision as of 00:44, 1 June 2008

{{#if:Template:IfOR
Armor
Look: Unknown
Core Noun: Unknown
Type: Unknown
Areas Covered Unknown
Hindrance Unknown
Protection Unknown protection and Unknown damage absorption for puncture attacks.
Unknown protection and Unknown damage absorption for slice attacks.
Unknown protection and Unknown damage absorption for impact attacks.
Unknown protection and Unknown damage absorption for fire attacks.
Unknown protection and Unknown damage absorption for cold attacks.
Unknown protection and Unknown damage absorption for electrical attacks.
Metal: Unknown
Weight: ? stones
Appraised Cost: ? Kronars
Special Properties: None

Usage Documentation

This template is for use with armor that is non-forged, non-tanned or a derivative thereof. Please consult the Manual of Style for information on listing crafted items.
Currently the only special properties this page is set up to display is magical equipment. If you have other suggestions, please list them on the discussion page.

Note: This page is not currently set up to automatically generate category inclusion or {{incomplete}} tags, but will be soon.

{{Armor
|name=(name of the object if it's different than the page name)
|look=(the description gained by LOOKing at it.)
|noun=(the single word noun used to interact with it)
|type=(LA/CA/LC/HC/LP/HP/BA, Use the skill codes under EXP SKILLS)
|area=(what areas are covered, arms/legs/abdomen/back/neck/head/eyes/hands/chest)
|area2=
....
|area6=
|hindrance=
|puncture=(protection value)
|slice=
|impact=
|fire=
|cold=
|electric=
|punctureab=(damage absorbance)
|impactab=
|sliceab=
|fireab=
|coldab=
|electricab=
|construction=
|metal=(y/n Is it made with metal and therefor repairable at a metal forge?)
|weight= (weight in stones)
|appcost=(The cost given by an expert appraisal. Given in kronars.)
|magic=(y/n, is it magical?)
|magicnote=(explain magical nature. If cambrinth, leave blank and add appropriate variables)
|shop=(shop where it can be bought, put "n" if not sold)
|cost=(the cost at the preceeding shop, add currency type)
|shop2=
|cost2=
|shop3=
|cost3=
}}

Also See