Template:ItemTemplate: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(changed charge to chargeused and added a new chargeperdram which does waht its says)
(added wornon and usesslots)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=Items|Title=Wikitext|Level=Integer|BasePV=Integer|MaxPV=Integer|Vibro=Boolean|PoweredPV=Boolean|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=Integer|Complexity=Integer|Tier=Integer|Bits=Searchtext|CanBuild=Boolean|CanDisassemble=Boolean|Skill=String|RenderString=String|ObjectID=String|BookID=String|LightRadius=Integer|Hunger=Integer|Thirst=Integer|TwoHanded=Boolean|Metal=Boolean|LightProjectile=Boolean|Extra=Searchtext|AgilityBonus=Integer|StrengthBonus=Integer|WillpowerBonus=Integer|ToughnessBonus=Integer|IntelligenceBonus=Integer|EgoBonus=Integer|Acid=Integer|Electric=Integer|Cold=Integer|Heat=Integer|Description=Wikitext}}
{{#cargo_declare:_table=Items|Title=Wikitext|Level=Integer|BasePV=Integer|MaxPV=Integer|Vibro=Boolean|PoweredPV=Boolean|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=Integer|Complexity=Integer|Tier=Integer|Bits=Searchtext|CanBuild=Boolean|CanDisassemble=Boolean|Skill=String|RenderString=String|ColorString=String|ObjectID=String|BookID=String|LightRadius=Integer|Hunger=Integer|Thirst=Integer|TwoHanded=Boolean|Metal=Boolean|LightProjectile=Boolean|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=List (,) of Wikitext string|UsesSlots=List (,) of Wikitext string}}
[[Category:Templates]]
[[Category:Templates]]
{{doc}}
{{doc}}


</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:_table=Items|Title={{{title|}}}|Level={{{lv|}}}|BasePV={{{pv|4}}}|MaxPV={{{maxpv|{{{pv|4}}}}}}|Vibro={{{vibro|no}}}|PoweredPV={{{pvpowered|no}}}|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|}}}|ObjectID={{{id|}}}|BookID={{{bookid|}}}|LightRadius={{{lightradius|}}}|Hunger={{{hunger|}}}|Thirst={{{thirst|}}}|TwoHanded={{{twohanded|no}}}|Metal={{{metal|no}}}|LightProjectile={{{lightprojectile|no}}}|Extra={{{extra|}}}|AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}}|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}}|IntelligenceBonus={{{intelligence}}}|EgoBonus={{{ego|}}}|Acid={{{acid|}}}|Electric={{{electric|}}}|Cold={{{cold|}}}|Heat={{{heat|}}}|Description={{{desc|}}}}}
{{#cargo_store:_table=Items|Title={{{title|}}}|Level={{{lv|}}}|BasePV={{{pv|4}}}|MaxPV={{{maxpv|{{{pv|4}}}}}}|Vibro={{{vibro|no}}}|PoweredPV={{{pvpowered|no}}}|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|}}}|ObjectID={{{id|}}}|BookID={{{bookid|}}}|LightRadius={{{lightradius|}}}|Hunger={{{hunger|}}}|Thirst={{{thirst|}}}|TwoHanded={{{twohanded|no}}}|Metal={{{metal|no}}}|LightProjectile={{{lightprojectile|no}}}|Extra={{{extra|}}}|AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}}|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}}|IntelligenceBonus={{{intelligence}}}|EgoBonus={{{ego|}}}|Acid={{{acid|}}}|Electric={{{electric|}}}|Cold={{{cold|}}}|Heat={{{heat|}}}|Description={{{desc|}}}WornOn={{{wornon|}}}|UsesSlots={{{usesslots|}}}}}
[[Category:Items]]
[[Category:Items]]


Line 47: Line 47:
{{#if: {{{skill|}}}    | {{infobox row|Skill Used|{{{skill}}} }} }}
{{#if: {{{skill|}}}    | {{infobox row|Skill Used|{{{skill}}} }} }}
<!--Renderstring, with the ColorString appended before it-->
<!--Renderstring, with the ColorString appended before it-->
{{#if: {{{renderstr|}}}| {{infobox row|Character| '''{{Qud text|{{{renderstr}}}}}''' }} }}
{{#if: {{{renderstr|}}}| {{infobox row|Character| '''{{Qud text|{{{colorstr|}}}{{{renderstr}}}}}''' }} }}
<!--This is the name of the object in ObjectBlueprints.xml-->
<!--This is the name of the object in ObjectBlueprints.xml-->
{{#if: {{{id|}}}      | {{infobox row|ID|{{{id}}} }} }}
{{#if: {{{id|}}}      | {{infobox row|ID|{{{id}}} }} }}
Line 56: Line 56:
{{#if: {{{hunger|}}}  | {{infobox row|Hunger|{{{hunger}}} }} }}
{{#if: {{{hunger|}}}  | {{infobox row|Hunger|{{{hunger}}} }} }}
{{#if: {{{thirst|}}}  | {{infobox row|Thirst|{{{thirst}}} }} }}
{{#if: {{{thirst|}}}  | {{infobox row|Thirst|{{{thirst}}} }} }}
{{#if: {{{wornon|}}}  | {{infobox row|Worn On|{{{wornon}}} }} }}
{{#if: {{{usesslots|}}}| {{infobox row|Uses Slots|{{{usesslots}}} }} }}
<!--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|}}}{{{twohanded|}}}{{{metal|}}}{{{lightprojectile|}}} | {{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: {{{extra|}}}|<p>{{{extra}}}</p>}} }} }}
{{#if: {{{extra|}}}{{{twohanded|}}}{{{metal|}}}{{{lightprojectile|}}} | {{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: {{{extra|}}}|<p>{{{extra}}}</p>}} }} }}

Revision as of 15:48, 7 July 2019

This template defines the table "Items". This table has not been created yet. Template:ItemTemplate/doc