Help talk:Special characters in tooltips

From semantic-mediawiki.org

Contents

Thread titleRepliesLast modified
Adding a tooltip214:09, 23 February 2020

Adding a tooltip

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:


<strong>Note:</strong>


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

Thanks so much.

V

10: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.

11:37, 17 February 2020
 

See also pull 4586 which will be shipped with Semantic MediaWiki 3.2.0Released on an unknown date and compatible with unknown versions of MediaWiki..

14:09, 23 February 2020