Docs and template sets work

This commit is contained in:
Zef Hemel
2023-12-22 16:40:38 +01:00
parent 3350c7f076
commit 0a7fc05fef
25 changed files with 99 additions and 54 deletions
+10 -1
View File
@@ -1,5 +1,14 @@
#template
---
tags: template
type: query
order: 100
description: |
Renders its object value in a `key: value` format
usage: |
Can be used by passing in a YAML object in a template via `value` or in a `render` clause of a query
---
{{#each .}}
{{@key}}: {{.}}
{{/each}}
---
-12
View File
@@ -1,12 +0,0 @@
---
tags: template
description: |
Renders its object value in a `key: value` format
usage: |
Can be used by passing in a YAML object in a template via `value` or in a `render` clause of a query
---
{{#each .}}
{{@key}}: {{.}}
{{/each}}
---
+2 -1
View File
@@ -1,4 +1,5 @@
* [[{{ref}}|{{ref}}]] {{description}}
#template
* [[{{ref}}|{{#if displayName}}{{displayName}}{{else}}{{ref}}{{/if}}]] {{description}}
{{#if usage}}
* **Usage:** {{usage}}
{{/if}}
@@ -1,5 +1,6 @@
---
tags: template
type: live
description: Lists all pages with ".conflicted" in the name, created as a result of a synchronization conflict.
---
@@ -1,5 +1,6 @@
---
tags: template
type: live
description: |
Shows all tasks that reference (tag) the current page. For instance a task that references `[[John]]` in its name, would appear on the `John` page if it would use this [[sets/tasks/incoming]] template.
order: 2
@@ -1,5 +1,6 @@
---
tags: template
type: live
description: Queries all tasks tagged with a specific tag.
usage: Pass in the tag to filter on as the `value` of this template
order: 2
+7
View File
@@ -1 +1,8 @@
---
tags: template
type: query
order: 1
description: A page reference link as a list item
---
* [[{{name}}]]
+1
View File
@@ -3,6 +3,7 @@ tags: template
type: page
displayName: Slash Template
pageName: "template/slash/"
description: Define a new Slash Template
frontmatter:
tags: template
trigger: "|^|"
+2 -1
View File
@@ -3,8 +3,9 @@ tags: template
type: page
displayName: Page Template
pageName: "template/page/"
description: Define a new Page Template
frontmatter:
tags: template
displayName: "|^|"
type: page
---
|^|
@@ -0,0 +1,9 @@
---
tags: template
type: slash
trigger: "note-admonition"
displayName: "/note-admonition"
description: Insert a "note" admonition
---
> **note** Note
> |^|
+7
View File
@@ -0,0 +1,7 @@
---
tags: template
trigger: "table"
---
| Header A | Header B |
|----------|----------|
| |^| | Cell B |
@@ -0,0 +1,9 @@
---
tags: template
type: slash
trigger: "warning-admonition"
displayName: "/warning-admonition"
description: Insert a "warning" admonition
---
> **warning** Warning
> |^|
+1
View File
@@ -1,5 +1,6 @@
---
tags: template
type: query
description: generic task template that supports updating the status back in the origin page
order: 1
---