Extension:SimpleTooltip

MediaWiki extensions manual
SimpleTooltip
Release status: stable
Implementation Parser function
Description Provides basic tooltips, supporting inline text and info icons
Author(s) Simon Heimler
Maintainer(s) gesinn.it
Latest version 2.0.0 (2024-06-12)
MediaWiki 1.39+
PHP 7.4+
Database changes No
License MIT License
Download

The SimpleTooltip extension adds support for basic tooltips. It uses the Tooltipster Library to do so.

It has no dependencies on other extensions. The extension has explicit support for Page Forms, where tooltips within multiple instance forms will get created dynamically. This will not work with the "info" parser function provided by Semantic MediaWiki.

Installation

edit
  • Download and place the file(s) in a directory called SimpleTooltip in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'SimpleTooltip' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

edit

Currently there are no options supported. This may change due to demand or not.

Usage

edit

There is a short alias and a more descriptive parser function name for each tooltip type.

Inline-text tooltip

edit
{{#tip-text: text | tooltip-text}}
{{#simple-tooltip: text | tooltip-text}}

Info-icon tooltip:

edit
{{#tip-info: tooltip-text }}
{{#simple-tooltip-info: tooltip-text }}

Inline-Image tooltip:

edit
{{#tip-img: /path/to/your/image.png | image tooltip-text }}
{{#simple-tooltip-img: /path/to/your/image.png | image tooltip-text }}
The "tip-img" and the "simple-tooltip-img" parser function respectively do not resize the image set to be shown, i.e. the image must be uploaded in an appropriate size like e.g. 16px x 16px.

Example result (Screenshot)

edit

 

See also

edit