Oh my stars and count filters

127 views
Skip to first unread message

barro...@gmail.com

unread,
Jan 19, 2019, 6:23:51 AM1/19/19
to TiddlyWiki

countfilter.jpg


All the count filters-- aren't they beautiful :)

Basically a master auto tallying count sheet of many different things of the project and wiki (category, subjects, items) in one place.

An example of one of the count filter segments:

<span class="ragsspannumb"><$count filter="[tag[*Area]]"/></span><span class="ragsspandottednumb"><$count filter="[tag[*Area]workstatus[complete]]"/></span> Geo Areas

The spans (styled in a stylesheet tiddler) give the borders (double, single, dashed, dotted) to the numbers.  First count filter gives the total of a particular category or subject set by tags (some counts are by other than tags, examples given below), and the second number by reading the "work status" field that those tiddlers have.

Other things other than tags are counted like tiddlers having certain fields or entries in data dictionary (called datasets on the sheet). Since they use filters, the possibilities are many. Count filters for them are like below

fields - <$count filter="[tag[*transportation]field:shopdirectory2[ (taxi)]]"/>

data dictionary entries - <$count filter="[[#alchemical compound dataset]indexes[all]]"/>

Riz

unread,
Jan 19, 2019, 8:53:59 AM1/19/19
to TiddlyWiki
It is pleasing. Love your stylesheet. Care to share?

barro...@gmail.com

unread,
Jan 19, 2019, 9:26:43 PM1/19/19
to TiddlyWiki
On Saturday, January 19, 2019 at 8:53:59 AM UTC-5, Riz wrote:
It is pleasing. Love your stylesheet. Care to share?

Certainly : ) it's simple enough to paste here.  On note though, the colors/theme you see in my screenshot is deceiving.  I'm using the basic Vanilla tW theme but my system is set up with Windows high contrast inverted which reverses all the Vanilla colors.

The tiddler is mainly Vanilla with a TW styled table-- each count section in a cell.

The CSS (which is in a general stylesheet tagged tiddler to work throughout the wiki) for the bordered numbers:
*(you can change the "rags" prefix of the class to what you may prefer)

/* span bordered small bold numbers text*/
.ragsspannumb {border:solid 1px; border-radius:4px; padding:0px 4px 0px 4px; font-size: smaller; font-weight: bold;}
.ragsspanboldnumb {border:solid 2px; border-radius:4px; padding:0px 4px 0px 4px; font-size: smaller; font-weight: bold;}
.ragsspandoublenumb {border:double 3px; border-radius:4px; padding:0px 4px 0px 4px; font-size: smaller; font-weight: bold;}
.ragsspandottednumb {border:dotted 1px; border-radius:4px; padding:0px 4px 0px 4px; font-size: smaller;}
.ragsspandashednumb {border:dashed 1px; border-radius:4px; padding:0px 4px 0px 4px; font-size: smaller; font-weight: bold;}

for bordered text spans without the reduced font:

/* span bordered normal text */
.ragsspan {border:solid 1px; border-radius:4px; padding:0px 4px 0px 4px;}
.ragsspanbold {border:solid 2px; border-radius:4px; padding:0px 4px 0px 4px;}
.ragsspandouble {border:double 3px; border-radius:4px; padding:0px 4px 0px 4px;}
.ragsspandotted {border:dotted 1px; border-radius:4px; padding:0px 4px 0px 4px;}
.ragsspandashed {border:dashed 1px; border-radius:4px; padding:0px 4px 0px 4px;}


and the tiddler code (repeated from post above)


<span class="ragsspannumb"><$count filter="[tag[*Area]]"/></span>

Matthew Lauber

unread,
Jan 19, 2019, 10:35:26 PM1/19/19
to TiddlyWiki
Is your tag named "*Area" or is that some kind of wildcard tool you've found/built there?

Rizwan Ishak

unread,
Jan 19, 2019, 11:15:36 PM1/19/19
to tiddl...@googlegroups.com
Thnaks. Good work once again.

Sincerely,
Dr. Rizwan Ishak

barro...@gmail.com

unread,
Jan 20, 2019, 1:24:34 AM1/20/19
to tiddl...@googlegroups.com
Is your tag named "*Area" or is that some kind of wildcard tool you've found/built there?

I use the characters @, #, * as prefixes to distinguish category and utility tiddler titles and tags from content item tiddler titles and their tags

barro...@gmail.com

unread,
Jan 20, 2019, 1:28:18 AM1/20/19
to TiddlyWiki
On Saturday, January 19, 2019 at 11:15:36 PM UTC-5, Riz wrote:
Thnaks. Good work once again.


Thank you very kindly : )

barro...@gmail.com

unread,
Feb 14, 2019, 4:21:30 AM2/14/19
to TiddlyWiki
AN ADDITION:

the span border can also be used with text without needing to use monospaced wikitext markup or block quotes
this preserves the original font being bordered instead of converting it to monospaced

/* span border */
.ragsspan {border:solid 1px; border-radius:4px; padding:0px 4px 0px 4px;}
.ragsspanbold {border:solid 2px; border-radius:4px; padding:0px 4px 0px 4px;}
.ragsspandouble {border:double 3px; border-radius:4px; padding:0px 4px 0px 4px;}
.ragsspandotted {border:dotted 1px; border-radius:4px; padding:0px 4px 0px 4px;}
.ragsspandashed {border:dashed 1px; border-radius:4px; padding:0px 4px 0px 4px;}
Reply all
Reply to author
Forward
0 new messages