~hokiegeek/tw5-ex-novo-rpg

8b5dcffaf453ee563957e98021a61060b9349fa4 — HokieGeek 5 months ago 49a68cd 0.4.0
A much better look and feel
M plugin.info => plugin.info +1 -1
@@ 2,7 2,7 @@
    "title": "$:/plugins/hokiegeek/ex-novo-rpg",
    "description": "Some templates and stuff for recording plays of Ex Novo RPG",
    "author": "hokiegeek",
    "version": "0.2.0",
    "version": "0.4.0",
    "core-version": ">=5.2.1",
    "source": "https://git.sr.ht/~hokiegeek/tw5-ex-novo-rpg",
    "plugin-type": "plugin",

A template-districts.tid => template-districts.tid +14 -0
@@ 0,0 1,14 @@
modified: 20220121014015000
created: 20220121014015000
creator: hokiegeek
modifier: hokiegeek
title: $:/plugins/hokiegeek/ex-novo-rpg/template/districts
tags: ExNovo
type: text/vnd.tiddlywiki
caption: Districts

<ul>
<$list filter="[tag[ExNovo]tag<currentTiddler>tag[district]sort[density]reverse[]]" emptyMessage="no defined districts">
<li><$link><$view field="name" /></$link></li>
</$list>
</ul>

A template-factions.tid => template-factions.tid +33 -0
@@ 0,0 1,33 @@
modified: 20220121013744000
created: 20220121013744000
creator: hokiegeek
modifier: hokiegeek
title: $:/plugins/hokiegeek/ex-novo-rpg/template/factions
tags: ExNovo
type: text/vnd.tiddlywiki
caption: Factions

<div class="display-columns-2">
    <div style="margin-right: 10px">
        <h2>In power</h2>
        <ul>
        <$list filter="[tag[ExNovo]tag<currentTiddler>tag[faction]contains:active[yes]sort[power-tokens]reverse[]]" emptyMessage="no active factions">
        <h3>
            <$image width=25 source={{!!symbol}} /> <$link><$view field="name" /></$link>
        </h3>
        <$transclude mode="block" />
        </$list>
        </ul>
    </div>
    <div>
        <h2>Declined</h2>
        <ul>
        <$list filter="[tag[ExNovo]tag<currentTiddler>tag[faction]contains:active[no]sort[title]]" emptyMessage="no legacy factions">
        <h3>
            <$image width=25 source={{!!symbol}} /> <$link><$view field="name" /></$link>
        </h3>
        <$transclude mode="block" />
        </$list>
        </ul>
    </div>
</div>

A template-history.tid => template-history.tid +28 -0
@@ 0,0 1,28 @@
modified: 20220121014048000
created: 20220121014048000
creator: hokiegeek
modifier: hokiegeek
title: $:/plugins/hokiegeek/ex-novo-rpg/template/history
tags: ExNovo
type: text/vnd.tiddlywiki
caption: History

<style>
.open-icon {
    opacity: .15;
}
.open-icon svg {
    width: 10px;
}
.h3:hover .open-icon {
    opacity: .35;
}
</style>
<$list filter="[tag[ExNovo]tag<currentTiddler>tag[event]sort[sort-order]]" emptyMessage="nothing has happened!">
<h3>
    <span style="opacity: .65; font-size: .65rem;"><$view field="years-from-present" /> years ago</span> <$view field="caption" />
    <$link class="open-icon">{{$:/core/images/open-window}}</$link>
</h3>
<$transclude mode="block" />
</$list>


M template-map.tid => template-map.tid +3 -26
@@ 6,17 6,6 @@ tags: $:/tags/ViewTemplate ExNovo
title: $:/plugins/hokiegeek/ex-novo-rpg/template/map
type: text/vnd.tiddlywiki

<style>
.open-icon {
    opacity: .15;
}
.open-icon svg {
    width: 10px;
}
.h3:hover .open-icon {
    opacity: .35;
}
</style>
<$list filter="[all[current]is[tiddler]!is[system]tag[ExNovo]tag[map]]">

<<image-carousel "drawings">>


@@ 26,21 15,9 @@ type: text/vnd.tiddlywiki
<$transclude mode="block" />
</$list>

<h1>Factions</h1>
<ul>
<$list filter="[tag[ExNovo]tag<currentTiddler>tag[faction]sort[power-tokens]reverse[]]">
<li><$link><$view field="name" /></$link></li>
</$list>
</ul>

<h1>History</h1>
<$list filter="[tag[ExNovo]tag<currentTiddler>tag[event]sort[sort-order]]">
<h3>
    <span style="opacity: .65; font-size: .65rem;"><$view field="years-from-present" /> years ago</span> <$view field="caption" />
    <$link class="open-icon">{{$:/core/images/open-window}}</$link>
</h3>
<$transclude mode="block" />
</$list>
<$wikify name="tabstate" text="$:/state/ex-novo-rpg/tabs/{{!!title}}">
<$macrocall $name="tabs" tabsList="$:/plugins/hokiegeek/ex-novo-rpg/template/history $:/plugins/hokiegeek/ex-novo-rpg/template/factions $:/plugins/hokiegeek/ex-novo-rpg/template/districts" default="$:/plugins/hokiegeek/ex-novo-rpg/template/history" state=<<tabstate>> />
</$wikify>

</$list>


M view-ex-novo.tid => view-ex-novo.tid +12 -3
@@ 12,11 12,20 @@ type: text/vnd.tiddlywiki
<$wikify name="me" text="{{!!title}}">
<$list filter="[tag<me>tag[map]count[]compare:number:gt[0]]">
<h1>maps</h1>
<ul>
<div style="display: grid; grid-template-columns: repeat(auto-fill, 320px); grid-auto-rows: auto;">
<$list filter="[tag<me>tag[map]!has[draft.of]]">
<li><$link><<currentTiddler>></$link></li>
    <div>
    <$link>
    <h3><<currentTiddler>></h3>
    <$set name="images-list" tiddler=<<currentTiddler>> field="drawings">
    <$list filter="[enlist<images-list>first[1]]">
    <$image width=300 source=<<currentTiddler>> />
    </$list>
    </$set>
    </$link>
    </div>
</$list>
</ul>
</div>
</$list>
</$wikify>