Minerva: Born from the godhead of Jupiter with weapons! A skin that works on both desktop and mobile.
More...
|
| getTemplateData () |
| @inheritDoc
|
|
| doEditSectionLink (Title $nt, $section, $tooltip, Language $lang) |
| Overrides Skin::doEditSectionLink.
|
|
| getPageClasses ( $title) |
| Takes a title and returns classes to apply to the body tag.
|
|
| getUserPageHelper () |
|
| isSimplifiedTalkPageEnabled () |
|
| getDefaultModules () |
| Returns the javascript entry modules to load.
|
|
|
const | LEAD_SECTION_NUMBER = 0 |
| @const LEAD_SECTION_NUMBER integer which corresponds to the lead section in editing mode
|
|
| $skinname = 'minerva' |
|
| $template = 'MinervaTemplate' |
|
|
| runOnSkinTemplateNavigationHooks (SkinTemplate $skin, &$contentNavigationUrls) |
| Caches content navigation urls locally for use inside getTemplateData.
|
|
| getMainMenu () |
| Build the Main Menu Director by passing the skin options.
|
|
| getSubjectPage () |
|
| getRelativeHistoryLink (Title $title, $timestamp) |
| Get a history link which describes author and relative time of last edit.
|
|
| getGenericHistoryLink (Title $title) |
| Get a history link which makes no reference to user or last edited time.
|
|
| getHistoryUrl (Title $title) |
| Get the URL for the history page for the given title using Special:History when available.
|
|
| getHistoryLink (Title $title) |
| Prepare the content for the 'last edited' message, e.g.
|
|
| getTaglineHtml () |
| Returns the HTML representing the tagline.
|
|
| prepareBanners ( $siteNotice) |
| Load internal banner content to show in pre content in template Beware of HTML caching when using this function.
|
|
| getLanguageButton () |
| Returns an array with details for a language button.
|
|
| getTalkButton ( $talkTitle, $label, $addSection=false) |
| Returns an array with details for a talk button.
|
|
| getJsConfigVars () |
| @inheritDoc
|
|
| isWikiTextTalkPage () |
| Returns true, if the talk page of this page is wikitext-based.
|
|
| getSkinStyles () |
| Provide styles required to present the server rendered page in this skin.
|
|
Minerva: Born from the godhead of Jupiter with weapons! A skin that works on both desktop and mobile.
◆ doEditSectionLink()
MediaWiki\Minerva\Skins\SkinMinerva::doEditSectionLink |
( |
Title | $nt, |
|
|
| $section, |
|
|
| $tooltip, |
|
|
Language | $lang ) |
Overrides Skin::doEditSectionLink.
- Parameters
-
Title | $nt | The title being linked to (may not be the same as the current page, if the section is included from a template) |
string | $section | |
string | null | $tooltip | |
Language | $lang | |
- Returns
- string
◆ getDefaultModules()
MediaWiki\Minerva\Skins\SkinMinerva::getDefaultModules |
( |
| ) |
|
Returns the javascript entry modules to load.
Only modules that need to be overriden or added conditionally should be placed here.
- Returns
- array
◆ getGenericHistoryLink()
MediaWiki\Minerva\Skins\SkinMinerva::getGenericHistoryLink |
( |
Title | $title | ) |
|
|
protected |
Get a history link which makes no reference to user or last edited time.
- Parameters
-
Title | $title | The Title object of the page being viewed |
- Returns
- array
◆ getHistoryLink()
MediaWiki\Minerva\Skins\SkinMinerva::getHistoryLink |
( |
Title | $title | ) |
|
|
protected |
Prepare the content for the 'last edited' message, e.g.
'Last edited on 30 August 2013, at 23:31'. This message is different for the main page since main page content is typically transcluded rather than edited directly.
The relative time is only rendered on the latest revision. For older revisions the last modified information will not render with a relative time nor will it show the name of the editor.
- Parameters
-
Title | $title | The Title object of the page being viewed |
- Returns
- array|null
◆ getHistoryUrl()
MediaWiki\Minerva\Skins\SkinMinerva::getHistoryUrl |
( |
Title | $title | ) |
|
|
protected |
Get the URL for the history page for the given title using Special:History when available.
- Parameters
-
Title | $title | The Title object of the page being viewed |
- Returns
- string
◆ getJsConfigVars()
MediaWiki\Minerva\Skins\SkinMinerva::getJsConfigVars |
( |
| ) |
|
|
protected |
◆ getLanguageButton()
MediaWiki\Minerva\Skins\SkinMinerva::getLanguageButton |
( |
| ) |
|
|
protected |
Returns an array with details for a language button.
- Returns
- array
◆ getMainMenu()
MediaWiki\Minerva\Skins\SkinMinerva::getMainMenu |
( |
| ) |
|
|
protected |
Build the Main Menu Director by passing the skin options.
- Returns
- MainMenuDirector
◆ getPageClasses()
MediaWiki\Minerva\Skins\SkinMinerva::getPageClasses |
( |
| $title | ) |
|
Takes a title and returns classes to apply to the body tag.
- Parameters
-
- Returns
- string
◆ getRelativeHistoryLink()
MediaWiki\Minerva\Skins\SkinMinerva::getRelativeHistoryLink |
( |
Title | $title, |
|
|
| $timestamp ) |
|
protected |
Get a history link which describes author and relative time of last edit.
- Parameters
-
Title | $title | The Title object of the page being viewed |
string | $timestamp | |
- Returns
- array
◆ getSkinStyles()
MediaWiki\Minerva\Skins\SkinMinerva::getSkinStyles |
( |
| ) |
|
|
protected |
Provide styles required to present the server rendered page in this skin.
Additional styles may be loaded dynamically by the client.
Any styles returned by this method are loaded on the critical rendering path as linked stylesheets. I.e., they are required to load on the client before first paint.
- Returns
- array
◆ getSubjectPage()
MediaWiki\Minerva\Skins\SkinMinerva::getSubjectPage |
( |
| ) |
|
|
protected |
◆ getTaglineHtml()
MediaWiki\Minerva\Skins\SkinMinerva::getTaglineHtml |
( |
| ) |
|
|
protected |
Returns the HTML representing the tagline.
- Returns
- string HTML for tagline
◆ getTalkButton()
MediaWiki\Minerva\Skins\SkinMinerva::getTalkButton |
( |
| $talkTitle, |
|
|
| $label, |
|
|
| $addSection = false ) |
|
protected |
Returns an array with details for a talk button.
- Parameters
-
Title | $talkTitle | Title object of the talk page |
string | $label | Button label |
bool | $addSection | (optional) when added the talk button will render as an add topic button. Defaults to false. |
- Returns
- array
◆ getUserPageHelper()
MediaWiki\Minerva\Skins\SkinMinerva::getUserPageHelper |
( |
| ) |
|
- Returns
- SkinUserPageHelper
◆ isWikiTextTalkPage()
MediaWiki\Minerva\Skins\SkinMinerva::isWikiTextTalkPage |
( |
| ) |
|
|
protected |
Returns true, if the talk page of this page is wikitext-based.
- Returns
- bool
◆ prepareBanners()
MediaWiki\Minerva\Skins\SkinMinerva::prepareBanners |
( |
| $siteNotice | ) |
|
|
protected |
Load internal banner content to show in pre content in template Beware of HTML caching when using this function.
Content set as "internalbanner"
- Parameters
-
string | $siteNotice | HTML fragment |
- Returns
- array
◆ runOnSkinTemplateNavigationHooks()
MediaWiki\Minerva\Skins\SkinMinerva::runOnSkinTemplateNavigationHooks |
( |
SkinTemplate | $skin, |
|
|
& | $contentNavigationUrls ) |
|
protected |
Caches content navigation urls locally for use inside getTemplateData.
@inheritDoc
The documentation for this class was generated from the following file: