Template:Item: Difference between revisions

Jump to navigation Jump to search
(added destroyonunequip)
(cargo now stores images)
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=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}}
{{#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|image=File}}
[[Category:Templates]]
[[Category:Templates]]
{{doc}}
{{doc}}
Line 6: Line 6:
</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 }}{{#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|}}}}}
{{#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}}}}}|Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}}}
{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
| rows =  
| rows =