Difference between revisions of "Template:Item"

From Alter Aeon Wiki
m
 
(61 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><div role="article" class="item {{#if:{{#pos:{{{flags}}}|EPIC|0}}|item--epic }} {{#if:{{#pos:{{{flags}}}|RARE|0}}|item--rare }} {{#if:{{#pos:{{{flags}}}|ARTIFACT|0}}|item--artifact }} {{#if:{{#pos:{{{flags}}}|REMARKABLE|0}}|item--remarkable }} {{#if:{{#pos:{{{flags}}}|EXCEPTIONAL|0}}|item--exceptional }} {{#if:{{#pos:{{{flags}}}|UNIQUE|0}}|item--unique }} {{#if:{{#pos:{{{flags}}}|ANTIQUE|0}}|item--antique }} {{#if:{{#pos:{{{flags}}}|RELIC|0}}|item--relic }}"><!--
{| class="wikitable itemtable" style="margin:0 0 0.5em 1em;"
    --><div class="item__header"><!--
{{#if: {{{level|}}} |
      --><span  tabindex="0" class="item__header__name">[[{{{name}}} (Item)|{{{name}}}]]</span><!--
|-
    --></div><!--
! Level
 
! colspan="3" | {{level|N/A}}
    --><div class="item__type"  tabindex="0"><!--
}}
      --><div class="item__type__desc"><!--
{{#if: {{{totlev|}}} |
        --><span class="item__type__rarity">{{#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}}}|ANTIQUE|0}}|Antique}} {{#if:{{#pos:{{{flags}}}|RELIC|0}}|Relic}}</span>
|-
      <span class="item__type__typename">{{lc:{{{type}}}}}</span><!--
! Total Levels
      --></div><!--
! colspan="3" | {{totlev|N/A}}
      --><div class="item__type__slot">{{{wearloc|}}}</div><!--
}}
    --></div><!--
|-
 
| Keywords
    -->{{#if:{{{ac|}}}|<div class="item__armor-stats"  tabindex="0"><!--
| colspan="3" | {{keywords|N/A}}
      --><span class="item__armor-stats__ac">{{{ac}}}</span> Armor Class<!--
{{#if: {{{weight|}}}} |
    --></div>}}<!--
|-
 
! Weight
    -->{{#if:{{{dmg|}}}|<div class="item__weapon-stats"  tabindex="0"><!--
! colspan="3" | {{weight|N/A}}
      --><div class="item__weapon-stats__damage"><!--
}}
        --><span class="item__weapon-stats__range">{{{dmg}}}</span><!--
{{#if: {{{size|}}} |
        --><span class="item__weapon-stats__type">{{{dtype}}}</span><!--
|-
      --></div><!--
! Size
      -->{{#if:{{{wspeed|}}}|<div class="item__weapon-stats__speed">{{{wspeed}}} Speed</div>|{{{speed|Normal}}} Speed}}<!--
! colspan="3" | {{size|N/A}}
 
}}
    --></div>}}<!--
{{#if: {{{flags|}}} |
 
|-
    -->{{#if:{{{strreq|}}}|<div class="item__str-req"  tabindex="0">Requires {{{strreq}}} Strength</div>}}<!--
| Flags
 
| colspan="3" | {{flags||N/A}}
    --><div class="item__divider" role="presentation"></div><!--
}}
 
|-
    -->{{#if:{{{affects|}}}|<ul class="item__affects" tabindex="0">{{{affects}}}</ul>}}<!--
| Type
    -->{{#if:{{{special|}}}|<div class="item__special">Special Qualities:<div class="item__special__content">{{{special}}}</div></div>}}<!--
| {{type/N/A}}
    -->{{#if:{{{scroll|}}}|{{{scroll}}}}}<!--
| Composition
    -->{{#if:{{{spells|}}}|<div class="item__spells">Applies Spells:<dl><dd>{{{spells}}}</dd></dl></div>}}<!--
| {{composition|N/A}}
 
|-
    --><div class="item__requirements" tabindex="0"><!--
{{#if: {{{ac|}}} |
      -->{{#if:{{{binds|}}}|<div class="item__requirements__binding"><!--
|-
        -->{{#ifeq:{{{binds}}}|character|Character}}{{#ifeq:{{{binds}}}|player|Character}}{{#ifeq:{{{binds}}}|account|Account}} Bound<!--
| Defense
      --></div>}}<!--
| {{ac}} ac-apply
      -->{{#if:{{{totlev|}}}|<div class="item__requirements__level">Requires Total Levels {{{totlev}}}</div>}}<!--
}}
      -->{{#if:{{{level|}}}|<div class="item__requirements__level">Requires Level {{{level}}} {{#if:{{#pos:{{{flags}}}|WARRIOR|0}}|Warrior}} {{#if:{{#pos:{{{flags}}}|CLERIC|0}}|Cleric}} {{#if:{{#pos:{{{flags}}}|THIEF|0}}|Thief}} {{#if:{{#pos:{{{flags}}}|MAGE|0}}|Mage}} {{#if:{{#pos:{{{flags}}}|NECR|0}}|Necromancer}} {{#if:{{#pos:{{{flags}}}|DRUID|0}}|Druid}}</div>}}<!--
{{#if: {{{wdam|}}} |
      -->{{#if:{{{flags|}}}|<div class="item__requirements__flags">{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{flags|}}}|WARRIOR|}}|THIEF|}}|CLERIC|}}|MAGE|}}|DRUID|}}|NECR|}}|RARE|}}|ARTIFACT|}}|UNIQUE|}}|ANTIQUE|}}|RELIC|}}</div>}}<!--
|-
    --></div><!--
| Damage
 
| {{#explode:{{wdam}}|,|0}} to {{#explode:{{damage}}|,|1}} {{wspeed}} {{dtype}}
    -->{{#if:{{{keywords|}}}|<div class="item__divider" role="presentation"></div><!--
}}
      --><div class="item__keywords" tabindex="0">Keywords: {{{keywords}}}</div>}}<!--
{{#if: {{{strreq|}}} |
  --></div></includeonly><noinclude>{{Template:Item/Doc}}[[Category:Template]] [[Category:Templates by Uicli]] [[Category:Item Templates]]</noinclude>
|-
| colspan="3" Requires {{strreq}} strength
}}
|-
| Wear Locations
| colspan="3" | {{wear_loc||N/A}}
|}
</includeonly>
<noinclude>{{Template:Item/Doc}}[[Category:Template]]</noinclude>

Latest revision as of 04:31, 19 January 2022

{{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%}}