MediaWiki  1.29.2
CiteThisPageHooks Class Reference

Static Public Member Functions

static onBaseTemplateToolbox (BaseTemplate $baseTemplate, array &$toolbox)
 
static onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink (&$skintemplate, &$nav_urls, &$oldid, &$revid)
 

Static Private Member Functions

static shouldAddLink (Title $title)
 Checks, if the "cite this page" link should be added. More...
 

Detailed Description

Definition at line 3 of file CiteThisPage.hooks.php.

Member Function Documentation

◆ onBaseTemplateToolbox()

static CiteThisPageHooks::onBaseTemplateToolbox ( BaseTemplate  $baseTemplate,
array $toolbox 
)
static
Parameters
BaseTemplate$baseTemplate
array$toolbox
Returns
bool

Definition at line 55 of file CiteThisPage.hooks.php.

◆ onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink()

static CiteThisPageHooks::onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink ( $skintemplate,
$nav_urls,
$oldid,
$revid 
)
static
Parameters
SkinTemplate$skintemplate
$nav_urls
$oldid
$revid
Returns
bool

Definition at line 12 of file CiteThisPage.hooks.php.

References $title, SpecialPage::getTitleFor(), and message.

◆ shouldAddLink()

static CiteThisPageHooks::shouldAddLink ( Title  $title)
staticprivate

Checks, if the "cite this page" link should be added.

By default the link is added to all pages in the main namespace, and additionally to pages, which are in one of the namespaces named in $wgCiteThisPageAddiotionalNamespaces.

Parameters
Title$title
Returns
bool

Definition at line 40 of file CiteThisPage.hooks.php.

References $title, and global.


The documentation for this class was generated from the following file: