M macros.tid => macros.tid +8 -11
@@ 1,4 1,4 @@
-modified: 20220214203551000
+modified: 20220217125223000
created: 20220214180052000
creator: hokiegeek
title: $:/plugins/hokiegeek/location-crafts/macros
@@ 6,19 6,16 @@ tags: $:/tags/Macro
type: text/vnd.tiddlywiki
<!--
-expected
-random
-special
-complete (just for locations?)
-none
-
how to mark uniques?
and how to mark them off?
-->
\define category-list(type)
<div class="category-list">
- <$let special-elements="expected random special none complete"
+ <$let special-elements-default="expected none custom random special"
+ special-elements-locations={{{ [<special-elements-default>addsuffix[ complete]] }}}
+ special-elements-encounters=<<special-elements-default>>
+ special-elements-objects=<<special-elements-default>>
categoryState={{{ [{!!title}slugify[]addprefix[$:/state/location-crafts/]] }}}>
<div class="header-button">
<h1 style="text-transform: capitalize;">$type$</h1>
@@ 60,10 57,10 @@ and how to mark them off?
<ol>
<$list filter="[<currentTiddler>get[crafted-$type$]enlist-input:raw[]]" variable="element" counter="counter" emptyMessage="no $type$ setup">
<li>
- <$list filter="[<special-elements>enlist-input:raw[]match<element>]">
+ <$list filter="[<special-elements-$type$>enlist-input:raw[]match<element>]">
<<element>>
</$list>
- <$list filter="[<special-elements>enlist-input:raw[]match<element>then[found]else[]remove[found]]">
+ <$list filter="[<special-elements-$type$>enlist-input:raw[]match<element>then[found]else[]remove[found]]">
<$link to=<<element>>><<element>></$link>
</$list>
<!--
@@ 98,7 95,7 @@ and how to mark them off?
</$button>
</div>
<div style="grid-row-start: 2">
- <$list filter="[<special-elements>enlist-input[]]">
+ <$list filter="[<special-elements-$type$>enlist-input[]]">
<$button setTitle=<<categoryState>> setField="custom-$type$" setTo=<<currentTiddler>> class="tc-btn-invisible tc-tiddlylink">
<<currentTiddler>>
</$button>
M plugin.info => plugin.info +1 -1
@@ 2,7 2,7 @@
"title": "$:/plugins/hokiegeek/location-crafts",
"description": "Some templates and stuff for recording information created with the RPG tool The Location Crafter",
"author": "hokiegeek",
- "version": "0.3.1",
+ "version": "0.3.2",
"core-version": ">=5.2.1",
"source": "https://git.sr.ht/~hokiegeek/tw5-location-crafts",
"plugin-type": "plugin",