Template:Extra info: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(extra info parameters for hagadias update)
(added hidden, energycellrequired, temponenter)
Line 3: Line 3:
   Cargo Storage
   Cargo Storage


-->{{#cargo_store:_table=ExtraInfo|Info={{#ifeq: {{{isswarmer|}}}|yes|{{#if:{{{swarmbonus|}}}|Swarm Alpha: +{{{swarmbonus}}}, |Swarmer, }}
-->{{#cargo_store:_table=ExtraInfo|Info={{#ifeq: {{{isswarmer|}}}|yes|{{#if:{{{swarmbonus|}}}|Swarm Alpha: +{{{swarmbonus}}},,, |Swarmer,,, }}
}} {{#ifeq: {{{aquatic|}}}|yes|Aquatic,
}} {{#ifeq: {{{aquatic|}}}|yes|Aquatic,,,
}} {{#ifeq: {{{flyover|}}}|yes|Flyover,
}} {{#ifeq: {{{flyover|}}}|yes|Flyover,,,
}} {{#switch:{{{solid|}}}|yes=Solid, |no=NotSolid,  
}} {{#switch:{{{solid|}}}|yes=Solid,,, |no=NotSolid,,,  
}} {{#ifeq: {{{twohanded|}}}| yes |Two Handed,  
}} {{#ifeq: {{{twohanded|}}}| yes |Two Handed,,,  
}} {{#ifeq: {{{metal|}}} | yes |Metal,  
}} {{#ifeq: {{{metal|}}} | yes |Metal,,,  
}} {{#ifeq: {{{lightprojectile|}}} | yes |Light Projectiles,  
}} {{#ifeq: {{{lightprojectile|}}} | yes |Light Projectiles,,,  
}} {{#ifeq: {{{penetratingammo|}}} | yes |Penetrating Ammo,
}} {{#ifeq: {{{penetratingammo|}}} | yes |Penetrating Ammo,,,
}} {{#ifeq: {{{omniphaseprojectile|}}} | yes |Omniphase Projectiles,
}} {{#ifeq: {{{omniphaseprojectile|}}} | yes |Omniphase Projectiles,,,
}} {{#if: {{{shotcooldown|}}} |Shot cooldown {{{shotcooldown}}}
}} {{#if: {{{shotcooldown|}}} |Shot cooldown {{{shotcooldown}}},,,
}} {{#ifeq: {{{cursed|}}} | yes |Cursed,
}} {{#ifeq: {{{cursed|}}} | yes |Cursed,,,
}} {{#ifeq: {{{empsensitive|}}} | yes |EMP Sensitive,
}} {{#ifeq: {{{empsensitive|}}} | yes |EMP 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,,,
}} {{#if: {{{carrybonus|}}} |{{{carrybonus}}} to max carry weight,
}} {{#if: {{{carrybonus|}}} |{{{carrybonus}}} to max carry weight,,,
}} {{#if: {{{movespeedbonus|}}}|{{{movespeedbonus}}} Movespeed,
}} {{#if: {{{movespeedbonus|}}}|{{{movespeedbonus}}} Movespeed,,,
}} {{#switch: {{{uniquechara|}}}|yes=Unique,
}} {{#switch: {{{uniquechara|}}}|yes=Unique,,,
}} {{#switch: {{{pettable|}}}|yes=Pettable,|no=NoPettable,
}} {{#switch: {{{pettable|}}}|yes=Pettable,,,|no=NoPettable,,,
}} {{#if: {{{flametemperature|}}}|{{{flametemperature}}} flame temperature,
}} {{#if: {{{flametemperature|}}}|{{{flametemperature}}} flame temperature,,,
}} {{#if: {{{bleedliquid|}}}|{{{bleedliquid}}} blood,
}} {{#if: {{{bleedliquid|}}}|{{{bleedliquid}}} blood,,,
}} {{#if: {{{liquidburst|}}}|{{{liquidburst}}} liquid burst,
}} {{#if: {{{liquidburst|}}}|{{{liquidburst}}} liquid burst,,,
}} {{#if: {{{hidden|}}}|Hidden at {{{hidden}}},,,
}} {{#ifeq: {{{energycellrequired|}}}|yes|energy cell required,,,
}} {{#if: {{{temponenter|}}}|{{{temponenter}}}Temp on enter,,,
}} {{{extrainfo|}}} }}<!--
}} {{{extrainfo|}}} }}<!--


Line 53: Line 56:
-->{{#if:{{{liquidburst|}}}|<li>Explodes into [[{{{liquidburst}}}]] on death}}<!--
-->{{#if:{{{liquidburst|}}}|<li>Explodes into [[{{{liquidburst}}}]] on death}}<!--
-->{{#if:{{{bleedliquid|}}}|<li>Bleeds [[{{{bleedliquid}}}]] }}<!--
-->{{#if:{{{bleedliquid|}}}|<li>Bleeds [[{{{bleedliquid}}}]] }}<!--
-->{{#if: {{{hidden|}}}|<li>[[Hidden]] at difficulty {{{hidden}}}}}<!--
-->{{#ifeq: {{{energycellrequired|}}}|yes|<li>An [[Energy cell]] is required to power this item}}<!--
-->{{#if: {{{temponenter|}}}|<li>Temperature change of {{{temponenter}}}T upon contact}}<!--
-->{{#if:{{{extrainfo|}}}|<li>{{{extrainfo}}} }}
-->{{#if:{{{extrainfo|}}}|<li>{{{extrainfo}}} }}
</ul></includeonly><noinclude><!----
</ul></includeonly><noinclude><!----

Revision as of 23:09, 1 December 2019

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
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) ye 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
empsensitive yes EMP Sensitive
exoticfood yes Exotic food
destroyonunequip yes Destroyed when unequipped
spectacles yes Corrects vision
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
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)
extrainfo any other info that does not fit