I participate in a community where there are enthusiasts with lots of knowledge and newbies with not that much knowledge. It has become a habit that experts use lots of acronyms and abbreviations to refer to common terms, or famous webpages or to name known brands in their field of expertise, sometimes they use only initials when referring to famous people in the field, etc. This is not a problem for the oldest participants in the community, but some new people are having a hard time reading some posts, so the admins have been asked to create a plugin that automatically creates a tooltip for the most common acronyms.
This plugin does so. It automatically surrounds some (configurable) words with an
<abbr>...</abbr> tag so a tooltip appears when hovering the mouse over the word.
This way IMMO becomes IMMO, YMMV becomes YMMV, R&B becomes R&B, etc
It is a very simple plugin, you can add more abbreviations through the admin panel.
Here is the code:
Any advice to improve the plugin will be welcome