Template sets
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
---
|
||||
tags: template
|
||||
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
|
||||
---
|
||||
|
||||
```query
|
||||
task where name =~ /\[\[{{escapeRegexp @page.name}}\]\]/ where done = false render [[template/tasks/task]]
|
||||
```
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
tags: template
|
||||
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
|
||||
---
|
||||
|
||||
```query
|
||||
task where tags = "{{.}}" and done = false render [[template/tasks/task]]
|
||||
```
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
tags: template
|
||||
description: generic task template that supports updating the status back in the origin page
|
||||
order: 1
|
||||
---
|
||||
|
||||
* [{{state}}] [[{{ref}}]] {{name}}
|
||||
Reference in New Issue
Block a user