Go to the documentation of this file.
28 if ( !defined(
'MEDIAWIKI' ) ) {
46 parent::setupSkinUserCss(
$out );
48 $out->addModuleStyles(
array(
'mediawiki.skinning.interface',
'skins.monobook.styles' ) );
51 $out->addStyle(
'monobook/IE60Fixes.css',
'screen',
'IE 6' );
52 $out->addStyle(
'monobook/IE70Fixes.css',
'screen',
'IE 7' );
75 $this->
html(
'headelement' );
76 ?><div
id=
"globalWrapper">
77 <div
id=
"column-content"><div
id=
"content" class=
"mw-body-primary" role=
"main">
79 <?
php if ( $this->
data[
'sitenotice'] ) { ?><div
id=
"siteNotice"><?
php $this->
html(
'sitenotice' ) ?></div><?
php } ?>
81 <h1
id=
"firstHeading" class=
"firstHeading" lang=
"<?php
82 $this->data['pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode();
83 $this->text( 'pageLanguage' );
84 ?>"><span dir=
"auto"><?
php $this->
html(
'title' ) ?></span></h1>
85 <div
id=
"bodyContent" class=
"mw-body">
86 <div
id=
"siteSub"><?
php $this->
msg(
'tagline' ) ?></div>
87 <div
id=
"contentSub"<?
php $this->
html(
'userlangattributes' ) ?>><?
php $this->
html(
'subtitle' ) ?></div>
88 <?
php if ( $this->
data[
'undelete'] ) { ?>
89 <div
id=
"contentSub2"><?
php $this->
html(
'undelete' ) ?></div>
90 <?
php } ?><?
php if ( $this->
data[
'newtalk'] ) { ?>
91 <div
class=
"usermessage"><?
php $this->
html(
'newtalk' ) ?></div>
93 <div
id=
"jump-to-nav" class=
"mw-jump"><?
php $this->
msg(
'jumpto' ) ?> <a
href=
"#column-one"><?
php $this->
msg(
'jumptonavigation' ) ?></a><?
php $this->
msg(
'comma-separator' ) ?><a
href=
"#searchInput"><?
php $this->
msg(
'jumptosearch' ) ?></a></div>
96 <?
php $this->
html(
'bodytext' ) ?>
97 <?
php if ( $this->
data[
'catlinks'] ) { $this->
html(
'catlinks' ); } ?>
99 <?
php if ( $this->
data[
'dataAfterContent'] ) { $this->
html(
'dataAfterContent' ); } ?>
100 <div
class=
"visualClear"></div>
103 <div
id=
"column-one"<?
php $this->
html(
'userlangattributes' ) ?>>
104 <h2><?
php $this->
msg(
'navigation-heading' ) ?></h2>
106 <div
class=
"portlet" id=
"p-personal" role=
"navigation">
107 <h3><?
php $this->
msg(
'personaltools' ) ?></h3>
109 <ul<?
php $this->
html(
'userlangattributes' ) ?>>
117 <div
class=
"portlet" id=
"p-logo" role=
"banner">
120 'href' => $this->
data[
'nav_urls'][
'mainpage'][
'href'],
121 'style' =>
"background-image: url({$this->data['logopath']});" )
128 </div><!-- end
of the left (by
default at least) column -->
129 <div
class=
"visualClear"></div>
135 <div
id=
"footer" role=
"contentinfo"<?
php $this->
html(
'userlangattributes' ) ?>>
137 $footerEnd =
'</div>';
142 <div
id=
"f-<?php echo htmlspecialchars( $blockName ); ?>ico">
143 <?
php foreach ( $footerIcons
as $icon ) { ?>
144 <?
php echo $this->
getSkin()->makeFooterIcon( $icon ); ?>
155 <li
id=
"<?php echo $aLink ?>"><?
php $this->
html( $aLink ) ?></li>
178 if ( !isset( $sidebar[
'SEARCH'] ) ) {
179 $sidebar[
'SEARCH'] =
true;
181 if ( !isset( $sidebar[
'TOOLBOX'] ) ) {
182 $sidebar[
'TOOLBOX'] =
true;
184 if ( !isset( $sidebar[
'LANGUAGES'] ) ) {
185 $sidebar[
'LANGUAGES'] =
true;
188 foreach ( $sidebar
as $boxName => $content ) {
189 if ( $content ===
false ) {
193 if ( $boxName ==
'SEARCH' ) {
195 } elseif ( $boxName ==
'TOOLBOX' ) {
197 } elseif ( $boxName ==
'LANGUAGES' ) {
206 global $wgUseTwoButtonsSearchForm;
208 <div
id=
"p-search" class=
"portlet" role=
"search">
209 <h3><label
for=
"searchInput"><?
php $this->
msg(
'search' ) ?></label></h3>
210 <div
id=
"searchBody" class=
"pBody">
211 <
form action=
"<?php $this->text( 'wgScript' ) ?>" id=
"searchform">
212 <input
type=
'hidden' name=
"title" value=
"<?php $this->text( 'searchtitle' ) ?>"/>
216 if ( $wgUseTwoButtonsSearchForm ) { ?> 
220 <div><a
href=
"<?php $this->text( 'searchaction' ) ?>" rel=
"search"><?
php $this->
msg(
'powersearch-legend' ) ?></a></div><?
php
237 <div
id=
"p-cactions" class=
"portlet" role=
"navigation">
238 <h3><?
php $this->
msg(
'views' ) ?></h3>
241 foreach ( $this->
data[
'content_actions']
as $key => $tab ) {
255 <div
class=
"portlet" id=
"p-tb" role=
"navigation">
256 <h3><?
php $this->
msg(
'toolbox' ) ?></h3>
277 if ( $this->
data[
'language_urls'] !==
false ) {
279 <div
id=
"p-lang" class=
"portlet" role=
"navigation">
280 <h3<?
php $this->
html(
'userlangattributes' ) ?>><?
php $this->
msg(
'otherlanguages' ) ?></h3>
283 <?
php foreach ( $this->
data[
'language_urls']
as $key => $langlink ) { ?>
302 $portletAttribs =
array(
'class' =>
'generated-sidebar portlet',
'id' =>
Sanitizer::escapeId(
"p-$bar" ),
'role' =>
'navigation' );
304 if ( $tooltip !==
false ) {
305 $portletAttribs[
'title'] = $tooltip;
311 <h3><?
php echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $bar ); ?></h3>
313 <?
php if ( is_array( $cont ) ) { ?>
315 <?
php foreach ( $cont
as $key => $val ) { ?>
321 # allow raw HTML block to be defined by extensions
getPersonalTools()
Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate.
getFooterLinks( $option=null)
Returns an array of footerlinks trimmed down to only those footer links that are valid.
makeSearchInput( $attrs=array())
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of data
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
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
makeListItem( $key, $item, $options=array())
Generates a list item for a navigation, portlet, portal, sidebar...
per default it will return the text for text based content
Inherit main code from SkinTemplate, set the CSS and template filter.
execute()
Template filter callback for MonoBook skin.
wfSuppressWarnings( $end=false)
Reference-counted warning suppression.
getSkin()
Get the Skin object related to this object.
static closeElement( $element)
Returns "</$element>", except if $wgWellFormedXml is off, in which case it returns the empty string w...
static tooltipAndAccesskeyAttribs( $name)
Returns the attributes for the tooltip and access key.
static openElement( $element, $attribs=array())
Identical to rawElement(), but has no third parameter and omits the end tag (and the self-closing '/'...
wfRestoreWarnings()
Restore error level to previous value.
static element( $element, $attribs=array(), $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
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 "<
printTrail()
Output the basic end-page trail including bottomscripts, reporttime, and debug stuff.
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.
when a variable name is used in a it is silently declared as a new masking the global
null means default in associative array form
setupSkinUserCss(OutputPage $out)
This class should be covered by a general architecture document which does not exist as of January 20...
static escapeId( $id, $options=array())
Given a value, escape it so that it can be used in an id attribute and return it.
renderAfterPortlet( $name)
foreach( $validFooterIcons as $blockName=> $footerIcons) foreach( $footerIcons as $icon) if(count( $validFooterLinks) > 0) $this html( $aLink)
makeSearchButton( $mode, $attrs=array())
cactions()
Prints the cactions bar.
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 start
getToolbox()
Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate.
This document describes the state of Postgres support in and is fairly well maintained The main code is very well while extensions are very hit and miss it is probably the most supported database after MySQL Much of the work in making MediaWiki database agnostic came about through the work of creating Postgres as and are nearing end of but without copying over all the usage comments General notes on the but these can almost always be programmed around *Although Postgres has a true BOOLEAN type
static titleAttrib( $name, $options=null)
Given the id of an interface element, constructs the appropriate title attribute from the system mess...
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
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at name
getFooterIcons( $option=null)
Returns an array of footer icons filtered down by options relevant to how the skin wishes to display ...
New base template for a skin's template extended from QuickTemplate this class features helper method...
Template-filler skin base class Formerly generic PHPTal (http://phptal.sourceforge....