mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-01 07:36:18 +00:00
a9cc292dc9
Add an example to the field mangler widget demonstrating the `tiddler` param.
25 lines
905 B
Plaintext
25 lines
905 B
Plaintext
created: 20150706160301163
|
|
modified: 20150706172915783
|
|
tags: [[Widget Examples]] FieldManglerWidget
|
|
title: FieldMangler Widget (Examples)
|
|
type: text/vnd.tiddlywiki
|
|
|
|
<$macrocall $name=".example" n="1"
|
|
eg="""
|
|
<$fieldmangler>
|
|
Add tag ''example'' to this tiddler (current)<$button message="tm-add-tag" param="example">{{$:/core/images/new-button}}</$button>
|
|
<br>
|
|
Remove tag ''example'' to this tiddler (current)<$button message="tm-remove-tag" param="example">{{$:/core/images/delete-button}}</$button>
|
|
</$fieldmangler>
|
|
"""/>
|
|
|
|
|
|
<$macrocall $name=".example" n="2"
|
|
eg="""
|
|
<$fieldmangler tiddler="Hello World">
|
|
Add tag ''example'' to the Hello World tiddler<$button message="tm-add-tag" param="example">{{$:/core/images/new-button}}</$button>
|
|
<br>
|
|
Remove tag ''example'' to the Hello World tiddler<$button message="tm-remove-tag" param="example">{{$:/core/images/delete-button}}</$button>
|
|
</$fieldmangler>
|
|
"""/>
|