Template:Extra info: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(fix example)
(gas immunity tracking)
 
(25 intermediate revisions by 2 users not shown)
Line 14: Line 14:
}} {{#if: {{{shotcooldown|}}} |Shot cooldown {{{shotcooldown}}},,,
}} {{#if: {{{shotcooldown|}}} |Shot cooldown {{{shotcooldown}}},,,
}} {{#ifeq: {{{cursed|}}} | yes |Cursed,,,
}} {{#ifeq: {{{cursed|}}} | yes |Cursed,,,
}} {{#ifeq: {{{filtersgas|}}} | yes |Filters gas,,,
}} {{#ifeq: {{{gasimmuneconfusion|}}} | yes | Confusion gas immune,,,
}} {{#ifeq: {{{gasimmunesleep|}}} | yes | Sleep gas immune,,,
}} {{#ifeq: {{{empsensitive|}}} | yes |EMP Sensitive,,,
}} {{#ifeq: {{{empsensitive|}}} | yes |EMP Sensitive,,,
}} {{#ifeq: {{{powerloadsensitive|}}} | yes |Power load-sensitive,,,
}} {{#ifeq: {{{exoticfood|}}} | yes |Exotic food,,,
}} {{#ifeq: {{{exoticfood|}}} | yes |Exotic food,,,
}} {{#ifeq: {{{destroyonunequip|}}} | yes | Destroyed when unequipped,,,
}} {{#ifeq: {{{destroyonunequip|}}} | yes | Destroyed when unequipped,,,
}} {{#ifeq: {{{spectacles|}}} | yes |Corrects Vision,,,
}} {{#ifeq: {{{spectacles|}}} | yes |Corrects Vision,,,
}} {{#ifeq: {{{refractive|}}} | yes |Refractive,,,
}} {{#ifeq: {{{flashprotection|}}} | yes |Flash protection,,,
}} {{#if: {{{carrybonus|}}} |{{{carrybonus}}}% to max carry weight,,,
}} {{#if: {{{carrybonus|}}} |{{{carrybonus}}}% to max carry weight,,,
}} {{#if: {{{movespeedbonus|}}}|{{{movespeedbonus}}} Movespeed,,,
}} {{#if: {{{movespeedbonus|}}}|{{{movespeedbonus}}} Movespeed,,,
}} {{#if: {{{savemodifier|}}}|{{{savemodifieramt}}} on saves vs. {{{savemodifier}}},,,
}} {{#switch: {{{uniquechara|}}}|yes=Unique,,,
}} {{#switch: {{{uniquechara|}}}|yes=Unique,,,
}} {{#switch: {{{pettable|}}}|yes=Pettable,,,|no=NoPettable,,,
}} {{#switch: {{{pettable|}}}|yes=Pettable,,,|no=NoPettable,,,
Line 27: Line 34:
}} {{#if: {{{hidden|}}}|Hidden at {{{hidden}}},,,
}} {{#if: {{{hidden|}}}|Hidden at {{{hidden}}},,,
}} {{#ifeq: {{{energycellrequired|}}}|yes|energy cell required,,,
}} {{#ifeq: {{{energycellrequired|}}}|yes|energy cell required,,,
}} {{#ifeq: {{{energyammoloader|}}}|yes|EnergyAmmoLoader,,,
}} {{#if: {{{temponenter|}}}|{{{temponenter}}}Temp on enter,,,
}} {{#if: {{{temponenter|}}}|{{{temponenter}}}Temp on enter,,,
}} {{#ifeq: {{{isoccluding|}}}| yes| Occluding,,,
}} {{#ifeq: {{{isoccluding|}}}| yes| Occluding,,,
Line 37: Line 45:
}} {{#if: {{{mutatedplant|}}} |Mutated plant,,,
}} {{#if: {{{mutatedplant|}}} |Mutated plant,,,
}} {{#if: {{{animatable|}}} |Animatable,,,
}} {{#if: {{{animatable|}}} |Animatable,,,
}} {{#if: {{{enclosing|}}} |Enclosing,,,
}} {{#if: {{{shrinelike|}}} |Shrinelike,,,
}} {{#if: {{{hurtbyfungicide|}}} |{{#switch:{{{hurtbyfungicide}}}|1=normal|2=significant}} damage by fungicide,,,
}} {{#if: {{{hurtbyfungicide|}}} |{{#switch:{{{hurtbyfungicide}}}|1=normal|2=significant}} damage by fungicide,,,
}} {{#if: {{{hurtbydefoliant|}}} |{{#switch:{{{hurtbydefoliant}}}|1=normal|2=significant}} damage by defoliant,,,
}} {{#if: {{{hurtbydefoliant|}}} |{{#switch:{{{hurtbydefoliant}}}|1=normal|2=significant}} damage by defoliant,,,
}} {{#ifeq: {{{hasmentalshield|}}} | yes | mental shield,,,
}} {{#ifeq: {{{hasmentalshield|}}} | yes | mental shield,,,
}} {{#ifeq: {{{unreplicable|}}} | yes |Unreplicable,,,
}} {{#if: {{{bodytype|}}} | bodytype:,,,
}} {{#if: {{{bodytype|}}} | bodytype:,,,
}}{{{extrainfo|}}}  
}}{{{extrainfo|}}}  
Line 61: Line 72:
-->{{#ifeq: {{{penetratingammo|}}} | yes |<li>Projectiles penetrate through targets}}<!--
-->{{#ifeq: {{{penetratingammo|}}} | yes |<li>Projectiles penetrate through targets}}<!--
-->{{#ifeq: {{{omniphaseprojectile|}}} | yes |<li>[[Omniphase]] projectiles}}<!--
-->{{#ifeq: {{{omniphaseprojectile|}}} | yes |<li>[[Omniphase]] projectiles}}<!--
-->{{#if: {{{shotcooldown|}}} |<li>Must cooldown for {{dice tooltip| {{{shotcooldown}}} }} turns after use}}<!--
-->{{#if: {{{shotcooldown|}}} |<li>Must cooldown for {{dice tooltip|{{{shotcooldown}}}}} turns after use}}<!--
-->{{#ifeq: {{{cursed|}}} | yes |<li>[[Item Properties#Cannot be removed once equipped|Cannot be removed once equipped]]}}<!--
-->{{#ifeq: {{{cursed|}}} | yes |<li>[[Item Properties#Cannot be removed once equipped|Cannot be removed once equipped]]}}<!--
-->{{#ifeq: {{{empsensitive|}}} | yes |<li>[[Properties#EMP_Sensitive|EMP Sensitive]]}}<!--
-->{{#ifeq: {{{filtersgas|}}} | yes |<li>Acts as a gas mask}}<!--
-->{{#ifeq: {{{gasimmuneconfusion|}}} | yes |<li>Immune to [[confusion gas]]}}<!--
-->{{#ifeq: {{{gasimmunesleep|}}} | yes |<li>Immune to [[sleep gas]]}}<!--
-->{{#ifeq: {{{empsensitive|}}} | yes |<li>[[Properties#EMP_Sensitive|EMP sensitive]]}}<!--
-->{{#ifeq: {{{powerloadsensitive|}}} | yes |<li>[[Overloaded|Power load-sensitive]]}}<!--
-->{{#ifeq: {{{exoticfood|}}} | yes |<li>Exotic food}}<!--
-->{{#ifeq: {{{exoticfood|}}} | yes |<li>Exotic food}}<!--
-->{{#ifeq: {{{destroyonunequip|}}} | yes |<li>Destroyed when unequipped}}<!--
-->{{#ifeq: {{{destroyonunequip|}}} | yes |<li>Destroyed when unequipped}}<!--
-->{{#ifeq: {{{spectacles|}}} | yes |<li>[[Corrected vision|Corrects vision]]}}<!--
-->{{#ifeq: {{{spectacles|}}} | yes |<li>[[Corrected vision|Corrects vision]]}}<!--
-->{{#ifeq: {{{refractive|}}} | yes |<li>[[Refract]]s light-based attacks}}<!--
-->{{#ifeq: {{{flashprotection|}}} | yes |<li>Protects against [[visual flash effects]]}}<!--
-->{{#if: {{{carrybonus|}}} |<li>{{{carrybonus}}}% to max carry weight}}<!--
-->{{#if: {{{carrybonus|}}} |<li>{{{carrybonus}}}% to max carry weight}}<!--
-->{{#if:{{{reflect|}}}|<li>Reflects {{{reflect}}}% of damage, rounded up}}<!--
-->{{#if:{{{reflect|}}}|<li>Reflects {{{reflect}}}% of damage, rounded up}}<!--
Line 79: Line 96:
-->{{#if: {{{temponenter|}}}|<li>{{{temponenter}}}° temperature change caused by projectile entering cell }}<!--
-->{{#if: {{{temponenter|}}}|<li>{{{temponenter}}}° temperature change caused by projectile entering cell }}<!--
-->{{#if: {{{temponhit|}}}|<li>{{{temponhit}}}° temperature change caused on hit {{#if: {{{temponhitmax|}}}|(limit {{{temponhitmax}}}°)}} }}<!--
-->{{#if: {{{temponhit|}}}|<li>{{{temponhit}}}° temperature change caused on hit {{#if: {{{temponhitmax|}}}|(limit {{{temponhitmax}}}°)}} }}<!--
-->{{#if: {{{capacitorcharge|}}}|<li>Has a [[capacitor]] ({{{capacitorrate}}} recharge per turn up to max {{{capacitormax}}}; starts with {{dice tooltip|{{{capacitorcharge}}}}} charge) }}<!--
-->{{#if: {{{chargeconsumebroadcast|}}}|<li>Can receive [[broadcast power]], up to {{{chargeconsumebroadcast}}} charge per turn }}<!--
-->{{#if: {{{chargeconsumeelectrical|}}}|<li>Can receive electrical grid power, up to {{{chargeconsumeelectrical}}} charge per turn }}<!--
-->{{#if: {{{chargeconsumehydraulic|}}}|<li>Can receive [[hydraulic power]], up to {{{chargeconsumehydraulic}}} charge per turn }}<!--
-->{{#if: {{{chargeconsumemechanical|}}}|<li>Can receive transmitted [[mechanical power]], up to {{{chargeconsumemechanical}}} charge per turn }}<!--
-->{{#if: {{{chargeproducebroadcast|}}}|<li>Produces [[broadcast power]] in its vicinity }}<!--
-->{{#if: {{{chargeproduceelectric|}}}|<li>Produces {{{chargeproduceelectric}}} charge on its electrical grid per turn }}<!--
-->{{#if: {{{chargeproducehydraulic|}}}|<li>Produces {{{chargeproducehydraulic}}} charge on its [[hydraulic power]] grid per turn }}<!--
-->{{#if: {{{chargeproducemechanical|}}}|<li>Produces {{{chargeproducemechanical}}} charge as [[mechanical power]] per turn }}<!--
-->{{#if: {{{chargeproducesolar|}}}|<li>Can absorb up to {{{chargeproducesolar}}} charge per turn from solar power }}<!--
-->{{#ifeq: {{{isoccluding|}}}| yes |<li>This object is [[occluding]]
-->{{#ifeq: {{{isoccluding|}}}| yes |<li>This object is [[occluding]]
}}<!--
}}<!--
Line 95: Line 122:
-->{{#if:{{{weight|}}} |<li>{{#ifeq:{{{weight}}}|0|Weightless|Weighs {{{weight}}} {{#ifeq:{{{weight}}}|1|lb|lbs}} }} }}<!--
-->{{#if:{{{weight|}}} |<li>{{#ifeq:{{{weight}}}|0|Weightless|Weighs {{{weight}}} {{#ifeq:{{{weight}}}|1|lb|lbs}} }} }}<!--
-->{{#if: {{{animatable|}}} |<li>Can be [[animated]]}}<!--
-->{{#if: {{{animatable|}}} |<li>Can be [[animated]]}}<!--
-->{{#if: {{{enclosing|}}} |<li>Is an [[enclosed|enclosing]] object}}<!--
-->{{#if: {{{shrinelike|}}} |<li>Can be [[desecrated]]}}<!--
-->{{#if: {{{hurtbyfungicide|}}} |<li> Damaged {{#switch:{{{hurtbyfungicide}}}|1=normally|2=significantly}} by [[fungicide]]}}<!--
-->{{#if: {{{hurtbyfungicide|}}} |<li> Damaged {{#switch:{{{hurtbyfungicide}}}|1=normally|2=significantly}} by [[fungicide]]}}<!--
-->{{#if: {{{hurtbydefoliant|}}} |<li> Damaged {{#switch:{{{hurtbydefoliant}}}|1=normally|2=significantly}} by [[defoliant]]
-->{{#if: {{{hurtbydefoliant|}}} |<li> Damaged {{#switch:{{{hurtbydefoliant}}}|1=normally|2=significantly}} by [[defoliant]]
}}<!--
}}<!--
-->{{#if: {{{savemodifier|}}}|<li> {{{savemodifieramt}}} on [[saves]] vs. {{{savemodifier}}}}}<!--
-->{{#if: {{{unreplicable|}}}|<li> Cannot be replicated by [[metamorphic polygel]]}}<!--
-->{{#ifeq: {{{hasmentalshield|}}} | yes |<li> Has a [[mental shield]]
-->{{#ifeq: {{{hasmentalshield|}}} | yes |<li> Has a [[mental shield]]
}}<!--
}}<!--
Line 105: Line 136:


-->{{#if: {{{bodytype|}}}
-->{{#if: {{{bodytype|}}}
|<div style="padding:1em 0em;"><hr></div><b>Limbs*:</b>
|<div class="searchaux"><div style="padding:1em 0em;"><hr></div><b>Limbs* ({{{bodytype}}}):</b>
<ul><li>Body [[List of Body Parts#Body|(Body)]]</li><li>Floating Nearby [[List of Body Parts#Floating_Nearby|(Floating Nearby)]]</li>
{{#invoke:CargoQuery|main
{{#invoke:CargoQuery|main
  |table=Anatomies=A
  |table=Anatomies=A
  | where = Name="{{{bodytype}}}"
  | where = Name="{{{bodytype}}}"
  |fields=CONCAT("<li> [[List of Body Parts#", BaseType, "{{!}}", COALESCE(CONCAT(Laterality, " "), ""), Type, "]]", (CASE WHEN childType <> "" THEN CONCAT("<ul><li> [[List of Body Parts#", childBaseType, "{{!}}", COALESCE(CONCAT(childLaterality, " "), ""), childType, "]]</ul>") ELSE "" END))=Page
  |fields=CONCAT("<li>", COALESCE(CONCAT(Laterality, " "), ""), Type, " [[List of Body Parts#", BaseType, "{{!}}(",BaseType,")]]", (CASE WHEN childType <> "" THEN CONCAT("<ul><li>", COALESCE(CONCAT(childLaterality, " "), ""), childType, " [[List of Body Parts#", childBaseType, "{{!}}(", childBaseType, ")]]</ul>") ELSE "" END))=Page
  | format=ul
  | orderBy=BaseType
  | template=single query result
  | template=single query result
  | limit = 10
  | limit = 20
}}
| default = Oops, this anatomy doesn't exist![[Category:Pages with missing anatomies]]
<small>*(From body plan {{{bodytype}}}. Excludes limbs granted via mutations)</small>}}
}}</ul>
<small>* Excludes limbs granted via mutations</small></div>}}
</includeonly><noinclude><!----
</includeonly><noinclude><!----


Line 176: Line 209:
| yes
| yes
| [[Item Properties#Cannot be removed once equipped|Cannot be removed once equipped]]
| [[Item Properties#Cannot be removed once equipped|Cannot be removed once equipped]]
|-
| filtersgas
| yes
| Acts as a gas mask (see [[fitted with filters]])
|-
| gasimmuneconfusion
| yes
| Immune to [[confusion gas]]
|-
| gasimmunesleep
| yes
| Immune to [[sleep gas]]
|-
|-
| empsensitive
| empsensitive
| yes
| yes
| [[Properties#EMP_Sensitive|EMP Sensitive]]
| [[Properties#EMP_Sensitive|EMP sensitive]]
|-
| powerloadsensitive
| yes
| [[Overloaded|Power load-sensitive]]
|-
|-
| exoticfood
| exoticfood
Line 192: Line 241:
| yes
| yes
| [[Corrected vision|Corrects vision]]
| [[Corrected vision|Corrects vision]]
|-
| refractive
| yes
| [[Refract]]s light-based attacks
|-
| flashprotection
| yes
| Protects against [[visual flash effects]]
|-
|-
| carrybonus
| carrybonus
Line 240: Line 297:
| yes
| yes
| An [[Energy cell]] is required to power this item
| An [[Energy cell]] is required to power this item
|-
|energyammoloader
| yes
| True if this item has the EnergyAmmoLoader part (used for some mod logic)
|-
|-
|waterritualable
|waterritualable
Line 268: Line 329:
| dice string
| dice string
| {{{temponhit}}}° temperature change caused on hit (limit {{{temponhitmax}}}°)
| {{{temponhit}}}° temperature change caused on hit (limit {{{temponhitmax}}}°)
|-
| capacitorcharge, capacitormax, capacitorrate
| dice string, integer, integer
| Has a [[capacitor]] ({{{capacitorrate}}} recharge per turn up to max {{{capacitormax}}}; starts with {{{capacitorcharge}}} charge)
|-
| chargeconsumebroadcast
| integer
| Can receive broadcast power, up to {{{chargeconsumebroadcast}}} charge per turn
|-
| chargeconsumeelectrical
| integer
| Can receive electrical grid power, up to {{{chargeconsumeelectrical}}} charge per turn
|-
| chargeconsumehydraulic
| integer
| Can receive hydraulic grid power, up to {{{chargeconsumehydraulic}}} charge per turn
|-
| chargeconsumemechanical
| integer
| Can receive mechanical power, up to {{{chargeconsumemechanical}}} charge per turn
|-
| chargeproducebroadcast
| boolean
| Produces broadcast power in its vicinity
|-
| chargeproduceelectric
| integer
| Produces {{{chargeproduceelectric}}} charge on its electrical grid per turn
|-
| chargeproducehydraulic
| integer
| Produces {{{chargeproducehydraulic}}} charge on its hydraulic grid per turn
|-
| chargeproducemechanical
| integer
| Produces {{{chargeproducemechanical}}} charge as mechanical power per turn
|-
| chargeproducesolar
| integer
| Can absorbs up to {{{chargeproducesolar}}} charge per turn from solar power
|-
|-
| poisononhit
| poisononhit
Line 280: Line 381:
| yes
| yes
| Can be [[animated]]
| Can be [[animated]]
|-
| enclosing
| yes
| Is an [[enclosed|enclosing]] object.
|-
| shrinelike
| yes
| Can be [[desecrated]]
|-
|-
| hurtbyfungicide and hurtbydefoliant
| hurtbyfungicide and hurtbydefoliant
| 1 or 2
| 1 or 2
| Damaged normally/significantly from fungicide/defoliant
| Damaged normally/significantly from fungicide/defoliant
|-
| unreplicable
| yes
| Cannot be replicated by [[metamorphic polygel]]
|-
|-
| hasmentalshield
| hasmentalshield

Latest revision as of 22:02, 19 January 2024

This template defines the table "ExtraInfo". View table.To be used only in the Extra variable in Template:Character and Template:Item.

variable possible values output
weight int Weighs {{{weight}}} lbs
aquatic yes This creature is aquatic.
isswarmer (if swarmbonus not specified) yes Swarmer: This creature receives +1 to its to-hit and penetration rolls for each other swarmer beyond the first who is adjacent to its target.
swarmbonus (and isswarmer is specified) yes Swarm Alpha: As long as this creature is adjacent to its target, it grants +{{{swarmbonus}}} to the swarm bonuses of each other swarmer who is adjacent to its target.
flyover yes Can be flown over.
solid yes/no Can/cannot be walked on/through
twohanded yes Requires two hands to wield
metal yes Made out of Metal
lightprojectile yes Light projectiles
shotcooldown dice string (ex: 1d4) Cooldown turns required between missile weapon shots
penetratingammo yes Projectile penetrates through targets
omniphaseprojectile yes Projectile is omniphase (can hit creatures regardless of phase)
cursed yes Cannot be removed once equipped
filtersgas yes Acts as a gas mask (see fitted with filters)
gasimmuneconfusion yes Immune to confusion gas
gasimmunesleep yes Immune to sleep gas
empsensitive yes EMP sensitive
powerloadsensitive yes Power load-sensitive
exoticfood yes Exotic food
destroyonunequip yes Destroyed when unequipped
spectacles yes Corrects vision
refractive yes Refracts light-based attacks
flashprotection yes Protects against visual flash effects
carrybonus integer +(number)% to max carry weight
savemodifier, savemodifieramt string,int (number) vs. (savemodifier)
reflect int Reflects {{{reflect}}}% of damage, rounded up
movespeedbonus int {{{movespeedbonus}}} Movespeed
isoccluding yes This object is occluding
leakswhenbroken int Leaks when broken ({{{leakswhenbroken}}}% per turn)
uniquechara yes This creature is unique
pettable yes/no This creature is/is not pettable
liquidburst liquid name Explodes into (liquid) on death
flametemperature int Bursts into flames at (number)T
bleedliquid liquid name Bleeds (liquid)
energycellrequired yes An Energy cell is required to power this item
energyammoloader yes True if this item has the EnergyAmmoLoader part (used for some mod logic)
waterritualable yes This creature can perform the Water Ritual
iscurrency yes This item has a fixed price while trading
noprone yes Cannot be knocked prone
phase out of phase, omniphase, nullphase Is (phase type)
realitydistortionbased yes Reality distortion-based
temponenter dice string {{{temponenter}}}° temperature change caused by projectile entering cell
temponhit, temponhitmax dice string {{{temponhit}}}° temperature change caused on hit (limit {{{temponhitmax}}}°)
capacitorcharge, capacitormax, capacitorrate dice string, integer, integer Has a capacitor ({{{capacitorrate}}} recharge per turn up to max {{{capacitormax}}}; starts with {{{capacitorcharge}}} charge)
chargeconsumebroadcast integer Can receive broadcast power, up to {{{chargeconsumebroadcast}}} charge per turn
chargeconsumeelectrical integer Can receive electrical grid power, up to {{{chargeconsumeelectrical}}} charge per turn
chargeconsumehydraulic integer Can receive hydraulic grid power, up to {{{chargeconsumehydraulic}}} charge per turn
chargeconsumemechanical integer Can receive mechanical power, up to {{{chargeconsumemechanical}}} charge per turn
chargeproducebroadcast boolean Produces broadcast power in its vicinity
chargeproduceelectric integer Produces {{{chargeproduceelectric}}} charge on its electrical grid per turn
chargeproducehydraulic integer Produces {{{chargeproducehydraulic}}} charge on its hydraulic grid per turn
chargeproducemechanical integer Produces {{{chargeproducemechanical}}} charge as mechanical power per turn
chargeproducesolar integer Can absorbs up to {{{chargeproducesolar}}} charge per turn from solar power
poisononhit string (string describing poison on hit effect)
mutatedplant yes (not shown in infobox, but stored in cargo as "Mutated plant" - this info is needed for conditional defoliant gas damage behavior)
animatable yes Can be animated
enclosing yes Is an enclosing object.
shrinelike yes Can be desecrated
hurtbyfungicide and hurtbydefoliant 1 or 2 Damaged normally/significantly from fungicide/defoliant
unreplicable yes Cannot be replicated by metamorphic polygel
hasmentalshield yes Has a mental shield
extrainfo any other info that does not fit

Example

extra = {{Extra info|weight = 200 | noprone = yes | hasmentalshield = yes | bodytype = SlugWithHands}}
Extra info
Extra info:

Limbs* (SlugWithHands): * Excludes limbs granted via mutations