Go to the documentation of this file.
23 require_once __DIR__ .
'/includes/WebStart.php';
25 if ( $wgRequest->getVal(
'ctype' ) ==
'application/xml' ) {
27 $ctype =
'application/xml';
29 $ctype =
'application/opensearchdescription+xml';
33 $response->header(
"Content-type: $ctype" );
39 $response->header(
'Cache-control: max-age=600' );
41 print
'<?xml version="1.0"?>';
44 'xmlns' =>
'http://a9.com/-/spec/opensearch/1.1/',
45 'xmlns:moz' =>
'http://www.mozilla.org/2006/browser/search/' ) );
57 $fullName =
wfMessage(
'opensearch-desc' )->inContentLanguage()->text();
67 'type' =>
'image/x-icon' ),
77 'type' =>
'text/html',
79 'template' => $searchPage->getCanonicalURL(
'search={searchTerms}' ) );
85 'type' =>
'application/x-suggestions+json',
103 $searchPage->getCanonicalURL() );
105 print
'</OpenSearchDescription>';
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
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name.
static openElement( $element, $attribs=null)
This opens an XML element.
static getOpenSearchTemplate()
Get OpenSearch suggestion template.
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 after processing after in associative array form externallinks including delete and has completed for all link tables default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "<
static element( $element, $attribs=null, $contents='', $allowShortTag=true)
Format an XML element with given attributes and, optionally, text content.
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
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
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 after processing & $attribs
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.