MediaWiki  1.33.0
MonoBookTemplate.php
Go to the documentation of this file.
1 <?php
31 
38  public function execute() {
39  // Open html, body elements, etc
40  $html = $this->get( 'headelement' );
41  $html .= Html::openElement( 'div', [ 'id' => 'globalWrapper' ] );
42 
43  $html .= Html::openElement( 'div', [ 'id' => 'column-content' ] );
44  $html .= Html::rawElement( 'div', [ 'id' => 'content', 'class' => 'mw-body', 'role' => 'main' ],
45  Html::element( 'a', [ 'id' => 'top' ] ) .
46  $this->getIfExists( 'sitenotice', [
47  'wrapper' => 'div',
48  'parameters' => [ 'id' => 'siteNotice', 'class' => 'mw-body-content' ]
49  ] ) .
50  $this->getIndicators() .
51  $this->getIfExists( 'title', [
52  'loose' => true,
53  'wrapper' => 'h1',
54  'parameters' => [
55  'id' => 'firstHeading',
56  'class' => 'firstHeading',
57  'lang' => $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode()
58  ]
59  ] ) .
60  Html::rawElement( 'div', [ 'id' => 'bodyContent', 'class' => 'mw-body-content' ],
61  Html::rawElement( 'div', [ 'id' => 'siteSub' ], $this->getMsg( 'tagline' )->parse() ) .
62  Html::rawElement(
63  'div',
64  [ 'id' => 'contentSub', 'lang' => $this->get( 'userlang' ), 'dir' => $this->get( 'dir' ) ],
65  $this->get( 'subtitle' )
66  ) .
67  $this->getIfExists( 'undelete', [ 'wrapper' => 'div', 'parameters' => [
68  'id' => 'contentSub2'
69  ] ] ) .
70  $this->getIfExists( 'newtalk', [ 'wrapper' => 'div', 'parameters' => [
71  'class' => 'usermessage'
72  ] ] ) .
73  Html::element( 'div', [ 'id' => 'jump-to-nav' ] ) .
74  Html::element( 'a', [ 'href' => '#column-one', 'class' => 'mw-jump-link' ],
75  $this->getMsg( 'monobook-jumptonavigation' )->text()
76  ) .
77  Html::element( 'a', [ 'href' => '#searchInput', 'class' => 'mw-jump-link' ],
78  $this->getMsg( 'monobook-jumptosearch' )->text()
79  ) .
80  '<!-- start content -->' .
81 
82  $this->get( 'bodytext' ) .
83  $this->getIfExists( 'catlinks' ) .
84 
85  '<!-- end content -->' .
86  $this->getIfExists( 'dataAfterContent' ) .
87  $this->getClear()
88  )
89  );
90  $html .= $this->deprecatedHookHack( 'MonoBookAfterContent' );
91  $html .= Html::closeElement( 'div' );
92 
93  $html .= Html::rawElement( 'div',
94  [
95  'id' => 'column-one',
96  'lang' => $this->get( 'userlang' ),
97  'dir' => $this->get( 'dir' )
98  ],
99  Html::element( 'h2', [], $this->getMsg( 'navigation-heading' )->text() ) .
100  $this->getCactions() .
101  $this->getBox( 'personal', $this->getPersonalTools(), 'personaltools' ) .
102  Html::rawElement( 'div', [ 'class' => 'portlet', 'id' => 'p-logo', 'role' => 'banner' ],
103  Html::element( 'a',
104  [
105  'href' => $this->data['nav_urls']['mainpage']['href'],
106  'class' => 'mw-wiki-logo',
107  ]
109  )
110  ) .
111  Html::rawElement( 'div', [ 'id' => 'sidebar' ], $this->getRenderedSidebar() ) .
113  'sidebar',
114  $this->getMsg( 'jumptonavigation' )->text()
115  ) .
117  'p-personal',
118  $this->getMsg( 'monobook-jumptopersonal' )->text()
119  ) .
121  'globalWrapper',
122  $this->getMsg( 'monobook-jumptotop' )->text()
123  )
124  );
125  $html .= '<!-- end of the left (by default at least) column -->';
126 
127  $html .= $this->getClear();
128  $html .= $this->getSimpleFooter();
129  $html .= Html::closeElement( 'div' );
130 
131  $html .= $this->getTrail();
132 
133  $html .= Html::closeElement( 'body' );
134  $html .= Html::closeElement( 'html' );
135 
136  // The unholy echo
137  echo $html;
138  }
139 
150  protected function getMobileNavigationIcon( $target, $title ) {
151  return Html::element( 'a', [
152  'href' => "#$target",
153  'title' => $title,
154  'class' => 'menu-toggle',
155  'id' => "$target-toggle"
156  ] );
157  }
158 
164  protected function getCactions() {
165  $html = '';
166  $allTabs = $this->data['content_actions'];
167  $tabCount = count( $allTabs );
168 
169  // Normal cactions
170  if ( $tabCount > 2 ) {
171  $html .= $this->getBox( 'cactions', $allTabs, 'monobook-cactions-label' );
172  } else {
173  // Is redundant with spoof, hide normal cactions entirely in mobile
174  $html .= $this->getBox( 'cactions', $allTabs, 'monobook-cactions-label',
175  [ 'extra-classes' => 'nomobile' ]
176  );
177  }
178 
179  // Mobile cactions tabs
180  $tabs = $this->data['content_navigation']['namespaces'];
181  foreach ( $tabs as $tab => $attribs ) {
182  $tabs[$tab]['id'] = $attribs['id'] . '-mobile';
183  $tabs[$tab]['title'] = $attribs['text'];
184  }
185 
186  if ( $tabCount !== 1 ) {
187  // Is not special page or stuff, append a 'more'
188  $tabs['more'] = [
189  'text' => $this->getMsg( 'monobook-more-actions' )->text(),
190  'href' => '#p-cactions',
191  'id' => 'ca-more'
192  ];
193  }
194  $tabs['toolbox'] = [
195  'text' => $this->getMsg( 'toolbox' )->text(),
196  'href' => '#p-tb',
197  'id' => 'ca-tools',
198  'title' => $this->getMsg( 'toolbox' )->text()
199  ];
200  if ( $this->data['language_urls'] !== false ) {
201  $tabs['languages'] = [
202  'text' => $this->getMsg( 'otherlanguages' )->text(),
203  'href' => '#p-lang',
204  'id' => 'ca-languages',
205  'title' => $this->getMsg( 'otherlanguages' )->text()
206  ];
207  }
208 
209  $html .= $this->getBox( 'cactions-mobile', $tabs, 'monobook-cactions-label' );
210 
211  return $html;
212  }
213 
219  protected function getRenderedSidebar() {
220  $sidebar = $this->data['sidebar'];
221  $html = '';
222 
223  if ( !isset( $sidebar['SEARCH'] ) ) {
224  $sidebar['SEARCH'] = true;
225  }
226  if ( !isset( $sidebar['TOOLBOX'] ) ) {
227  $sidebar['TOOLBOX'] = true;
228  }
229  if ( !isset( $sidebar['LANGUAGES'] ) ) {
230  $sidebar['LANGUAGES'] = true;
231  }
232 
233  foreach ( $sidebar as $boxName => $content ) {
234  if ( $content === false ) {
235  continue;
236  }
237 
238  // Numeric strings gets an integer when set as key, cast back - T73639
239  $boxName = (string)$boxName;
240 
241  if ( $boxName == 'SEARCH' ) {
242  $html .= $this->getSearchBox();
243  } elseif ( $boxName == 'TOOLBOX' ) {
244  $html .= $this->getToolboxBox();
245  } elseif ( $boxName == 'LANGUAGES' ) {
246  $html .= $this->getLanguageBox();
247  } else {
248  $html .= $this->getBox(
249  $boxName,
250  $content,
251  null,
252  [ 'extra-classes' => 'generated-sidebar' ]
253  );
254  }
255  }
256 
257  return $html;
258  }
259 
265  protected function getSearchBox() {
266  $html = '';
267 
268  if ( $this->config->get( 'UseTwoButtonsSearchForm' ) ) {
269  $optionButtons = "\u{00A0} " . $this->makeSearchButton(
270  'fulltext',
271  [ 'id' => 'mw-searchButton', 'class' => 'searchButton' ]
272  );
273  } else {
274  $optionButtons = Html::rawElement( 'div', [],
275  Html::rawElement( 'a', [ 'href' => $this->get( 'searchaction' ), 'rel' => 'search' ],
276  $this->getMsg( 'powersearch-legend' )->escaped()
277  )
278  );
279  }
280  $searchInputId = 'searchInput';
281  $searchForm = Html::rawElement( 'form', [
282  'action' => $this->get( 'wgScript' ),
283  'id' => 'searchform'
284  ],
285  Html::hidden( 'title', $this->get( 'searchtitle' ) ) .
286  $this->makeSearchInput( [ 'id' => $searchInputId ] ) .
287  $this->makeSearchButton( 'go', [ 'id' => 'searchGoButton', 'class' => 'searchButton' ] ) .
288  $optionButtons
289  );
290 
291  $html .= $this->getBox( 'search', $searchForm, null, [
292  'search-input-id' => $searchInputId,
293  'role' => 'search',
294  'body-id' => 'searchBody'
295  ] );
296 
297  return $html;
298  }
299 
305  protected function getToolboxBox() {
306  $html = '';
307  $skin = $this;
308 
309  $html .= $this->getBox( 'tb', $this->getToolbox(), 'toolbox', [ 'hooks' => [
310  // Deprecated hooks
311  'MonoBookTemplateToolboxEnd' => [ &$skin ],
312  'SkinTemplateToolboxEnd' => [ &$skin, true ]
313  ] ] );
314 
315  $html .= $this->deprecatedHookHack( 'MonoBookAfterToolbox' );
316 
317  return $html;
318  }
319 
325  protected function getLanguageBox() {
326  $html = '';
327 
328  if ( $this->data['language_urls'] !== false ) {
329  $html .= $this->getBox( 'lang', $this->data['language_urls'], 'otherlanguages' );
330  }
331 
332  return $html;
333  }
334 
345  protected function getBox( $name, $contents, $msg = null, $setOptions = [] ) {
346  $options = [
347  'class' => 'portlet',
348  'body-class' => 'pBody',
349  'text-wrapper' => ''
350  ];
351  foreach ( $setOptions as $key => $value ) {
352  $options[$key] = $value;
353  }
354 
355  // Do some special stuff for the personal menu
356  if ( $name == 'personal' ) {
357  $prependiture = '';
358 
359  // Extension:UniversalLanguageSelector order - T121793
360  if ( array_key_exists( 'uls', $contents ) ) {
361  $prependiture .= $this->makeListItem( 'uls', $contents['uls'] );
362  unset( $contents['uls'] );
363  }
364  if ( !$this->getSkin()->getUser()->isLoggedIn() &&
365  User::groupHasPermission( '*', 'edit' )
366  ) {
367  $prependiture .= Html::rawElement(
368  'li',
369  [ 'id' => 'pt-anonuserpage' ],
370  $this->getMsg( 'notloggedin' )->escaped()
371  );
372  }
373  $options['list-prepend'] = $prependiture;
374  }
375 
376  return $this->getPortlet( $name, $contents, $msg, $options );
377  }
378 
389  protected function getPortlet( $name, $content, $msg = null, $setOptions = [] ) {
390  // random stuff to override with any provided options
391  $options = [
392  // handle role=search a little differently
393  'role' => 'navigation',
394  'search-input-id' => 'searchInput',
395  // extra classes/ids
396  'id' => 'p-' . $name,
397  'class' => 'mw-portlet',
398  'extra-classes' => '',
399  'body-id' => null,
400  'body-class' => 'mw-portlet-body',
401  'body-extra-classes' => '',
402  // wrapper for individual list items
403  'text-wrapper' => [ 'tag' => 'span' ],
404  // old toolbox hook support (use: [ 'SkinTemplateToolboxEnd' => [ &$skin, true ] ])
405  'hooks' => '',
406  // option to stick arbitrary stuff at the beginning of the ul
407  'list-prepend' => ''
408  ];
409  // set options based on input
410  foreach ( $setOptions as $key => $value ) {
411  $options[$key] = $value;
412  }
413 
414  // Handle the different $msg possibilities
415  if ( $msg === null ) {
416  $msg = $name;
417  $msgParams = [];
418  } elseif ( is_array( $msg ) ) {
419  $msgString = array_shift( $msg );
420  $msgParams = $msg;
421  $msg = $msgString;
422  } else {
423  $msgParams = [];
424  }
425  $msgObj = $this->getMsg( $msg, $msgParams );
426  if ( $msgObj->exists() ) {
427  $msgString = $msgObj->parse();
428  } else {
429  $msgString = htmlspecialchars( $msg );
430  }
431 
432  $labelId = Sanitizer::escapeIdForAttribute( "p-$name-label" );
433 
434  if ( is_array( $content ) ) {
435  $contentText = Html::openElement( 'ul',
436  [ 'lang' => $this->get( 'userlang' ), 'dir' => $this->get( 'dir' ) ]
437  );
438  $contentText .= $options['list-prepend'];
439  foreach ( $content as $key => $item ) {
440  if ( is_array( $options['text-wrapper'] ) ) {
441  $contentText .= $this->makeListItem(
442  $key,
443  $item,
444  [ 'text-wrapper' => $options['text-wrapper'] ]
445  );
446  } else {
447  $contentText .= $this->makeListItem(
448  $key,
449  $item
450  );
451  }
452  }
453  // Compatibility with extensions still using SkinTemplateToolboxEnd or similar
454  if ( is_array( $options['hooks'] ) ) {
455  // @phan-suppress-next-line PhanTypeMismatchForeach T218843
456  foreach ( $options['hooks'] as $hook => $hookOptions ) {
457  $contentText .= $this->deprecatedHookHack( $hook, $hookOptions );
458  }
459  }
460 
461  $contentText .= Html::closeElement( 'ul' );
462  } else {
463  $contentText = $content;
464  }
465 
466  // Special handling for role=search
467  $divOptions = [
468  'role' => $options['role'],
469  'class' => $this->mergeClasses( $options['class'], $options['extra-classes'] ),
470  'id' => Sanitizer::escapeIdForAttribute( $options['id'] ),
471  'title' => Linker::titleAttrib( $options['id'] )
472  ];
473  if ( $options['role'] !== 'search' ) {
474  $divOptions['aria-labelledby'] = $labelId;
475  }
476  $labelOptions = [
477  'id' => $labelId,
478  'lang' => $this->get( 'userlang' ),
479  'dir' => $this->get( 'dir' )
480  ];
481  if ( $options['role'] == 'search' ) {
482  $msgString = Html::rawElement( 'label', [ 'for' => $options['search-input-id'] ], $msgString );
483  }
484 
485  $bodyDivOptions = [
486  'class' => $this->mergeClasses( $options['body-class'], $options['body-extra-classes'] )
487  ];
488  if ( is_string( $options['body-id'] ) ) {
489  $bodyDivOptions['id'] = $options['body-id'];
490  }
491 
492  $html = Html::rawElement( 'div', $divOptions,
493  Html::rawElement( 'h3', $labelOptions, $msgString ) .
494  Html::rawElement( 'div', $bodyDivOptions,
495  $contentText .
496  $this->getAfterPortlet( $name )
497  )
498  );
499 
500  return $html;
501  }
502 
514  protected function mergeClasses( $class, $extraClasses ) {
515  if ( !is_array( $class ) ) {
516  $class = [ $class ];
517  }
518  if ( !is_array( $extraClasses ) ) {
519  $extraClasses = [ $extraClasses ];
520  }
521 
522  return array_merge( $class, $extraClasses );
523  }
524 
534  protected function deprecatedHookHack( $hook, $hookOptions = [] ) {
535  $hookContents = '';
536  ob_start();
537  Hooks::run( $hook, $hookOptions );
538  $hookContents = ob_get_contents();
539  ob_end_clean();
540  if ( !trim( $hookContents ) ) {
541  $hookContents = '';
542  }
543 
544  return $hookContents;
545  }
546 
555  protected function getIfExists( $object, $setOptions = [] ) {
556  $options = [
557  'loose' => false,
558  'wrapper' => 'none',
559  'parameters' => []
560  ];
561  foreach ( $setOptions as $key => $value ) {
562  $options[$key] = $value;
563  }
564 
565  $html = '';
566 
567  if ( ( $options['loose'] && $this->data[$object] != '' ) ||
568  ( !$options['loose'] && $this->data[$object] ) ) {
569  if ( $options['wrapper'] == 'none' ) {
570  $html .= $this->get( $object );
571  } else {
572  $html .= Html::rawElement(
573  $options['wrapper'],
574  $options['parameters'],
575  $this->get( $object )
576  );
577  }
578  }
579 
580  return $html;
581  }
582 
588  protected function getSimpleFooter() {
589  $validFooterIcons = $this->getFooterIcons( 'icononly' );
590  $validFooterLinks = $this->getFooterLinks( 'flat' );
591 
592  $html = '';
593 
594  $html .= Html::openElement( 'div', [
595  'id' => 'footer',
596  'role' => 'contentinfo',
597  'lang' => $this->get( 'userlang' ),
598  'dir' => $this->get( 'dir' )
599  ] );
600 
601  foreach ( $validFooterIcons as $blockName => $footerIcons ) {
602  $html .= Html::openElement( 'div', [
603  'id' => Sanitizer::escapeIdForAttribute( "f-{$blockName}ico" ),
604  'class' => 'footer-icons'
605  ] );
606  foreach ( $footerIcons as $icon ) {
607  $html .= $this->getSkin()->makeFooterIcon( $icon );
608  }
609  $html .= Html::closeElement( 'div' );
610  }
611  if ( count( $validFooterLinks ) > 0 ) {
612  $html .= Html::openElement( 'ul', [ 'id' => 'f-list' ] );
613  foreach ( $validFooterLinks as $aLink ) {
614  $html .= Html::rawElement(
615  'li',
616  [ 'id' => Sanitizer::escapeIdForAttribute( $aLink ) ],
617  $this->get( $aLink )
618  );
619  }
620  $html .= Html::closeElement( 'ul' );
621  }
622  $html .= Html::closeElement( 'div' );
623 
624  return $html;
625  }
626 }
BaseTemplate\getPersonalTools
getPersonalTools()
Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate.
Definition: BaseTemplate.php:139
BaseTemplate\getFooterLinks
getFooterLinks( $option=null)
Returns an array of footerlinks trimmed down to only those footer links that are valid.
Definition: BaseTemplate.php:587
MonoBookTemplate\mergeClasses
mergeClasses( $class, $extraClasses)
Helper function for getPortlet.
Definition: MonoBookTemplate.php:514
BaseTemplate\makeSearchButton
makeSearchButton( $mode, $attrs=[])
Definition: BaseTemplate.php:537
MonoBookTemplate\execute
execute()
Template filter callback for MonoBook skin.
Definition: MonoBookTemplate.php:38
MonoBookTemplate\getBox
getBox( $name, $contents, $msg=null, $setOptions=[])
Generate a sidebar box using getPortlet(); prefill some common stuff.
Definition: MonoBookTemplate.php:345
captcha-old.count
count
Definition: captcha-old.py:249
BaseTemplate\getClear
getClear()
Get a div with the core visualClear class, for clearing floats.
Definition: BaseTemplate.php:712
MonoBookTemplate\getToolboxBox
getToolboxBox()
Generate the toolbox, complete with all three old hooks.
Definition: MonoBookTemplate.php:305
MonoBookTemplate\getPortlet
getPortlet( $name, $content, $msg=null, $setOptions=[])
Generates a block of navigation links with a header.
Definition: MonoBookTemplate.php:389
data
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
Definition: hooks.txt:6
User\groupHasPermission
static groupHasPermission( $group, $role)
Check, if the given group has the given permission.
Definition: User.php:5065
QuickTemplate\getSkin
getSkin()
Get the Skin object related to this object.
Definition: QuickTemplate.php:179
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
Linker\tooltipAndAccesskeyAttribs
static tooltipAndAccesskeyAttribs( $name, array $msgParams=[], $options=null)
Returns the attributes for the tooltip and access key.
Definition: Linker.php:2130
MonoBookTemplate\getCactions
getCactions()
Generate the cactions (content actions) tabs, as well as a second set of spoof tabs for mobile.
Definition: MonoBookTemplate.php:164
$html
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
Definition: hooks.txt:1985
$title
namespace and then decline to actually register it file or subcat img or subcat $title
Definition: hooks.txt:925
BaseTemplate\getAfterPortlet
getAfterPortlet( $name)
Allows extensions to hook into known portlets and add stuff to them.
Definition: BaseTemplate.php:307
$attribs
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
Definition: hooks.txt:1985
BaseTemplate\makeListItem
makeListItem( $key, $item, $options=[])
Generates a list item for a navigation, portlet, portal, sidebar...
Definition: BaseTemplate.php:480
MonoBookTemplate\getSimpleFooter
getSimpleFooter()
Renderer for getFooterIcons and getFooterLinks as a generic footer block.
Definition: MonoBookTemplate.php:588
BaseTemplate\getIndicators
getIndicators()
Get the suggested HTML for page status indicators: icons (or short text snippets) usually displayed i...
Definition: BaseTemplate.php:731
string
This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible true was required This is the default since MediaWiki *some string
Definition: hooks.txt:175
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:271
QuickTemplate\text
text( $str)
Definition: QuickTemplate.php:107
BaseTemplate\getMsg
getMsg( $name)
Get a Message object with its context set.
Definition: BaseTemplate.php:38
$value
$value
Definition: styleTest.css.php:49
MonoBookTemplate\getMobileNavigationIcon
getMobileNavigationIcon( $target, $title)
Create a wrapped link to create a mobile toggle/jump icon Needs to be an on-page link (as opposed to ...
Definition: MonoBookTemplate.php:150
BaseTemplate\makeSearchInput
makeSearchInput( $attrs=[])
Definition: BaseTemplate.php:527
MonoBookTemplate\getLanguageBox
getLanguageBox()
Generate the languages box.
Definition: MonoBookTemplate.php:325
MonoBookTemplate
Definition: MonoBookTemplate.php:30
MonoBookTemplate\getSearchBox
getSearchBox()
Generate the search, using config options for buttons (?)
Definition: MonoBookTemplate.php:265
Linker\titleAttrib
static titleAttrib( $name, $options=null, array $msgParams=[])
Given the id of an interface element, constructs the appropriate title attribute from the system mess...
Definition: Linker.php:1965
MonoBookTemplate\getRenderedSidebar
getRenderedSidebar()
Generate the full sidebar.
Definition: MonoBookTemplate.php:219
BaseTemplate\getToolbox
getToolbox()
Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate.
Definition: BaseTemplate.php:73
$options
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 & $options
Definition: hooks.txt:1985
MonoBookTemplate\getIfExists
getIfExists( $object, $setOptions=[])
Simple wrapper for random if-statement-wrapped $this->data things.
Definition: MonoBookTemplate.php:555
as
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
Definition: distributors.txt:9
BaseTemplate\getTrail
getTrail()
Get the basic end-page trail including bottomscripts, reporttime, and debug stuff.
Definition: BaseTemplate.php:762
$skin
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 $skin
Definition: hooks.txt:1985
$content
$content
Definition: pageupdater.txt:72
MonoBookTemplate\deprecatedHookHack
deprecatedHookHack( $hook, $hookOptions=[])
Wrapper to catch output of old hooks expecting to write directly to page We no longer do things that ...
Definition: MonoBookTemplate.php:534
BaseTemplate\getFooterIcons
getFooterIcons( $option=null)
Returns an array of footer icons filtered down by options relevant to how the skin wishes to display ...
Definition: BaseTemplate.php:624
Hooks\run
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
Definition: Hooks.php:200
BaseTemplate
New base template for a skin's template extended from QuickTemplate this class features helper method...
Definition: BaseTemplate.php:29