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

Q: How can I use a custom field to style a tiddler?

2018년 4월 11일 오후 5:39

Consider the following usecase: Introduced in v5.1.16

There is a field named: rank, which can hold different values eg: species.

Answer:

The idea is now: We dynamically create the stylesheet. The style-sheet can look like this:

title: myStyles
tags: $:/tags/Stylesheet

<$list filter="[rank[species]]"> 
[data-tiddler-title^="<$view field=title/>"] .tc-tiddler-body {
    column-count: 2;
}
</$list> 

This creates a CSS rule for every tiddler-title, that has a field rank and value species.

Learn more about possible attributes!