Extension:SimpleTooltip (Universal-Omega)/de-formal
SimpleTooltip (Universal-Omega) Release status: stable |
|
---|---|
Implementation | Parser function |
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+ |
PHP | 5.2+ |
Database changes | No |
License | MIT License |
Download | GitHub:
<translate> Note:</translate> README |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
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
- <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>
SimpleTooltip (Universal-Omega)/de-formal
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'SimpleTooltip (Universal-Omega)/de-formal' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
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 }}
Example result (Screenshot)
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
- Pages with script errors
- Pages with broken file links
- Stable extensions/de-formal
- Parser function extensions/de-formal
- Extensions with manual MediaWiki version
- MIT licensed extensions/de-formal
- Extensions in GitHub version control/de-formal
- ParserFirstCallInit extensions/de-formal
- BeforePageDisplay extensions/de-formal
- LocalisationCacheRecache extensions/de-formal
- All extensions/de-formal
- Extensions not in ExtensionJson
- Popup extensions/de-formal