I want to be able to embed random quotes in my pages. For instance, I want to embed a random Stoicism-related quote at the top of my Stoicism page, so that every time I visit the page, I see a random quote.
I did this for myself using an web app I created with my brother to store and randomize my quotes collection. The output looks like this:
The app allows me to organize my quotes using tags, to selectively make the quotes public, and to share any tag selection. You can check out my public Stoicism-related quotes: here (Note: the icons at the top are randomization options).
What you’re seeing in the picture above is a link to my public quotes, embedded in Obsidian using iframe:
If you add the code above to one of your Obsidian pages, you’ll see exactly what I see in my Obsidian Stoicism page.
The problem is, the embedded page doesn’t integrate well, and the frame has a fixed height. Ideally, the height would be variable, based on the length of the quote. To solve these issues I need to create an Obsidian plugin.
I want to gage if there’s any interest in such a plugin. I’m happy to discuss anything related to the process.
It’s not quite similar. The tool I’m using has a feature I call controlled randomness. I’m not just interested in generating random quotes, but in generating random quotes in a controlled manner.
Let’s say you search for something or select a tag. Through this operation, you narrow down the information pool. With controlled randomness, you can generate random quotes only from this smaller information pool.
In practical terms, you can select, say, the name of an author or a particular theme and generate random quotes only by that author or with that theme.
As I said in my answer above, I’m interested in controlled randomness. The tool I’m using is custom-built around controlled randomness. To use it, you’d need to use my tool – to store your quotes in it.
P.S. I like to do ‘thematic quote of the day’. When I visit an Obsidian page, I see a random quote related to that page. This way, by visiting multiple pages over the course of a day, I have multiple quotes of the day from different themes. I collect questions, so I also have a random ‘question of the day’.
Late to the discussion but here’s what I’d like from this type of plug-in.
I create a set of my own curated quotes (notes). Either with a a tag (preferred) or if mandatory in a separate folder. Each quote (and it could also be a question to answer @danitrusca 's use case) is in a separate individual note.
The plug-in should allow me to transclude a quote either from the whole population of quotes or from a subset of them in a random fashion.
If the tag option is chosen I’d like one “base” or top level tag like #quotes and then the subsets could be children #quotes/software or #quotes/Heinlein In any given note where I transclude the random quote I can set whether to start from the #quotes tag or go deeper to be #quotes/Heinlein I’d like an option to do AND operations among the tags so I could get a random quote from among those tagged with more than one child.
I don’t want to use someone else’s famous quote site as my source I want to be in control of the things I want to resurface on a random basis as a quote in a new note.
When the item is included it should be in the ![[note]] format in the new note.