Go to the documentation of this file.
29 $options = [
'known' ]
202 public function userLink( $userId, $userName, $altUserName =
false ) {
213 $redContribsWhenNoEdits =
false,
220 $redContribsWhenNoEdits,
334 public function tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex =
false ) {
362 $legacyAnchor =
false
381 $options = [
'verify' ]
410 public function titleAttrib( $name, $options =
null, array $msgParams = [] ) {
430 public function revDeleteLink( $query = [], $restricted =
false, $delete =
true ) {
449 public function tooltip( $name, $options =
null ) {
specialLink( $name, $key='')
linkKnown( $target, $html=null, $customAttribs=[], $query=[], $options=[ 'known'])
static formatLinksInComment( $comment, $title=null, $local=false, $wikiId=null)
Formats wiki links and media links in text; all other wiki formatting is ignored.
static userTalkLink( $userId, $userText)
makeHeadline( $level, $attribs, $anchor, $html, $link, $legacyAnchor=false)
getRevDeleteLink(User $user, Revision $rev, Title $title)
static emailLink( $userId, $userText)
static generateTOC( $tree, Language $lang=null)
Generate a table of contents from a section tree.
static revUserLink( $rev, $isPublic=false)
Generate a user link if the current user is allowed to view it.
getInvalidTitleDescription(IContextSource $context, $namespace, $title)
static userLink( $userId, $userName, $altUserName=false)
Make user link (or user contributions for unregistered users)
if(!isset( $args[0])) $lang
static makeSelfLinkObj( $nt, $html='', $query='', $trail='', $prefix='')
Make appropriate markup for a link to the current article.
static tocIndent()
Add another level to the Table of Contents.
static userToolLinks( $userId, $userText, $redContribsWhenNoEdits=false, $flags=0, $edits=null, $useParentheses=true)
Generate standard user tool links (talk, contributions, block link, etc.)
static specialLink( $name, $key='')
Make a link to a special page given its name and, optionally, a message key from the link text.
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
static revComment(Revision $rev, $local=false, $isPublic=false, $useParentheses=true)
Wrap and format the given revision's comment block, if the current user is allowed to view it.
static linkKnown( $target, $html=null, $customAttribs=[], $query=[], $options=[ 'known'])
Identical to link(), except $options defaults to 'known'.
static processResponsiveImages( $file, $thumb, $hp)
Process responsive images: add 1.5x and 2x subimages to the thumbnail, where applicable.
makeCommentLink(Title $title, $text, $wikiId=null, $options=[])
static getInvalidTitleDescription(IContextSource $context, $namespace, $title)
Get a message saying that an invalid title was encountered.
static makeThumbLinkObj(LinkTarget $title, $file, $label='', $alt='', $align='right', $params=[], $framed=false, $manualthumb="")
Make HTML for a thumbnail including image, border and caption.
makeMediaLinkObj( $title, $html='', $time=false)
makeThumbLink2(Title $title, $file, $frameParams=[], $handlerParams=[], $time=false, $query="")
tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex=false)
static tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex=false)
parameter level defines if we are on an indentation level
generateTOC( $tree, Language $lang=null)
static tocList( $toc, Language $lang=null)
Wraps the TOC in a table and provides the hide/collapse javascript.
static formatHiddenCategories( $hiddencats)
Returns HTML for the "hidden categories on this page" list.
static makeThumbLink2(LinkTarget $title, $file, $frameParams=[], $handlerParams=[], $time=false, $query="")
static tooltipAndAccesskeyAttribs( $name, array $msgParams=[], $options=null)
Returns the attributes for the tooltip and access key.
tooltip( $name, $options=null)
userToolLinks( $userId, $userText, $redContribsWhenNoEdits=false, $flags=0, $edits=null)
makeImageLink(Parser $parser, Title $title, $file, $frameParams=[], $handlerParams=[], $time=false, $query="", $widthOption=null)
normalizeSubpageLink( $contextTitle, $target, &$text)
static makeMediaLinkObj( $title, $html='', $time=false)
Create a direct link to a given uploaded file.
static generateRollback( $rev, IContextSource $context=null, $options=[ 'verify'])
Generate a rollback link for a given revision.
blockLink( $userId, $userText)
link( $target, $html=null, $customAttribs=[], $query=[], $options=[])
processResponsiveImages( $file, $thumb, $hp)
commentBlock( $comment, $title=null, $local=false, $wikiId=null)
makeThumbLinkObj(Title $title, $file, $label='', $alt='', $align='right', $params=[], $framed=false, $manualthumb="")
static getRollbackEditCount( $rev, $verify)
This function will return the number of revisions which a rollback would revert and,...
formatHiddenCategories( $hiddencats)
static makeHeadline( $level, $attribs, $anchor, $html, $link, $fallbackAnchor=false)
Create a headline for content.
tocList( $toc, Language $lang=null)
static tocLineEnd()
End a Table Of Contents line.
revComment(Revision $rev, $local=false, $isPublic=false)
static revDeleteLinkDisabled( $delete=true)
Creates a dead (show/hide) link for deleting revisions/log entries.
static makeExternalLink( $url, $text, $escape=true, $linktype='', $attribs=[], $title=null)
Make an external link.
static revUserTools( $rev, $isPublic=false, $useParentheses=true)
Generate a user tool link cluster if the current user is allowed to view it.
static makeCommentLink(LinkTarget $linkTarget, $text, $wikiId=null, $options=[])
Generates a link to the given LinkTarget.
titleAttrib( $name, $options=null, array $msgParams=[])
formatLinksInComment( $comment, $title=null, $local=false, $wikiId=null)
revUserLink( $rev, $isPublic=false)
static splitTrail( $trail)
Split a link trail, return the "inside" portion and the remainder of the trail as a two-element array...
formatComment( $comment, $title=null, $local=false, $wikiId=null)
static blockLink( $userId, $userText)
static normaliseSpecialPage(LinkTarget $target)
static commentBlock( $comment, $title=null, $local=false, $wikiId=null, $useParentheses=true)
Wrap a comment in standard punctuation and formatting if it's non-empty, otherwise return empty strin...
static userToolLinksRedContribs( $userId, $userText, $edits=null, $useParentheses=true)
Alias for userToolLinks( $userId, $userText, true );.
userTalkLink( $userId, $userText)
static getRevDeleteLink(User $user, Revision $rev, LinkTarget $title)
Get a revision-deletion link, or disabled link, or nothing, depending on user permissions & the setti...
static link( $target, $html=null, $customAttribs=[], $query=[], $options=[])
This function returns an HTML link to the given target.
static formatRevisionSize( $size)
userLink( $userId, $userName, $altUserName=false)
revDeleteLinkDisabled( $delete=true)
emailLink( $userId, $userText)
static makeMediaLinkFile(LinkTarget $title, $file, $html='')
Create a direct link to a given uploaded file.
makeExternalImage( $url, $alt='')
static titleAttrib( $name, $options=null, array $msgParams=[])
Given the id of an interface element, constructs the appropriate title attribute from the system mess...
Interface for objects which can provide a MediaWiki context on request.
static formatComment( $comment, $title=null, $local=false, $wikiId=null)
This function is called by all recent changes variants, by the page history, and by the user contribu...
getRollbackEditCount( $rev, $verify)
static tooltip( $name, $options=null)
Returns raw bits of HTML, use titleAttrib()
Represents a title within MediaWiki.
makeSelfLinkObj( $nt, $html='', $query='', $trail='', $prefix='')
makeBrokenImageLinkObj( $title, $label='', $query='', $unused1='', $unused2='', $time=false)
tooltipAndAccesskeyAttribs( $name, array $msgParams=[])
static tocUnindent( $level)
Finish one or more sublevels on the Table of Contents.
static makeImageLink(Parser $parser, LinkTarget $title, $file, $frameParams=[], $handlerParams=[], $time=false, $query="", $widthOption=null)
Given parameters derived from [[Image:Foo|options...]], generate the HTML that that syntax inserts in...
userToolLinksRedContribs( $userId, $userText, $edits=null)
static revDeleteLink( $query=[], $restricted=false, $delete=true)
Creates a (show/hide) link for deleting revisions/log entries.
revUserTools( $rev, $isPublic=false)
makeExternalLink( $url, $text, $escape=true, $linktype='', $attribs=[], $title=null)
static normalizeSubpageLink( $contextTitle, $target, &$text)
makeMediaLinkFile(Title $title, $file, $html='')
revDeleteLink( $query=[], $restricted=false, $delete=true)
generateRollback( $rev, IContextSource $context=null, $options=[ 'verify'])
static accesskey( $name)
Given the id of an interface element, constructs the appropriate accesskey attribute from the system ...
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
static buildRollbackLink( $rev, IContextSource $context=null, $editCount=false)
Build a raw rollback link, useful for collections of "tool" links.
static makeExternalImage( $url, $alt='')
Return the code for images which were added via external links, via Parser::maybeMakeExternalImage().
Internationalisation code.
formatRevisionSize( $size)
static makeBrokenImageLinkObj( $title, $label='', $query='', $unused1='', $unused2='', $time=false)
Make a "broken" link to an image.
normaliseSpecialPage(Title $title)
buildRollbackLink( $rev, IContextSource $context=null, $editCount=false)