mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-29 23:40:45 +00:00
Another test
This commit is contained in:
parent
981f905830
commit
9d25b31974
@ -0,0 +1,60 @@
|
||||
title: Conditionals/NestedElseif
|
||||
description: Nested elseif conditional shortcut syntax
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Text
|
||||
|
||||
\whitespace trim
|
||||
This is a 
|
||||
{% if [<something>match[one]] %}
|
||||
{% if [<another>match[one]] %}
|
||||
Indian
|
||||
{% elseif [<another>match[two]] %}
|
||||
African
|
||||
{% else %}
|
||||
Unknown
|
||||
{% endif %}
|
||||
 Elephant
|
||||
{% elseif [<something>match[two]] %}
|
||||
Antelope
|
||||
{% else %}
|
||||
Crocodile
|
||||
{% endif %}
|
||||
, I think.
|
||||
+
|
||||
title: Output
|
||||
|
||||
<$let something="one" another="one">
|
||||
{{Text}}
|
||||
</$let>
|
||||
|
||||
<$let something="one" another="two">
|
||||
{{Text}}
|
||||
</$let>
|
||||
|
||||
<$let something="one" another="three">
|
||||
{{Text}}
|
||||
</$let>
|
||||
|
||||
<$let something="two">
|
||||
{{Text}}
|
||||
</$let>
|
||||
|
||||
<$let something="three">
|
||||
{{Text}}
|
||||
</$let>
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>
|
||||
This is a Indian Elephant, I think.
|
||||
</p><p>
|
||||
This is a African Elephant, I think.
|
||||
</p><p>
|
||||
This is a Unknown Elephant, I think.
|
||||
</p><p>
|
||||
This is a Antelope, I think.
|
||||
</p><p>
|
||||
This is a Crocodile, I think.
|
||||
</p>
|
Loading…
Reference in New Issue
Block a user