Posts with the tag « $:/tags/SideBar » :

🔗 Tag Cloud

-

\define tag-pill-styles() ---------- copied from $:/core/macros/tag - use $(count)$ to set font-size \define tag-pill-styles() background-color:$(backgroundColor)$; fill:$(foregroundColor)$; color:$(foregroundColor)$; font-size:calc(0.8em + (0.05em * ($(count)$ / 50) ) ); \end

\define tag-pill-inner() ---------- copied from $:/core/macros/tag - added $(count)$ display in pill \define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions) <$vars foregroundColor=<> backgroundColor="""$colour$"""> <$element-tag$ $element-attributes$ class="tc-tag-label tc-btn-invisible" style=<>> $actions$<$transclude tiddler="""$icon$"""/> <$view tiddler=<<tag>> field="title" format="text" /> ($(count)$)

\end

\define tagcloud_get() <$list filter="[all[tiddlers]tags[]]"> <$text text="[["/>{{{ [tagging[]count[]divide[10000]] }}};<><$text text="]]"/>

\end

\define tagcloud_sort() <$list filter="[enlist!nsort[]]"> <$list filter="[split[;]last[]]"><>

\end

\define tagcloud_showitem() <$vars count={{{ [tagging[]count[]] }}}> <$macrocall $name="tag" tag=<> />

\end

\define tagcloud_showbycount() <$wikify name="items" text=<> > <$wikify name="sorted" text=<> > <$list filter=<>> <>

\end

There are …