mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 19:47:20 +00:00
b7562f0c7b
* Initial Commit * Update docs * Add support for elseif blocks * Another test * WIP * Change from `{%if%}` to `<%if%>` See discussion here - https://talk.tiddlywiki.org/t/proposed-if-widget/7882/64 * Don't use the widget body as the template if a list-empty widget is present See discussion here - https://github.com/Jermolene/TiddlyWiki5/pull/7710#issuecomment-1717193296 * List widget should search recursively for list-template and list-empty * Allow block mode content within an if/then/else clause * Update docs * Add from-version tag to docs
26 lines
395 B
Plaintext
26 lines
395 B
Plaintext
title: Conditionals/MissingEndif
|
|
description: Conditional shortcut syntax with missing endif
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Text
|
|
|
|
This is a <% if [<something>match[one]] %>Elephant
|
|
+
|
|
title: Output
|
|
|
|
<$let something="one">
|
|
{{Text}}
|
|
</$let>
|
|
|
|
<$let something="two">
|
|
{{Text}}
|
|
</$let>
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>
|
|
This is a Elephant
|
|
</p><p>
|
|
This is a
|
|
</p> |