Template:Subtype infocard: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(add reputation parameter)
m (fix links)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
  --><div id="{{{name}}}" class="subtype-infobox"><!--
    --><div class="subtype-title"><div class="subtype-name">{{{name}}}</div></div><!--
    --><div class="subtype-image"><!--
      --><div>[[Image:{{{image}}}]]</div><!--
    --></div><!--
    --><div class="subtype-bonus-box"><!--


  --><div style="display:inline-flex; flex-wrap:wrap; background: var(--qud-bg-color-darker); border-radius:6px; font-family:'Source Code Pro'; font-weight:700; box-shadow:1px 1px 5px rgba(0,0,0,0.8);"><!--
      STAT BONUSES:
    --><div style="display:flex; padding: 0.2em; padding-left: 2em; flex:0 0 100%; box-sizing:border-box; font-size: 1.4em; border-top-right-radius:inherit; border-top-left-radius:inherit; background-color:#0a2726;">{{{name}}}</div><!--
 
    --><div style="display:flex; flex-wrap:wrap; width:160px; height:240px; margin-right: 2em;"><!--
      -->{{#if:{{#pos:{{{strength|}}}|-}}||{{#if:{{{strength|}}}|<div class="subtype-stat-bonus-wrap">{{{strength}}} [[Strength|<span class="subtype-stat-bonus-label">Strength</span>]]</div>}}}}<!--
       --><div>[[Image:{{{image}}}]]</div><!--
      -->{{#if:{{#pos:{{{agility|}}}|-}}||{{#if:{{{agility|}}}|<div class="subtype-stat-bonus-wrap">{{{agility}}} [[Agility|<span class="subtype-stat-bonus-label">Agility</span>]]</div>}}}}<!--
  --></div><!--
      -->{{#if:{{#pos:{{{toughness|}}}|-}}||{{#if:{{{toughness|}}}|<div class="subtype-stat-bonus-wrap">{{{toughness}}} [[Toughness|<span class="subtype-stat-bonus-label">Toughness</span>]]</div>}}}}<!--
  --><div style="padding-top:2em; position:relative; font-size: 1.2em; height:240px; min-width:180px; max-width:220px; box-sizing:border-box;"><!--
      -->{{#if:{{#pos:{{{intelligence|}}}|-}}||{{#if:{{{intelligence|}}}|<div class="subtype-stat-bonus-wrap">{{{intelligence}}} [[Intelligence|<span class="subtype-stat-bonus-label">Intelligence</span>]]</div>}}}}<!--
       -->{{#if:{{#pos:{{{willpower|}}}|-}}||{{#if:{{{willpower|}}}|<div class="subtype-stat-bonus-wrap">{{{willpower}}} [[Willpower|<span class="subtype-stat-bonus-label">Willpower</span>]]</div>}}}}<!--
      -->{{#if:{{#pos:{{{ego|}}}|-}}||{{#if:{{{ego|}}}|<div class="subtype-stat-bonus-wrap">{{{ego}}} [[Ego|<span class="subtype-stat-bonus-label">Ego</span>]]</div>}}}}<!--


    STAT BONUSES:
      STAT PENALTIES:


    -->{{#if:{{#pos:{{{strength|}}}|-}}||{{#if:{{{strength|}}}|<div style="color:var(--qud-color-g);">{{{strength}}} [[Strength|<span style="color:var(--qud-color-g);">Strength</span>]]</div>}}}}<!--
      -->{{#if:{{#pos:{{{strength|}}}|-}}|<div class="subtype-stat-malus-wrap">{{{strength}}} [[Strength|<span class="subtype-stat-malus-label">Strength</span>]]</div>}}<!--
    -->{{#if:{{#pos:{{{agility|}}}|-}}||{{#if:{{{agility|}}}|<div style="color:var(--qud-color-g);">{{{agility}}} [[Agility|<span style="color:var(--qud-color-g);">Agility</span>]]</div>}}}}<!--
      -->{{#if:{{#pos:{{{agility|}}}|-}}|<div class="subtype-stat-malus-wrap">{{{agility}}} [[Agility|<span class="subtype-stat-malus-label">Agility</span>]]</div>}}<!--
    -->{{#if:{{#pos:{{{toughness|}}}|-}}||{{#if:{{{toughness|}}}|<div style="color:var(--qud-color-g);">{{{toughness}}} [[Toughness|<span style="color:var(--qud-color-g);">Toughness</span>]]</div>}}}}<!--
      -->{{#if:{{#pos:{{{toughness|}}}|-}}|<div class="subtype-stat-malus-wrap">{{{toughness}}} [[Toughness|<span class="subtype-stat-malus-label">Toughness</span>]]</div>}}<!--
    -->{{#if:{{#pos:{{{intelligence|}}}|-}}||{{#if:{{{intelligence|}}}|<div style="color:var(--qud-color-g);">{{{intelligence}}} [[Intelligence|<span style="color:var(--qud-color-g);">Intelligence</span>]]</div>}}}}<!--
      -->{{#if:{{#pos:{{{intelligence|}}}|-}}|<div class="subtype-stat-malus-wrap">{{{intelligence}}} [[Intelligence|<span class="subtype-stat-malus-label">Intelligence</span>]]</div>}}<!--
    -->{{#if:{{#pos:{{{willpower|}}}|-}}||{{#if:{{{willpower|}}}|<div style="color:var(--qud-color-g);">{{{willpower}}} [[Willpower|<span style="color:var(--qud-color-g);">Willpower</span>]]</div>}}}}<!--
      -->{{#if:{{#pos:{{{willpower|}}}|-}}|<div class="subtype-stat-malus-wrap">{{{willpower}}} [[Willpower|<span class="subtype-stat-malus-label">Willpower</span>]]</div>}}<!--
    -->{{#if:{{#pos:{{{ego|}}}|-}}||{{#if:{{{ego|}}}|<div style="color:var(--qud-color-g);">{{{ego}}} [[Ego|<span style="color:var(--qud-color-g);">Ego</span>]]</div>}}}}<!--
      -->{{#if:{{#pos:{{{ego|}}}|-}}|<div class="subtype-stat-malus-wrap">{{{ego}}} [[Ego|<span class="subtype-stat-malus-label">Ego</span>]]</div>}}<!--


    STAT PENALTIES:


    -->{{#if:{{#pos:{{{strength|}}}|-}}|<div style="color:var(--qud-color-r);">{{{strength}}} [[Strength|<span style="color:var(--qud-color-r);">Strength</span>]]</div>}}<!--
      -->{{#if:{{{bonusnote|}}}|<div class="subtype-bonus-note">{{{bonusnote}}}</div>}}<!--
    -->{{#if:{{#pos:{{{agility|}}}|-}}|<div style="color:var(--qud-color-r);">{{{agility}}} [[Agility|<span style="color:var(--qud-color-r);">Agility</span>]]</div>}}<!--
    -->{{#if:{{#pos:{{{toughness|}}}|-}}|<div style="color:var(--qud-color-r);">{{{toughness}}} [[Toughness|<span style="color:var(--qud-color-r);">Toughness</span>]]</div>}}<!--
    -->{{#if:{{#pos:{{{intelligence|}}}|-}}|<div style="color:var(--qud-color-r);">{{{intelligence}}} [[Intelligence|<span style="color:var(--qud-color-r);">Intelligence</span>]]</div>}}<!--
    -->{{#if:{{#pos:{{{willpower|}}}|-}}|<div style="color:var(--qud-color-r);">{{{willpower}}} [[Willpower|<span style="color:var(--qud-color-r);">Willpower</span>]]</div>}}<!--
    -->{{#if:{{#pos:{{{ego|}}}|-}}|<div style="color:var(--qud-color-r);">{{{ego}}} [[Ego|<span style="color:var(--qud-color-r);">Ego</span>]]</div>}}<!--




    -->{{#if:{{{reputationinfo|}}}|<div style="margin-top:1em;">{{{reputationinfo}}}</div>}}<!--
    --></div><!--
    --><div class="subtype-skill-box"><!--
      --><div><!--
        -->{{qud look|title=skills|bottomtext=none|text={{consecutive links|{{{skills}}}|</br>|3=</div><div class="subtype-k-dark">|4=<div class="subtype-k-dark">|5=</div>|8=--|9=<span> » </span>}}}}<!--
      --></div><!--
    --></div><!--
    --><div class="subtype-items"><!--
      --><div class="subtype-equip-list"><!--
        --><div><!--
          --><div class="subtype-equipped-label">Equipped:</div><!--
          --><div class="subtype-equip-list-items"><!--
            -->{{make list|{{{equipped}}}|</br>|style=display: inline-grid; grid-auto-flow: column; grid-template-rows: repeat(8, auto); grid-column-gap:3em;}}<!--
          --></div><!--
        --></div><!--
      --></div><!--
      --><div class="subtype-items-list"><!--
        --><div><!--
          --><div class="subtype-items-list-label">In Inventory:</div><!--
          --><div class="subtype-items-list-items"><!--
            -->{{make list|{{{inventory}}}|</br>|style=display: inline-grid; grid-auto-flow: column; grid-template-rows: repeat(8, auto); grid-column-gap:3em;}}<!--
          --></div><!--
        --></div><!--
      --></div><!--
    --></div><!--


    -->{{#if:{{{footnote|}}}|<div class="subtype-footnote"><div class="subtype-footnote-inner">{{{footnote}}}</div></div>}}<!--


    --><div style="position:absolute;bottom:1em;color:var(--qud-color-k);"><!--
      --><div>Build code: {{{buildcode|?}}}</div><!--
    --></div><!--
  --></div><!--
  --><div style="font-size:1.1em; padding-top:1em; color:var(--qud-color-k-dark);"><!--
    --><div><!--
      -->{{qud look|title=skills|bottomtext=none|text={{consecutive links|{{{skills}}}|</br>|3=</div><div style="color:var(--qud-color-k-dark);">|4=<div style="color:var(--qud-color-k-dark);">|5=</div>|8=--|9=<span> » </span>}}}}<!--
    --></div><!--
  --></div><!--
  --><div style="padding:1em 0 1em 2em; color:var(--qud-color-y-dark); box-sizing:border-box;"><!--
    --><div><!--
      --><div style="font-size:1.2em;">Equipped:</div><!--
      --><div style="font-family: var(--qud-font-infobox-content);font-size:0.95em;padding-left:1em;"><!--
        -->{{make list|{{{equipped}}}|</br>|style=display: inline-grid; grid-auto-flow: column; grid-template-rows: repeat(8, auto); grid-column-gap:3em;}}<!--
      --></div><!--
    --></div><!--
  --></div><!--
  --><div style="padding:1em 0 1em 2em; color:var(--qud-color-y-dark); box-sizing:border-box;"><!--
    --><div><!--
      --><div style="font-size:1.2em;">In Inventory:</div><!--
      --><div style="font-family: var(--qud-font-infobox-content);font-size:0.95em;padding-left:1em;"><!--
        -->{{make list|{{{inventory}}}|</br>|style=display: inline-grid; grid-auto-flow: column; grid-template-rows: repeat(8, auto); grid-column-gap:3em;}}<!--
      --></div><!--
    --></div><!--
  --></div><!--
   --></div><!--
   --></div><!--


--></includeonly><noinclude>
--></includeonly><noinclude>
 
This template creates a stylized info-card for the specified [[caste]] or [[calling]].
<span style="font-size:150%;font-weight:bold;color:red;">This is currently only a test. It is not fully implemented</span>


== Parameters ==
== Parameters ==
Line 74: Line 74:
| no
| no
| image filename
| image filename
|-
| buildcode
| no
| build code character for this subtype
|-
|-
| strength
| strength
Line 103: Line 99:
| The bonus or penalty to ego.
| The bonus or penalty to ego.
|-
|-
| reputationinfo
| bonusnote
| yes
| yes
| A statement about the subtype's reputation bonus, if applicable.
| A short note indicating an additional bonus that the subtype receives. This is intended for things like:
* Reputation bonus (+200 reputation with the Fellowship of Wardens)
* Arcology bonus (+15 Cold resistance)
 
This can't handle anything much longer than 7 or 8 words (it won't fit in the infocard nicely).
|-
| footnote
| yes
| Adds an additional note as a footnote in a drop-down drawer at the bottom of the infocard. For example, you can use this to note an arcology's starting cybernetic or other miscellaneous bonuses, such as the Watervine Farmer's "Starts with access to Farmers' Markets" perk.
|-
|-
| skills
| skills
Line 126: Line 130:
| image = subtype apostle.png
| image = subtype apostle.png
| buildcode = g
| buildcode = g
| bonusnote = +200 repuation with the [[Fellowship of Wardens]]
| footnote = can choose [[Nocturnal apex]] as their starting cybernetic
| strength=+3
| strength=+3
| ego=-1
| ego=-1
| skills = Cooking and Gathering</br>Harvestry</br>Bow and Rifle</br>--Steady Hands</br>--Draw a Bead</br>Wilderness Lore: Jungles
| skills = Cooking and Gathering</br>Harvestry</br>Bow and Rifle</br>--Steady Hands</br>--Draw a Bead</br>Wilderness Lore: Jungles
| equipped = 2 {{favilink|bronze dagger|plural}}</br>1 {{favilink|short bow}}</br>1 {{favilink|pocketed vest}}</br>1 {{favilink|vinewood sap mask}}
| equipped = 2 {{favilink|bronze dagger|plural}}</br>1 {{favilink|short bow}}</br>1 {{favilink|pocketed vest}}</br>1 {{favilink|vinewood sap mask}}
| inventory = 3 {{favilink|waterskin|plural}}, 32 drams</br>2-3 {{favilink|food cube|plural}}</br>1 {{favilink|basic toolkit}}</br>{{dice tooltip|2d2+1}} {{favilink|salve injector|plural}}</br>{{dice tooltip|1d3}} [[Data:Injectors|Injectors]]</br>{{dice tooltip|2d2}} [[Data:Cells|Cells]]</br>{{dice tooltip|1d4}} [[Data:Junk#Junk 1|Junk 1]] items</br>{{dice tooltip|2d4}} [[Data:Scrap#Scrap 1|Scrap 1]] items</br>{{dice tooltip|1d3}} [[Data:Trinkets#Trinkets 1|Trinkets 1]] items</br>{{dice tooltip|1d2+1}} [[Data:Artifact#Artifact 2|Artifact 2]] items</br>{{dice tooltip|1d2}} [[Data:Artifact#Artifact 3|Artifact 3]] items</br>1 thing from [[Data:Artifact#Artifact 3|Artifact 3]]
| inventory = 3 {{favilink|waterskin|plural}}, 32 drams</br>2-3 {{favilink|food cube|plural}}</br>1 {{favilink|basic toolkit}}</br>{{dice tooltip|2d2+1}} {{favilink|salve injector|plural}}</br>{{dice tooltip|1d3}} [[Data:Injectors|Injectors]]</br>{{dice tooltip|2d2}} [[Data:Cells|Cells]]</br>{{dice tooltip|1d4}} [[Population:Junk#Junk 1|Junk 1]] items</br>{{dice tooltip|2d4}} [[Data:Scrap#Scrap 1|Scrap 1]] items</br>{{dice tooltip|1d3}} [[Data:Trinkets#Trinkets 1|Trinkets 1]] items</br>{{dice tooltip|1d2+1}} [[Data:Artifact#Artifact 2|Artifact 2]] items</br>{{dice tooltip|1d2}} [[Data:Artifact#Artifact 3|Artifact 3]] items</br>1 thing from [[Data:Artifact#Artifact 3|Artifact 3]]
}}
}}
</pre>
</pre>
Line 138: Line 144:
| name = Apostle
| name = Apostle
| image = subtype apostle.png
| image = subtype apostle.png
| buildcode = g
| bonusnote = +200 repuation with the [[Fellowship of Wardens]]
| reputationinfo = +200 repuation with the [[Fellowship of Wardens]]
| footnote = can choose [[Nocturnal apex]] as their starting cybernetic
| strength=+3
| strength=+3
| ego=-1
| ego=-1
| skills = Cooking and Gathering</br>Harvestry</br>Bow and Rifle</br>--Steady Hands</br>--Draw a Bead</br>Wilderness Lore: Jungles
| skills = Cooking and Gathering</br>Harvestry</br>Bow and Rifle</br>--Steady Hands</br>--Draw a Bead</br>Wilderness Lore: Jungles
| equipped = 2 {{favilink|bronze dagger|plural}}</br>1 {{favilink|short bow}}</br>1 {{favilink|pocketed vest}}</br>1 {{favilink|vinewood sap mask}}
| equipped = 2 {{favilink|bronze dagger|plural}}</br>1 {{favilink|short bow}}</br>1 {{favilink|pocketed vest}}</br>1 {{favilink|vinewood sap mask}}
| inventory = 3 {{favilink|waterskin|plural}}, 32 drams</br>2-3 {{favilink|food cube|plural}}</br>1 {{favilink|basic toolkit}}</br>{{dice tooltip|2d2+1}} {{favilink|salve injector|plural}}</br>{{dice tooltip|1d3}} [[Data:Injectors|Injectors]]</br>{{dice tooltip|2d2}} [[Data:Cells|Cells]]</br>{{dice tooltip|1d4}} [[Data:Junk#Junk 1|Junk 1]] items</br>{{dice tooltip|2d4}} [[Data:Scrap#Scrap 1|Scrap 1]] items</br>{{dice tooltip|1d3}} [[Data:Trinkets#Trinkets 1|Trinkets 1]] items</br>{{dice tooltip|1d2+1}} [[Data:Artifact#Artifact 2|Artifact 2]] items</br>{{dice tooltip|1d2}} [[Data:Artifact#Artifact 3|Artifact 3]] items</br>1 thing from [[Data:Artifact#Artifact 3|Artifact 3]]
| inventory = 3 {{favilink|waterskin|plural}}, 32 drams</br>2-3 {{favilink|food cube|plural}}</br>1 {{favilink|basic toolkit}}</br>{{dice tooltip|2d2+1}} {{favilink|salve injector|plural}}</br>{{dice tooltip|1d3}} [[Data:Injectors|Injectors]]</br>{{dice tooltip|2d2}} [[Data:Cells|Cells]]</br>{{dice tooltip|1d4}} [[Population:Junk#Junk 1|Junk 1]] items</br>{{dice tooltip|2d4}} [[Data:Scrap#Scrap 1|Scrap 1]] items</br>{{dice tooltip|1d3}} [[Data:Trinkets#Trinkets 1|Trinkets 1]] items</br>{{dice tooltip|1d2+1}} [[Data:Artifact#Artifact 2|Artifact 2]] items</br>{{dice tooltip|1d2}} [[Data:Artifact#Artifact 3|Artifact 3]] items</br>1 thing from [[Data:Artifact#Artifact 3|Artifact 3]]
}}
}}



Latest revision as of 15:58, 29 April 2022

This template creates a stylized info-card for the specified caste or calling.

Parameters

Parameter Optional? Description
name no Name of the subtype
image no image filename
strength yes The bonus or penalty to strength.
agility yes The bonus or penalty to agility.
toughness yes The bonus or penalty to toughness.
intelligence yes The bonus or penalty to intelligence.
willpower yes The bonus or penalty to willpower.
ego yes The bonus or penalty to ego.
bonusnote yes A short note indicating an additional bonus that the subtype receives. This is intended for things like:
  • Reputation bonus (+200 reputation with the Fellowship of Wardens)
  • Arcology bonus (+15 Cold resistance)

This can't handle anything much longer than 7 or 8 words (it won't fit in the infocard nicely).

footnote yes Adds an additional note as a footnote in a drop-down drawer at the bottom of the infocard. For example, you can use this to note an arcology's starting cybernetic or other miscellaneous bonuses, such as the Watervine Farmer's "Starts with access to Farmers' Markets" perk.
skills no List of skill names, delimited with </br>. Will be converted to links automatically. Preface a skill with -- to indent it beneath a previous skill.
equipped no List of equipped items, delimited with </br>.
inventory no List of inventory items, delimited with </br>.

Usage

{{Subtype infocard
| name = Apostle
| image = subtype apostle.png
| buildcode = g
| bonusnote = +200 repuation with the [[Fellowship of Wardens]]
| footnote = can choose [[Nocturnal apex]] as their starting cybernetic
| strength=+3
| ego=-1
| skills = Cooking and Gathering</br>Harvestry</br>Bow and Rifle</br>--Steady Hands</br>--Draw a Bead</br>Wilderness Lore: Jungles
| equipped = 2 {{favilink|bronze dagger|plural}}</br>1 {{favilink|short bow}}</br>1 {{favilink|pocketed vest}}</br>1 {{favilink|vinewood sap mask}}
| inventory = 3 {{favilink|waterskin|plural}}, 32 drams</br>2-3 {{favilink|food cube|plural}}</br>1 {{favilink|basic toolkit}}</br>{{dice tooltip|2d2+1}} {{favilink|salve injector|plural}}</br>{{dice tooltip|1d3}} [[Data:Injectors|Injectors]]</br>{{dice tooltip|2d2}} [[Data:Cells|Cells]]</br>{{dice tooltip|1d4}} [[Population:Junk#Junk 1|Junk 1]] items</br>{{dice tooltip|2d4}} [[Data:Scrap#Scrap 1|Scrap 1]] items</br>{{dice tooltip|1d3}} [[Data:Trinkets#Trinkets 1|Trinkets 1]] items</br>{{dice tooltip|1d2+1}} [[Data:Artifact#Artifact 2|Artifact 2]] items</br>{{dice tooltip|1d2}} [[Data:Artifact#Artifact 3|Artifact 3]] items</br>1 thing from [[Data:Artifact#Artifact 3|Artifact 3]]
}}

Example

Apostle
Subtype apostle.png
-1 Ego
+200 repuation with the Fellowship of Wardens
In Inventory:
can choose Nocturnal apex as their starting cybernetic