... | ... | @@ -290,4 +290,31 @@ public static function onPageContentSave(WikiPage &$wikiPage, User &$user, Conte |
|
|
* **EditPageBeforeEditButtons**: Allows modifying the edit buttons below the textarea in the edit form.
|
|
|
* &$editpage: The current EditPage object
|
|
|
* &$buttons: Array of edit buttons "Save", "Preview", "Live", and "Diff"
|
|
|
* &$tabindex: HTML tabindex of the last edit check/button |
|
|
\ No newline at end of file |
|
|
* &$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 |