Logseq Template Gallery Logo Logseq Template Gallery

template: book → tags

{ ! var [ authors, name ] = c.page.name.split(' — '); name = «${name}»; authors = authors.split(', ') _}

tags: book,

rating:

link:

category: <span class="bracket">[[</span><span class="link">đź“–</span><span class="bracket">]]</span>

year:

author: ``{ authors.map(ref).join(', ') }``

alias: ``{ name.indexOf(',') >= 0 ? ref(name) : name }``

id:

🏛 book → tags

Required plugins: Full House Templates How to use? Inside a page named via pattern «Author1, Author2, ... — Book Name» Note: It is not a minus sign: «-». It is EM DASH (U+2014). You can change it in the first template line: …split('<YOUR ANOTHER CHAR>')

Shared by stdword