```dataviewjs
let page = dv.current();
if (page.abstract) {
dv.paragraph(page.abstract);
}
if (page.quote_text && page.reference_wiki && page.reference_text) {
// Extract file name from file object or fallback
let rawWiki =
page.reference_wiki?.path || // full path if available
page.reference_wiki?.name || // fallback to name
page.reference_wiki; // or literal string
// Format the quote block lines
let quoteLines = page.quote_text
.split("\n")
.map(line => `> ${line}`)
.join("\n");
// Create the footnote with triple-bracket wikilink
let footnote = `^[[[${rawWiki}|${page.reference_text}]]]`;
// Final callout block with [-] for auto-collapse
let callout = `> [!quote]- Quote\n${quoteLines} ${footnote}`;
// Render the full callout block as markdown
dv.span(callout);
}
```