Adding a tooltip

From semantic-mediawiki.org

Hello, what if I would like to add a custom tooltip (i.e. hacking SMW)?

my goal is to add a new tooltip that allows me to view the incipit of a musical score. Although I can use #info: parser and the <score> </score> tags to display the ABC musical notation this way:


note


I obviously don't have full control of the balloon (size, etc...). Where to start?

Thanks so much.

V

09:19, 16 February 2020

Probably best to ask via the developer mailing list, at least to get a pointer where to find the code of the info parser function. As as short term solution you could add png images of the rendered notation, like it is done similarily in this example. The size is however restricted to around 220px.

10:37, 17 February 2020
 

See also pull 4586 which will be shipped with Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x..

13:09, 23 February 2020