William,
The code with comments
<!-- create an array of all instances where the following are true:
[is[current] = out of all the tiddlers in the system select
the current tiddler
field:catégorie = of the tiddlers selected so far look for a field
named catégorie
field:catégorie/article = of the tiddlers selected so far look for
a field named catégorie or a field named article (not sure because I'm not
good on regexp)
--
catégorie/article|livre/ = does the field contain the value article
or livre?
-- So this triggers if the current tiddler has a category of
article or book
-- The regexp no longer works and needs to be replaced with the
following
-- [regexp:catégorie[/article|livre/]] (or something I'm not up on
regexp)
-->
<$list filter="[is[current]field:catégorie/article|livre/]">
<!-- Output a number = to the count of tiddlers that fit the criteria for
the filter
I think this is a search for fields named catégorie, citation or
source which have a value = to the current tiddler's title
-->
<$count filter="[field:catégorie/citation/source{!!title}]"/>
<!-- Output a hard space -->
<!-- display a button that is a copy of the tiddler named
$:/_Template/Citation -->
<$button message="tw-new-tiddler" class="btn-invisible"
param="$:/_Template/Citation">cit., </$button>
</$list>
<!-- display a bunch of other counts and buttons -->
<$count
filter="[field:catégorie/note/à_propos_de{!!title}!description[dimensions]]"/>/<$count
filter="[field:catégorie/note/search{!!title}!title{!!title}!description[dimensions]]
-[à_propos_de{!!title}!description[dimensions]]"/>
<$button message="tw-new-tiddler" class="btn-invisible"
param="$:/_Template/Note">notes</$button>
<$list filter="[is[current]field:catégorie/conception/]">, <$count
filter="[field:catégorie/contre-exemple/à_propos_de{!!title}]"/>
contre-exemples</$list>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/5c3e6ab5-7c93-4100-b0f9-ec730a2c992a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.