Topic on Talk:Reference Tooltips

Not clear how to install and enable Reference Tooltips

7
Anbh42 (talkcontribs)

Where are ReferenceTooltips.js and ReferenceTooltips.css meant to go?

I have a Debian package installation and there are a whole load of file links between /etc/www/mywiki/w and /usr/share/mediawiki/extensions-core/Gadgets and /var/lib/mediawiki. Unfortunately the document writer's assumption that I should know is just overoptimistic.

Does it matter if I called the JS and CSS files something different? The only place they are referenced is in MediaWiki:Gadgets-definition, is that right?

I've just got this in my LocalSettings.php:

$wgGadgetsRepoClass = "MediaWikiGadgetsDefinitionRepo"

wfLoadExtension( 'Gadgets' );


And is this good:

ReferenceTooltips[ResourceLoader|default|type=general|dependencies=mediawiki.cookie,jquery.client]|Gadget-ReferenceTooltips.js|Gadget-ReferenceTooltips.css


or will those dependencies foobar It? I took that off wikipedia.org. Being a noob, I don't even know how to confirm if those 2 dependencies are present.

Þjarkur (talkcontribs)

They are not kept as files on a server, instead you only need to add some pages to your wiki. So you have to create a page in your wiki named "MediaWiki:Gadget-ReferenceTooltips.js" and so on for all of the steps.

Anbh42 (talkcontribs)

Hit the next issue - not sure if this is a foobar that I sneaked in with my fat fingers or a real problem:

Fatal error: Uncaught Exception: /usr/share/mediawiki/extensions/Gadgets/extension.json does not exist!

It's obviously having a problem because that file is at /usr/share/mediawiki/extensions-core/Gadgets

I put:

wfLoadExtension( 'Gadgets' );

in my LocalSettings.php - is that wrong?

Þjarkur (talkcontribs)

Can you move the extension to the "extensions" folder instead of "extensions-core"?

Anbh42 (talkcontribs)

Ah, I see. Yes. Even simpler, I just created a link like many of the other packages had. Obviously the Debian Gadgets package is way behind. However, now mediawiki is happy, but although I see the Gadgets entry on Special:Version, Gadgets isn't loading somehow:

- it doesn't have any entries in Special:Gadgets

- it doesn't show up as a tab in my Preferences

- the ReferencesTooltip functionality isn't present.

Anbh42 (talkcontribs)

OK - panic over. I hadn't called the two files "MediaWiki:Gadget-ReferenceTooltips.js/css" - stupidly confused. It's probably worth making a small edit to the setup doc to clarify this point. In my first attempt, I put them on the file system - doh!

On my second attempt, I called them "MediaWiki:ReferenceTooltips.js" and in my Gadgets-definition page, I referred to them as "ReferenceTooltips.js".

On my third attempt I renamed them to "MediaWiki:Gadget-ReferenceTooltips.js" but I haven't changed the names in Gadgets-definition so that is in contrast to the instructions here, yet it works.

Quīlubet (talkcontribs)

On page MediaWiki:Gadgets-definition there must be an "* " (asterix space) bevor each description for the gadget, otherwise it wount show up as a gadget on user preference page

Reply to "Not clear how to install and enable Reference Tooltips"