Extension:SimpleTippy
![]() Release status: experimental |
|
---|---|
![]() |
|
Implementation | Parser function |
Description | Allows to create tooltips with html content |
Author(s) | Vedmakatalk |
Latest version | 1.0.0 (2023-03-30) |
MediaWiki | 1.35+ |
PHP | 7.3+ |
Database changes | No |
License | MIT License |
Download | README |
Hooks used
|
|
The SimpleTippy provides parser function to render tooltips with html contents.
Based on the Tippy library.
Installation
- Download and place the file(s) in a directory called
SimpleTippy
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php
wfLoadExtension( 'SimpleTippy' );
file: Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Or install via Git:
git clone https://github.com/vedmaka/mediawiki-extension-SimpleTippy.git
Usage
Normal mode
To render a text "text" with a tooltip "content" ( the "content" can be a wiki markup that will be parsed on function invokation ):
{{#tooltip: text | content }}
Deferred mode
To render a text "text" with a tooltip that won't parse the "content" on invokation but instead deffer it until the text is hovered:
<tooltip text="Text">Content</tooltip>