Template:Character: Difference between revisions

432 bytes added ,  14:29, 4 December 2020
Add support for stat multipliers
mNo edit summary
(Add support for stat multipliers)
Line 129: Line 129:
<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}}}}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes|{{{agilitymult|1}}}}}
{{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}}}}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes|{{{willpowermult|1}}}}}
{{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}}}}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes|{{{egomult|1}}}}}
{{Character/Attribute|Mental Armor|MA|{{{ma|}}}|MA}}
{{Character/Attribute|Mental Armor|MA|{{{ma|}}}|MA}}
</div>
</div>
Line 157: Line 157:
<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}}}|{{{strengthmult|1}}}}} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    | {{{agility}}}     }} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    |{{{agility}}}|{{{agilitymult|1}}}}} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  | {{{toughness}}}   }} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  |{{{toughness}}}|{{{toughnessmult|1}}}}} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence| {{{intelligence}}} }} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence|{{{intelligence}}}|{{{intelligencemult|1}}}}} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  | {{{willpower}}}   }} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  |{{{willpower}}}|{{{willpowermult|1}}}}} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        | {{{ego}}}         }} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        |{{{ego}}}|{{{egomult|1}}}}} | }}
</div>
</div>
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}
Line 186: Line 186:
<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}}}}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes|{{{agilitymult|1}}}}}
{{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}}}}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes|{{{willpowermult|1}}}}}
{{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}}}}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes|{{{egomult|1}}}}}
{{Character/Attribute|Mental Armor|MA|{{{ma|}}}|Attributes}}
{{Character/Attribute|Mental Armor|MA|{{{ma|}}}|Attributes}}
</div>
</div>
Line 214: Line 214:
<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}}}|{{{strengthmult|1}}}}} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    | {{{agility}}}     }} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    |{{{agility}}}|{{{agilitymult|1}}}}} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  | {{{toughness}}}   }} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  |{{{toughness}}}|{{{toughnessmult|1}}}}} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence| {{{intelligence}}} }} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence|{{{intelligence}}}|{{{intelligencemult|1}}}}} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  | {{{willpower}}}   }} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  |{{{willpower}}}|{{{willpowermult|1}}}}} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        | {{{ego}}}         }} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        |{{{ego}}}|{{{egomult|1}}}}} | }}
</div>
</div>
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}