|
| generateHTML () |
| Subclasses not wishing to use the QuickTemplate render method can rewrite this method, for example to use TemplateParser::processTemplate.- Since
- 1.35
- Returns
- string of complete document HTML to output to the page which includes
<!DOCTYPE> and opening and closing html tags.
Render the associated template.
|
|
| getTemplateData () |
| Subclasses may extend this method to add additional template data.
|
|
| getPersonalToolsList () |
| Get the HTML for the p-personal list.
|
|
| getStructuredPersonalTools () |
| Get personal tools for the user.
|
|
| makeArticleUrlDetails ( $name, $urlaction='') |
|
| makePersonalToolsList ( $personalTools=null, $options=[]) |
| Get the HTML for the personal tools list Please ensure setupTemplateContext is called before calling this method.
|
|
| outputPage () |
| Initialize various variables and generate the template Stable to override.
|
|
| tabAction ( $title, $message, $selected, $query='', $checkEdit=false) |
| Builds an array with tab definition.
|
|
| __construct ( $options=null) |
|
| aboutLink () |
| Gets the link to the wiki's about page.
|
|
| addToSidebar (&$bar, $message) |
| Add content from a sidebar system message Currently only used for MediaWiki:Sidebar (but may be used by Extensions)
|
|
| addToSidebarPlain (&$bar, $text) |
| Add content from plain text.
|
|
| bottomScripts () |
| This gets called shortly before the "</body>" tag.
|
|
| buildSidebar () |
| Build an array that represents the sidebar(s), the navigation bar among them.
|
|
| disclaimerLink () |
| Gets the link to the wiki's general disclaimers page.
|
|
| doEditSectionLink (Title $nt, $section, $tooltip, Language $lang) |
| Create a section edit link.
|
|
| editUrlOptions () |
| Return URL options for the 'edit page' link.
|
|
| footerLink ( $desc, $page) |
| Returns an HTML link for use in the footer.
|
|
| getAfterPortlet (string $name) |
| Allows extensions to hook into known portlets and add stuff to them.
|
|
| getCategories () |
|
| getCategoryLinks () |
|
| getCopyright ( $type='detect') |
|
| getDefaultModules () |
| Defines the ResourceLoader modules that should be added to the skin It is recommended that skins wishing to override call parent::getDefaultModules() and substitute out any modules they wish to change by using a key to look them up.
|
|
| getHtmlElementAttributes () |
| Return values for <html> element.
|
|
| getIndicatorsHTML ( $indicators) |
| Get the suggested HTML for page status indicators: icons (or short text snippets) usually displayed in the top-right corner of the page, outside of the main content.
|
|
| getLanguages () |
| Generates array of language links for the current page.
|
|
| getNewtalks () |
| Gets new talk page messages for the current user and returns an appropriate alert message (or an empty string if there are no messages)
|
|
| getPageClasses ( $title) |
| TODO: document.
|
|
| getPersonalToolsForMakeListItem ( $urls) |
| Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate.
|
|
| getRelevantTitle () |
| Return the "relevant" title.
|
|
| getRelevantUser () |
| Return the "relevant" user.
|
|
| getRevisionId () |
| Get the current revision ID.
|
|
| getSiteFooterLinks () |
| Gets the link to the wiki's privacy policy, about page, and disclaimer page.
|
|
| getSiteNotice () |
| Get the site notice.
|
|
| getSkinName () |
|
| getSkinStylePath ( $name) |
| Return a fully resolved style path URL to images or styles stored in the current skin's folder.
|
|
| getUndeleteLink () |
|
| initPage (OutputPage $out) |
| Stable to override.
|
|
| isRevisionCurrent () |
| Whether the revision displayed is the latest revision of the page.
|
|
| logoText ( $align='') |
|
| mainPageLink () |
| Gets the link to the wiki's main page.
|
|
| makeFooterIcon ( $icon, $withImage='withImage') |
| Renders a $wgFooterIcons icon according to the method's arguments.
|
|
| makeLink ( $key, $item, $options=[]) |
| Makes a link, usually used by makeListItem to generate a link for an item in a list used in navigation lists, portlets, portals, sidebars, etc...
|
|
| makeListItem ( $key, $item, $options=[]) |
| Generates a list item for a navigation, portlet, portal, sidebar... list.
|
|
| makeSearchButton ( $mode, $attrs=[]) |
|
| makeSearchInput ( $attrs=[]) |
|
| makeToolbox ( $navUrls, $feedUrls) |
| Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate.
|
|
| mapInterwikiToLanguage ( $code) |
| Allows correcting the language of interlanguage links which, mostly due to legacy reasons, do not always match the standards compliant language tag.
|
|
| printSource () |
| Text with the permalink to the source page, usually shown on the footer of a printed page.
|
|
| privacyLink () |
| Gets the link to the wiki's privacy policy page.
|
|
| setRelevantTitle ( $t) |
| Set the "relevant" title.
|
|
| setRelevantUser ( $u) |
| Set the "relevant" user.
|
|
| setupSkinUserCss (OutputPage $out) |
| Hook point for adding style modules to OutputPage.
|
|
| showEmailUser ( $id) |
|
| subPageSubtitle ( $out=null) |
|
| canUseWikiPage () |
| Check whether a WikiPage object can be get with getWikiPage().
|
|
| exportSession () |
| Export the resolved user IP, HTTP headers, user ID, and session ID.
|
|
| getConfig () |
|
| getContext () |
| Get the base IContextSource object.
|
|
| getLanguage () |
|
| getOutput () |
|
| getRequest () |
|
| getSkin () |
|
| getStats () |
|
| getTiming () |
|
| getTitle () |
|
| getUser () |
| Stable to override.
|
|
| getWikiPage () |
| Get the WikiPage object.
|
|
| msg ( $key,... $params) |
| Get a Message object with context set Parameters are the same as wfMessage()
|
|
| setContext (IContextSource $context) |
|
static | checkTitle (&$title, $name) |
| make sure we have some title to operate on
|
|
static | getAllowedSkins () |
| Fetch the list of user-selectable skins in regards to $wgSkipSkins.
|
|
static | getDynamicStylesheetQuery () |
| Get the query to generate a dynamic stylesheet.
|
|
static | getSkinNames () |
| Fetch the set of available skins.
|
|
static | makeI18nUrl ( $name, $urlaction='') |
|
static | makeInternalOrExternalUrl ( $name) |
| If url string starts with http, consider as external URL, else internal.
|
|
static | makeMainPageUrl ( $urlaction='') |
|
static | makeNSUrl ( $name, $urlaction='', $namespace=NS_MAIN) |
| this can be passed the NS number as defined in Language.php
|
|
static | makeSpecialUrl ( $name, $urlaction='', $proto=null) |
| Make a URL for a Special Page using the given query and protocol.
|
|
static | makeSpecialUrlSubpage ( $name, $subpage, $urlaction='') |
|
static | makeUrl ( $name, $urlaction='') |
|
static | makeVariablesScript ( $data, $nonce=null) |
|
static | normalizeKey ( $key) |
| Normalize a skin preference value to a form that can be loaded.
|
|
| getTemplateParser () |
| Get the template parser, it will be lazily created if not already set.
|
|
| buildContentNavigationUrls () |
| a structured array of links usually used for the tabs in a skin
|
|
| buildNavUrls () |
| build array of common navigation links and run the SkinTemplateBuildNavUrlsNav_urlsAfterPermalink hook.
|
|
| buildPersonalUrls () |
| build array of urls for personal toolbar Please ensure setupTemplateContext is called before calling this method.
|
|
| getFooterIcons () |
| Get template representation of the footer.
|
|
| getJsConfigVars () |
| Returns array of config variables that should be added only to this skin for use in JavaScript.
|
|
| getNameSpaceKey () |
| Generate strings used for xml 'id' names.
|
|
| prepareQuickTemplate () |
| initialize various variables and generate the template
|
|
| prepareSubtitle () |
| Prepare the subtitle of the page for output in the skin if one has been set.
|
|
| prepareUndeleteLink () |
| Prepare undelete link for output in page.
|
|
| prepareUserLanguageAttributes () |
| Prepare user language attribute links.
|
|
| setupTemplate ( $classname) |
| Create the template engine object; we feed it a bunch of data and eventually it spits out some HTML.
|
|
| setupTemplateContext () |
| Setup class properties that are necessary prior to calling setupTemplateForOutput.
|
|
| setupTemplateForOutput () |
|
| wrapHTML ( $title, $html) |
| Wrap the body text with language information and identifiable element.
|
|
| afterContentHook () |
| This runs a hook to allow extensions placing their stuff after content and article metadata (e.g.
|
|
| buildFeedUrls () |
| Build data structure representing syndication links.
|
|
| drawCategoryBrowser ( $tree) |
| Render the array as a series of links.
|
|
| generateDebugHTML () |
| Generate debug data HTML for displaying at the bottom of the main content area.
|
|
| getCopyrightIcon () |
|
| getFooterLinks () |
| Get template representation of the footer containing site footer links as well as standard footer links.
|
|
| getIndicatorsData ( $indicators) |
| Return an array of indicator data.
|
|
| getLogo () |
| URL to the default square logo (1x key) Please use ResourceLoaderSkinModule::getAvailableLogos.
|
|
| getPoweredBy () |
| Gets the powered by MediaWiki icon.
|
|
| getSearchLink () |
|
| lastModified () |
| Get the timestamp of the latest revision, formatted in user language.
|
|
| preloadExistence () |
| Preload the existence of three commonly-requested pages in a single query.
|
|
static | makeKnownUrlDetails ( $name, $urlaction='') |
| Make URL details where the article exists (or at least it's convenient to think so)
|
|
static | makeUrlDetails ( $name, $urlaction='') |
| these return an array with the 'href' and boolean 'exists'
|
|
| $mRelevantTitle = null |
|
| $mRelevantUser = null |
|
array | $options = [] |
| Skin options passed into constructor.
|
|
string null | $skinname = null |
|