Manual:Hooks/SkinCopyrightFooter

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
SkinCopyrightFooter
<translate> Available from <tvar name=1><translate> version <tvar (r52361, codereview)</tvar></translate>
Allow for site and per-namespace customization of copyright notice.
<translate> Define function:</translate>
public static function onSkinCopyrightFooter( $title, $type, &$msg, &$link, &$forContent ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"SkinCopyrightFooter": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinCopyrightFooter"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> Skin.php
<translate> Interface:</translate> SkinCopyrightFooterHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SkinCopyrightFooter extensions</tvar>.</translate>


Details

  • $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.