Write Your Citations Your Way: One Template, Every Citation
Cite Wide now writes every citation from one template you set, and copies a ready citation for any book or source note.
Write Your Citations Your Way: One Template, Every Citation
Why Care?
Everyone who cites things has a house style, and every citation tool has its own idea of what that style should be. Until today, Cite Wide had two ideas, and they didn't agree with each other: a citation pulled from a URL came out one way, and the same citation saved to a file came back another.
Now there's one template, it lives in settings, and you write it. Cite Wide fills it in.
{date}. {authors}. "[{title}]({url})". [{publisher}]({publisher_url}).2016. Helmer, Hamilton. "[7 Powers](https://7powers.com/)". Deep Strategy.What's New?
A citation template in settings, under Citation format, with a live preview that rewrites itself as you type.
Every citation follows it: URL extracts, saved citation files, and the new command below.
Copy citation for this note. Open a book, a canonical source, or a citation file, run the command, and paste a finished citation anywhere. Book notes work out of the box: it reads
book_authors,year_first_published, and thegoogle_books_urlthat Metafetch's new [[2026-11-27_01|Books profile]] fills in.Names come out right. "Nassim Nicholas Taleb" becomes
Taleb, Nassim N., "Frederick P. Brooks Jr." becomesBrooks, Frederick P. Jr., and asort_as: "Pine, B. Joseph, II"is trusted over guessing.Dates keep their honesty. A book published in 2016 renders as
2016, never as an invented2016, Jan 01.
How it Works
The template is read as sentences, split after each . . Each sentence renders on its own, which is what keeps a missing value from leaving debris:
| The citation is missing… | You get |
| a date | the date sentence drops out |
| a url | "7 Powers" instead of a link with an empty address |
| a publisher url | the publisher as plain text |
| everything in a sentence | that sentence, gone |
And a name ending in an initial (Martin, Robert C.) doesn't pick up a second period from the template.
| Token | Default | Change it with |
{date} | 2016, Mar 01 | {date:MMMM D, YYYY} → March 1, 2016 |
{authors} | Helmer, Hamilton; Taleb, Nassim N. | {authors:givenName surName|, } → Hamilton Helmer, Nassim Taleb |
{author} | the first author only | same shapes as {authors} |
{anything} | any frontmatter field | ISBN {isbn_13} |
Under the Hood
src/utils/citationTemplate.ts holds all of it, free of Obsidian imports so it tests under plain Node: renderCitation, formatDate (partial ISO, 2025, Apr 28, March 1, 2016, a bare year), parseName and formatName (comma forms, suffixes, particles like van, wikilinks), and citationFieldsFromFrontmatter, which maps canonical keys first (authors, date_published, publisher_url) and falls back to older and book-specific ones (author, date, book_authors, year_first_published, source).
getCitationText now hands the template the citation file's whole frontmatter instead of five light fields, so a promoted citation's authors, publisher, and publisher_url finally reach the line written back into a note.
Fifteen new tests cover the renderer. The suite is at 136, all passing.
What's Next
Reconcile the spec. [[Lossless-Citation-Spec]] (Nov 1) puts the publisher before an unquoted title. Today's house style puts it last with the title quoted. The template is a setting, so either works; the document should say which one is ours.
Insert, not just copy. A command that picks a source note, drops a
[^hex]at the cursor, and writes the citation into the references section.Name edge cases. A formatter can't know that B. Joseph Pine goes by Joseph, or that "Play Bigger" is a team, not a Mr. Bigger. A
sort_ason the author settles the first.
