Template:ItemTemplate: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(changed Title to be stored as Wikitext instead of Wikitext String)
(commented out everything)
 
(40 intermediate revisions by 2 users not shown)
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|Charge=Integer|Weight=Integer|Commerce=Integer|Complexity=Integer|Tier=Integer|bits=Searchtext|CanBuild=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|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=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=Page|UsesSlots=List (,) of Page|Healing=String|ButcheredInto=List (,) of Page|HarvestedInto=Page|PreservedInto=Page|PreservedQuantity=Integer|ExoticFood=Boolean|Reflect=Integer|IsMeat=Boolean|IsPlant=Boolean|IsFungus=Boolean|OnEat=Searchtext|CookEffect=String|EMPSensitive=Boolean|Cursed=Boolean}}
[[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|}}}|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|}}}}}
{{#cargo_store:_table=Items|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|}}}|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={{qud text|{{{desc|}}}}}|WornOn={{{wornon|}}}|UsesSlots={{{usesslots|{{{wornon|}}}}}}Healing={{{healing|}}}|ButcheredInto={{{butcheredinto|}}}|HarvestedInto={{{harvestedinto|}}}|PreservedInto={{{preservedinto|}}}|PreservedQuantity={{{preservedquantity|}}}|ExoticFood={{{exoticfood|no}}}|Reflect={{{reflect|}}}IsMeat={{{ismeat|}}}|IsPlant={{{isplant|}}}|IsFungus={{{isfungus|}}}|OnEat={{{oneat|}}}|CookEffect={{{cookeffect|}}}|EMPSensitive={{{empsensitive|no}}}|Cursed={{{cursed|no}}}}}
[[Category:Items]]
[[Category:Items]]


{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
| rows =  
| rows =  
{{#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 yes, 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|}}} | yes |{{Tooltip|The penetration of this weapon matches the enemy's armor value.|≈}}|{{{pv|4}}}{{Color | K |/{{{maxpv|{{{pv}}} }}} }} }} }} }}
{{#if: {{{pv|}}}{{{vibro|}}}{{{maxpv|}}} | {{infobox row|[[PV]]{{#ifeq: {{{vibro|}}} | yes ||{{Tooltip|Base PV/Max 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|}}}|yes| {{infobox row|PV (Unpowered)|{{Color | C |→}}4{{Color | K |/4}} }} }}
{{#ifeq: {{{pvpowered|}}}|yes| {{infobox row|PV (Unpowered)|{{Color | C |→}}4{{Color | K |/4}} }} }}
{{#if: {{{damage|}}}  | {{infobox row|Damage|{{Color | r |♥}}{{{damage}}} }} }}
{{#if: {{{unpowereddamage|}}}|{{infobox row|Damage(Unpowered)|{{Color | r |♥}}{{{unpowereddamage|}}} }} }}
{{#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 25: Line 26:
<!--the ammo it needs. lead slugs, arrows, blood, etc. -->
<!--the ammo it needs. lead slugs, arrows, blood, etc. -->
{{#if: {{{ammo|}}}    | {{infobox row|Ammo Type|{{{ammo}}} }} }}
{{#if: {{{ammo|}}}    | {{infobox row|Ammo Type|{{{ammo}}} }} }}
{{#if: {{{accuracy|}}}| {{infobox row|Accuracy|{{{accuracy}}} }} }}
{{#if: {{{accuracy|}}}| {{infobox row|Accuracy|{{weapon accuracy|{{{accuracy}}}}}({{{accuracy}}}) }} }}
{{#if: {{{shots|}}}  | {{infobox row|Shots per Action|{{{shots}}} }} }}
{{#if: {{{shots|}}}  | {{infobox row|Shots per Action|{{{shots}}} }} }}
{{#if: {{{maxammo|}}} | {{infobox row|Max Ammo|{{{maxammo}}} }} }}
{{#if: {{{maxammo|}}} | {{infobox row|Max Ammo|{{{maxammo}}} }} }}
<!--liquid containers-->
<!--liquid containers-->
{{#if: {{{maxvol|}}}  | {{infobox row|Max Volume|{{{maxvol}}} }} }}
{{#if: {{{maxvol|}}}  | {{infobox row|Max Volume|{{{maxvol}}} drams }} }}
{{#if: {{{liquidgen|}}}| {{infobox row|Liquid Generation|1 dram of {{{liquidtype}}} every {{{liquidgen}}} turns}} }}
{{#if: {{{liquidgen|}}}| {{infobox row|Liquid Generation|1 dram of {{{liquidtype}}} every {{{liquidgen}}} turns}} }}
<!--Generic item stuff-->
<!--Generic item stuff-->
{{#if: {{{maxcharge|}}}|{{infobox row|Max Charge|{{{maxcharge}}} }} }}
{{#if: {{{maxcharge|}}}|{{infobox row|Max Charge|{{{maxcharge}}} }} }}
{{#if: {{{charge|}}}  | {{infobox row|Charge per Use|{{{charge}}} }} }}
{{#if: {{{chargeused|}}}  | {{infobox row|Charge per Use|{{{chargeused}}} }} }}
{{#if: {{{weight|}}}  | {{infobox row|Weight|{{{weight}}}'''#''' }} }}
{{#if: {{{chargeperdram|}}}| {{infobox row|Charge per Dram|{{{chargeperdram}}} }} }}
{{#if: {{{weight|}}}  | {{infobox row|Weight|{{{weight}}}{{qud text|&amp;K#}} }} }}
<!--tinkering-->
<!--tinkering-->
{{#if: {{{commerce|}}} | {{infobox row | Value|{{{commerce}}} }} }}
{{#if: {{{commerce|}}} | {{infobox row |Value|{{{commerce}}} }} }}
{{#if: {{{complexity|}}}| {{infobox row|Complexity||{{{complexity}}} }} }}
{{#if: {{{complexity|}}}| {{infobox row|Complexity|{{{complexity}}} }} }}
{{#if: {{{tier|}}}    | {{infobox row|Tier|{{{tier}}} }} }}
{{#if: {{{tier|}}}    | {{infobox row|Tier|{{{tier}}} }} }}
{{#if: {{{bits|}}}    | {{infobox row|[[Bits]]|{{{bits}}} }} }}
{{#if: {{{bits|}}}    | {{#if:{{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|[[Bits]]|{{Bits|{{{bits}}}}} }} }} }}
{{#if: {{{canbuild|no}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }}
{{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }}
{{#if: {{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }}
{{#ifeq: {{{canbuild|}}} | yes | {{#if: {{{tier|}}} | {{infobox row|Tinker Skill|{{Tinker check|{{{tier}}}}} }} }} }}
{{#ifeq: {{{canbuild|}}} | yes | {{#if: {{{tier|}}} | {{infobox row|Tinker Skill|{{Tinker check|{{{tier}}}}} }} }} }}
{{#ifeq: {{{empsensitive}}} | yes | {{infobox row|EMP Sensitive|yes}} }}
<!--What skill tree it uses-->
<!--What skill tree it uses-->
{{#if: {{{skill|}}}    | {{infobox row|Skill Used|{{{skill}}} }} }}
{{#if: {{{skill|}}}    | {{infobox row|Skill Used|{{{skill}}} }} }}
{{#if: {{{reputationbonus|}}}|{{Infobox row|Reputation Bonus|{{{reputationbonus}}} }} }}
<!--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|&amp;y}}}{{{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 52: Line 57:
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius|{{{lightradius}}} }} }}
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius|{{{lightradius}}} }} }}
<!--food stuff-->
<!--food stuff-->
{{#if: {{{hunger|}}}  | {{infobox row|Hunger|{{{hunger}}} }} }}
{{#if: {{{ismeat|}}}{{{isplant|}}}{{{isfungus|}}}|{{infobox row|Food Contains|{{#ifeq:{{{ismeat|}}}| yes | <p>Meat</p>}}{{#ifeq:{{{isplant|}}}| yes | <p>Plants</p>}}{{#ifeq:{{{isfungus|}}}| yes | <p>Fungi</p>}} }} }}
{{#if: {{{thirst|}}}  | {{infobox row|Thirst|{{{thirst}}} }} }}
{{#if: {{{hunger|}}}  | {{infobox row|[[Hunger#Satiation|Satiation]]|{{{hunger}}} }} }}
{{#if: {{{thirst|}}}  | {{infobox row|[[Thirst]]|{{{thirst}}} }} }}
{{#if: {{{healing|}}} | {{infobox row|Healing|{{{healing}}} }} }}
{{#if: {{{butcheredinto|}}}| {{infobox row|Butchered into|{{{butcheredinto}}} }} }}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{{harvestedinto}}} }} }}
{{#if: {{{preservedinto|}}}| {{infobox row|Preserved into|{{{preservedinto}}}x{{{preservedquantity|1}}} }} }}
{{#if: {{{exoticfood|}}} | {{infobox row|Exotic Food|{{{exoticfood}}} }} }}
{{#if: {{{oneat|}}}  | {{infobox row|On Eat|{{{oneat}}} }} }}
{{#if: {{{cookeffect|}}} | {{Infobox row|Cooking Effect|{{{cookeffect}}} }} }}
<!--equipment-->
{{#if: {{{wornon|}}}  | {{infobox row|Worn On|{{{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|}}}{{{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|}}}{{#ifeq:{{{twohanded|}}}|yes|yes|}}{{#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: {{{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|}}} |
{{infobox row|Attributes|{{#if: {{{strength|}}}    | <p style="color:#FFFFFF">  {{{strength}}} Strength</p>}}{{#if: {{{agility|}}}      | <p style="color:#CFC041">  {{{agility}}} Agility</p>}}{{#if: {{{toughness|}}}    | <p style="color:#D74200">    {{{toughness}}} Toughness</p>}}{{#if: {{{intelligence|}}} | <p style="color:rgb(51,102,255)">    {{{intelligence}}} Intelligence</p>}}{{#if: {{{willpower|}}}    | <p style="color:#00C420">    {{{willpower}}} Willpower</p>}}{{#if: {{{ego|}}}          | <p style="color:#DA5BD6"> {{{ego}}} Ego</p>}} }} }}
{{infobox row|Attributes|{{#if: {{{strength|}}}    | <p style="color:#FFFFFF">  {{{strength}}} Strength</p>}}{{#if: {{{agility|}}}      | <p style="color:#CFC041">  {{{agility}}} Agility</p>}}{{#if: {{{toughness|}}}    | <p style="color:#D74200">    {{{toughness}}} Toughness</p>}}{{#if: {{{intelligence|}}} | <p style="color:rgb(51,102,255)">    {{{intelligence}}} Intelligence</p>}}{{#if: {{{willpower|}}}    | <p style="color:#00C420">    {{{willpower}}} Willpower</p>}}{{#if: {{{ego|}}}          | <p style="color:#DA5BD6"> {{{ego}}} Ego</p>}} }} }}
<!--Makes the resistances box show up if *any* of the resistances are filled out-->
<!--Makes the resistances box show up if *any* of the resistances are filled out-->
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}} |
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}{{{poison|}}} |
{{infobox row|Resistance|
{{infobox row|Resistance|
{{#if: {{{acid|}}}    | <p style="color:#00C420">  {{{acid}}} Acid</p>}}{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric}}} Electric</p>}}{{#if: {{{cold|}}}    | <p style="color:#0096FF">  {{{cold}}} Cold</p>}}{{#if: {{{heat|}}}    | <p style="color:#D74200">    {{{heat}}} Heat</p>}} }} }}
{{#if: {{{acid|}}}    | <p style="color:#00C420">  {{{acid}}} Acid</p>}}{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric}}} Electric</p>}}{{#if: {{{cold|}}}    | <p style="color:#0096FF">  {{{cold}}} Cold</p>}}{{#if: {{{heat|}}}    | <p style="color:#D74200">    {{{heat}}} Heat</p>}} {{#if:{{{poison|}}}|<p style="color:#009403"> {{{poison}}} Poison</p>}} }} }}
}}
}}
{{#if: {{{desc|}}} | {{Qud quote | {{{desc}}} }} }}
{{#if: {{{desc|}}} | {{Qud look |text={{{desc}}}|title={{{title|{{PAGENAME}} }}} }} }}


</includeonly>
</includeonly>-->

Latest revision as of 14:43, 28 July 2019

























}}


</includeonly>-->