1
0
2026-01-10 14:30:32 -06:00

31 lines
618 B
Markdown

<%*
const title = (
tp.file.title === "Untitled"
? await tp.system.prompt("Setting Title")
: tp.file.title
);
const calendarId = (
tp.frontmatter?.["fc-calendar"]
? tp.frontmatter["fc-calendar"]
: await tp.system.prompt("Setting Calendar ID", title)
)
const metadata = {
title,
tags: ["ttrpg/setting"],
data: {
icon: "globe",
title,
"fc-calendar": calendarId,
pdfs: tp.frontmatter.pdfs ?? [],
},
title,
};
await tp.user.util.updateMetadata(tp, metadata);
%>
![[SystemSettingCampaigns.base]]
<% tp.file.cursor() %>
---
![[PDFinfo.base]]