30 lines
587 B
Markdown
30 lines
587 B
Markdown
<%*
|
|
const fm = tp.frontmatter;
|
|
const created = fm.created || tp.file.creation_date("YYYY-MM-DD[T]HH:mm:ss");
|
|
|
|
let title = fm.title
|
|
if (!title){
|
|
title = await tp.system.prompt("Enter name")
|
|
}
|
|
|
|
let first = fm.first
|
|
if (!first){
|
|
first = await tp.system.prompt("Enter fist date", String(created).substring(0,10))
|
|
}
|
|
|
|
await tp.file.rename(`${title} ${first}`);
|
|
-%>
|
|
---
|
|
created: <% date %>
|
|
up:
|
|
- "[[People]]"
|
|
- "[[Patients]]"
|
|
- "[[Harplands Hospital Ward 1 Patients]]"
|
|
title: <% title %>
|
|
location:
|
|
- "[[Harplands Hospital Ward 1]]"
|
|
first: <% first %>
|
|
memory-trigger:
|
|
binary: true
|
|
---
|