mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 10:49:43 +00:00
33 lines
595 B
Plaintext
33 lines
595 B
Plaintext
|
title: ListWidget/WithExplicitTemplatesOverriddenByAttributes
|
||
|
description: List widget with explicit templates
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
+
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
|
||
|
\procedure test(filter)
|
||
|
<$list filter=<<filter>> emptyMessage="Zero" template="Template">
|
||
|
<$list-template>
|
||
|
<$text text=<<currentTiddler>>/>
|
||
|
</$list-template>
|
||
|
<$list-empty>
|
||
|
None!
|
||
|
</$list-empty>
|
||
|
</$list>
|
||
|
\end
|
||
|
|
||
|
<<test "1 2 3">>
|
||
|
|
||
|
<<test "">>
|
||
|
|
||
|
+
|
||
|
title: Template
|
||
|
|
||
|
<$text text=<<currentTiddler>>/><$text text=<<currentTiddler>>/>
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>112233</p><p>Zero</p>
|