Template:Character: Difference between revisions

store throwability in cargo
(changed qud quote to qud look)
(store throwability in cargo)
 
(139 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=Characters|Title=Wikitext|Factions=List (,) of String|Level=Integer|HP=Integer|AV=Integer|DV=Integer|MA=Integer|StrengthBase=Integer|StrengthDice=String|StrengthTierDice=String|AgilityBase=Integer|AgilityDice=String|AgilityTierDice=String|ToughnessBase=Integer|ToughnessDice=String|ToughnessTierDice=String|IntelligenceBase=Integer|IntelligenceDice=String|IntelligenceTierDice=String|WillpowerBase=Integer|WillpowerDice=String|WillpowerTierDice=String|EgoBase=Integer|EgoDice=String|EgoTierDice=String|AcidResist=Integer|ElectricResist=Integer|HeatResist=Integer|ColdResist=Integer|Gender=String|Pronouns=String|Description=Wikitext|Corpse=Page|CorpseChance=Integer|MoveSpeed=Integer|Demeanor=String (allowed values=docile,aggressive,neutral)|Skills=List (</br>) of Page|Mutations=List (</br>) of Page}}</noinclude>
<includeonly><!--
<includeonly>
 
{{#cargo_store:_table=Characters|Title={{{title|{{PAGENAME}}}}}|Factions={{{faction|}}}|Level={{{level|}}}|HP={{{hp|}}}|AV={{{av|}}}|DV={{{dv|}}}|MA={{{ma|}}}|StrengthBase={{{strength|}}}|StrengthDice={{{strengthdice|}}}|StrengthTierDice={{{strengthtierdice|}}}|AgilityBase={{{agility|}}}|AgilityDice={{{agilitydice|}}}|AgilityTierDice={{{agilitytierdice|}}}|ToughnessBase={{{toughness|}}}|ToughnessDice={{{toughnessdice|}}}|ToughnessTierDice={{{toughnesstierdice|}}}|IntelligenceBase={{{intelligence|}}}|IntelligenceDice={{{intelligencedice|}}}|IntelligenceTierDice={{{intelligencetierdice|}}}|WillpowerBase={{{willpower|}}}|WillpowerDice={{{willpowerdiece|}}}|WillpowerTierDice={{{willpowertierdice|}}}|EgoBase={{{ego|}}}|EgoDice={{{egodice|}}}|EgoTierDice={{{egotierdice|}}}|AcidResist={{{acid|}}}|ElectricResist={{{electric|}}}|HeatResist={{{heat|}}}|ColdResist={{{cold|}}}|Gender={{{gender|}}}|Pronouns={{{pronouns|}}}|Description={{{desc|}}}|Corpse={{{corpse|}}}|CorpseChance={{{corpsechance|0}}}|MoveSpeed={{{movespeed|}}}|Demeanor={{{demeanor|neutral}}}|Skills={{{skills|}}}|Mutations={{{mutations|}}}}}
  Article Variable definitions for convenience
[[Category:Creatures]]
 
{{#invoke:infobox|infobox
-->{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}<!--
| rows =  
-->{{#vardefine:plainname|{{#titleparts:{{PAGENAME}}}}}}<!--
{{#if: {{{faction|}}} | {{infobox row|label=Faction|field={{{faction}}} }} }}
-->{{#vardefine:dynamicstats|{{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}}}<!--
{{#if: {{{level|}}}   | {{infobox row|Level|{{{level}}} }} }}
-->{{#vardefine:needsdetailedstats|{{#ifexpr: {{formatnum:{{#if:{{#var:dynamicstats}}|1|0}}}} > 0 or {{formatnum:{{{xpvalue|0}}}|R}} > 0|yes|no}}}}<!--
{{#if: {{{hp|}}}      | {{infobox row|HP|{{{hp}}} }} }}
-->{{#vardefine:id|{{{wikiidoverride|{{{id|}}}}}} }}</includeonly><!--
{{#if: {{{av|}}}     | {{infobox row|AV|{{{av}}} }} }}
 
{{#if: {{{dv|}}}     | {{infobox row|DV|{{{dv}}} }} }}
  Cargo Declare
{{#if: {{{ma|}}}      | {{infobox row|MA|{{{ma}}} }} }}
 
{{#if: {{{movespeed|}}}| {{infobox row|[[Movement Speed]]|{{{movespeed}}} }} }}
--><noinclude>[[Category:Cargo Store Templates]]
<!--Makes the attributes box show up if *any* of the attributes are filled out-->
{{#cargo_declare:_table=Characters
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} |
|Level=Integer
{{infobox row|Attributes|
|HP=Integer
{{#if: {{{strength|}}}     | <p style="color:#FFFFFF">  {{{strength}}} Strength}}
|AV=Integer
{{#if: {{{agility|}}}     | <p style="color:#CFC041">  {{{agility}}} Agility}}
|DV=Integer
{{#if: {{{toughness|}}}   | <p style="color:#D74200">    {{{toughness}}} Toughness}}
|MA=Integer|MARange=String
{{#if: {{{intelligence|}}} | <p style="color:rgb(51,102,255)">    {{{intelligence}}} Intelligence}}
|Strength=String|Agility=String|Toughness=String
{{#if: {{{willpower|}}}   | <p style="color:#00C420">    {{{willpower}}} Willpower}}
|Intelligence=String|Willpower=String|Ego=String
{{#if: {{{ego|}}}         | <p style="color:#DA5BD6"> {{{ego}}} Ego}} }} }}
|StrengthMult=Float|AgilityMult=Float|ToughnessMult=Float
<!--Makes the resistances box show up if *any* of the resistances are filled out-->
|IntelligenceMult=Float|WillpowerMult=Float|EgoMult=Float
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}} |
|XPValue=Integer
{{infobox row|Resistance|
|XPTier=Integer
{{#if: {{{acid|}}}     | <p style="color:#00C420">  {{{acid}}} Acid</p>}}
|Gender=String
{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric}}} Electric</p>}}
|Pronouns=String
{{#if: {{{cold|}}}     | <p style="color:#0096FF">  {{{cold}}} Cold</p>}}
|Description=Wikitext
{{#if: {{{heat|}}}     | <p style="color:#D74200">    {{{heat}}} Heat</p>}} }} }}
|Corpse=String
{{#if: {{{demeanor|}}} | {{infobox row|Demeanor|{{{demeanor|neutral}}} }} }}
|CorpseChance=Integer
{{#if: {{{corpse|}}}   | {{infobox row|Corpse Dropped|{{{corpse}}}({{{corpsechance|0}}}%) }} }}
|MoveSpeed=Integer
{{#if: {{{inventory|}}}| {{infobox row|Guaranteed Items|{{{inventory}}} }} }}
|Demeanor=String (allowed values=docile,aggressive,neutral)
{{#if: {{{skills|}}}   | {{infobox row|Skills|{{{skills}}} }} }}
|Skills=List (</br>) of Page
{{#if: {{{mutations|}}}| {{infobox row|Mutations|{{{mutations}}} }} }}    
|Quickness=Integer
{{#if: {{{gender|}}}   | {{infobox row|Gender and</br>pronouns|[[Gender and Pronouns#{{{gender}}}{{!}}{{{gender}}}]] {{#if: {{{pronouns|}}}|([[Gender and Pronouns#{{{pronouns}}}{{!}}{{{pronouns}}}]])}}}}}}  
|HarvestedInto=Page
|Role=String
|JoinKey=String
|ObjectID=String}}
 
{{#cargo_attach:
_table = GeneralData
}}
 
</noinclude><!--
 
  Cargo Store
 
--><includeonly>{{#cargo_store:_table=Characters
|Level={{{lv|}}}
|HP={{{hp|}}}
|AV={{{av|}}}
|DV={{{dv|}}}
|MA={{{ma|}}}
|MARange={{{marange|}}}
|Strength={{{strength|}}}
|StrengthMult={{{strengthmult|}}}
|Agility={{{agility|}}}
|AgilityMult={{{agilitymult|}}}
|Toughness={{{toughness|}}}
|ToughnessMult={{{toughnessmult|}}}
|Intelligence={{{intelligence|}}}
|IntelligenceMult={{{intelligencemult|}}}
|Willpower={{{willpower|}}}
|WillpowerMult={{{willpowermult|}}}
|Ego={{{ego|}}}
|EgoMult={{{egomult|}}}
|XPValue={{{xpvalue|}}}|XPTier={{{xptier|}}}
|Gender={{{gender|}}}|Pronouns={{{pronouns|}}}
|Description={{{desc|}}}
|Corpse={{{corpse|}}}|CorpseChance={{{corpsechance|0}}}
|MoveSpeed={{{movespeed|100}}}
|Demeanor={{{demeanor|neutral}}}
|Skills={{{skills|}}}
|Mutations={{{mutations|}}}
|Quickness={{{quickness|100}}}
|HarvestedInto={{{harvestedinto|}}}
|Role={{{role|}}}
|JoinKey={{FULLPAGENAME}}
|ObjectID={{{wikiidoverride|{{{id|}}}}}} }}<!--
 
  General Data Cargo Store
 
-->{{#cargo_store:_table=GeneralData
|ObjectID={{{wikiidoverride|{{{id|}}}}}}
|DisplayName={{{title|{{PAGENAME}}}}}
|Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}
|PlainName={{StripFormatting|1={{{title|{{#titleparts:{{PAGENAME}}}} }}} }}
|DisplayChar={{qud char|{{{colorstr|}}}|{{{renderstr|}}}}}
|Weight={{{weight|}}}
|Tier={{{tier|}}}
|Categories={{{categories|}}}
|ParentObject={{{inheritingfrom|}}}
|Aliases={{#var:aliases|}}
|IDAliases={{#var:idaliases|}}
|JoinKey={{FULLPAGENAME}}
|Description={{grammar|text={{{desc}}}|gender={{{gender|nonspecific}}}|pronouns={{{pronouns|}}} }} }}<!--
 
  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|}}}{{{seeping|}}}{{{inhaled|}}}{{{maxvol|}}}{{{liquidgentype|}}}{{{liquidgenrate|}}}|{{Physical_properties_data_store|acid={{{acid|}}}|electric={{{electric|}}}|heat={{{heat|}}}|cold={{{cold|}}}|lightradius={{{lightradius|}}}|throwable=|seeping={{{seeping|}}}|inhaled={{{inhaled|}}}|volume={{{maxvol|}}}|liquidgentype={{{liquidgentype|}}}|liquidgenrate={{{liquidgenrate|}}}}}}}<!--
 
  Modability Data Cargo Storage:
 
-->{{#if: {{{supportedmods|}}}|{{Modability_data_store|id={{{wikiidoverride|{{{id|}}}}}}|supportedmods={{{supportedmods}}}}}}}<!--
 
  Furniture Data Cargo Storage:
 
-->{{#if: {{{chairlevel|}}}|{{Furniture_data_store|chairlevel={{{chairlevel|}}}}}}}<!--
 
  Infobox Start
 
-->{{#invoke:infobox|infobox
| class = qud-character-infobox
| imagearea =
{{#if: {{{overrideimages|}}} | {{{overrideimages}}} |
  {{#switch: {{{image|none}}}
  | none = {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }}
  | #default = {{#ifexist: File:{{{image|}}} |{{#if:{{{gif|}}}|{{infobox image and gif|{{{image}}}|{{{gif}}}|{{PAGENAME}}}}}}| {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} }}
  }}
}}
| rows =
<!----------------------------------------
 
      CORE STATS  (HP/AV/DV/Level)
 
----------------------------------------->
{{#if: {{#pos: {{{hp|~}}}{{{av|~}}}{{{dv|~}}} | ~ }}
| <!-- Don't create stat table if HP, AV, or DV are missing -->
|{{infobox row|class=qud-core-stats navigation-not-searchable|field=
{{Character/CoreStats | hp={{{hp}}}| av={{{av}}}| dv={{{dv}}}}}
}} <!-- end infobox row -->
}} <!-- end #if -->
{{#if: {{{lv|}}} | {{infobox row|class=qud-character-level navigation-not-searchable|field={{Character/Level | {{{lv}}} }} }} }}
<!----------------------------------------
 
      ATTRIBUTES
 
----------------------------------------->
{{infobox row|class=qud-attributes navigation-not-searchable|field=
<!----------------------------------------
          ATTRIBUTES (Desktop / Fullscreen)
----------------------------------------->
<div class="nomobile">
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the "toggle detailed stats" button if XP > 0 or there are variable stats. -->
<div class="qud-attributes-header-row">
<div class="qud-attributes-header-button mw-customtoggle-qud-basic-attributes mw-customtoggle-qud-detailed-attributes" title="Show full stat possibilities">toggle detailed stats</div>
</div>
<div class="mw-collapsible" id="mw-customcollapsible-qud-basic-attributes">
}} <!-- end #if -->
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}}
| <!-- Only create attributes block if at least one stat is specified -->
<div class="qud-attributes-wrapper">
<div class="qud-attributes-row">
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
{{Character/Attribute|Strength|ST|{{{strength|}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}}
{{Character/Attribute|Quickness|QN|{{{quickness|100}}}|Quickness}}
</div>
<div class="qud-attributes-row">
{{Character/Attribute|Toughness|TO|{{{toughness|}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}}
{{Character/Attribute|Movespeed|MS|{{{movespeed|100}}}|Movement Speed}}
</div>
<div class="qud-attributes-row">
{{Character/Attribute|Intelligence|IN|{{{intelligence|}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}}
{{Character/Attribute|Mental Armor|MA|{{{marange|{{{ma|}}}}}}|MA}}
</div>
</div>
{{#ifeq: {{#var:needsdetailedstats}}|yes|</div>}}
}} <!-- end #if -->
<!----------------------------------------
          DETAILED ATTRIBUTES (Desktop / Fullscreen)
----------------------------------------->
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the detailed stats block if there are variable stats. -->
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-qud-detailed-attributes" style="width:260px;">
<div class="mw-collapsible-content" style="display:none;">
<div class="qud-stat-details-wrapper">
{{ Character/DetailedAttributeHeader }}
{{#if: {{{strength|}}}    | {{ Character/DetailedAttribute | Strength    |{{{strength}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    |{{{agility}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  |{{{toughness}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence|{{{intelligence}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  |{{{willpower}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        |{{{ego}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}} | }}
</div>
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}
}}
</div>
</div>
}} <!-- end #if -->
</div> <!-- end nomobile -->
<!----------------------------------------
          ATTRIBUTES (Mobile)
----------------------------------------->
<div class="mobileonly">
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the "toggle detailed stats" button if there are variable stats. -->
<div class="qud-attributes-header-row">
<div class="qud-attributes-header-button collapsetoggle-custom collapsible-qud-basic-attributes-toggle collapsible-qud-detailed-attributes-toggle" title="Show full stat possibilities">toggle detailed stats</div>
</div>
<div class="collapsible" id="collapsible-qud-basic-attributes" data-expandtext="toggle detailed stats" data-collapsetext="toggle detailed stats">
}} <!-- end #if -->
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}}
| <!-- Only create attributes block if at least one stat is specified -->
<div class="qud-attributes-wrapper collapsible-content">
<div class="qud-attributes-row">
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
{{Character/Attribute|Strength|ST|{{{strength|}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}}
{{Character/Attribute|Quickness|QN|{{{quickness|100}}}|Quickness}}
</div>
<div class="qud-attributes-row">
{{Character/Attribute|Toughness|TO|{{{toughness|}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}}
{{Character/Attribute|Movespeed|MS|{{{movespeed|100}}}|Movement Speed}}
</div>
<div class="qud-attributes-row">
{{Character/Attribute|Intelligence|IN|{{{intelligence|}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}}
{{Character/Attribute|Mental Armor|MA|{{{marange|{{{ma|}}}}}}|Attributes}}
</div>
</div>
{{#ifeq: {{#var:needsdetailedstats}}|yes|</div>}}
}} <!-- end #if -->
<!----------------------------------------
          DETAILED ATTRIBUTES (Mobile)
----------------------------------------->
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the detailed stats block if there are variable stats. To test this, we just check if there's a "d" in the stat string indicating a dice roll -->
<div class="collapsible collapsed" id="collapsible-qud-detailed-attributes" data-expandtext="toggle detailed stats" data-collapsetext="toggle detailed stats">
<div class="collapsible-content">
<div class="qud-stat-details-wrapper">
{{ Character/DetailedAttributeHeader }}
{{#if: {{{strength|}}}    | {{ Character/DetailedAttribute | Strength    |{{{strength}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    |{{{agility}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  |{{{toughness}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence|{{{intelligence}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  |{{{willpower}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        |{{{ego}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}} | }}
</div>
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}
}}
</div>
</div>
}} <!-- end #if -->
</div> <!-- end mobileonly -->
}} <!-- end infobox row -->
<!----------------------------------------
 
      RESISTANCES
 
----------------------------------------->
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}
| <!-- Only create resistances block if at least one resistance is specified -->
{{infobox row|class=qud-resistances navigation-not-searchable|field=
<div class="qud-resistances-wrapper">
{{ Character/Resistance |Acid|{{{acid|0}}}}}
{{ Character/Resistance |Elec|{{{electric|0}}}}}
{{ Character/Resistance |Cold|{{{cold|0}}}}}
{{ Character/Resistance |Heat|{{{heat|0}}}}}
</div>
}} <!-- end infobox row -->
}} <!-- end #if -->
<!----------------------------------------
 
      GENERIC DATA
 
      This is a good place to add new rows
 
----------------------------------------->
{{#ifeq: {{{featureweightinfo|no}}}|no||{{#if:{{{weight|}}}|{{infobox row|Weight|{{{weight}}}}}}}}}
{{#if: {{{renderstr|}}}
| {{infobox row|Character|{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr|}}} }} }}
}}
{{#if: {{{id|}}}
| {{#ifeq: {{{id}}}<!-- special handling for TinkerTurret, since there are a lot of them, and it can't be wished for directly -->
  |TinkerTurret
  |{{infobox row|ID{{Tooltip|This is the base ID of all dynamic turrets.<br>This turret cannot be [[Wishes|wished]] for directly.||nosearch}}|{{{id}}} }}
  |{{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for {{StripFormatting|{{{title}}}}}||nosearch}}|{{{id}}} }}
  }}
}}
{{#if: {{{faction|}}}
| {{infobox row|Faction|{{{faction}}} }}
}}
{{#if: {{{demeanor|}}}
| {{infobox row|Demeanor|{{{demeanor}}} }}
}}
{{#if: {{{gender|}}}
| {{infobox row|Gender|[[Gender and Pronouns#{{ucfirst:{{{gender}}}}}{{!}}{{{gender}}}]] {{#if: {{{pronouns|}}}|([[Gender and Pronouns#{{ucfirst:{{{pronouns}}}}}{{!}}{{{pronouns}}}]])}} }}
| {{#if: {{{pronouns|}}} | {{infobox row|Pronouns|[[Gender and Pronouns#{{ucfirst:{{{pronouns}}}}}{{!}}{{{pronouns}}}]] }} }}
}}
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius{{Tooltip|This object acts as<br>a [[light source]]||nosearch}}|{{{lightradius}}} }} }}
{{#if: {{{chargeused|}}}
| {{infobox row|Charge per Use|{{#if: {{{energycellrequired|}}} | {{cell performance for charge|{{{chargeused}}}}} | {{{chargeused}}} }} }}
{{#if: {{{chargefunction|}}}  | {{infobox row|Charge Used For|{{{chargefunction}}} }} }}
}}
<!--liquid containers-->
{{#if: {{{maxvol|}}}  | {{infobox row|Max Volume|{{{maxvol}}} drams }} }}
{{#if: {{{liquidgenrate|}}}| {{infobox row|Liquid Generation|1 dram of [[{{{liquidgentype}}}]] every {{#if:{{#pos:{{{liquidgenrate}}}|-}}|{{dice tooltip|{{{liquidgenrate}}}}}|{{{liquidgenrate}}}}} turns}} }}
<!--tinkering-->
{{#if: {{{complexity|}}}| {{infobox row|Complexity|{{{complexity}}} }} }}
{{#if: {{{xpvalue|}}} |<!--only output this here if there is NOT an xpvalue-->|
  {{#if: {{{tier|}}}    | {{#vardefine:TIER|{{{tier}}}}} |
    {{#if: {{{bits|}}}  | {{#vardefine:TIER|{{#sub:{{{bits}}}| -1 }} }} }} }}<!--
    Determine tier from bits if not specified. Then, check for final value
  -->{{#varexists:TIER  | {{infobox row|Tier|{{#if:{{{modcount|}}} | {{#expr:{{#var:TIER}} + {{{modcount}}} }} {{Color|K|({{#var_final:TIER}}+{{{modcount}}}) }}
      | {{#var_final:TIER}} }} }}
    }}
}}
{{#if: {{{bits|}}}    | {{#if:{{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|[[Bits]]|{{Bits|{{{bits}}}}} }} }} }}
{{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }}
{{#if: {{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }}
{{#ifeq: {{{canbuild|}}} | yes | {{infobox row|Tinker Skill|[[{{Tinker check| {{#sub:{{{bits|0}}}| -1 }} }}]] }} }}
{{#if: {{{chairlevel|}}}
| {{infobox row|Chair Level{{Tooltip|Chair level affects the power<br>of the [[sitting]] effect||nosearch}}|{{{chairlevel}}} }}
}}
{{#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}} }}
}}
}}
{{#if: {{{desc|}}} | {{Qud look |{{{desc}}}|{{{title|{{PAGENAME}} }}} }} }}
{{#if: {{{mods|}}}| {{infobox row|Modifications|{{consecutive links|{{{mods|}}}|</br>|</br>}} }} }}
</includeonly>
<!----------------------------------------
<noinclude>
 
[[Category:Templates]]
      INVENTORY
 
----------------------------------------->
{{#if: {{{equipment|}}}{{{inventory|}}}
| <!-- only show Inventory section if the character has some inventory or equipment -->
{{QudInfoboxCollapser |Inventory|qud-inventory|qud-inv-content-itemlist
|<!-- inventory content follows --> {{#if: {{{equipment|}}} | <div class="qud-inv-group qud-equipped"><div class="qud-equipped-title">Equipped</div>{{{equipment}}}</div>}}
{{#if: {{{inventory|}}} | <div class="qud-inv-group qud-carried">{{#if: {{{equipment|}}} | <div class="qud-equipped-title">Carried</div> }}{{{inventory}}}</div>}}
}} <!-- end QudInfoboxCollapser -->
}} <!-- end #if -->
<!----------------------------------------
 
      SKILLS
 
----------------------------------------->
{{#if: {{{skills|}}}
| <!-- only show Skills section if the character has some skills -->
{{QudInfoboxCollapser |Skills|qud-skills|qud-skills-wrapper
|<!-- skills content follows -->
{{consecutive links|{{{skills}}}|</br>|</div><div class{{=}}"qud-skill-entry">|<div class{{=}}"qud-skill-entry">|</div>}}
}} <!-- end QudInfoboxCollapser -->
}} <!-- end #if -->
<!----------------------------------------
 
      MUTATIONS
 
----------------------------------------->
{{#if: {{{mutations|}}}
| <!-- only show Mutations section if the character has some mutations -->
{{QudInfoboxCollapser |Mutations|qud-mutations|qud-mutations-wrapper
|<!-- mutations content follows -->
{{{mutations}}}
}} <!-- end QudInfoboxCollapser -->
}} <!-- end #if -->
<!----------------------------------------
 
      MORE GENERIC DATA
 
      This is the other good place to add new rows
 
----------------------------------------->
{{#if: {{{corpse|}}}      | {{infobox row|Corpse Dropped|{{favilink id|{{{corpse}}}}} ({{{corpsechance|0}}}%) }} }}
{{#if: {{{xpvalue|}}} |
  {{infobox row|Experience{{Tooltip|The [[XP]] granted when killed. Click<br>"toggle detailed stats" above for<br>a level-based breakdown.||nosearch}}|{{{xpvalue}}} XP }}
  {{#if: {{{tier|}}} |
    {{infobox row|XP Tier|{{{tier}}} }}
  }}
}}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{favilink id|{{{harvestedinto}}} }} }} }}
{{#if: {{{role|}}}        | {{infobox row|Role|{{{role}}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{#if: {{{extra|}}}| {{infobox row|field=<hr><div style="padding:1em;><b>Extra info:</b>{{{extra|}}}</div> }} }}
}} <!-- END OF MAIN INFOBOX -->
{{#if: {{{desc|}}}        | {{Qud look|text={{grammar|text={{{desc}}}|gender={{{gender|nonspecific}}}|pronouns={{{pronouns|}}}}}|title={{{title|{{#titleparts:{{BASEPAGENAME}}}} }}} }} }} {{#if: {{{categories|}}}|[[Category:{{{categories}}}]] }}
</includeonly><noinclude><!--
 
-->{{doc}}<!--


{{doc}}
--></noinclude>
</noinclude>