You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.3 KiB

---
location: [47.3639129,8.55627491017841]
2 years ago
CollapseMetaTable: true
key1:
name: "test key"
link: "[[Test Sheet 2]]"
desc:
---
# 2nd Test sheet for snippets
2 years ago
(key2:: "test", "[[Test sheet]]", "this is the key desc")
2 years ago
### Auto card link
```cardlink
url: https://obsidian.md/
title: "Obsidian"
description: "Obsidian: A knowledge base that works on local Markdown files."
```
2 years ago
 
Key name: `= this.key1.name`
Key link: `= this.key1.link`
Key desc: `=this.key1.desc`
 
Key name: `= this.key2[0]`
 
2 years ago
---
2 years ago
 
<mark style="background:grey">Lieux</mark>
<mark class="blue">Lieux</mark>
<mark style="background:green">Lieux</mark>
<p class="stickies";>
<b> COUNTDOWN <font color="#ff0000">EXAMS</font> </b></p>
2 years ago
> [!attention|right-small]
> Test
This is accompanying text on that floating situation.
2 years ago
&emsp;
---
```dataviewjs
const header = '### 🗒 Notes'
const pages = dv.pages('"00.01 Admin/Calendars"')
const regex = new RegExp(`\n${header}\r?\n(.*?)(\n#+ |\n---|$)`, 's')
for (const page of pages) {
const file = app.vault.getAbstractFileByPath(page.file.path)
const contents = await app.vault.read(file)
const summary = contents.match(regex)
if (summary) {
dv.header(2, file.basename)
dv.paragraph(summary[1].trim())
}
}
```
2 years ago
&emsp;