Skip to content

Commit

Permalink
Create 微件 wikify 用法示例.tid
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacharia2 committed Oct 13, 2023
1 parent f99a279 commit f0858dd
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions tiddlers/微件 wikify 用法示例.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
created: 20231013022846023
creator: WhiteFall
modified: 20231013024141235
modifier: WhiteFall
tags: 高级知识 Wiki编程的定义
title: 微件 wikify 用法示例

```html
<$let target-text={{条件语法!!text}} Snapshot-tiddler="Snapshot/条件语法" >

<$wikify text=<<target-text>> name="compiled" output="html">
<$button tooltip="Create" message="tm-copy-to-clipboard" param=<<compiled>> >
<$action-setfield $tiddler=<<Snapshot-tiddler>> $field="text" $value=<<compiled>> />
Create
</$button>
<$button tooltip="Delete">
<$action-deletetiddler $tiddler=<<Snapshot-tiddler>> />
<$action-sendmessage $message="tm-close-tiddler" $param=<<Snapshot-tiddler>> />
Delete
</$button>
</$wikify>

<$tiddler tiddler=<<Snapshot-tiddler>>>
<div style="border: 1px solid gray; border-style: dotted; padding: 0px 5px 0px 5px;">
<$transclude />
</div>
</$tiddler>
</$let>
```

<$let target-text={{条件语法!!text}} Snapshot-tiddler="Snapshot/条件语法" >

<$wikify text=<<target-text>> name="compiled" output="html">
<$button tooltip="Create" message="tm-copy-to-clipboard" param=<<compiled>> >
<$action-setfield $tiddler=<<Snapshot-tiddler>> $field="text" $value=<<compiled>> />
Create
</$button>
<$button tooltip="Delete">
<$action-deletetiddler $tiddler=<<Snapshot-tiddler>> />
<$action-sendmessage $message="tm-close-tiddler" $param=<<Snapshot-tiddler>> />
Delete
</$button>
</$wikify>

<$tiddler tiddler=<<Snapshot-tiddler>>>
<div style="border: 1px solid gray; border-style: dotted; padding: 0px 5px 0px 5px;">
<$transclude />
</div>
</$tiddler>
</$let>

0 comments on commit f0858dd

Please sign in to comment.