이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

tag Macro (Examples)

2024년 2월 28일 오후 1:13

<<tag>>
<<tag Concepts>>

The Following tag can be shown with a font-style: italic if the corresponding stylesheet exists. See: tag Macro

<<tag "Does not exist">>

If a list widget generates multiple tag macros for the same tag, clicking any of them opens dropdowns on all of them, as in the example below. This is usually unwanted.

<$list filter="[tag[HelloThere]]">

* <$link/> is tagged with: <$list filter="[<currentTiddler>tags[]]"> <<tag>> </$list>

</$list>

Adding the counter="transclusion" attribute to the list widget that generates multiple identical tag macros causes each of them to be identified as a unique one. Clicking on any of them opens only a single dropdown.

<$list filter="[tag[HelloThere]]" counter="transclusion">

* <$link/> is tagged with: <$list filter="[<currentTiddler>tags[]]"> <<tag>> </$list>

</$list>

A slightly more performant option is to use the variable="transclusion" attribute in the list widget. In this case, the variable <<transclusion>> has to be used inside the list widget instead of the <<currentTiddler>> .

<$list filter="[tag[HelloThere]]" variable="transclusion">

* <$link to=<<transclusion>>/> is tagged with: <$list filter="[<transclusion>tags[]]"> <<tag>> </$list>

</$list>