This is a stripped-down version of a single section of Grok TiddlyWiki, optimized for fast loading and readability by search engines. Some features are missing.

For the full Grok TiddlyWiki experience, please visit the wiki version of this page.

Ex:CountWidgetReplacement/answer

6th February 2021 at 4:03pm
<ul>
  <li>There are <$count filter="[tag[Contact]"/> people in this wiki.</li>
  <li>There are <$count filter="[tag[Meeting]links[]!tag[Contact]"/> non-contact tiddlers linked from meetings.</li>
  <$set name="totalTiddlers" value={{{ [!is[system]count[]] }}}>
    <li><$text text={{{ [tag[Contact]count[]divide<totalTiddlers>multiply[100]precision[3]] }}}/>% of all non-system tiddlers in the wiki are contacts.</li>
  </$set>
</ul>

As you can see, the percentage calculation cannot be replaced since count[] is not the final filter step.

Go to question: Ex:CountWidgetReplacement