Template:Item: Difference between revisions

2 bytes added ,  00:14, 2 September 2019
m
no edit summary
(added spectacles in extra row)
mNo edit summary
Line 136: Line 136:
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
<!--Check if the object is two handed, made out of metal, or have light projectiles(tag name = Light). any extra details can be added in extra-->
<!--Check if the object is two handed, made out of metal, or have light projectiles(tag name = Light). any extra details can be added in extra-->
{{#if: {{{extra|}}}{{#ifeq:{{{twohanded|}}}|yes|yes|}}{{#ifeq: {{{destroyonunequip|}}}|yes|yes}}{{{movespeed|}}}{{#ifeq:{{{metal|}}}|yes|yes|}}{{#ifeq:{{{lightprojectile|}}}|yes|yes|}}{{{reflect|}}}{{#ifeq:{{{cursed|}}}|yes|yes|}} | {{infobox row|Other Properties|{{#ifeq: {{{twohanded|}}}| yes | <p>Two Handed</p>| }}{{#ifeq: {{{metal|}}} | yes |<p>Metal</p>| }}{{#ifeq: {{{lightprojectile|}}} | yes |<p>Light Projectiles</p>}}{{#if:{{{reflect|}}}|<p>Reflects {{{reflect}}}% of damage, rounded up</p>}}{{#ifeq: {{{cursed|}}} | yes |<p>Not Unequippable</p>}}{{#if:{{{movespeed|}}} |<p>{{{movespeed}}} Movespeed</p>}}{{#ifeq: {{{destroyonunequip|}}}| yes |<p>Destroyed when unequipped</p>}}{{#ifeq: {{{spectacles|}}} | yes | </br>Corrects Vision}}{{#if: {{{extra|}}}|<p>{{{extra}}}</p>}} }} }}
{{#if: {{{extra|}}}{{#ifeq:{{{twohanded|}}}|yes|yes|}}{{#ifeq: {{{destroyonunequip|}}}|yes|yes}}{{{movespeed|}}}{{#ifeq:{{{metal|}}}|yes|yes|}}{{#ifeq:{{{lightprojectile|}}}|yes|yes|}}{{{reflect|}}}{{#ifeq:{{{cursed|}}}|yes|yes|}} | {{infobox row|Other Properties|{{#ifeq: {{{twohanded|}}}| yes | <p>Two Handed</p>| }}{{#ifeq: {{{metal|}}} | yes |<p>Metal</p>| }}{{#ifeq: {{{lightprojectile|}}} | yes |<p>Light Projectiles</p>}}{{#if:{{{reflect|}}}|<p>Reflects {{{reflect}}}% of damage, rounded up</p>}}{{#ifeq: {{{cursed|}}} | yes |<p>Not Unequippable</p>}}{{#if:{{{movespeed|}}} |<p>{{{movespeed}}} Movespeed</p>}}{{#ifeq: {{{destroyonunequip|}}}| yes |<p>Destroyed when unequipped</p>}}{{#ifeq: {{{spectacles|}}} | yes | <p>Corrects Vision</p>}}{{#if: {{{extra|}}}|<p>{{{extra}}}</p>}} }} }}
<!--Makes the attributes box show up if *any* of the attributes are filled out-->
<!--Makes the attributes box show up if *any* of the attributes are filled out-->
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} |
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} |