Difference between revisions of "Template:Item"

From Alter Aeon Wiki
m
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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><!--
<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 }}"><!--
Name --><li class="itemname">[[{{{name}}} (Item)|{{{name}}}]]</li><!--
    --><div class="item__header"><!--
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><!--
      --><span  tabindex="0" class="item__header__name">[[{{{name}}} (Item)|{{{name}}}]]</span><!--
Binding -->{{#if:{{{binds|}}}|<li><span class="binding">Binds to {{#ifeq:{{{binds}}}|player|Player}}{{#ifeq:{{{binds}}}|account|Account}}</span></li>}}<!--
    --></div><!--
Total Levels -->{{#if:{{{totlev|}}}|<li style="float: right; margin-top:0px;">{{ItemAttrLabel|Total Level}} {{{totlev}}}</li>}}<!--
 
Level -->{{#if:{{{level|}}}|<li>{{ItemAttrLabel|Level}} {{{level}}}</li>}}<!--
    --><div class="item__type"  tabindex="0"><!--
Keywords -->{{#if:{{{keywords|}}}|<li>{{ItemAttrLabel|Item}} '{{{keywords}}}'</li>}}<!--
      --><div class="item__type__desc"><!--
Size -->{{#if:{{{size|}}}|<li style="float: right; margin-top:0px;">{{ItemAttrLabel|Size}} {{{size}}}</li>}}<!--
        --><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>
Weight -->{{#if:{{{weight|}}}|<li>{{ItemAttrLabel|Weight}} {{{weight}}}</li>}}<!--
      <span class="item__type__typename">{{lc:{{{type}}}}}</span><!--
Type -->{{#if:{{{type|}}}|<li>{{ItemAttrLabel|Type}} {{{type}}}</li>}}<!--
      --></div><!--
Composition -->{{#if:{{{composition|}}}|<li>{{ItemAttrLabel|Composition}} {{{composition}}}</li>}}<!--
      --><div class="item__type__slot">{{{wearloc|}}}</div><!--
Flags -->{{#if:{{{flags|}}}|<li>{{ItemAttrLabel|Flags}} {{ItemFlags|{{{flags}}}}}</li>}}<!--
    --></div><!--
ac -->{{#if:{{{ac|}}}|<li>{{{ac}}} ac-apply</li>}}<!--
 
Weapon Speed -->{{#if:{{{dmg|}}}|<li style="float: right; margin-top:0px;">{{ItemAttrLabel|Speed}} {{{wspeed|Normal}}}</li>}}<!--
    -->{{#if:{{{ac|}}}|<div class="item__armor-stats"  tabindex="0"><!--
Weapon Damage -->{{#if:{{{dmg|}}}|<li>{{{dmg}}} {{#if:{{{dtype|}}}|{{{dtype}}}}} Damage</li>}}
      --><span class="item__armor-stats__ac">{{{ac}}}</span> Armor Class<!--
<!-- Str Req -->{{#if:{{{strreq|}}}|<li>Requires {{{strreq}}} Strength</li>}}<!--
    --></div>}}<!--
Wear Loc -->{{#if:{{{wearloc|}}}|<li>{{ItemAttrLabel|Wear Location(s)}} {{{wearloc}}}</li>}}<!--
 
Affects -->{{#if:{{{affects|}}}|<li>{{ItemAttrLabel|Affects}}<p class="affects">{{{affects}}}</p></li>}}</ul></div></div>
    -->{{#if:{{{dmg|}}}|<div class="item__weapon-stats"  tabindex="0"><!--
</includeonly><noinclude>{{Template:Item/Doc}}[[Category:Template]]
      --><div class="item__weapon-stats__damage"><!--
</noinclude>
        --><span class="item__weapon-stats__range">{{{dmg}}}</span><!--
        --><span class="item__weapon-stats__type">{{{dtype}}}</span><!--
      --></div><!--
      -->{{#if:{{{wspeed|}}}|<div class="item__weapon-stats__speed">{{{wspeed}}} Speed</div>|{{{speed|Normal}}} Speed}}<!--
 
    --></div>}}<!--
 
    -->{{#if:{{{strreq|}}}|<div class="item__str-req"  tabindex="0">Requires {{{strreq}}} Strength</div>}}<!--
 
    --><div class="item__divider" role="presentation"></div><!--
 
    -->{{#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:{{{spells|}}}|<div class="item__spells">Applies Spells:<dl><dd>{{{spells}}}</dd></dl></div>}}<!--
 
    --><div class="item__requirements" tabindex="0"><!--
      -->{{#if:{{{binds|}}}|<div class="item__requirements__binding"><!--
        -->{{#ifeq:{{{binds}}}|character|Character}}{{#ifeq:{{{binds}}}|player|Character}}{{#ifeq:{{{binds}}}|account|Account}} Bound<!--
      --></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:{{{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><!--
 
    -->{{#if:{{{keywords|}}}|<div class="item__divider" role="presentation"></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>

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