mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-29 11:30:28 +00:00
Add basic tag macro
This commit is contained in:
parent
7034c429f6
commit
ab129a620e
6
core/wiki/macros/tag.tid
Normal file
6
core/wiki/macros/tag.tid
Normal file
@ -0,0 +1,6 @@
|
||||
title: $:/core/macros/tag
|
||||
tags: $:/tags/Macro
|
||||
|
||||
\define tag(tag)
|
||||
{{$tag$||$:/core/ui/TagTemplate}}
|
||||
\end
|
@ -0,0 +1,4 @@
|
||||
title: Tagged with TagMacro
|
||||
tags: TagMacro
|
||||
|
||||
This tiddler is to demonstrate the TagMacro.
|
27
editions/tw5.com/tiddlers/macros/TagMacro.tid
Normal file
27
editions/tw5.com/tiddlers/macros/TagMacro.tid
Normal file
@ -0,0 +1,27 @@
|
||||
caption: tag
|
||||
created: 20141206130540337
|
||||
modified: 20141206130540337
|
||||
tags: Macros
|
||||
title: TagMacro
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The 'tag' macro displays a tag pill for a specified tag.
|
||||
|
||||
! Parameters
|
||||
|
||||
|!Position |!Name |!Description |!Default |
|
||||
|1st |tag |Title of tag |The current tiddler |
|
||||
|
||||
! Examples
|
||||
|
||||
For example:
|
||||
|
||||
```
|
||||
* <<tag>>
|
||||
* <<tag "HelloThere">>
|
||||
```
|
||||
|
||||
Returns:
|
||||
|
||||
* <<tag>>
|
||||
* <<tag "HelloThere">>
|
Loading…
Reference in New Issue
Block a user