Thread:Flanqer/@comment-26828130-20190723115450/@comment-24931587-20190723141904

As it says at Other notes and tips, a class named "tt-tooltip-type" (e.g. "tt-basic-tooltip") is automatically added to the tooltips, so you can control the appearance by adding style rules to MediaWiki:Common.css. For example, the following will cause basic tooltips to be displayed with black text on a light grey background: .tt-basic-tooltip { color: black; background: lightgrey; }

To use custom tooltips, you have to create the tooltip types you want to use in MediaWiki:Common.js. The dev page has this example which creates "custom-tooltip-text" and "custom-tooltip-parse": var tooltips_list = [ {       classname: 'custom-tooltip-text', text: "Parameter: <#parameter#> This is just text and HTML - wikitext won't be parsed", }, {       classname: 'custom-tooltip-parse', parse: '{|style="white-space:nowrap;"\n!Parameter:\n|<#parameter#>\n|-\n!Lc:\n|{'+'{lc:<#parameter#>}}\n|-\n!Uc:\n|{'+'{uc:<#parameter#>}}\n|-\n!PAGENAME:\n|{'+'{PAGENAME}}\n|}', }, ]