Go to the documentation of this file.
36 parent::__construct(
'Tags' );
44 $out->setPageTitle( $this->
msg(
'tags-title' ) );
45 $out->wrapWikiMsg(
"<div class='mw-tags-intro'>\n$1\n</div>",
'tags-intro' );
49 Xml::tags(
'th',
null, $this->
msg(
'tags-display-header' )->parse() ) .
50 Xml::tags(
'th',
null, $this->
msg(
'tags-description-header' )->parse() ) .
51 Xml::tags(
'th',
null, $this->
msg(
'tags-active-header' )->parse() ) .
52 Xml::tags(
'th',
null, $this->
msg(
'tags-hitcount-header' )->parse() )
64 array(
'class' =>
'wikitable sortable mw-tags-table' ),
69 function doTagRow( $tag, $hitcount ) {
75 if (
$user->isAllowed(
'editinterface' ) ) {
79 $this->
msg(
'tags-edit' )->escaped()
81 $disp .= $this->
msg(
'parentheses' )->rawParams( $editLink )->escaped();
83 $newRow .=
Xml::tags(
'td',
null, $disp );
85 $msg = $this->
msg(
"tag-$tag-description" );
86 $desc = !$msg->exists() ?
'' : $msg->parse();
87 if (
$user->isAllowed(
'editinterface' ) ) {
91 $this->
msg(
'tags-edit' )->escaped()
93 $desc .= $this->
msg(
'parentheses' )->rawParams( $editDescLink )->escaped();
95 $newRow .=
Xml::tags(
'td',
null, $desc );
97 $active = isset( $this->definedTags[$tag] ) ?
'tags-active-yes' :
'tags-active-no';
98 $active = $this->
msg( $active )->escaped();
99 $newRow .=
Xml::tags(
'td',
null, $active );
101 $hitcountLabel = $this->
msg(
'tags-hitcount' )->numParams( $hitcount )->escaped();
106 array(
'tagfilter' => $tag )
110 $newRow .=
Xml::tags(
'td',
array(
'data-sort-value' => $hitcount ), $hitcountLink );
112 return Xml::tags(
'tr',
null, $newRow ) .
"\n";
static & makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
static tags( $element, $attribs=null, $contents)
Same as Xml::element(), but does not escape contents.
getOutput()
Get the OutputPage being used for this instance.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name.
static link( $target, $html=null, $customAttribs=array(), $query=array(), $options=array())
This function returns an HTML link to the given target.
static element( $element, $attribs=null, $contents='', $allowShortTag=true)
Format an XML element with given attributes and, optionally, text content.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getUser()
Shortcut to get the User executing this instance.
msg()
Wrapper around wfMessage that sets the current context.
Parent class for all special pages.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...