Welcome to the Judaism community on Codidact!
Will you help us build our community of learners? Drop into our study hall, ask questions, help others with answers to their questions, share a d'var torah if you're so inclined, invite your friends, and join us in building this community together. Not an ask-the-rabbi service, just people at all levels learning together.
Sefaria linking is now installed
This is a test to see if the Sefaria linking works. @ArtOfCode says just make things that look like references. So I suppose Genesis 1:1 should give me the first Pasuk of the Torah. Let's see...
2 answers
A previous draft here had an experiment. After digging through the code for the Linker I can confidently say that a complete answer to the question of "what can I link to" is "anything on Sefaria," but you have to be careful how you write it out. Here is the actual code for the Linker; if you scroll down or search the document for "var bookTitles" you'll see a full list of every variation on the text name that you can use. Or if you're not insane like me you can look at the documentation on GitHub.
Of course, our ever-helpful overlords here have implemented a "suggest reference" button. With that, all you have to do is select some text in your post, click the button, and it'll look for similarly-worded sources which you might've meant.
In more detail: yes, this site now has the Sefaria linker plugin installed. It's a JavaScript plugin, so you need JavaScript enabled for this site for it to work for you. We don't do anything malicious, promise!
Each time you load a page, the linker will look for things in posts that look like scripture references, and if it finds any, will add a link to them that pops up an embedded version of the text on Sefaria with a Read More link to go to the full thing. This is also why you'll also see a short delay before these links are added sometimes.
This also means that pages on this site should gradually start to be listed on Sefaria as having linked to specific bits of scripture.
Since it's not always clear exactly what text will generate a link to Sefaria and what won't, there's also a second new button (the Torah scroll icon). While you're writing a post, you can select some text that you think might be a reference and click the button - it will bring up a list of suggestions that will generate Sefaria links, and clicking on one will replace your selected text with that reference.
1 comment thread