mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 02:54:45 +00:00
Text-slicer: Add support for definition lists
This commit is contained in:
11
plugins/tiddlywiki/text-slicer/templates/static/def-list.tid
Normal file
11
plugins/tiddlywiki/text-slicer/templates/static/def-list.tid
Normal file
@@ -0,0 +1,11 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/templates/static/def-list
|
||||
|
||||
<$list filter="""[all[current]] $(tv-exclude-filter)$ +[limit[1]]""" variable="item">
|
||||
|
||||
`<dl class="`{{||$:/plugins/tiddlywiki/text-slicer/templates/static/helpers/classes}}`">`
|
||||
|
||||
<$list filter={{!!toc-list-filter}} template="$:/plugins/tiddlywiki/text-slicer/templates/static/tiddler"/>
|
||||
|
||||
`</dl>`
|
||||
|
||||
</$list>
|
||||
@@ -0,0 +1,9 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/templates/static/definition
|
||||
|
||||
`<dd class="`{{||$:/plugins/tiddlywiki/text-slicer/templates/static/helpers/classes}}`">`
|
||||
|
||||
<$transclude/>
|
||||
|
||||
`</dd>`
|
||||
|
||||
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/static/tiddler"/>
|
||||
9
plugins/tiddlywiki/text-slicer/templates/static/term.tid
Normal file
9
plugins/tiddlywiki/text-slicer/templates/static/term.tid
Normal file
@@ -0,0 +1,9 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/templates/static/term
|
||||
|
||||
`<dt class="`{{||$:/plugins/tiddlywiki/text-slicer/templates/static/helpers/classes}}`">`
|
||||
|
||||
<$transclude/>
|
||||
|
||||
`</dt>`
|
||||
|
||||
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/static/tiddler"/>
|
||||
@@ -38,4 +38,22 @@ title: $:/plugins/tiddlywiki/text-slicer/templates/static/tiddler
|
||||
|
||||
</$list>
|
||||
|
||||
<$list filter="[<toc-type>prefix[def-list]]" variable="item">
|
||||
|
||||
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/static/def-list" mode="block"/>
|
||||
|
||||
</$list>
|
||||
|
||||
<$list filter="[<toc-type>prefix[term]]" variable="item">
|
||||
|
||||
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/static/term" mode="block"/>
|
||||
|
||||
</$list>
|
||||
|
||||
<$list filter="[<toc-type>prefix[definition]]" variable="item">
|
||||
|
||||
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/static/definition" mode="block"/>
|
||||
|
||||
</$list>
|
||||
|
||||
</$vars>
|
||||
|
||||
Reference in New Issue
Block a user