Template:ItemTemplate: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(Everything takes yes/no instead of true/false for best cargo usage! Sorry!)
Line 5: Line 5:


</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:_table=Items|Title={{{title|}}}|Level={{{lv|}}}|BasePV={{{pv|4}}}|MaxPV={{{maxpv|{{{pv|4}}}}}}|Vibro={{{vibro|false}}}|PoweredPV={{{pvpowered|false}}}|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|}}}|Charge={{{charge|}}}|Weight={{{weight|}}}|Commerce={{{commerce|}}}|Complexity={{{complexity|}}}|Tier={{{tier|}}}|bits={{{bits|}}}|CanBuild={{{canbuild|false}}}|Skill={{{skill|}}}|RenderString={{{renderstr|}}}|ObjectID={{{id|}}}|BookID={{{bookid|}}}|LightRadius={{{lightradius|}}}|Hunger={{{hunger|}}}|Thirst={{{thirst|}}}|TwoHanded={{{twohanded|false}}}|Metal={{{metal|}}}|LightProjectile={{{lightprojectile|}}}|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|}}}|Charge={{{charge|}}}|Weight={{{weight|}}}|Commerce={{{commerce|}}}|Complexity={{{complexity|}}}|Tier={{{tier|}}}|bits={{{bits|}}}|CanBuild={{{canbuild|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|}}}}}
[[Category:Items]]
[[Category:Items]]


Line 12: Line 12:
{{#if: {{{lv|}}}  | {{infobox row|Level|{{lv}}} }} }}
{{#if: {{{lv|}}}  | {{infobox row|Level|{{lv}}} }} }}
<!--lists the max pv, with a default base pv of 4. if you want to change the base pv, set pv to(number)-->
<!--lists the max pv, with a default base pv of 4. if you want to change the base pv, set pv to(number)-->
<!--if you set vibro to true, it will replace the pv with the match armor value symbol-->
<!--if you set vibro to yes, it will replace the pv with the match armor value symbol-->
{{#if: {{{pv|}}}{{{vibro|}}}{{{maxpv|}}} | {{infobox row|Base [[PV]]|{{Color | C |→}}{{#ifeq: {{{vibro|}}} | true |{{Tooltip|The penetration of this weapon matches the enemy's armor value.|≈}}|{{{pv|4}}}{{Color | K |/{{{maxpv|{{{pv}}} }}} }} }} }} }}
{{#if: {{{pv|}}}{{{vibro|}}}{{{maxpv|}}} | {{infobox row|Base [[PV]]|{{Color | C |→}}{{#ifeq: {{{vibro|}}} | yes |{{Tooltip|The penetration of this weapon matches the enemy's armor value.|≈}}|{{{pv|4}}}{{Color | K |/{{{maxpv|{{{pv}}} }}} }} }} }} }}
<!--does the object have no penetration when unpowered?-->
<!--does the object have no penetration when unpowered?-->
{{#ifeq: {{{pvpowered|}}}|true| {{infobox row|PV (Unpowered)|{{Color | C |→}}4{{Color | K |/4}} }} }}
{{#ifeq: {{{pvpowered|}}}|yes| {{infobox row|PV (Unpowered)|{{Color | C |→}}4{{Color | K |/4}} }} }}
{{#if: {{{hp|}}}      | {{infobox row|HP|{{{hp}}} }} }}
{{#if: {{{hp|}}}      | {{infobox row|HP|{{{hp}}} }} }}
{{#if: {{{av|}}}      | {{infobox row|Base [[AV]]|{{Color | b |♦}}{{{av}}} }} }}
{{#if: {{{av|}}}      | {{infobox row|Base [[AV]]|{{Color | b |♦}}{{{av}}} }} }}
Line 40: Line 40:
{{#if: {{{tier|}}}    | {{infobox row|Tier|{{{tier}}} }} }}
{{#if: {{{tier|}}}    | {{infobox row|Tier|{{{tier}}} }} }}
{{#if: {{{bits|}}}    | {{infobox row|[[Bits]]|{{{bits}}} }} }}
{{#if: {{{bits|}}}    | {{infobox row|[[Bits]]|{{{bits}}} }} }}
{{#if: {{{canbuild|false}}}| {{infobox row|Can Build|{{{canbuild|false}}} }} }}
{{#if: {{{canbuild|no}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }}
{{#ifeq: {{{canbuild|}}} | true | {{#if: {{{tier|}}} | {{infobox row|Tinker Skill|{{Tinker check|{{{tier}}}}} }} }} }}
{{#ifeq: {{{canbuild|}}} | yes | {{#if: {{{tier|}}} | {{infobox row|Tinker Skill|{{Tinker check|{{{tier}}}}} }} }} }}
<!--What skill tree it uses-->
<!--What skill tree it uses-->
{{#if: {{{skill|}}}    | {{infobox row|Skill Used|{{{skill}}} }} }}
{{#if: {{{skill|}}}    | {{infobox row|Skill Used|{{{skill}}} }} }}
Line 55: Line 55:
{{#if: {{{thirst|}}}  | {{infobox row|Thirst|{{{thirst}}} }} }}
{{#if: {{{thirst|}}}  | {{infobox row|Thirst|{{{thirst}}} }} }}
<!--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|}}}| true | <p>Two Handed</p>| }}{{#ifeq: {{{metal|}}} | true |<p>Metal</p>| }}{{#ifeq: {{{lightprojectile|}}} | true |<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>}} }} }}
<!--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|}}} |

Revision as of 18:39, 6 July 2019

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