StorytellingFaction
note

This rune is part of @refrakt-md/storytelling. Install with npm install @refrakt-md/storytelling and add "@refrakt-md/storytelling" to the plugins array in your refrakt.config.json.

Faction

Organizations, guilds, orders, and groups for worldbuilding. Headings within the rune become named sections for ranks, holdings, goals, and more.

Basic usage

Describe a faction with sections that break down its structure.

{% faction name="The Silver Order" type="knightly order" alignment="lawful" size="large" media-position="start" %}
![The Silver Order](https://assets.refrakt.md/faction-the-silver-order.png)

A prestigious order of knights sworn to protect the realm.

## Ranks

- Initiate
- Knight
- Commander
- Grand Master

## Holdings

Their fortress overlooks the capital city from the northern cliffs.
{% /faction %}
<article data-field="content-section" data-rune="faction" typeof="Organization" data-rune-fields="{&quot;factionType&quot;:&quot;knightly order&quot;,&quot;alignment&quot;:&quot;lawful&quot;,&quot;size&quot;:&quot;large&quot;,&quot;tags&quot;:&quot;&quot;,&quot;media-position&quot;:&quot;start&quot;}">
  <div data-name="scene">
    <img src="https://assets.refrakt.md/faction-the-silver-order.png" alt="The Silver Order" property="image">
  </div>
  <span data-name="name" property="name">The Silver Order</span>
  <div data-name="body">
    <p>A prestigious order of knights sworn to protect the realm.</p>
  </div>
  <div data-name="sections">
    <div data-field="section" data-rune="faction-section">
      <span data-name="name">Ranks</span>
      <div data-name="body">
        <ul>
          <li>Initiate</li>
          <li>Knight</li>
          <li>Commander</li>
          <li>Grand Master</li>
        </ul>
      </div>
    </div>
    <div data-field="section" data-rune="faction-section">
      <span data-name="name">Holdings</span>
      <div data-name="body">
        <p>Their fortress overlooks the capital city from the northern cliffs.</p>
      </div>
    </div>
  </div>
</article>
The Silver Order
The Silver Order

A prestigious order of knights sworn to protect the realm.

Ranks
  • Initiate
  • Knight
  • Commander
  • Grand Master
Holdings

Their fortress overlooks the capital city from the northern cliffs.

<article data-field="content-section" typeof="Organization" class="rf-faction rf-faction--knightly order rf-faction--lawful rf-faction--large" data-faction-type="knightly order" data-alignment="lawful" data-size="large" data-tags="" data-media-position="start" data-rune="faction" data-density="full">
  <div data-name="scene" class="rf-faction__scene" data-section="media" data-media="cover">
    <img src="https://assets.refrakt.md/faction-the-silver-order.png" alt="The Silver Order" property="image" />
  </div>
  <div data-name="content" class="rf-faction__content">
    <header data-name="preamble" class="rf-faction__preamble" data-section="preamble">
      <span data-name="name" property="name" class="rf-faction__name" data-section="title">The Silver Order</span>
    </header>
    <dl data-name="metadata" data-zone="metadata" data-zone-layout="definition-list" class="rf-faction__metadata">
      <div data-name="row" data-field="factionType" class="rf-faction__row">
        <dt data-meta-label="">Type</dt>
        <dd>
          <span class="rf-badge" data-meta-type="category">knightly order</span>
        </dd>
      </div>
      <div data-name="row" data-field="alignment" class="rf-faction__row">
        <dt data-meta-label="">Alignment</dt>
        <dd>
          <span class="rf-badge" data-meta-type="category" data-meta-sentiment="neutral">lawful</span>
        </dd>
      </div>
      <div data-name="row" data-field="size" class="rf-faction__row">
        <dt data-meta-label="">Size</dt>
        <dd data-meta-type="quantity">large</dd>
      </div>
    </dl>
    <div data-name="body" class="rf-faction__body">
      <p>A prestigious order of knights sworn to protect the realm.</p>
    </div>
    <div data-name="sections" class="rf-faction__sections">
      <div data-field="section" class="rf-faction-section" data-rune="faction-section" data-density="full">
        <span data-name="name" class="rf-faction-section__name">Ranks</span>
        <div data-name="body" class="rf-faction-section__body">
          <ul>
            <li>Initiate</li>
            <li>Knight</li>
            <li>Commander</li>
            <li>Grand Master</li>
          </ul>
        </div>
      </div>
      <div data-field="section" class="rf-faction-section" data-rune="faction-section" data-density="full">
        <span data-name="name" class="rf-faction-section__name">Holdings</span>
        <div data-name="body" class="rf-faction-section__body">
          <p>Their fortress overlooks the capital city from the northern cliffs.</p>
        </div>
      </div>
    </div>
  </div>
</article>

Different faction types

Use type and alignment to classify organizations.

{% faction name="The Whispering Hand" type="thieves guild" alignment="chaotic" size="medium" %}
An underground network of spies and thieves operating across the port cities.

## Operations

- Smuggling
- Information brokering
- Blackmail
{% /faction %}
<article data-field="content-section" data-rune="faction" typeof="Organization" data-rune-fields="{&quot;factionType&quot;:&quot;thieves guild&quot;,&quot;alignment&quot;:&quot;chaotic&quot;,&quot;size&quot;:&quot;medium&quot;,&quot;tags&quot;:&quot;&quot;,&quot;media-position&quot;:&quot;top&quot;}">
  <span data-name="name" property="name">The Whispering Hand</span>
  <div data-name="body">
    <p>An underground network of spies and thieves operating across the port cities.</p>
  </div>
  <div data-name="sections">
    <div data-field="section" data-rune="faction-section">
      <span data-name="name">Operations</span>
      <div data-name="body">
        <ul>
          <li>Smuggling</li>
          <li>Information brokering</li>
          <li>Blackmail</li>
        </ul>
      </div>
    </div>
  </div>
</article>
The Whispering Hand

An underground network of spies and thieves operating across the port cities.

Operations
  • Smuggling
  • Information brokering
  • Blackmail
<article data-field="content-section" typeof="Organization" class="rf-faction rf-faction--thieves guild rf-faction--chaotic rf-faction--medium" data-faction-type="thieves guild" data-alignment="chaotic" data-size="medium" data-tags="" data-media-position="top" data-rune="faction" data-density="full">
  <div data-name="content" class="rf-faction__content">
    <header data-name="preamble" class="rf-faction__preamble" data-section="preamble">
      <span data-name="name" property="name" class="rf-faction__name" data-section="title">The Whispering Hand</span>
    </header>
    <dl data-name="metadata" data-zone="metadata" data-zone-layout="definition-list" class="rf-faction__metadata">
      <div data-name="row" data-field="factionType" class="rf-faction__row">
        <dt data-meta-label="">Type</dt>
        <dd>
          <span class="rf-badge" data-meta-type="category">thieves guild</span>
        </dd>
      </div>
      <div data-name="row" data-field="alignment" class="rf-faction__row">
        <dt data-meta-label="">Alignment</dt>
        <dd>
          <span class="rf-badge" data-meta-type="category" data-meta-sentiment="caution">chaotic</span>
        </dd>
      </div>
      <div data-name="row" data-field="size" class="rf-faction__row">
        <dt data-meta-label="">Size</dt>
        <dd data-meta-type="quantity">medium</dd>
      </div>
    </dl>
    <div data-name="body" class="rf-faction__body">
      <p>An underground network of spies and thieves operating across the port cities.</p>
    </div>
    <div data-name="sections" class="rf-faction__sections">
      <div data-field="section" class="rf-faction-section" data-rune="faction-section" data-density="full">
        <span data-name="name" class="rf-faction-section__name">Operations</span>
        <div data-name="body" class="rf-faction-section__body">
          <ul>
            <li>Smuggling</li>
            <li>Information brokering</li>
            <li>Blackmail</li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</article>

Attributes

AttributeTypeDefaultDescription
namestringFaction name (required)
typestringFaction type (e.g. guild, cult, government, knightly order)
alignmentstringAlignment descriptor (e.g. lawful, chaotic, neutral)
sizestringSize or scope descriptor (e.g. small, medium, large)
tagsstringComma-separated metadata tags

Layout attributes

A faction's scene field (the image at the top of each section) is the media zone; media-position controls where it sits relative to the content. Beside layouts (start/end) collapse to a stack at narrow widths.

AttributeTypeDefaultDescription
media-positionstringtopWhere the scene sits: top, bottom, start (left), end (right)
media-ratiostringScene's share of the row when beside content (start/end): 1/3, 2/5, 1/2, 3/5, 2/3
valignstringCross-axis alignment when scene is beside content: top, center, bottom, stretch
collapsestringBreakpoint at which beside layouts collapse to a stack: sm, md, lg, never

Common attributes

All block runes share these attributes for layout and theming.

AttributeTypeDefaultDescription
widthstringcontentPage grid width: content, wide, or full
spacingstringVertical spacing: flush, tight, default, loose, or breathe
insetstringHorizontal padding: flush, tight, default, loose, or breathe
tintstringNamed colour tint from theme configuration
tint-modestringautoColour scheme override: auto, dark, or light
bgstringNamed background preset from theme configuration