Manual:Hooks/SkinCopyrightFooter
Appearance
From mediawiki.org
This feature was removed from MediaWiki core in version 1.45.0 (after being deprecated in MediaWiki 1.43.0 ).
Please see SkinCopyrightFooterMessage for an alternative way to use this feature.
| SkinCopyrightFooter | |
|---|---|
| Available from version 1.16.0 (r52361, CodeReview archive) Removed in version 1.45.0 (Gerrit change 1145324) Allow for site and per-namespace customization of copyright notice. | |
| Define function: | public static function onSkinCopyrightFooter( $title, $type, &$msg, &$link, &$forContent ) { ... } |
| Attach hook: | In extension.json:
{ "Hooks":{ "SkinCopyrightFooter":"MediaWiki\\Extension\\MyExtension\\Hooks::onSkinCopyrightFooter" } } |
| Called from: | File(s): Skin.php |
| Interface: | SkinCopyrightFooterHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SkinCopyrightFooter extensions.
Details
[edit ]- $title: displayed page title
- $type: 'normal' or 'history' for old/diff views
- &$msg: overridable message; usually 'copyright' or 'history_copyright'. This message must be in HTML format, not wikitext!
- &$link: overridable HTML link to be passed into the message as 1ドル
- &$forContent: overridable flag if copyright footer is shown in content language.