Lets say i have propery Rank, that is a number.
Using
html(
"<span style='font-size:24px; color:" +
if(Rank<=3, "#CD7F32",
if(Rank<=6, "#C0C0C0",
if(Rank<=9, "#FFD700",
"#a570f5"
)
)
) +
"'>" +
if(Rank==Rank.floor(),
"✦".repeat((Rank-1) % 3 + 1) +
"✧".repeat(3 - ((Rank-1) % 3 + 1)),
"✧✧✧"
) +
"</span>"
)
It can be displayed as ✦✧✧ (<span style="font-size: 24px; color:#a570f5">✦✧✧</span>)
instead.
And later in the note it can be refered in places related to the rank.
As well as used in a wiki style box or simular places. As i usually hide properties all together.
It can be also used to dynamicaly get stuff like character lifespan based on dates.
Some of it probably can be fixed by having a Fliped table view
But that is also not here.