Extension:SimpleTooltip (Universal-Omega)

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:MIT licensed extensions
MediaWiki extensions manual
SimpleTooltip (Universal-Omega)
Release status: stableCategory:Stable extensions
Implementation Parser function Category:Parser function extensions
Description Provides basic tooltips, supporting inline text and info icons
Author(s) Simon Heimler (Fannontalk)
Latest version 1.2.0 (2023-01-12)
MediaWiki 1.38+Category:Extensions with manual MediaWiki version
PHP 5.2+
Database changes No
License MIT License
Download Category:Extensions in GitHub version control
README
Category:All extensionsCategory:Extensions not in ExtensionJson

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.

This forked version of SimpleTooltip is currently maintained by Universal-Omega.

Installation

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

Instead of downloading the zip archive you may also check this extension out via Git:

git clone https://github.com/Universal-Omega/SimpleTooltip.git

Configuration

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

Usage

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

Inline-text tooltip

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

Info-icon tooltip:

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

Inline-Image tooltip:

{{#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)

SimpleTooltip example

Category:Popup extensions
Category:All extensions Category:BeforePageDisplay extensions Category:Extensions in GitHub version control Category:Extensions included in Miraheze Category:Extensions included in WikiForge Category:Extensions not in ExtensionJson Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:LocalisationCacheRecache extensions Category:MIT licensed extensions Category:ParserFirstCallInit extensions Category:Parser function extensions Category:Popup extensions Category:Stable extensions