diff --git a/plugins/tiddlywiki/internals/filterinspection/docs/InspectFilterMacro.tid b/plugins/tiddlywiki/internals/filterinspection/docs/InspectFilterMacro.tid index d3e92959f1..f27aa6e1b2 100644 --- a/plugins/tiddlywiki/internals/filterinspection/docs/InspectFilterMacro.tid +++ b/plugins/tiddlywiki/internals/filterinspection/docs/InspectFilterMacro.tid @@ -15,4 +15,3 @@ By default the tabs are arranged horizontally above the content. To get vertical ;orientation : Optionally, the orientation of the schematic representation, defaulting to `horizontal`. Set to `vertical` to display the tabs vertically -[[Examples|$:/plugins/tiddlywiki/internals/filterinspection/docs/inspectfiltermacro/examples]] diff --git a/plugins/tiddlywiki/internals/filterinspection/docs/inspect-filter Macro (Examples).tid b/plugins/tiddlywiki/internals/filterinspection/docs/inspect-filter Macro (Examples).tid index 97f30c3edb..8d003f656e 100644 --- a/plugins/tiddlywiki/internals/filterinspection/docs/inspect-filter Macro (Examples).tid +++ b/plugins/tiddlywiki/internals/filterinspection/docs/inspect-filter Macro (Examples).tid @@ -2,22 +2,37 @@ title: $:/plugins/tiddlywiki/internals/filterinspection/docs/inspectfiltermacro/ tags: [[Macro Examples]] type: text/vnd.tiddlywiki -<$macrocall $name=".example" n="1" eg=""" -<$transclude $variable="inspect-filter" filter="[tags[]prefix[$:/]] :sort[length[]add[1]] +[first[2]tagging[]]" inputFilter="[all[tiddlers]]"/> +\procedure .example(n,eg,egvar) +<$let eg={{{ [!is[blank]getvariable[]] :else[] }}}> +
+ <$macrocall $name="copy-to-clipboard-above-right" src=<>/> + <$codeblock code=<>/> + <$list filter=`[title<.state-prefix>addsuffix{!!title}addsuffix[/]addsuffix[$(n)$]]` variable=".state"> + <$reveal state=<<.state>> type="nomatch" text="show"> +
+
<$button set=<<.state>> setTo="show">Try it
+
+ + <$reveal state=<<.state>> type="match" text="show"> +
+
<$button set=<<.state>> setTo="">Hide
+
+
+ <$transclude $variable="eg" $mode="block"/> +
+ + +
+ +\end .example + +<$macrocall $name=".example" eg="""<$transclude $variable="inspect-filter" filter="1 2 3" inputFilter="[all[tiddlers]]"/>"""/> + +<$macrocall $name=".example" eg="""<$transclude $variable="inspect-filter" filter="1 2 3" inputFilter="[all[tiddlers]]" orientation="vertical"/>"""/> + +<$macrocall $name=".example" eg="""<$transclude $variable="inspect-filter" filter="[title] [{$:/palette}length[]] [[marker]]" inputFilter="[all[tiddlers]]"/>"""/> + +<$macrocall $name=".example" eg="""<$transclude $variable="inspect-filter" filter="[all[shadows+tiddlers]tag[$:/tags/MenuBar]!has[draft.of]] -[all[tiddlers+shadows]tag[$:/tags/TopLeftBarlimit[1]then[]else[$:/plugins/tiddlywiki/menubar/items/topleftbar]]" inputFilter="[all[tiddlers]]"/> """/> -<$macrocall $name=".example" n="2" eg=""" -<$transclude $variable="inspect-filter" filter="1 2 3" inputFilter="[all[tiddlers]]"/> -"""/> - -<$macrocall $name=".example" n="3" eg=""" -<$transclude $variable="inspect-filter" filter="[title] [{$:/palette}length[]] [[marker]]" inputFilter="[all[tiddlers]]"/> -"""/> - -<$macrocall $name=".example" n="4" eg=""" -<$transclude $variable="inspect-filter" filter="[all[shadows+tiddlers]tag[$:/tags/MenuBar]!has[draft.of]] -[all[tiddlers+shadows]tag[$:/tags/TopLeftBar]limit[1]then[]else[$:/plugins/tiddlywiki/menubar/items/topleftbar]]" inputFilter="[all[tiddlers]]"/> -"""/> - -<$macrocall $name=".example" n="5" eg=""" -<$transclude $variable="inspect-filter" filter="[all[shadows+tiddlers]tag[$:/tags/MenuBar]!has[draft.of]] -[all[tiddlers+shadows]tag[$:/tags/TopLeftBar]limit[1]then[]else[$:/plugins/tiddlywiki/menubar/items/topleftbar]]" inputFilter="[all[tiddlers]]" orientation="vertical"/> -"""/> +<$macrocall $name=".example" eg="""<$transclude $variable="inspect-filter" filter="[tags[]prefix[$:/]] :sort[length[]add[1]] +[first[2]tagging[]]" inputFilter="[all[tiddlers]]"/>"""/>