Manual:Hooks/EditSectionLink
From MediaWiki.org
< Manual:Hooks(Redirected from Manual:Hooks/editSectionLink)
|
|
This feature has been deprecated and should not be used with current versions of MediaWiki. This feature was deprecated (or possibly removed completely) in version 1.14.0. |
| EditSectionLink | |
|---|---|
| Available from version 1.11.0 Override the return value of Linker::editSectionLink() |
|
*Define function: |
function fnMyHook( $skin, $title, $section, $link, $result ) { ... }
|
*Attach hook: |
$wgHooks['EditSectionLink'][] = 'MyExtensionHooks::someExample'; |
| Called from: | Linker.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:EditSectionLink extensions.
Note: This hook has been deprecated in 1.14, consider using DoEditSectionLink in that version!
[edit] Details
- $skin: Skin rendering the UI
- $title: Title being linked to
- $section: Section to link to
- $link: Default link
- $result: Result (alter this to override the generated links)
Can be used to change, modify, add links on the right side of the section header. Also, there's a system message called editsection-brackets which allows you to customise the format of the edit links further to make them into images etc. The final result is wrapped in a span with class attribute set to "editsection" so that further CSS styles can be applied.