... | @@ -291,3 +291,30 @@ public static function onPageContentSave(WikiPage &$wikiPage, User &$user, Conte |
... | @@ -291,3 +291,30 @@ public static function onPageContentSave(WikiPage &$wikiPage, User &$user, Conte |
|
* &$editpage: The current EditPage object
|
|
* &$editpage: The current EditPage object
|
|
* &$buttons: Array of edit buttons "Save", "Preview", "Live", and "Diff"
|
|
* &$buttons: Array of edit buttons "Save", "Preview", "Live", and "Diff"
|
|
* &$tabindex: HTML tabindex of the last edit check/button
|
|
* &$tabindex: HTML tabindex of the last edit check/button
|
|
|
|
|
|
|
|
|
|
|
|
## Installing / Enabling Reference Tooltips
|
|
|
|
|
|
|
|
*activate Gadgets*
|
|
|
|
|
|
|
|
Edit `LocalSettings.php` and add the following line:
|
|
|
|
|
|
|
|
```
|
|
|
|
require_once "$IP/extensions/Gadgets/Gadgets.php";
|
|
|
|
```
|
|
|
|
|
|
|
|
*Download the ReferenceTooltips gadget*
|
|
|
|
|
|
|
|
https://en.wikipedia.org/wiki/Special:Gadgets/export/ReferenceTooltips
|
|
|
|
|
|
|
|
*Upload it in the destiniation MediaWiki*
|
|
|
|
|
|
|
|
`Special:Import`
|
|
|
|
|
|
|
|
*Activate the ReferenceTooltips*
|
|
|
|
|
|
|
|
Edit the `MediaWiki:Gadgets-definition`page and add the following line:
|
|
|
|
|
|
|
|
```
|
|
|
|
* ReferenceTooltips[ResourceLoader|default|type=general]|ReferenceTooltips.js|ReferenceTooltips.css
|
|
|
|
``` |
|
|
|
\ No newline at end of file |