<%* // // Main Code Section //
// Call modal form const result = await MF.openForm(‘ORGANIZATION’);
// Declare variables after form returns values const alignment = result.Alignment.value; const name = result.Name.value; const location = result.Location.value;
// Rename & open note
await tp.file.rename(name);
await app.workspace.getLeaf(true).openFile(tp.file.find_tfile(name));
new Notice().noticeEl.innerHTML = <span style="color: green; font-weight: bold;">Finished!</span><br>New organization <span style="text-decoration: underline;">${name}</span> added;
_%>
type: organization locations:
- <% location ?
"[[${location}]]": ” %> tags:
headerLink: ”<% name %>”
<% name %>
:FasSitemap: Organization
Quote
Profile of <% name %>, the <% alignment.toLowerCase() %> aligned organization.
marker
Column
NPC's
LIST WITHOUT ID headerLink FROM "Compendium/NPC's" AND [[<% name %>]]HISTORY
LIST WITHOUT ID headerLink FROM "Session Notes" AND [[<% name %>]]
Profile of <% name %>, the <% alignment.toLowerCase() %> aligned organization.