Difference between revisions of "Template:Item"

From Alter Aeon Wiki
(Added permanent spell section)
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><div class="iteminfo {{#if:{{#pos:{{{flags}}}|RELIC|0}}|relic }}{{#if:{{#pos:{{{flags}}}|EPIC|0}}|epic }}{{#if:{{#pos:{{{flags}}}|RARE|0}}|rare }}{{#if:{{#pos:{{{flags}}}|ARTIFACT|0}}|artifact }}{{#if:{{#pos:{{{flags}}}|REMARKABLE|0}}|remarkable }}{{#if:{{#pos:{{{flags}}}|EXCEPTIONAL|0}}|exceptional }}{{#if:{{#pos:{{{flags}}}|UNIQUE|0}}|unique }}{{#if:{{#pos:{{{flags}}}|ANTIQUE|0}}|antique }}" style="font-size:1em;float:{{{float|none}}};width:25em;"><div clas="iteminfo-content"><ul><!--
{| class="wikitable itemtable" style="margin:0 0 0.5em 1em;"
Name --><li class="itemname">[[{{{name}}} (Item)|{{{name}}}]]</li><!--
{{#if: {{{level|}}} |
Quality Flags --><li>{{#if:{{#pos:{{{flags}}}|RELIC|0}}|<span class="relic">(Relic) </span>}}{{#if:{{#pos:{{{flags}}}|EPIC|0}}|<span class="epic">(Epic) </span>}}{{#if:{{#pos:{{{flags}}}|RARE|0}}|<span class="rare">(Rare) </span>}}{{#if:{{#pos:{{{flags}}}|ARTIFACT|0}}|<span class="artifact">(Artifact) </span>}}{{#if:{{#pos:{{{flags}}}|REMARKABLE|0}}|<span class="remarkable">(Remarkable) </span>}}{{#if:{{#pos:{{{flags}}}|EXCEPTIONAL|0}}|<span class="exceptional">(Exceptional) </span>}}{{#if:{{#pos:{{{flags}}}|UNIQUE|0}}|<span class="unique">(Unique) </span>}}{{#if:{{#pos:{{{flags}}}|ANTIQUE|0}}|<span class="antique">(Antique) </span>}}</li><!--
|-
Binding -->{{#if:{{{binds|}}}|<li><span class="binding">Binds to {{#ifeq:{{{binds}}}|player|Player}}{{#ifeq:{{{binds}}}|account|Account}}</span></li>}}<!--
! Level
Total Levels -->{{#if:{{{totlev|}}}|<li style="float: right; margin-top:0px;">{{ItemAttrLabel|Total Level}} {{{totlev}}}</li>}}<!--
! colspan="3" | {{level|N/A}}
Level -->{{#if:{{{level|}}}|<li>{{ItemAttrLabel|Level}} {{{level}}}</li>}}<!--
}}
Keywords -->{{#if:{{{keywords|}}}|<li>{{ItemAttrLabel|Item}} '{{{keywords}}}'</li>}}<!--
{{#if: {{{totlev|}}} |
Size -->{{#if:{{{size|}}}|<li style="float: right; margin-top:0px;">{{ItemAttrLabel|Size}} {{{size}}}</li>}}<!--
|-
Weight -->{{#if:{{{weight|}}}|<li>{{ItemAttrLabel|Weight}} {{{weight}}}</li>}}<!--
! Total Levels
Type -->{{#if:{{{type|}}}|<li>{{ItemAttrLabel|Type}} {{{type}}}</li>}}<!--
! colspan="3" | {{totlev|N/A}}
Composition -->{{#if:{{{composition|}}}|<li>{{ItemAttrLabel|Composition}} {{{composition}}}</li>}}<!--
}}
Flags -->{{#if:{{{flags|}}}|<li>{{ItemAttrLabel|Flags}} {{ItemFlags|{{{flags}}}}}</li>}}<!--
|-
ac -->{{#if:{{{ac|}}}|<li>{{{ac}}} ac-apply</li>}}<!--
| Keywords
Weapon Speed -->{{#if:{{{dmg|}}}|<li style="float: right; margin-top:0px;">{{ItemAttrLabel|Speed}} {{{wspeed|Normal}}}</li>}}<!--
| colspan="3" | {{keywords|N/A}}
Weapon Damage -->{{#if:{{{dmg|}}}|<li>{{{dmg}}} {{#if:{{{dtype|}}}|{{{dtype}}}}} Damage</li>}}
{{#if: {{{weight|}}}} |
<!-- Str Req -->{{#if:{{{strreq|}}}|<li>Requires {{{strreq}}} Strength</li>}}<!--
|-
Wear Loc -->{{#if:{{{wearloc|}}}|<li>{{ItemAttrLabel|Wear Location(s)}} {{{wearloc}}}</li>}}<!--
! Weight
Affects -->{{#if:{{{affects|}}}|<li>{{ItemAttrLabel|Affects}}<p class="affects">{{{affects}}}</p></li>}}<!--
! colspan="3" | {{weight|N/A}}
Spells -->{{#if:{{{spells|}}}|<li>{{ItemAttrLabel|Spells}}<p class="affects">{{{spells}}}</p></li>}}</ul></div></div>
}}
</includeonly><noinclude>{{Template:Item/Doc}}[[Category:Template]] [[Category:Templates by Uicli]] [[Category:Item Templates]]
{{#if: {{{size|}}} |
</noinclude>
|-
! Size
! colspan="3" | {{size|N/A}}
}}
{{#if: {{{flags|}}} |
|-
| Flags
| colspan="3" | {{flags||N/A}}
}}
|-
| Type
| {{type/N/A}}
| Composition
| {{composition|N/A}}
|-
{{#if: {{{ac|}}} |
|-
| Defense
| {{ac}} ac-apply
}}
{{#if: {{{wdam|}}} |
|-
| Damage
| {{#explode:{{wdam}}|,|0}} to {{#explode:{{damage}}|,|1}} {{wspeed}} {{dtype}}
}}
{{#if: {{{strreq|}}} |
|-
| colspan="3" Requires {{strreq}} strength
}}
|-
| Wear Locations
| colspan="3" | {{wear_loc||N/A}}
|}
</includeonly>
<noinclude>{{Template:Item/Doc}}[[Category:Template]]</noinclude>

Revision as of 06:39, 11 August 2019

{{Item
 |name=Sword of Foo
 |totlev=3
 |level=2
 |keywords=foo sword
 |flags=ANTI_GOOD WARRIOR RELIC
 |type=WEAPON
 |composition=COPPER BASED
 |dmg=3 to 21
 |dtype=fire slash
 |strreq=16
 |affects={{NewItemAffect|t=hitroll|v=2}}{{NewItemAffect|t=damroll|v=3}}{{NewItemAffect|t=saving_cold|v=10%}}