1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-05 03:33:27 +00:00

Fix visible transclusion example

This commit is contained in:
jeremy@jermolene.com 2022-05-10 08:10:32 +01:00
parent e092113f9f
commit 8e4c13382b

View File

@ -5,7 +5,7 @@ Import this component to make all the child transclusions visible.
Block transclusions are shown in red, and inline transclusions are shown in green. Block transclusions are shown in red, and inline transclusions are shown in green.
--> -->
\function <$transclude>(tiddler,$tiddler,mode,$mode) \procedure <$transclude>(tiddler,$tiddler,mode,$mode)
<!-- Replicate the logic of the transclude widget to determine the output mode, and hence the tag and colour to use for output --> <!-- Replicate the logic of the transclude widget to determine the output mode, and hence the tag and colour to use for output -->
<$let <$let
mode={{{ [[$mode]is[variable]then<$mode>!is[blank]] :else[[mode]is[variable]then<mode>!is[blank]] :else[<parseAsInline>match[yes]then[inline]else[block]] }}} mode={{{ [[$mode]is[variable]then<$mode>!is[blank]] :else[[mode]is[variable]then<mode>!is[blank]] :else[<parseAsInline>match[yes]then[inline]else[block]] }}}