mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 01:34:45 +00:00
Text-slicer: Add support for definition lists
This commit is contained in:
11
plugins/tiddlywiki/text-slicer/templates/plain/def-list.tid
Normal file
11
plugins/tiddlywiki/text-slicer/templates/plain/def-list.tid
Normal file
@@ -0,0 +1,11 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/templates/plain/def-list
|
||||
|
||||
\define body()
|
||||
<dl>
|
||||
<$list filter="""[all[current]] $(tv-exclude-filter)$ +[limit[1]]""" variable="item">
|
||||
<$list filter={{!!toc-list-filter}} template="$:/plugins/tiddlywiki/text-slicer/templates/plain/tiddler"/>
|
||||
</$list>
|
||||
</dl>
|
||||
\end
|
||||
|
||||
<<body>>
|
||||
@@ -0,0 +1,11 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/templates/plain/definition
|
||||
|
||||
\define body()
|
||||
<dd>
|
||||
|
||||
<$transclude/>
|
||||
|
||||
</dd>
|
||||
\end
|
||||
|
||||
<<body>>
|
||||
11
plugins/tiddlywiki/text-slicer/templates/plain/term.tid
Normal file
11
plugins/tiddlywiki/text-slicer/templates/plain/term.tid
Normal file
@@ -0,0 +1,11 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/templates/plain/term
|
||||
|
||||
\define body()
|
||||
<dt>
|
||||
|
||||
<$transclude/>
|
||||
|
||||
</dt>
|
||||
\end
|
||||
|
||||
<<body>>
|
||||
@@ -26,4 +26,16 @@ title: $:/plugins/tiddlywiki/text-slicer/templates/plain/tiddler
|
||||
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/image" mode="block"/>
|
||||
</$list>
|
||||
|
||||
<$list filter="[<toc-type>prefix[def-list]]" variable="item">
|
||||
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/def-list" mode="block"/>
|
||||
</$list>
|
||||
|
||||
<$list filter="[<toc-type>prefix[term]]" variable="item">
|
||||
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/term" mode="block"/>
|
||||
</$list>
|
||||
|
||||
<$list filter="[<toc-type>prefix[definition]]" variable="item">
|
||||
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/definition" mode="block"/>
|
||||
</$list>
|
||||
|
||||
</$vars>
|
||||
|
||||
Reference in New Issue
Block a user