mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-29 00:33:15 +00:00
![Jeremy Ruston](/assets/img/avatar_default.png)
* Initial Commit * Set currentTiddler and ..currentTiddler for filter evaulation * Precompile the filters for performance * Add explicit test for empty result when no filter passes * Use the cascade filter run prefix to choose the view template body template * Use the cascade mechanism to choose between the edit and view templates * Simplify cascade filter Thanks @saqimtiaz * Add control panel UI for inspecting the template cascades * Refactor import listing and plugin listing as alternate body templates As suggested by @pmario * Refer to $:/core/ui/{View|Edit}Template via their associated config tiddlers * Fix typo in previous commit * Add demo of custom story tiddler template * Tweak control panel wording * Standardise "Story Tiddler Template" nomenclature * Add a cascade for the editor template body * Add a cascade for the view template title * Avoid unwanted whitespace * Add a cascade for dynamically choosing tiddler icons
19 lines
873 B
Plaintext
19 lines
873 B
Plaintext
title: $:/core/ui/TagTemplate
|
|
|
|
\whitespace trim
|
|
<span class="tc-tag-list-item" data-tag-title=<<currentTiddler>>>
|
|
<$set name="transclusion" value=<<currentTiddler>>>
|
|
<$macrocall $name="tag-pill-body" tag=<<currentTiddler>> colour={{!!color}} palette={{$:/palette}} element-tag="""$button""" element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter='[all[current]tagging[]]' tag='span'"""/>
|
|
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down">
|
|
<$set name="tv-show-missing-links" value="yes">
|
|
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
|
</$set>
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]" variable="listItem">
|
|
<$transclude tiddler=<<listItem>>/>
|
|
</$list>
|
|
<hr>
|
|
<$macrocall $name="list-tagged-draggable" tag=<<currentTiddler>>/>
|
|
</$reveal>
|
|
</$set>
|
|
</span>
|