Files
plainleaf/website/Object/item.md
T
2026-01-22 15:32:01 +01:00

22 lines
891 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
List items (both bullet point and numbered items) are indexed with the `item` tag, additional tags can be added using [[Tag]].
Here is an example of a #quote item using a custom [[Attribute|attribute]]:
* “If you don’t know where you’re going you may not get there.” [by: Yogi Berra] #quote
And then queried via the #quote tag:
${query[[
from index.tag "quote"
where table.includes(_.itags, "item")
]]}
Additional attributes:
* `parent` will contain a ref to the item’s direct parent `item` if any
* `links` will contain a list of all the wiki-style [[Link|links]] in the item
* `ilinks` (inherited links) will contain a list of all the wiki-style links in the item _and its parents_.
* `itags` will also inherit their ancestors’ tags
Example query showing all attributes of items on this page:
${query[[from index.tag "item" where _.page == editor.getCurrentPage()]]}