Difference between revisions of "Template:Item"

From Alter Aeon Wiki
m
m
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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 }}"><!--
<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 }}"><!--
     --><div class="item__header"><!--
     --><div class="item__header"><!--
       --><h3 tabindex="0" class="item__header__name">[[{{{name}}} (Item)|{{{name}}}]]</h3><!--
       --><span tabindex="0" class="item__header__name">[[{{{name}}} (Item)|{{{name}}}]]</span><!--
     --></div><!--
     --></div><!--


     --><div class="item__type"  tabindex="0"><!--
     --><div class="item__type"  tabindex="0"><!--
       --><div class="item__type__desc"><!--
       --><div class="item__type__desc"><!--
         --><span class="item__type__rarity">{{#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}}</span>
         --><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><!--
       <span class="item__type__typename">{{lc:{{{type}}}}}</span><!--
       --></div><!--
       --></div><!--
Line 21: Line 21:
         --><span class="item__weapon-stats__type">{{{dtype}}}</span><!--
         --><span class="item__weapon-stats__type">{{{dtype}}}</span><!--
       --></div><!--
       --></div><!--
       --><div class="item__weapon-stats__speed">{{{wspeed|Normal}}} Speed</div><!--
       -->{{#if:{{{wspeed|}}}|<div class="item__weapon-stats__speed">{{{wspeed}}} Speed</div>|{{{speed|Normal}}} Speed}}<!--
 
     --></div>}}<!--
     --></div>}}<!--


Line 29: Line 30:


     -->{{#if:{{{affects|}}}|<ul class="item__affects" tabindex="0">{{{affects}}}</ul>}}<!--
     -->{{#if:{{{affects|}}}|<ul class="item__affects" tabindex="0">{{{affects}}}</ul>}}<!--
    -->{{#if:{{{special|}}}|<div class="item__special">Special Qualities:<div class="item__special__content">{{{special}}}</div></div>}}<!--
     -->{{#if:{{{scroll|}}}|{{{scroll}}}}}<!--
     -->{{#if:{{{scroll|}}}|{{{scroll}}}}}<!--
     -->{{#if:{{{spells|}}}|<div class="item__spells">Applies Spells:<dl><dd>{{{spells}}}</dd></dl></div>}}<!--
     -->{{#if:{{{spells|}}}|<div class="item__spells">Applies Spells:<dl><dd>{{{spells}}}</dd></dl></div>}}<!--
Line 38: Line 40:
       -->{{#if:{{{totlev|}}}|<div class="item__requirements__level">Requires Total Levels {{{totlev}}}</div>}}<!--
       -->{{#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:{{{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:{{{flags|}}}|<div class="item__requirements__flags">{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{flags|}}}|WARRIOR|}}|THIEF|}}|CLERIC|}}|MAGE|}}|DRUID|}}|NECR|}}|RARE|}}|ARTIFACT|}}||UNIQUE|}}|ANTIQUE|}}</div>}}<!--
       -->{{#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><!--
     --></div><!--


     --><div class="item__divider" role="presentation"></div><!--
     -->{{#if:{{{keywords|}}}|<div class="item__divider" role="presentation"></div><!--
    -->{{#if:{{{keywords|}}}|<div class="item__keywords" tabindex="0">Keywords: {{{keywords}}}</div>}}<!--
      --><div class="item__keywords" tabindex="0">Keywords: {{{keywords}}}</div>}}<!--
   --></div></includeonly><noinclude>{{Template:Item/Doc}}[[Category:Template]] [[Category:Templates by Uicli]] [[Category:Item Templates]]</noinclude>
   --></div></includeonly><noinclude>{{Template:Item/Doc}}[[Category:Template]] [[Category:Templates by Uicli]] [[Category:Item Templates]]</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%}}