I’m trying to transclude a section based on a tag and a custom attribute.
The is that the square brackets seem to cause issues with parsing the transclusion expression.
- Am I approaching transclusion of particular sections the right way?
- Am I using custom attributes and tags for what they are made for?
Minimal problem:
Section to transclude
## Meeting [with: Bob]
- Lorem
- Ipsum
## Other Section
- a
- b
- c
Transclusion
[[Sandbox]]
![[Sandbox#Meeting [with: Bob]]]
Result:
The “c]” seems to be the last character of the transcluded page (instead of section) and the closing square bracket from the transclusion syntax.
Actual problem
I’m trying to automatically transclude sections for one-one-ones based on a query:
Template
#template
## [[page]]
![[{{page}}#{{name}}]]
Query
one-on-ones
where person = "Bob" limit 3
render each [[Sandbox/Transclusion]]
Section to transclude
## Meeting [with: Bob] #one-on-ones
- Lorem
- Ipsum
## Other Section
- a
- b
- c
Result
The result is pretty much the same as in the minimal example: