Template:Character: Difference between revisions

store throwability in cargo
(renderstr fallback logic: don't check for File:None when image is set to 'none')
(store throwability in cargo)
 
(66 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>[[Category:Cargo Store Templates]]
<includeonly><!--
{{#cargo_declare:_table=Characters|
 
Title=Wikitext|
  Article Variable definitions for convenience
Level=Integer|
 
HP=Integer|
-->{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}<!--
AV=Integer|
-->{{#vardefine:plainname|{{#titleparts:{{PAGENAME}}}}}}<!--
DV=Integer|
-->{{#vardefine:dynamicstats|{{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}}}<!--
MA=Integer|
-->{{#vardefine:needsdetailedstats|{{#ifexpr: {{formatnum:{{#if:{{#var:dynamicstats}}|1|0}}}} > 0 or {{formatnum:{{{xpvalue|0}}}|R}} > 0|yes|no}}}}<!--
Strength=String|Agility=String|Toughness=String|
-->{{#vardefine:id|{{{wikiidoverride|{{{id|}}}}}} }}</includeonly><!--
Intelligence=String|Willpower=String|Ego=String|
 
AcidResist=Integer|
  Cargo Declare
ElectricResist=Integer|
 
HeatResist=Integer|
--><noinclude>[[Category:Cargo Store Templates]]
ColdResist=Integer|
{{#cargo_declare:_table=Characters
Gender=String|Pronouns=String|
|Level=Integer
Description=Wikitext|
|HP=Integer
Corpse=String|
|AV=Integer
CorpseChance=Integer|
|DV=Integer
MoveSpeed=Integer|
|MA=Integer|MARange=String
Demeanor=String (allowed values=docile,aggressive,neutral)|
|Strength=String|Agility=String|Toughness=String
Skills=List (</br>) of Page|
|Intelligence=String|Willpower=String|Ego=String
Quickness=Integer|
|StrengthMult=Float|AgilityMult=Float|ToughnessMult=Float
HarvestedInto=Page|
|IntelligenceMult=Float|WillpowerMult=Float|EgoMult=Float
Role=String|
|XPValue=Integer
Extra=Text}}
|XPTier=Integer
|Gender=String
|Pronouns=String
|Description=Wikitext
|Corpse=String
|CorpseChance=Integer
|MoveSpeed=Integer
|Demeanor=String (allowed values=docile,aggressive,neutral)
|Skills=List (</br>) of Page
|Quickness=Integer
|HarvestedInto=Page
|Role=String
|JoinKey=String
|ObjectID=String}}


{{#cargo_attach:
{{#cargo_attach:
Line 29: Line 42:
}}
}}


</noinclude><includeonly>{{#cargo_store:_table=Characters|
</noinclude><!--
Title={{{title|{{PAGENAME}}}}}|
 
Level={{{lv|}}}|
  Cargo Store
HP={{{hp|}}}|AV={{{av|}}}|
 
DV={{{dv|}}}|MA={{{ma|}}}|
--><includeonly>{{#cargo_store:_table=Characters
Strength={{{strength|}}}|Agility={{{agility|}}}|
|Level={{{lv|}}}
Toughness={{{toughness|}}}|Intelligence={{{intelligence|}}}|
|HP={{{hp|}}}
Willpower={{{willpower|}}}|Ego={{{ego|}}}|
|AV={{{av|}}}
AcidResist={{{acid|}}}|ElectricResist={{{electric|}}}|
|DV={{{dv|}}}
HeatResist={{{heat|}}}|ColdResist={{{cold|}}}|
|MA={{{ma|}}}
Gender={{{gender|}}}|Pronouns={{{pronouns|}}}|
|MARange={{{marange|}}}
Description={{{desc|}}}|
|Strength={{{strength|}}}
Corpse={{{corpse|}}}|CorpseChance={{{corpsechance|0}}}|
|StrengthMult={{{strengthmult|}}}
MoveSpeed={{{movespeed|100}}}|
|Agility={{{agility|}}}
Demeanor={{{demeanor|neutral}}}|
|AgilityMult={{{agilitymult|}}}
Skills={{{skills|}}}|
|Toughness={{{toughness|}}}
Mutations={{{mutations|}}}|
|ToughnessMult={{{toughnessmult|}}}
Quickness={{{quickness|100}}}|
|Intelligence={{{intelligence|}}}
HarvestedInto={{{harvestedinto|}}}|
|IntelligenceMult={{{intelligencemult|}}}
Role={{{role|}}}|
|Willpower={{{willpower|}}}
Extra={{#ifeq: {{{isswarmer|}}}|yes|{{#if:{{{swarmbonus|}}}|Swarm Alpha: +{{{swarmbonus}}}</br>|Swarmer</br>}}}}{{#ifeq: {{{aquatic|}}}|yes|Aquatic</br>}}{{{{extra|}}}}}<!--
|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
   General Data Cargo Store


-->{{#cargo_store:_table=GeneralData|
-->{{#cargo_store:_table=GeneralData
ObjectID={{{id|}}}|
|ObjectID={{{wikiidoverride|{{{id|}}}}}}
DisplayName={{{title|{{PAGENAME}}}}}|
|DisplayName={{{title|{{PAGENAME}}}}}
Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}|
|Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}
PlainName={{#titleparts:{{PAGENAME}}}}|
|PlainName={{StripFormatting|1={{{title|{{#titleparts:{{PAGENAME}}}} }}} }}
DisplayChar={{qud char|{{{colorstr|}}}|{{{renderstr|}}}}}|
|DisplayChar={{qud char|{{{colorstr|}}}|{{{renderstr|}}}}}
ParentObject={{{inheritingfrom|}}}}}<!--
|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|}}}}}}}<!--


  Article Variable definitions for convenience
  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:


-->{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}<!--
-->{{#if: {{{chairlevel|}}}|{{Furniture_data_store|chairlevel={{{chairlevel|}}}}}}}<!--
-->{{#vardefine:plainname|{{#titleparts:{{PAGENAME}}}}}}<!--


  Infobox Start


-->{{#invoke:infobox|infobox
-->{{#invoke:infobox|infobox
| class = qud-character-infobox
| class = qud-character-infobox
| imagearea = {{#ifeq: {{{image|none}}} | none | {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} | {{#ifexist: File:{{{image|}}} || {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} }} }}
| 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 =
| rows =
<!----------------------------------------
<!----------------------------------------
Line 78: Line 131:
{{#if: {{#pos: {{{hp|~}}}{{{av|~}}}{{{dv|~}}} | ~ }}
{{#if: {{#pos: {{{hp|~}}}{{{av|~}}}{{{dv|~}}} | ~ }}
| <!-- Don't create stat table if HP, AV, or DV are missing -->
| <!-- Don't create stat table if HP, AV, or DV are missing -->
|{{infobox row|class=qud-core-stats|field=
|{{infobox row|class=qud-core-stats navigation-not-searchable|field=
{{Character/CoreStats | hp={{{hp}}}| av={{{av}}}| dv={{{dv}}}}}
{{Character/CoreStats | hp={{{hp}}}| av={{{av}}}| dv={{{dv}}}}}
}} <!-- end infobox row -->
}} <!-- end infobox row -->
}} <!-- end #if -->
}} <!-- end #if -->
{{#if: {{{lv|}}} | {{infobox row|class=qud-character-level|field={{Character/Level | {{{lv}}} }} }} }}
{{#if: {{{lv|}}} | {{infobox row|class=qud-character-level navigation-not-searchable|field={{Character/Level | {{{lv}}} }} }} }}
<!----------------------------------------
<!----------------------------------------


Line 88: Line 141:


----------------------------------------->
----------------------------------------->
{{infobox row|class=qud-attributes|field=
{{infobox row|class=qud-attributes navigation-not-searchable|field=
<!----------------------------------------
<!----------------------------------------
           ATTRIBUTES (Desktop / Fullscreen)
           ATTRIBUTES (Desktop / Fullscreen)
----------------------------------------->
----------------------------------------->
<div class="nomobile">
<div class="nomobile">
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the "toggle detailed stats" button if there are variable stats. To test this, we just check if there's a "d" in the stat string indicating a dice roll -->
| <!-- 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-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 class="qud-attributes-header-button mw-customtoggle-qud-basic-attributes mw-customtoggle-qud-detailed-attributes" title="Show full stat possibilities">toggle detailed stats</div>
Line 105: Line 158:
<div class="qud-attributes-row">
<div class="qud-attributes-row">
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
{{Character/Attribute|Strength|ST|{{{strength|}}}|Attributes}}
{{Character/Attribute|Strength|ST|{{{strength|}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}}
{{Character/Attribute|Quickness|QN|{{{quickness|100}}}|Quickness}}
{{Character/Attribute|Quickness|QN|{{{quickness|100}}}|Quickness}}
</div>
</div>
<div class="qud-attributes-row">
<div class="qud-attributes-row">
{{Character/Attribute|Toughness|TO|{{{toughness|}}}|Attributes}}
{{Character/Attribute|Toughness|TO|{{{toughness|}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}}
{{Character/Attribute|Movespeed|MS|{{{movespeed|100}}}|Movement Speed}}
{{Character/Attribute|Movespeed|MS|{{{movespeed|100}}}|Movement Speed}}
</div>
</div>
<div class="qud-attributes-row">
<div class="qud-attributes-row">
{{Character/Attribute|Intelligence|IN|{{{intelligence|}}}|Attributes}}
{{Character/Attribute|Intelligence|IN|{{{intelligence|}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}}
{{Character/Attribute|Mental Armor|MA|{{{ma|}}}|Attributes}}
{{Character/Attribute|Mental Armor|MA|{{{marange|{{{ma|}}}}}}|MA}}
</div>
</div>
</div>
</div>
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }} |</div>}}
{{#ifeq: {{#var:needsdetailedstats}}|yes|</div>}}
}} <!-- end #if -->
}} <!-- end #if -->
<!----------------------------------------
<!----------------------------------------
           DETAILED ATTRIBUTES (Desktop / Fullscreen)
           DETAILED ATTRIBUTES (Desktop / Fullscreen)
----------------------------------------->
----------------------------------------->
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
{{#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 -->
| <!-- 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 mw-collapsed" id="mw-customcollapsible-qud-detailed-attributes" style="width:260px;">
<div class="mw-collapsible-content" style="display:none;">
<div class="mw-collapsible-content" style="display:none;">
<div class="qud-stat-details-wrapper">
<div class="qud-stat-details-wrapper">
{{ Character/DetailedAttributeHeader }}
{{ Character/DetailedAttributeHeader }}
{{#if: {{{strength|}}}    | {{ Character/DetailedAttribute | Strength    | {{{strength}}}     }} | }}
{{#if: {{{strength|}}}    | {{ Character/DetailedAttribute | Strength    |{{{strength}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    | {{{agility}}}     }} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    |{{{agility}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  | {{{toughness}}}   }} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  |{{{toughness}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence| {{{intelligence}}} }} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence|{{{intelligence}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  | {{{willpower}}}   }} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  |{{{willpower}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        | {{{ego}}}         }} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        |{{{ego}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}} | }}
</div>
</div>
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}
}}
</div>
</div>
</div>
</div>
Line 146: Line 201:
----------------------------------------->
----------------------------------------->
<div class="mobileonly">
<div class="mobileonly">
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the "toggle detailed stats" button if there are variable stats. To test this, we just check if there's a "d" in the stat string indicating a dice roll -->
| <!-- Only create the "toggle detailed stats" button if there are variable stats. -->
<div class="qud-attributes-header-row">
<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 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>
Line 158: Line 213:
<div class="qud-attributes-row">
<div class="qud-attributes-row">
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
{{Character/Attribute|Strength|ST|{{{strength|}}}|Attributes}}
{{Character/Attribute|Strength|ST|{{{strength|}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}}
{{Character/Attribute|Quickness|QN|{{{quickness|100}}}|Quickness}}
{{Character/Attribute|Quickness|QN|{{{quickness|100}}}|Quickness}}
</div>
</div>
<div class="qud-attributes-row">
<div class="qud-attributes-row">
{{Character/Attribute|Toughness|TO|{{{toughness|}}}|Attributes}}
{{Character/Attribute|Toughness|TO|{{{toughness|}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}}
{{Character/Attribute|Movespeed|MS|{{{movespeed|100}}}|Movement Speed}}
{{Character/Attribute|Movespeed|MS|{{{movespeed|100}}}|Movement Speed}}
</div>
</div>
<div class="qud-attributes-row">
<div class="qud-attributes-row">
{{Character/Attribute|Intelligence|IN|{{{intelligence|}}}|Attributes}}
{{Character/Attribute|Intelligence|IN|{{{intelligence|}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}}
{{Character/Attribute|Mental Armor|MA|{{{ma|}}}|Attributes}}
{{Character/Attribute|Mental Armor|MA|{{{marange|{{{ma|}}}}}}|Attributes}}
</div>
</div>
</div>
</div>
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }} |</div>}}
{{#ifeq: {{#var:needsdetailedstats}}|yes|</div>}}
}} <!-- end #if -->
}} <!-- end #if -->
<!----------------------------------------
<!----------------------------------------
           DETAILED ATTRIBUTES (Mobile)
           DETAILED ATTRIBUTES (Mobile)
----------------------------------------->
----------------------------------------->
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
{{#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 -->
| <!-- 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 collapsed" id="collapsible-qud-detailed-attributes" data-expandtext="toggle detailed stats" data-collapsetext="toggle detailed stats">
Line 184: Line 239:
<div class="qud-stat-details-wrapper">
<div class="qud-stat-details-wrapper">
{{ Character/DetailedAttributeHeader }}
{{ Character/DetailedAttributeHeader }}
{{#if: {{{strength|}}}    | {{ Character/DetailedAttribute | Strength    | {{{strength}}}     }} | }}
{{#if: {{{strength|}}}    | {{ Character/DetailedAttribute | Strength    |{{{strength}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    | {{{agility}}}     }} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    |{{{agility}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  | {{{toughness}}}   }} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  |{{{toughness}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence| {{{intelligence}}} }} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence|{{{intelligence}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  | {{{willpower}}}   }} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  |{{{willpower}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        | {{{ego}}}         }} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        |{{{ego}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}} | }}
</div>
</div>
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}
}}
</div>
</div>
</div>
</div>
Line 203: Line 260:
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}
| <!-- Only create resistances block if at least one resistance is specified -->
| <!-- Only create resistances block if at least one resistance is specified -->
{{infobox row|class=qud-resistances|field=
{{infobox row|class=qud-resistances navigation-not-searchable|field=
<div class="qud-resistances-wrapper">
<div class="qud-resistances-wrapper">
{{ Character/Resistance |Acid|{{{acid|0}}}}}
{{ Character/Resistance |Acid|{{{acid|0}}}}}
Line 219: Line 276:


----------------------------------------->
----------------------------------------->
{{#ifeq: {{{featureweightinfo|no}}}|no||{{#if:{{{weight|}}}|{{infobox row|Weight|{{{weight}}}}}}}}}
{{#if: {{{renderstr|}}}
| {{infobox row|Character|{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr|}}} }} }}
}}
{{#if: {{{id|}}}
{{#if: {{{id|}}}
| {{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for {{StripFormatting|{{{title}}}}}}}|{{{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|}}}
{{#if: {{{faction|}}}
Line 229: Line 294:
}}
}}
{{#if: {{{gender|}}}
{{#if: {{{gender|}}}
| {{infobox row|Gender|[[Gender and Pronouns#{{{gender}}}{{!}}{{{gender}}}]] {{#if: {{{pronouns|}}}|([[Gender and Pronouns#{{{pronouns}}}{{!}}{{{pronouns}}}]])}} }}
| {{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#{{{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: {{{mods|}}}| {{infobox row|Modifications|{{consecutive links|{{{mods|}}}|</br>|</br>}} }} }}
<!----------------------------------------
<!----------------------------------------


Line 275: Line 369:


----------------------------------------->
----------------------------------------->
{{#if: {{{corpse|}}}      | {{infobox row|Corpse Dropped|[[{{{corpse}}}]] ({{{corpsechance|0}}}%) }} }}
{{#if: {{{corpse|}}}      | {{infobox row|Corpse Dropped|{{favilink id|{{{corpse}}}}} ({{{corpsechance|0}}}%) }} }}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|[[{{{harvestedinto}}}]] }} }}
{{#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: {{{role|}}}        | {{infobox row|Role|{{{role}}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{#if: {{{extra|}}}{{#ifeq:{{{isswarmer|}}}|yes|yes}}{{#ifeq:{{{aquatic|}}}|yes|yes}}  | {{infobox row|Other Info|{{#ifeq:{{{aquatic|}}}|yes|This creature is aquatic.</br>}}{{#ifeq:{{{isswarmer|}}}|yes|{{#if:{{{swarmbonus|}}}|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.|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.</br>}} }}{{{extra|}}} }} }}
{{#if: {{{extra|}}}| {{infobox row|field=<hr><div style="padding:1em;><b>Extra info:</b>{{{extra|}}}</div> }} }}
}} <!-- END OF MAIN INFOBOX -->
}} <!-- END OF MAIN INFOBOX -->
{{#if: {{{desc|}}}        | {{Qud look|text={{grammar|text={{{desc}}}|gender={{{gender|nonspecific}}}|pronouns={{{pronouns|}}}}}|title={{{title|{{#titleparts:{{BASEPAGENAME}}}} }}} }} }}
{{#if: {{{desc|}}}        | {{Qud look|text={{grammar|text={{{desc}}}|gender={{{gender|nonspecific}}}|pronouns={{{pronouns|}}}}}|title={{{title|{{#titleparts:{{BASEPAGENAME}}}} }}} }} }} {{#if: {{{categories|}}}|[[Category:{{{categories}}}]] }}
</includeonly><noinclude>
</includeonly><noinclude><!--
{{doc}}
 
-->{{doc}}<!--


</noinclude>
--></noinclude>