Template:Adversary: Difference between revisions

From Velthuryn
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox adversary"
<div class="vh-card adversary-card">
|-
! colspan="2" style="text-align:center; font-size:120%;" | {{{name|{{PAGENAME}}}}}


|-
  <!-- Header -->
! Name
  <div class="vh-card__header">
| {{#if: {{{name|}}}
    <div class="vh-card__title">
  | {{#set:Has name={{{name}}}}}{{{name}}}
      {{{name|{{PAGENAME}}}}}
  |  
      {{#if: {{{name|}}} | {{#set:Has name={{{name}}}}} }}
}}
    </div>
    {{#if: {{{link|}}} |
      <div class="vh-card__icon">
        [[{{{link}}}|<span class="vh-card__icon-glyph" aria-hidden="true">↗</span>]]
      </div>
    }}
  </div>


|-
  <!-- Meta -->
! Tier
  <div class="vh-card__meta">
| {{#if: {{{tier|}}}
    <div class="vh-card__tier">
  | {{#set:Has tier={{{tier}}}}}{{{tier}}}
      Tier <span class="vh-card__tier-num">{{{tier|}}}</span>
  |
      {{#if: {{{tier|}}} | {{#set:Has tier={{{tier}}}}} }}
}}
      {{#if: {{{adversary_type|}}} |
        <span class="vh-card__tier-type">{{{adversary_type}}}</span>
        {{#set:Has adversary type={{{adversary_type}}}}}
      }}
    </div>


|-
    {{#if: {{{description|}}} |
! Type
      <div class="vh-card__desc">
| {{#if: {{{adversary_type|}}}
        {{{description}}}
  | {{#set:Has adversary type={{{adversary_type}}}}}{{{adversary_type}}}
        {{#set:Has description={{{description}}}}}
  |
      </div>
}}
    }}


|-
    {{#if: {{{motives|}}}{{{tactics|}}} |
! Description
      <div class="vh-card__motives">
| {{#if: {{{description|}}}
        <strong>Motives &amp; Tactics:</strong>
  | {{#set:Has description={{{description}}}}}{{{description}}}
        {{#if: {{{motives|}}} |
  |  
          {{{motives}}}{{#set:Has motives={{{motives}}}}}
}}
        }}
        {{#if: {{{motives|}}}{{{tactics|}}} | {{#if: {{{motives|}}} | {{#if: {{{tactics|}}} | , }} }} }}
        {{#if: {{{tactics|}}} |
          {{{tactics}}}{{#set:Has tactics={{{tactics}}}}}
        }}
      </div>
    }}
  </div>


|-
  <!-- Stats band -->
! Motives
  <div class="vh-card__stats">
| {{#if: {{{motives|}}}
    <div class="vh-card__stats-row">
  | {{#set:Has motives={{{motives}}}}}{{{motives}}}
      {{#if: {{{difficulty|}}} |
  |
        <span class="vh-stat"><strong>Difficulty:</strong> {{{difficulty}}}</span>
}}
        {{#set:Has difficulty={{{difficulty}}}}}
      }}
      {{#if: {{{major_threshold|}}} |
        <span class="vh-sep" aria-hidden="true"></span>
        <span class="vh-stat"><strong>Thresholds:</strong> {{{major_threshold}}} / {{{severe_threshold}}}</span>
        {{#set:Has major threshold={{{major_threshold}}} |Has severe threshold={{{severe_threshold}}}}}
      }}
      {{#if: {{{hit_points|}}} |
        <span class="vh-sep" aria-hidden="true"></span>
        <span class="vh-stat"><strong>HP:</strong> {{{hit_points}}}</span>
        {{#set:Has hit points={{{hit_points}}}}}
      }}
      {{#if: {{{stress|}}} |
        <span class="vh-sep" aria-hidden="true"></span>
        <span class="vh-stat"><strong>Stress:</strong> {{{stress}}}</span>
        {{#set:Has stress={{{stress}}}}}
      }}
    </div>


|-
    {{#if: {{{attack|}}} |
! Tactics
      <div class="vh-card__stats-row">
| {{#if: {{{tactics|}}}
        <span class="vh-stat"><strong>Attack:</strong> {{{attack}}}</span>
  | {{#set:Has tactics={{{tactics}}}}}{{{tactics}}}
        {{#set:Has attack={{{attack}}}}}
  |
      </div>
}}
    }}
 
|-
! Difficulty
| {{#if: {{{difficulty|}}}
  | {{#set:Has difficulty={{{difficulty}}}}}{{{difficulty}}}
  |
}}


|-
    {{#if: {{{experience|}}} |
! Thresholds
      <div class="vh-card__divider" aria-hidden="true"></div>
| {{#if: {{{major_threshold|}}}
       <div class="vh-card__stats-row">
  | {{#set:
        <span class="vh-stat"><strong>Experience:</strong> {{{experience}}}</span>
       Has major threshold={{{major_threshold}}}
        {{#set:Has experience={{{experience}}}}}
      |Has severe threshold={{{severe_threshold}}}
      </div>
     }}
     }}
    {{{major_threshold}}} / {{{severe_threshold}}}
  </div>
  |
}}
 
|-
! Hit Points
| {{#if: {{{hit_points|}}}
  | {{#set:Has hit points={{{hit_points}}}}}{{{hit_points}}}
  |
}}
 
|-
! Stress
| {{#if: {{{stress|}}}
  | {{#set:Has stress={{{stress}}}}}{{{stress}}}
  |
}}
 
|-
! Attack
| {{#if: {{{attack|}}}
  | {{#set:Has attack={{{attack}}}}}{{{attack}}}
  |
}}


|-
  <!-- Features -->
! Experience
  {{#if: {{{features|}}} |
| {{#if: {{{experience|}}}
    <div class="vh-card__section-title">Features</div>
  | {{#set:Has experience={{{experience}}}}}{{{experience}}}
    <div class="vh-card__features">
   |
      {{{features}}}
}}
      {{#set:Has features={{{features}}}}}
    </div>
   }}


|-
</div>
! Features
| {{#if: {{{features|}}}
  | {{#set:Has features={{{features}}}}}{{{features}}}
  |
}}


|}
<!-- Semantic annotation -->
<!-- Semantic annotation -->
{{#set:Has entity type=Adversary}}
{{#set:Has entity type=Adversary}}
Line 107: Line 105:


<noinclude>
<noinclude>
Minimal Adversary template for Velthuryn.
Semantic “card” adversary template for Velthuryn.
Displays plain text values while preserving SMW properties.
 
=== Usage ===
<pre>
{{AdversaryCard
|name=Acid Burrower
|tier=1
|adversary_type=Solo
|description=A horse-sized insect with digging claws and acidic blood.
|motives=Burrow, drag away, feed
|tactics=Reposition
|difficulty=14
|major_threshold=8
|severe_threshold=15
|hit_points=8
|stress=3
|attack=+3 (Claws, Very Close) 1d12+2 phy
|experience=Tremor Sense +2
|features=
* ''<strong>Relentless (3) – Passive:</strong>'' The Burrower can be spotlighted up to three times per GM turn.
* ''<strong>Earth Eruption – Action:</strong>'' Mark a <strong>Stress</strong> to burst out of the ground…
}}
</pre>
 
Tip: put each feature as a bullet. Your CSS can apply hanging-indent to <code>.vh-card__features li</code>.
</noinclude>
</noinclude>

Revision as of 20:48, 23 December 2025


Semantic “card” adversary template for Velthuryn.

Usage

{{AdversaryCard
 |name=Acid Burrower
 |tier=1
 |adversary_type=Solo
 |description=A horse-sized insect with digging claws and acidic blood.
 |motives=Burrow, drag away, feed
 |tactics=Reposition
 |difficulty=14
 |major_threshold=8
 |severe_threshold=15
 |hit_points=8
 |stress=3
 |attack=+3 (Claws, Very Close) 1d12+2 phy
 |experience=Tremor Sense +2
 |features=
* ''<strong>Relentless (3) – Passive:</strong>'' The Burrower can be spotlighted up to three times per GM turn.
* ''<strong>Earth Eruption – Action:</strong>'' Mark a <strong>Stress</strong> to burst out of the ground…
}}

Tip: put each feature as a bullet. Your CSS can apply hanging-indent to .vh-card__features li.