1
0
2026-01-10 14:30:32 -06:00

44 lines
1.2 KiB
Plaintext

formulas:
Type: if(file.hasTag("ttrpg/faction"), "Faction (" + note.factionType + ")", if(file.hasTag("ttrpg/person"), "Person (" + note.personType + ")", "Other"))
Category: |-
if(
file.hasTag("ttrpg/faction"),
"Faction (" + factionType + ")",
if(
file.hasTag("ttrpg/person"),
"Person (" + personType + ")", "Unknown"
)
)
Note: file.asLink(if(note.title, note.title, file.basename))
properties:
note.summary:
displayName: Summary
views:
- type: table
name: Members
filters:
and:
- or:
- |-
list(factions).filter(
list(file(value).properties.factions)
.contains(this)
).length > 0
- list(factions).contains(this)
- list(this.leader).contains(file)
- or:
- file.hasTag("ttrpg/faction")
- file.hasTag("ttrpg/person")
order:
- formula.Note
- formula.Category
- summary
sort:
- property: file.name
direction: ASC
- property: formula.Category
direction: ASC
columnSize:
formula.Note: 151
formula.Category: 179