1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Add basic tag macro

This commit is contained in:
Jermolene 2014-12-06 13:44:08 +00:00
parent 7034c429f6
commit ab129a620e
3 changed files with 37 additions and 0 deletions

6
core/wiki/macros/tag.tid Normal file
View File

@ -0,0 +1,6 @@
title: $:/core/macros/tag
tags: $:/tags/Macro
\define tag(tag)
{{$tag$||$:/core/ui/TagTemplate}}
\end

View File

@ -0,0 +1,4 @@
title: Tagged with TagMacro
tags: TagMacro
This tiddler is to demonstrate the TagMacro.

View 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">>