Changed how Resources work to reflect new style

This commit is contained in:
2026-10-16 20:25:31 -04:00
parent 37aafdd913
commit 01d004566c
11 changed files with 139 additions and 287 deletions
@@ -17,6 +17,8 @@ Task Lead:
Done: false
---
<%* await tp.file.rename(num + " - " + title) %>
# <mark style="background-color: #FFF3A3A6;">`MOLLY! DO NOT FORGET TO CREATE FOLDER NOTE BEFORE INSERTING BASES!`</mark>
# Scope & Description
`Fill this out`
@@ -45,6 +47,95 @@ actions:
`Insert the task-deliverables base here`
# Resources
`BUTTON[report]` `BUTTON[list]` `BUTTON[note]` `BUTTON[hardware]` `BUTTON[software]`
`Insert the task-resources base here`
```meta-bind-button
label: List
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: "list"
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬List.md
fileName: ""
openNote: true
openIfAlreadyExists: false
```
```meta-bind-button
label: Report
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: "report"
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬Report.md
fileName: Resource⸬Report
openNote: true
openIfAlreadyExists: false
```
```meta-bind-button
label: Hardware
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: hardware
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬Hardware.md
fileName: ""
openNote: true
openIfAlreadyExists: false
```
```meta-bind-button
label: Software
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: software
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬Software.md
fileName: ""
openNote: true
openIfAlreadyExists: false
```
```meta-bind-button
label: Note
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: note
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬Note.md
fileName: ""
openNote: true
openIfAlreadyExists: false
```
@@ -1,20 +0,0 @@
<%*
let title = await tp.system.prompt("Title");
let supplier = await tp.system.prompt("Supplier");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Hardware
Publisher: <% supplier %>
Title: <% title %>
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Hardware-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>
@@ -1,17 +0,0 @@
<%*
let title = await tp.system.prompt("Title");
let description = await tp.system.prompt("Description");
-%>
---
Type: Resource
Resource Type: List
Title: <% title %>
Description: <% description %>
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬List-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% title %>
@@ -1,30 +0,0 @@
<%-*
const subfolderName = "~Deliverables";
const currentDir = app.vault.getAbstractFileByPath(tp.file.path(true)).parent.path;
const targetDir = currentDir + "/" + subfolderName;
// Ensure the subfolder exists
if (!app.vault.getAbstractFileByPath(targetDir)) {
await app.vault.createFolder(targetDir);
}
const title = await tp.system.prompt("Note Title");
await tp.file.create_new("", targetDir + "/" + title, false);
let num = await tp.system.prompt("Report Number");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Report
Publisher: Atomic Energy of Canada Ltd.
Number: <% num %>
Title: <% title %>
Author:
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Report-AECL-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>
@@ -1,22 +0,0 @@
<%*
let title = await tp.system.prompt("Report Title");
let num = await tp.system.prompt("Report Number");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Report
Publisher: Canadian Nuclear Laboratories
Number: <% num %>
Title: <% title %>
Author:
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Report-CNL-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>
@@ -1,22 +0,0 @@
<%*
let title = await tp.system.prompt("Report Title");
let num = await tp.system.prompt("Report Number");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Report
Publisher:
Number: <% num %>
Title: <% title %>
Author:
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Report-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>
@@ -1,22 +0,0 @@
<%*
let title = await tp.system.prompt("Software Title");
let num = await tp.system.prompt("Software Publisher");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Software
Publisher: <% num %>
Title: <% title %>
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
EULA: false
EULA Link:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Software-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>