Template:Item: Difference between revisions

Jump to navigation Jump to search
store throwability in cargo
(Move chairlevel to FurnitureData table)
(store throwability in cargo)
 
(27 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|Damage=String|UnpoweredDamage=String|PrimaryDamageElement=String
|Damage=String|UnpoweredDamage=String|PrimaryDamageElement=String
|HP=Integer|AV=Integer|DV=Integer|MA=Integer|ToHit=Integer
|HP=Integer|AV=Integer|DV=Integer|MA=Integer|ToHit=Integer
|MaxVolume=Integer|LiquidGen=Integer|LiquidType=String
|Seeping=Boolean
|MaxCharge=Integer|ChargeUsed=Integer|ChargePerDram=Integer
|Complexity=Integer
|Bits=String
|TinkerTier=String
|CanBuild=Boolean|CanDisassemble=Boolean
|Skill=String
|Skill=String
|ObjectID=String
|ObjectID=String
|LightRadius=Integer
|AgilityBonus=Integer|StrengthBonus=Integer|WillpowerBonus=Integer
|AgilityBonus=Integer|StrengthBonus=Integer|WillpowerBonus=Integer
|ToughnessBonus=Integer|IntelligenceBonus=Integer|EgoBonus=Integer
|ToughnessBonus=Integer|IntelligenceBonus=Integer|EgoBonus=Integer
|Acid=Integer|Electric=Integer|Cold=Integer|Heat=Integer
|Description=Wikitext
|Description=Wikitext
|WornOn=Page|UsesSlots=List (,) of Page
|WornOn=Page|UsesSlots=List (,) of Page
Line 25: Line 16:
|ElementalDamage=String
|ElementalDamage=String
|ElementalType=String
|ElementalType=String
|Mods=List (</br>) of Page
|JoinKey=String}}
|JoinKey=String}}


Line 40: Line 30:
|DV={{{dv|}}}|MA={{{ma|}}}
|DV={{{dv|}}}|MA={{{ma|}}}
|ToHit={{{tohit|}}}
|ToHit={{{tohit|}}}
|MaxVolume={{{maxvol|}}}|LiquidGen={{{liquidgen|}}}|LiquidType={{{liquidtype|}}}
|Seeping={{{seeping|}}}
|MaxCharge={{{maxcharge|}}}|ChargeUsed={{{chargeused|}}}|ChargePerDram={{{chargeperdram|}}}
|Complexity={{{complexity|}}}
|Bits={{{bits|}}}
|TinkerTier={{#ifeq: {{{canbuild|}}} | yes | {{tinker check|{{#sub:{{{bits|0}}}|-1}}}} }}
|CanBuild={{{canbuild|no}}}
|CanDisassemble={{{candisassemble|no}}}
|Skill={{{weaponskill|no skill}}}|
|Skill={{{weaponskill|no skill}}}|
|ObjectID={{{id|}}}
|ObjectID={{{id|}}}
|LightRadius={{{lightradius|}}}
|AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}}
|AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}}
|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}}
|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}}
|IntelligenceBonus={{{intelligence|}}}|EgoBonus={{{ego|}}}
|IntelligenceBonus={{{intelligence|}}}|EgoBonus={{{ego|}}}
|Acid={{{acid|}}}|Electric={{{electric|}}}{{{electrical|}}}
|Cold={{{cold|}}}
|Heat={{{heat|}}}
|Description={{qud text|{{{desc|}}}}}
|Description={{qud text|{{{desc|}}}}}
|WornOn={{{wornon|}}}
|WornOn={{{wornon|}}}
Line 66: Line 44:
|ElementalDamage={{{elementaldamage|}}}
|ElementalDamage={{{elementaldamage|}}}
|ElementalType={{{elementaltype|}}}
|ElementalType={{{elementaltype|}}}
|Mods={{{mods|}}}
|JoinKey={{FULLPAGENAME}} }}<!--
|JoinKey={{FULLPAGENAME}} }}<!--


Line 87: Line 64:
|JoinKey={{FULLPAGENAME}}
|JoinKey={{FULLPAGENAME}}
|Description={{qud text|{{{desc|}}}}} }}<!--
|Description={{qud text|{{{desc|}}}}} }}<!--
  Artifact Data Cargo Storage:
-->{{#if: {{{complexity|}}}{{{bits|}}}{{{tinkertier|}}}{{{canbuild|}}}{{{candisassemble|}}}{{{chargeused|}}}{{{chargeperdram|}}}{{{maxcharge|}}}{{{mods|}}}{{{capacitorcharge|}}}{{{capacitormax|}}}{{{capacitorrate|}}}{{{chargeconsumebroadcast|}}}{{{chargeconsumeelectrical|}}}{{{chargeconsumehydraulic|}}}{{{chargeconsumemechanical|}}}{{{chargeproducebroadcast|}}}{{{chargeproduceelectric|}}}{{{chargeproducehydraulic|}}}{{{chargeproducemechanical|}}}{{{chargeproducesolar|}}}{{{unidentifiedimage|}}}{{{unidentifiedname|}}}{{{unidentifiedaltname|}}}|{{Artifact data store|complexity={{{complexity|}}}|bits={{{bits|}}}|tinkertier={{{tinkertier|}}}|canbuild={{{canbuild|}}}|candisassemble={{{candisassemble|}}}|chargeused={{{chargeused|}}}|chargeperdram={{{chargeperdram|}}}|maxcharge={{{maxcharge|}}}|mods={{{mods|}}}|modcount={{{modcount|}}}|capacitorcharge={{{capacitorcharge|}}}|capacitormax={{{capacitormax|}}}|capacitorrate={{{capacitorrate|}}}|chargeconsumebroadcast={{{chargeconsumebroadcast|}}}|chargeconsumeelectrical={{{chargeconsumeelectrical|}}}|chargeconsumehydraulic={{{chargeconsumehydraulic|}}}|chargeconsumemechanical={{{chargeconsumemechanical|}}}|chargeproducebroadcast={{{chargeproducebroadcast|}}}|chargeproduceelectric={{{chargeproduceelectric|}}}|chargeproducehydraulic={{{chargeproducehydraulic|}}}|chargeproducemechanical={{{chargeproducemechanical|}}}|chargeproducesolar={{{chargeproducesolar|}}}|unidentifiedimage={{{unidentifiedimage|}}}|unidentifiedname={{{unidentifiedname|}}}|unidentifiedaltname={{{unidentifiedaltname|}}}|id={{{id|}}}}}}}<!--
  Physical Properties Cargo Storage:
-->{{#if: {{{acid|}}}{{{electric|}}}{{{heat|}}}{{{cold|}}}{{{lightradius|}}}{{{isthrown|}}}{{{seeping|}}}{{{inhaled|}}}{{{maxvol|}}}{{{liquidgentype|}}}{{{liquidgenrate|}}}|{{Physical_properties_data_store|acid={{{acid|}}}|electric={{{electric|}}}|heat={{{heat|}}}|cold={{{cold|}}}|lightradius={{{lightradius|}}}|throwable={{{isthrown|}}}|seeping={{{seeping|}}}|inhaled={{{inhaled|}}}|volume={{{maxvol|}}}|liquidgentype={{{liquidgentype|}}}|liquidgenrate={{{liquidgenrate|}}}}}}}<!--


   Missile Weapon Data Cargo Storage:
   Missile Weapon Data Cargo Storage:


-->{{#if: {{{ammo|}}}{{{accuracy|}}}{{{shots|}}}{{{ammoperaction|}}}{{{maxammo|}}}{{{ammodamagetypes|}}}|{{Missile_weapon_data_store|ammo={{{ammo|}}}|accuracy={{{accuracy|}}}|shots={{{shots|}}}|ammoperaction={{{ammoperaction|}}}|maxammo={{{maxammo|}}}|ammodamagetypes={{{ammodamagetypes|}}}}}}}<!--
-->{{#if: {{{ammo|}}}{{{accuracy|}}}{{{shots|}}}{{{ammoperaction|}}}{{{maxammo|}}}{{{ammodamagetypes|}}}{{{penetratingammo|}}}|{{Missile_weapon_data_store|ammo={{{ammo|}}}|accuracy={{{accuracy|}}}|shots={{{shots|}}}|ammoperaction={{{ammoperaction|}}}|maxammo={{{maxammo|}}}|ammodamagetypes={{{ammodamagetypes|}}}|penetratingammo={{{penetratingammo|}}}}}}}<!--
 
  Modability Data Cargo Storage:
 
-->{{#if: {{{supportedmods|}}}|{{Modability_data_store|id={{{id}}}|supportedmods={{{supportedmods}}}}}}}<!--


   Furniture Data Cargo Storage:
   Furniture Data Cargo Storage:
Line 118: Line 107:
       | maxpv = {{{maxpv|}}}
       | maxpv = {{{maxpv|}}}
       | vibro = {{{vibro|}}}
       | vibro = {{{vibro|}}}
      | penetratingammo = {{{penetratingammo|}}}
       | missile = {{{ismissile|no}}}
       | missile = {{{ismissile|no}}}
       | thrown = {{{isthrown|no}}}
       | thrown = {{{isthrown|no}}}
Line 135: Line 125:
{{#if: {{{unpowereddamage|}}}|{{infobox row|Damage(Unpowered)|{{heart}}{{{unpowereddamage|}}} }} }}
{{#if: {{{unpowereddamage|}}}|{{infobox row|Damage(Unpowered)|{{heart}}{{{unpowereddamage|}}} }} }}
{{#if: {{{hp|}}}      | {{infobox row|HP|{{{hp}}} }} }}
{{#if: {{{hp|}}}      | {{infobox row|HP|{{{hp}}} }} }}
{{#if: {{{ma|}}}      | {{infobox row|Base [[MA]]|{{{ma}}} }} }}
<!-- a number to hit-->
<!-- a number to hit-->
{{#if: {{{tohit|}}}  | {{infobox row|To Hit|{{{tohit}}} }} }}
{{#if: {{{tohit|}}}  | {{infobox row|To Hit|{{{tohit}}} }} }}
Line 141: Line 130:
<!--the ammo it needs. lead slugs, arrows, blood, etc. -->
<!--the ammo it needs. lead slugs, arrows, blood, etc. -->
{{#if: {{{ammodamagetypes|}}} | {{infobox row|[[Damage Type]]|{{{ammodamagetypes}}} }} }}
{{#if: {{{ammodamagetypes|}}} | {{infobox row|[[Damage Type]]|{{{ammodamagetypes}}} }} }}
{{#if: {{{ammo|}}}    | {{infobox row|Ammo Type|{{consecutive links|{{{ammo}}}}} }} }}
{{#if: {{{ammo|}}}    | {{infobox row|Ammo Type|{{#ifeq:{{{ammo}}}|energy|[[power|energy]]|{{consecutive links|{{{ammo}}}}}}}}} }}
{{#if: {{{accuracy|}}}| {{infobox row|Accuracy|{{#switch: {{{accuracy|0}}}|0=Very High|1|2|3|4=High|5|6|7|8|9=Medium|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24=Low|Very Low}} ({{{accuracy}}}) }} }}
{{#if: {{{accuracy|}}}| {{infobox row|Accuracy|{{#switch: {{{accuracy|0}}}|0=Very High|1|2|3|4=High|5|6|7|8|9=Medium|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24=Low|Very Low}} ({{{accuracy}}}) | class=navigation-not-searchable }} }}
{{#if: {{{shots|}}}  | {{infobox row|Shots per Action|{{{shots}}} }} }}
{{#if: {{{shots|}}}  | {{infobox row|Shots per Action|{{{shots}}} }} }}
{{#if: {{{ammoperaction|}}}| {{infobox row|Ammo per Action|{{{ammoperaction}}} }} }}
{{#if: {{{ammoperaction|}}}| {{infobox row|Ammo per Action|{{{ammoperaction}}} }} }}
Line 148: Line 137:
<!--liquid containers-->
<!--liquid containers-->
{{#if: {{{maxvol|}}}  | {{infobox row|Max Volume|{{{maxvol}}} drams }} }}
{{#if: {{{maxvol|}}}  | {{infobox row|Max Volume|{{{maxvol}}} drams }} }}
{{#if: {{{liquidgen|}}}| {{infobox row|Liquid Generation|1 dram of {{{liquidtype}}} every {{{liquidgen}}} turns}} }}
{{#if: {{{liquidgenrate|}}}| {{infobox row|Liquid Generation|1 dram of [[{{{liquidgentype}}}]] every {{#if:{{#pos:{{{liquidgenrate}}}|-}}|{{dice tooltip|{{{liquidgenrate}}}}}|{{{liquidgenrate}}}}} turns}} }}
<!--gases-->
<!--gases-->
{{#if: {{{seeping|}}} | {{infobox row|Seeping{{Tooltip|Whether this gas can<br>seep through walls}}|{{{seeping}}} }}
{{#if: {{{inhaled|}}} | {{infobox row|Inhaled{{Tooltip|Whether this gas is<br>[[respiration|respiration-based]]||nosearch}}|{{{inhaled}}} }} }}  
{{infobox row|Inhaled{{Tooltip|Whether this gas is<br>[[respiration|respiration-based]]}}|{{Gas respiration yesno|gasid={{{id}}}}} }}
{{#if: {{{seeping|}}} | {{infobox row|Seeping{{Tooltip|Whether this gas can<br>seep through walls||nosearch}}|{{{seeping}}} }} }}
}}
<!--Generic item stuff-->
<!--Generic item stuff-->
{{#if: {{{maxcharge|}}}|{{infobox row|Max Charge|{{{maxcharge}}} }} }}
{{#if: {{{maxcharge|}}}|{{infobox row|Max Charge|{{{maxcharge}}} }} }}
Line 159: Line 147:
{{#if: {{{chargefunction|}}}  | {{infobox row|Charge Used For|{{{chargefunction}}} }} }}
{{#if: {{{chargefunction|}}}  | {{infobox row|Charge Used For|{{{chargefunction}}} }} }}
}}
}}
{{#if: {{{imprintchargecost|}}} | {{infobox row|Imprint Cost{{Tooltip|Charge cost to program a<br>location into this recoiler}}|{{{imprintchargecost}}} }} }}
{{#if: {{{imprintchargecost|}}} | {{infobox row|Imprint Cost{{Tooltip|Charge cost to program a<br>location into this recoiler||nosearch}}|{{{imprintchargecost}}} }} }}
{{#if: {{{chargeperdram|}}}| {{infobox row|Charge per Dram|{{{chargeperdram}}} }} }}
{{#if: {{{chargeperdram|}}}| {{infobox row|Charge per Dram|{{{chargeperdram}}} }} }}
<!--tinkering-->
<!--tinkering-->
Line 172: Line 160:
{{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }}
{{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }}
{{#if: {{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }}
{{#if: {{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }}
{{#ifeq: {{{canbuild|}}} | yes | {{infobox row|Tinker Skill|[[{{Tinker check| {{#sub:{{{bits|0}}}| -1 }} }}]] }} }}  
{{#ifeq: {{{canbuild|}}} | yes | {{infobox row|Tinker Skill|[[{{Tinker check| {{#sub:{{{bits|0}}}| -1 }} }}]] | class=searchaux }} }}  
<!--What skill tree it uses-->
<!--What skill tree it uses-->
{{#if: {{{weaponskill|}}}    | {{infobox row|Skill Used|{{consecutive links |{{{weaponskill}}} }} }} }}
{{#if: {{{weaponskill|}}}    | {{infobox row|Skill Used|{{consecutive links |{{{weaponskill}}} }} | class=searchaux }} }}
{{#if: {{{reputationbonus|}}}| {{Infobox row|Reputation Bonus|{{{reputationbonus}}} }}  
{{#if: {{{reputationbonus|}}}| {{Infobox row|Reputation Bonus|{{{reputationbonus}}} }}  
[[Category:Reputation-altering items]] }}
[[Category:Reputation-altering items]] }}
<!-- Potential mods -->
{{#if: {{{supportedmods|}}}| {{infobox row|Potential<br>Mods{{Tooltip|Mods this item can support<br>(subject to additional logic & rules)||nosearch}}|{{consecutive templates|{{{supportedmods}}}|,|, |||mod type to category link}} }} }}
<!--Renderstring, with the ColorString appended before it-->
<!--Renderstring, with the ColorString appended before it-->
{{#if: {{{renderstr|}}}| {{infobox row|Character|{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr|}}}}} }} }}
{{#if: {{{renderstr|}}}| {{infobox row|Character|{{Qud char|{{{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{{Tooltip|Use this ID to [[Wishes|Wish]] for the item}}|{{{id}}} }} }}
{{#if: {{{id|}}}      | {{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for the item||nosearch}}|{{{id}}} }} }}
<!--This is more specific stuff-->
<!--This is more specific stuff-->
{{#if: {{{bookid|}}}  | {{infobox row|Book ID|{{{bookid}}} }} }}
{{#if: {{{bookid|}}}  | {{infobox row|Book ID|{{{bookid}}} }} }}
{{#if: {{{chairlevel|}}} | {{infobox row|Chair Level{{Tooltip|Chair level affects the power<br>of the [[sitting]] effect}}|{{{chairlevel}}} }} }}
{{#if: {{{chairlevel|}}} | {{infobox row|Chair Level{{Tooltip|Chair level affects the power<br>of the [[sitting]] effect||nosearch}}|{{{chairlevel}}} }} }}
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius|{{{lightradius}}} }} }}
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius{{Tooltip|This object acts as<br>a [[light source]]||nosearch}}|{{{lightradius}}} }} }}
{{#if: {{{healing|}}} | {{infobox row|Healing|{{{healing}}} }} }}
{{#if: {{{healing|}}} | {{infobox row|Healing|{{{healing}}} }} }}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{favilink id|{{{harvestedinto}}} }} }} }}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{favilink id|{{{harvestedinto}}} }} }} }}
{{#if: {{{preservedinto|}}}| {{infobox row|Preserved into|{{favilink|{{{preservedinto}}} }} x{{{preservedquantity|1}}} }} }}
{{#if: {{{preservedinto|}}}| {{infobox row|Preserved into|{{favilink id|{{{preservedinto}}} }} x{{{preservedquantity|1}}} }} }}
{{#ifeq: {{#vardefineecho:Infobox_ButcheredFrom
{{#ifeq: {{#vardefineecho:Infobox_ButcheredFrom
|{{#invoke:CargoQuery| main  
|{{#invoke:CargoQuery| main  
| table=CorpseTables  
| table=CorpseTables  
| fields=MainObjectID=id, Weight=weight
| fields=MainObjectID=id, Weight=weight, Chance=chance
| where=ObjectID="{{{id|}}}"
| where=ObjectID="{{{id|}}}"
| template=Drop rate query
| template=Drop rate query
Line 203: Line 193:
{{#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>}} }} }}
<!-- MA -->
{{#if: {{{ma|}}}      | {{infobox row|[[MA]] Bonus|+{{{ma}}} }} }}
<!--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|}}}{{{electrical|}}}{{{cold|}}}{{{heat|}}}{{{poison|}}} |
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}{{{poison|}}} |
{{infobox row|Resistance|
{{infobox row|Resistance|
{{#if: {{{acid|}}}    | <p style="color:#00C420">  {{{acid}}} Acid</p>}}{{#if: {{{electric|}}}{{{electrical|}}} | <p style="color:#CFC041"> {{{electric|}}}{{{electrical|}}} Electrical</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: {{{acid|}}}    | <p style="color:#00C420">  {{{acid}}} Acid</p>}}{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric|}}} Electrical</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: {{{mods|}}}| {{infobox row|Modifications|{{consecutive links|{{{mods|}}}|</br>|</br>}} }} }}
{{#if: {{{mods|}}}| {{infobox row|Modifications|{{consecutive links|{{{mods|}}}|</br>|</br>}} }} }}
{{#if: {{{extra|}}}|{{infobox row||Extra Info:</br>{{{extra}}} }} }}
{{#if: {{{extra|}}}|{{infobox row||Extra Info:</br>{{{extra}}} }} }}

Navigation menu