... | @@ -290,4 +290,31 @@ public static function onPageContentSave(WikiPage &$wikiPage, User &$user, Conte |
... | @@ -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.
|
|
* **EditPageBeforeEditButtons**: Allows modifying the edit buttons below the textarea in the edit form.
|
|
* &$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
|
|
\ No newline at end of file |
|
|
|
|
|
|
|
|
|
## 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 |