Extension:SimpleTippy
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 | GitHub: Note: README |
The SimpleTippy provides parser function to render tooltips with html contents.
Based on the Tippy library.
Installation
edit- 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 file:
wfLoadExtension( 'SimpleTippy' );
- 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
editNormal mode
editTo 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
editTo 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>