Template:Item: Difference between revisions

198 bytes added ,  17:16, 4 August 2019
added destroyonunequip
(added movespeed)
(added destroyonunequip)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=ItemsTable|Title=Wikitext|BasePV=Integer|MaxPV=Integer|Vibro=Boolean|PoweredPV=Boolean|Damage=String|UnpoweredDamage=String|HP=Integer|AV=Integer|DV=Integer|MA=Integer|ToHit=Integer|Ammo=Searchtext|Accuracy=Integer|Shots=Integer|MaxAmmo=Integer|MaxVolume=Integer|LiquidGen=Integer|LiquidType=String|MaxCharge=Integer|ChargeUsed=Integer|ChargePerDram=Integer|Weight=Integer|Commerce=Float|Complexity=Integer|Tier=Integer|Bits=Searchtext|CanBuild=Boolean|CanDisassemble=Boolean|Skill=String|RenderString=Wikitext string|ColorString=String|ObjectID=String|BookID=String|LightRadius=Integer|Extra=Searchtext|AgilityBonus=Integer|StrengthBonus=Integer|WillpowerBonus=Integer|ToughnessBonus=Integer|IntelligenceBonus=Integer|EgoBonus=Integer|Acid=Integer|Electric=Integer|Cold=Integer|Heat=Integer|Description=Wikitext|WornOn=Page|UsesSlots=List (,) of Page|Healing=String|HarvestedInto=Page|PreservedInto=Page|PreservedQuantity=Integer|Reflect=Integer|Movespeed=Integer}}
{{#cargo_declare:_table=ItemsTable|Title=Wikitext|BasePV=Integer|MaxPV=Integer|Vibro=Boolean|PoweredPV=Boolean|Damage=String|UnpoweredDamage=String|HP=Integer|AV=Integer|DV=Integer|MA=Integer|ToHit=Integer|Ammo=Searchtext|Accuracy=Integer|Shots=Integer|MaxAmmo=Integer|MaxVolume=Integer|LiquidGen=Integer|LiquidType=String|MaxCharge=Integer|ChargeUsed=Integer|ChargePerDram=Integer|Weight=Integer|Commerce=Float|Complexity=Integer|Tier=Integer|Bits=Searchtext|CanBuild=Boolean|CanDisassemble=Boolean|Skill=String|RenderString=Wikitext string|ColorString=String|ObjectID=String|BookID=String|LightRadius=Integer|Extra=List (</br>) of String|AgilityBonus=Integer|StrengthBonus=Integer|WillpowerBonus=Integer|ToughnessBonus=Integer|IntelligenceBonus=Integer|EgoBonus=Integer|Acid=Integer|Electric=Integer|Cold=Integer|Heat=Integer|Description=Wikitext|WornOn=Page|UsesSlots=List (,) of Page|Healing=String|HarvestedInto=Page|PreservedInto=Page|PreservedQuantity=Integer|Reflect=Integer|Movespeed=Integer}}
[[Category:Templates]]
[[Category:Templates]]
{{doc}}
{{doc}}


</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:_table=ItemsTable|Title={{{title|}}}|BasePV={{{pv|4}}}|MaxPV={{{maxpv|{{{pv|4}}}}}}|Vibro={{{vibro|no}}}|PoweredPV={{{pvpowered|no}}}|Damage={{{damage|}}}|UnpoweredDamage={{{unpowereddamage|}}}|HP={{{hp|}}}|AV={{{av|}}}|DV={{{dv|}}}|MA={{{ma|}}}|ToHit={{{tohit|}}}|Ammo={{{ammo|}}}|Accuracy={{{accuracy|}}}|Shots={{{shots|}}}|MaxAmmo={{{maxammo|}}}|MaxVolume={{{maxvol|}}}|LiquidGen={{{liquidgen|}}}|LiquidType={{{liquidtype|}}}|MaxCharge={{{maxcharge|}}}|ChargeUsed={{{chargeused|}}}|ChargePerDram={{{chargeperdram|}}}|Weight={{{weight|}}}|Commerce={{{commerce|}}}|Complexity={{{complexity|}}}|Tier={{{tier|}}}|Bits={{{bits|}}}|CanBuild={{{canbuild|no}}}|CanDisassemble={{{candisassemble|no}}}|Skill={{{skill|}}}|RenderString={{{renderstr|}}}|ColorString={{{colorstr|&amp;y}}}|ObjectID={{{id|}}}|BookID={{{bookid|}}}|LightRadius={{{lightradius|}}}||Extra={{#ifeq: {{{twohanded|}}}| yes |Two Handed }} {{#ifeq: {{{metal|}}} | yes |</br>Metal }} {{#ifeq: {{{lightprojectile|}}} | yes |</br>Light Projectiles }} {{#ifeq: {{{cursed|}}} | yes |</br>Unequippable }} {{#ifeq: {{{empsensitive|}}} | yes |</br>EMP Sensitive }} {{#ifeq: {{{exoticfood|}}} | yes |</br>Exotic food }}|{{#if: {{{extra|}}}|</br>{{{extra}}}}}|AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}}|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}}|IntelligenceBonus={{{intelligence|}}}|EgoBonus={{{ego|}}}|Acid={{{acid|}}}|Electric={{{electric|}}}|Cold={{{cold|}}}|Heat={{{heat|}}}|Description={{qud text|{{{desc|}}}}}|WornOn={{{wornon|}}}|UsesSlots={{{usesslots|{{{wornon|}}}}}}|Healing={{{healing|}}}|HarvestedInto={{{harvestedinto|}}}|PreservedInto={{{preservedinto|}}}|PreservedQuantity={{{preservedquantity|}}}|Movespeed={{{movespeed|}}}}}
{{#cargo_store:_table=ItemsTable|Title={{{title|}}}|BasePV={{{pv|4}}}|MaxPV={{{maxpv|{{{pv|4}}}}}}|Vibro={{{vibro|no}}}|PoweredPV={{{pvpowered|no}}}|Damage={{{damage|}}}|UnpoweredDamage={{{unpowereddamage|}}}|HP={{{hp|}}}|AV={{{av|}}}|DV={{{dv|}}}|MA={{{ma|}}}|ToHit={{{tohit|}}}|Ammo={{{ammo|}}}|Accuracy={{{accuracy|}}}|Shots={{{shots|}}}|MaxAmmo={{{maxammo|}}}|MaxVolume={{{maxvol|}}}|LiquidGen={{{liquidgen|}}}|LiquidType={{{liquidtype|}}}|MaxCharge={{{maxcharge|}}}|ChargeUsed={{{chargeused|}}}|ChargePerDram={{{chargeperdram|}}}|Weight={{{weight|}}}|Commerce={{{commerce|}}}|Complexity={{{complexity|}}}|Tier={{{tier|}}}|Bits={{{bits|}}}|CanBuild={{{canbuild|no}}}|CanDisassemble={{{candisassemble|no}}}|Skill={{{skill|}}}|RenderString={{{renderstr|}}}|ColorString={{{colorstr|&amp;y}}}|ObjectID={{{id|}}}|BookID={{{bookid|}}}|LightRadius={{{lightradius|}}}|Extra={{#ifeq: {{{twohanded|}}}| yes |Two Handed }} {{#ifeq: {{{metal|}}} | yes |</br>Metal }} {{#ifeq: {{{lightprojectile|}}} | yes |</br>Light Projectiles }} {{#ifeq: {{{cursed|}}} | yes |</br>Unequippable }} {{#ifeq: {{{empsensitive|}}} | yes |</br>EMP Sensitive }} {{#ifeq: {{{exoticfood|}}} | yes |</br>Exotic food }}{{#ifeq: {{{destroyonunequip|}}} | yes | </br>Destroyed when unequipped}}{{#if: {{{extra|}}}|</br>{{{extra}}}}}|AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}}|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}}|IntelligenceBonus={{{intelligence|}}}|EgoBonus={{{ego|}}}|Acid={{{acid|}}}|Electric={{{electric|}}}|Cold={{{cold|}}}|Heat={{{heat|}}}|Description={{qud text|{{{desc|}}}}}|WornOn={{{wornon|}}}|UsesSlots={{{usesslots|{{{wornon|}}}}}}|Healing={{{healing|}}}|HarvestedInto={{{harvestedinto|}}}|PreservedInto={{{preservedinto|}}}|PreservedQuantity={{{preservedquantity|}}}|Movespeed={{{movespeed|}}}}}
{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}
{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}
{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
Line 60: Line 60:
{{#if: {{{usesslots|}}}| {{infobox row|Uses Slots|{{{usesslots|{{{wornon|}}}}}} }} }}
{{#if: {{{usesslots|}}}| {{infobox row|Uses Slots|{{{usesslots|{{{wornon|}}}}}} }} }}
<!--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|}}{{{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>Unequippable</p>}}{{#if:{{{movespeed|}}} |<p>{{{movespeed}}} Movespeed</p>}}{{#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>Unequippable</p>}}{{#if:{{{movespeed|}}} |<p>{{{movespeed}}} Movespeed</p>}}{{#ifeq: {{{destroyonunequip|}}}| yes |<p>Destroyed when unequipped</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|}}} |