MediaWiki  1.29.1
VectorTemplate.php
Go to the documentation of this file.
1 <?php
30  /* Functions */
31 
35  public function execute() {
36  // Build additional attributes for navigation urls
37  $nav = $this->data['content_navigation'];
38 
39  if ( $this->config->get( 'VectorUseIconWatch' ) ) {
40  $mode = $this->getSkin()->getUser()->isWatched( $this->getSkin()->getRelevantTitle() )
41  ? 'unwatch'
42  : 'watch';
43 
44  if ( isset( $nav['actions'][$mode] ) ) {
45  $nav['views'][$mode] = $nav['actions'][$mode];
46  $nav['views'][$mode]['class'] = rtrim( 'icon ' . $nav['views'][$mode]['class'], ' ' );
47  $nav['views'][$mode]['primary'] = true;
48  unset( $nav['actions'][$mode] );
49  }
50  }
51 
52  $xmlID = '';
53  foreach ( $nav as $section => $links ) {
54  foreach ( $links as $key => $link ) {
55  if ( $section == 'views' && !( isset( $link['primary'] ) && $link['primary'] ) ) {
56  $link['class'] = rtrim( 'collapsible ' . $link['class'], ' ' );
57  }
58 
59  $xmlID = isset( $link['id'] ) ? $link['id'] : 'ca-' . $xmlID;
60  $nav[$section][$key]['attributes'] =
61  ' id="' . Sanitizer::escapeId( $xmlID ) . '"';
62  if ( $link['class'] ) {
63  $nav[$section][$key]['attributes'] .=
64  ' class="' . htmlspecialchars( $link['class'] ) . '"';
65  unset( $nav[$section][$key]['class'] );
66  }
67  if ( isset( $link['tooltiponly'] ) && $link['tooltiponly'] ) {
68  $nav[$section][$key]['key'] =
69  Linker::tooltip( $xmlID );
70  } else {
71  $nav[$section][$key]['key'] =
73  }
74  }
75  }
76  $this->data['namespace_urls'] = $nav['namespaces'];
77  $this->data['view_urls'] = $nav['views'];
78  $this->data['action_urls'] = $nav['actions'];
79  $this->data['variant_urls'] = $nav['variants'];
80 
81  // Reverse horizontally rendered navigation elements
82  if ( $this->data['rtl'] ) {
83  $this->data['view_urls'] =
84  array_reverse( $this->data['view_urls'] );
85  $this->data['namespace_urls'] =
86  array_reverse( $this->data['namespace_urls'] );
87  $this->data['personal_urls'] =
88  array_reverse( $this->data['personal_urls'] );
89  }
90 
91  $this->data['pageLanguage'] =
92  $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode();
93 
94  // Output HTML Page
95  $this->html( 'headelement' );
96  ?>
97  <div id="mw-page-base" class="noprint"></div>
98  <div id="mw-head-base" class="noprint"></div>
99  <div id="content" class="mw-body" role="main">
100  <a id="top"></a>
101 
102  <?php
103  if ( $this->data['sitenotice'] ) {
104  ?>
105  <div id="siteNotice" class="mw-body-content"><?php $this->html( 'sitenotice' ) ?></div>
106  <?php
107  }
108  ?>
109  <?php
110  if ( is_callable( [ $this, 'getIndicators' ] ) ) {
111  echo $this->getIndicators();
112  }
113  // Loose comparison with '!=' is intentional, to catch null and false too, but not '0'
114  if ( $this->data['title'] != '' ) {
115  ?>
116  <h1 id="firstHeading" class="firstHeading" lang="<?php $this->text( 'pageLanguage' ); ?>"><?php
117  $this->html( 'title' )
118  ?></h1>
119  <?php
120  } ?>
121  <?php $this->html( 'prebodyhtml' ) ?>
122  <div id="bodyContent" class="mw-body-content">
123  <?php
124  if ( $this->data['isarticle'] ) {
125  ?>
126  <div id="siteSub"><?php $this->msg( 'tagline' ) ?></div>
127  <?php
128  }
129  ?>
130  <div id="contentSub"<?php $this->html( 'userlangattributes' ) ?>><?php
131  $this->html( 'subtitle' )
132  ?></div>
133  <?php
134  if ( $this->data['undelete'] ) {
135  ?>
136  <div id="contentSub2"><?php $this->html( 'undelete' ) ?></div>
137  <?php
138  }
139  ?>
140  <?php
141  if ( $this->data['newtalk'] ) {
142  ?>
143  <div class="usermessage"><?php $this->html( 'newtalk' ) ?></div>
144  <?php
145  }
146  ?>
147  <div id="jump-to-nav" class="mw-jump">
148  <?php $this->msg( 'jumpto' ) ?>
149  <a href="#mw-head"><?php
150  $this->msg( 'jumptonavigation' )
151  ?></a><?php $this->msg( 'comma-separator' ) ?>
152  <a href="#p-search"><?php $this->msg( 'jumptosearch' ) ?></a>
153  </div>
154  <?php
155  $this->html( 'bodycontent' );
156 
157  if ( $this->data['printfooter'] ) {
158  ?>
159  <div class="printfooter">
160  <?php $this->html( 'printfooter' ); ?>
161  </div>
162  <?php
163  }
164 
165  if ( $this->data['catlinks'] ) {
166  $this->html( 'catlinks' );
167  }
168 
169  if ( $this->data['dataAfterContent'] ) {
170  $this->html( 'dataAfterContent' );
171  }
172  ?>
173  <div class="visualClear"></div>
174  <?php $this->html( 'debughtml' ); ?>
175  </div>
176  </div>
177  <div id="mw-navigation">
178  <h2><?php $this->msg( 'navigation-heading' ) ?></h2>
179 
180  <div id="mw-head">
181  <?php $this->renderNavigation( 'PERSONAL' ); ?>
182  <div id="left-navigation">
183  <?php $this->renderNavigation( [ 'NAMESPACES', 'VARIANTS' ] ); ?>
184  </div>
185  <div id="right-navigation">
186  <?php $this->renderNavigation( [ 'VIEWS', 'ACTIONS', 'SEARCH' ] ); ?>
187  </div>
188  </div>
189  <div id="mw-panel">
190  <div id="p-logo" role="banner"><a class="mw-wiki-logo" href="<?php
191  echo htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] )
192  ?>" <?php
194  ?>></a></div>
195  <?php $this->renderPortals( $this->data['sidebar'] ); ?>
196  </div>
197  </div>
198  <div id="footer" role="contentinfo"<?php $this->html( 'userlangattributes' ) ?>>
199  <?php
200  foreach ( $this->getFooterLinks() as $category => $links ) {
201  ?>
202  <ul id="footer-<?php echo $category ?>">
203  <?php
204  foreach ( $links as $link ) {
205  ?>
206  <li id="footer-<?php echo $category ?>-<?php echo $link ?>"><?php $this->html( $link ) ?></li>
207  <?php
208  }
209  ?>
210  </ul>
211  <?php
212  }
213  ?>
214  <?php $footericons = $this->getFooterIcons( 'icononly' );
215  if ( count( $footericons ) > 0 ) {
216  ?>
217  <ul id="footer-icons" class="noprint">
218  <?php
219  foreach ( $footericons as $blockName => $footerIcons ) {
220  ?>
221  <li id="footer-<?php echo htmlspecialchars( $blockName ); ?>ico">
222  <?php
223  foreach ( $footerIcons as $icon ) {
224  echo $this->getSkin()->makeFooterIcon( $icon );
225  }
226  ?>
227  </li>
228  <?php
229  }
230  ?>
231  </ul>
232  <?php
233  }
234  ?>
235  <div style="clear:both"></div>
236  </div>
237  <?php $this->printTrail(); ?>
238 
239  </body>
240 </html>
241 <?php
242  }
243 
249  protected function renderPortals( $portals ) {
250  // Force the rendering of the following portals
251  if ( !isset( $portals['SEARCH'] ) ) {
252  $portals['SEARCH'] = true;
253  }
254  if ( !isset( $portals['TOOLBOX'] ) ) {
255  $portals['TOOLBOX'] = true;
256  }
257  if ( !isset( $portals['LANGUAGES'] ) ) {
258  $portals['LANGUAGES'] = true;
259  }
260  // Render portals
261  foreach ( $portals as $name => $content ) {
262  if ( $content === false ) {
263  continue;
264  }
265 
266  // Numeric strings gets an integer when set as key, cast back - T73639
267  $name = (string)$name;
268 
269  switch ( $name ) {
270  case 'SEARCH':
271  break;
272  case 'TOOLBOX':
273  $this->renderPortal( 'tb', $this->getToolbox(), 'toolbox', 'SkinTemplateToolboxEnd' );
274  break;
275  case 'LANGUAGES':
276  if ( $this->data['language_urls'] !== false ) {
277  $this->renderPortal( 'lang', $this->data['language_urls'], 'otherlanguages' );
278  }
279  break;
280  default:
281  $this->renderPortal( $name, $content );
282  break;
283  }
284  }
285  }
286 
293  protected function renderPortal( $name, $content, $msg = null, $hook = null ) {
294  if ( $msg === null ) {
295  $msg = $name;
296  }
297  $msgObj = wfMessage( $msg );
298  $labelId = Sanitizer::escapeId( "p-$name-label" );
299  ?>
300  <div class="portal" role="navigation" id='<?php
301  echo Sanitizer::escapeId( "p-$name" )
302  ?>'<?php
303  echo Linker::tooltip( 'p-' . $name )
304  ?> aria-labelledby='<?php echo $labelId ?>'>
305  <h3<?php $this->html( 'userlangattributes' ) ?> id='<?php echo $labelId ?>'><?php
306  echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $msg );
307  ?></h3>
308 
309  <div class="body">
310  <?php
311  if ( is_array( $content ) ) {
312  ?>
313  <ul>
314  <?php
315  foreach ( $content as $key => $val ) {
316  echo $this->makeListItem( $key, $val );
317  }
318  if ( $hook !== null ) {
319  Hooks::run( $hook, [ &$this, true ] );
320  }
321  ?>
322  </ul>
323  <?php
324  } else {
325  echo $content; /* Allow raw HTML block to be defined by extensions */
326  }
327 
328  $this->renderAfterPortlet( $name );
329  ?>
330  </div>
331  </div>
332  <?php
333  }
334 
341  protected function renderNavigation( $elements ) {
342  // If only one element was given, wrap it in an array, allowing more
343  // flexible arguments
344  if ( !is_array( $elements ) ) {
345  $elements = [ $elements ];
346  // If there's a series of elements, reverse them when in RTL mode
347  } elseif ( $this->data['rtl'] ) {
348  $elements = array_reverse( $elements );
349  }
350  // Render elements
351  foreach ( $elements as $name => $element ) {
352  switch ( $element ) {
353  case 'NAMESPACES':
354  ?>
355  <div id="p-namespaces" role="navigation" class="vectorTabs<?php
356  if ( count( $this->data['namespace_urls'] ) == 0 ) {
357  echo ' emptyPortlet';
358  }
359  ?>" aria-labelledby="p-namespaces-label">
360  <h3 id="p-namespaces-label"><?php $this->msg( 'namespaces' ) ?></h3>
361  <ul<?php $this->html( 'userlangattributes' ) ?>>
362  <?php
363  foreach ( $this->data['namespace_urls'] as $link ) {
364  ?>
365  <li <?php echo $link['attributes'] ?>><span><a href="<?php
366  echo htmlspecialchars( $link['href'] )
367  ?>" <?php
368  echo $link['key'];
369  if ( isset ( $link['rel'] ) ) {
370  echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"';
371  }
372  ?>><?php
373  echo htmlspecialchars( $link['text'] )
374  ?></a></span></li>
375  <?php
376  }
377  ?>
378  </ul>
379  </div>
380  <?php
381  break;
382  case 'VARIANTS':
383  ?>
384  <div id="p-variants" role="navigation" class="vectorMenu<?php
385  if ( count( $this->data['variant_urls'] ) == 0 ) {
386  echo ' emptyPortlet';
387  }
388  ?>" aria-labelledby="p-variants-label">
389  <?php
390  // Replace the label with the name of currently chosen variant, if any
391  $variantLabel = $this->getMsg( 'variants' )->text();
392  foreach ( $this->data['variant_urls'] as $link ) {
393  if ( stripos( $link['attributes'], 'selected' ) !== false ) {
394  $variantLabel = $link['text'];
395  break;
396  }
397  }
398  ?>
399  <h3 id="p-variants-label">
400  <span><?php echo htmlspecialchars( $variantLabel ) ?></span><a href="#"></a>
401  </h3>
402 
403  <div class="menu">
404  <ul>
405  <?php
406  foreach ( $this->data['variant_urls'] as $link ) {
407  ?>
408  <li<?php echo $link['attributes'] ?>><a href="<?php
409  echo htmlspecialchars( $link['href'] )
410  ?>" lang="<?php
411  echo htmlspecialchars( $link['lang'] )
412  ?>" hreflang="<?php
413  echo htmlspecialchars( $link['hreflang'] )
414  ?>" <?php
415  echo $link['key']
416  ?>><?php
417  echo htmlspecialchars( $link['text'] )
418  ?></a></li>
419  <?php
420  }
421  ?>
422  </ul>
423  </div>
424  </div>
425  <?php
426  break;
427  case 'VIEWS':
428  ?>
429  <div id="p-views" role="navigation" class="vectorTabs<?php
430  if ( count( $this->data['view_urls'] ) == 0 ) {
431  echo ' emptyPortlet';
432  }
433  ?>" aria-labelledby="p-views-label">
434  <h3 id="p-views-label"><?php $this->msg( 'views' ) ?></h3>
435  <ul<?php $this->html( 'userlangattributes' ) ?>>
436  <?php
437  foreach ( $this->data['view_urls'] as $link ) {
438  ?>
439  <li<?php echo $link['attributes'] ?>><span><a href="<?php
440  echo htmlspecialchars( $link['href'] )
441  ?>" <?php
442  echo $link['key'];
443  if ( isset ( $link['rel'] ) ) {
444  echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"';
445  }
446  ?>><?php
447  // $link['text'] can be undefined - bug 27764
448  if ( array_key_exists( 'text', $link ) ) {
449  echo array_key_exists( 'img', $link )
450  ? '<img src="' . $link['img'] . '" alt="' . $link['text'] . '" />'
451  : htmlspecialchars( $link['text'] );
452  }
453  ?></a></span></li>
454  <?php
455  }
456  ?>
457  </ul>
458  </div>
459  <?php
460  break;
461  case 'ACTIONS':
462  ?>
463  <div id="p-cactions" role="navigation" class="vectorMenu<?php
464  if ( count( $this->data['action_urls'] ) == 0 ) {
465  echo ' emptyPortlet';
466  }
467  ?>" aria-labelledby="p-cactions-label">
468  <h3 id="p-cactions-label"><span><?php
469  $this->msg( 'vector-more-actions' )
470  ?></span><a href="#"></a></h3>
471 
472  <div class="menu">
473  <ul<?php $this->html( 'userlangattributes' ) ?>>
474  <?php
475  foreach ( $this->data['action_urls'] as $link ) {
476  ?>
477  <li<?php echo $link['attributes'] ?>>
478  <a href="<?php
479  echo htmlspecialchars( $link['href'] )
480  ?>" <?php
481  echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] )
482  ?></a>
483  </li>
484  <?php
485  }
486  ?>
487  </ul>
488  </div>
489  </div>
490  <?php
491  break;
492  case 'PERSONAL':
493  ?>
494  <div id="p-personal" role="navigation" class="<?php
495  if ( count( $this->data['personal_urls'] ) == 0 ) {
496  echo ' emptyPortlet';
497  }
498  ?>" aria-labelledby="p-personal-label">
499  <h3 id="p-personal-label"><?php $this->msg( 'personaltools' ) ?></h3>
500  <ul<?php $this->html( 'userlangattributes' ) ?>>
501  <?php
502 
504 
505  if ( !$this->getSkin()->getUser()->isLoggedIn() &&
506  User::groupHasPermission( '*', 'edit' ) ){
507 
508  $notLoggedIn =
509  Html::rawElement( 'li',
510  [ 'id' => 'pt-anonuserpage' ],
511  $this->getMsg( 'notloggedin' )->escaped()
512  );
513 
514  }
515 
517 
519  if ( array_key_exists( 'uls', $personalTools ) ) {
520  $langSelector = $this->makeListItem( 'uls', $personalTools[ 'uls' ] );
521  unset( $personalTools[ 'uls' ] );
522  }
523 
524  if ( !$this->data[ 'rtl' ] ) {
525  echo $langSelector;
526  echo $notLoggedIn;
527  }
528 
529  foreach ( $personalTools as $key => $item ) {
530  echo $this->makeListItem( $key, $item );
531  }
532 
533  if ( $this->data[ 'rtl' ] ) {
534  echo $notLoggedIn;
535  echo $langSelector;
536  }
537  ?>
538  </ul>
539  </div>
540  <?php
541  break;
542  case 'SEARCH':
543  ?>
544  <div id="p-search" role="search">
545  <h3<?php $this->html( 'userlangattributes' ) ?>>
546  <label for="searchInput"><?php $this->msg( 'search' ) ?></label>
547  </h3>
548 
549  <form action="<?php $this->text( 'wgScript' ) ?>" id="searchform">
550  <div<?php echo $this->config->get( 'VectorUseSimpleSearch' ) ? ' id="simpleSearch"' : '' ?>>
551  <?php
552  echo $this->makeSearchInput( [ 'id' => 'searchInput' ] );
553  echo Html::hidden( 'title', $this->get( 'searchtitle' ) );
554  // We construct two buttons (for 'go' and 'fulltext' search modes),
555  // but only one will be visible and actionable at a time (they are
556  // overlaid on top of each other in CSS).
557  // * Browsers will use the 'fulltext' one by default (as it's the
558  // first in tree-order), which is desirable when they are unable
559  // to show search suggestions (either due to being broken or
560  // having JavaScript turned off).
561  // * The mediawiki.searchSuggest module, after doing tests for the
562  // broken browsers, removes the 'fulltext' button and handles
563  // 'fulltext' search itself; this will reveal the 'go' button and
564  // cause it to be used.
565  echo $this->makeSearchButton(
566  'fulltext',
567  [ 'id' => 'mw-searchButton', 'class' => 'searchButton mw-fallbackSearchButton' ]
568  );
569  echo $this->makeSearchButton(
570  'go',
571  [ 'id' => 'searchButton', 'class' => 'searchButton' ]
572  );
573  ?>
574  </div>
575  </form>
576  </div>
577  <?php
578 
579  break;
580  }
581  }
582  }
583 }
BaseTemplate\getPersonalTools
getPersonalTools()
Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate.
Definition: BaseTemplate.php:131
BaseTemplate\getFooterLinks
getFooterLinks( $option=null)
Returns an array of footerlinks trimmed down to only those footer links that are valid.
Definition: BaseTemplate.php:585
BaseTemplate\msg
msg( $str)
Definition: BaseTemplate.php:39
Xml\expandAttributes
static expandAttributes( $attribs)
Given an array of ('attributename' => 'value'), it generates the code to set the XML attributes : att...
Definition: Xml.php:67
VectorTemplate\$notLoggedIn
case __pad3__ if(count( $this->data['personal_urls'])==0) $this msg('personaltools') $this html('userlangattributes') $notLoggedIn
Definition: VectorTemplate.php:503
BaseTemplate\makeSearchButton
makeSearchButton( $mode, $attrs=[])
Definition: BaseTemplate.php:532
captcha-old.count
count
Definition: captcha-old.py:225
VectorTemplate\$langSelector
$langSelector
Definition: VectorTemplate.php:518
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:304
User\groupHasPermission
static groupHasPermission( $group, $role)
Check, if the given group has the given permission.
Definition: User.php:4766
QuickTemplate\getSkin
getSkin()
Get the Skin object related to this object.
Definition: QuickTemplate.php:173
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
VectorTemplate
QuickTemplate class for Vector skin.
Definition: VectorTemplate.php:29
VectorTemplate\$footericons
$this html('userlangattributes') foreach( $this->getFooterLinks() as $category=> $links) foreach( $links as $link) $this html($link) $footericons
Definition: VectorTemplate.php:214
a
</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Multiline< source/> in lists !input *< source > a b</source > *foo< source > a b</source > ! html< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! html tidy< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! end ! test Custom attributes !input< source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var a
Definition: parserTests.txt:89
$content
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content $content
Definition: hooks.txt:1049
VectorTemplate\execute
execute()
Outputs the entire contents of the (X)HTML page.
Definition: VectorTemplate.php:35
BaseTemplate\printTrail
printTrail()
Output getTrail.
Definition: BaseTemplate.php:751
BaseTemplate\makeListItem
makeListItem( $key, $item, $options=[])
Generates a list item for a navigation, portlet, portal, sidebar...
Definition: BaseTemplate.php:474
div
div
Definition: parserTests.txt:6533
form
null means default in associative array form
Definition: hooks.txt:1956
VectorTemplate\renderPortal
renderPortal( $name, $content, $msg=null, $hook=null)
Definition: VectorTemplate.php:293
BaseTemplate\getIndicators
getIndicators()
Get the suggested HTML for page status indicators: icons (or short text snippets) usually displayed i...
Definition: BaseTemplate.php:732
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:177
captcha-old.action
action
Definition: captcha-old.py:189
Html\hidden
static hidden( $name, $value, array $attribs=[])
Convenience function to produce an input element with type=hidden.
Definition: Html.php:746
BaseTemplate\renderAfterPortlet
renderAfterPortlet( $name)
Definition: BaseTemplate.php:289
BaseTemplate\getMsg
getMsg( $name)
Get a Message object with its context set.
Definition: BaseTemplate.php:35
Linker\tooltipAndAccesskeyAttribs
static tooltipAndAccesskeyAttribs( $name, array $msgParams=[])
Returns the attributes for the tooltip and access key.
Definition: Linker.php:2096
BaseTemplate\makeSearchInput
makeSearchInput( $attrs=[])
Definition: BaseTemplate.php:521
VectorTemplate\renderNavigation
renderNavigation( $elements)
Render one or more navigations elements by name, automatically reveresed when UI is in RTL mode.
Definition: VectorTemplate.php:341
VectorTemplate\renderPortals
renderPortals( $portals)
Render a series of portals.
Definition: VectorTemplate.php:249
style
Bar style
Definition: parserTests.txt:184
Linker\tooltip
static tooltip( $name, $options=null)
Returns raw bits of HTML, use titleAttrib()
Definition: Linker.php:2120
BaseTemplate\getToolbox
getToolbox()
Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate.
Definition: BaseTemplate.php:58
$section
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section
Definition: hooks.txt:2929
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
Html\rawElement
static rawElement( $element, $attribs=[], $contents='')
Returns an HTML element in a string.
Definition: Html.php:209
$link
usually copyright or history_copyright This message must be in HTML not wikitext & $link
Definition: hooks.txt:2929
VectorTemplate\$personalTools
if(! $this->getSkin() ->getUser() ->isLoggedIn() &&User::groupHasPermission(' *', 'edit') $personalTools)
Definition: VectorTemplate.php:516
wfMessage
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation 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 "&lt
VectorTemplate\$variantLabel
case __pad0__ if(count( $this->data['variant_urls'])==0) $variantLabel
Definition: VectorTemplate.php:391
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:625
Hooks\run
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
Definition: Hooks.php:131
href
shown</td >< td > a href
Definition: All_system_messages.txt:2667
BaseTemplate
New base template for a skin's template extended from QuickTemplate this class features helper method...
Definition: BaseTemplate.php:26
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
VectorTemplate\html
$this html( 'userlangattributes')
Definition: VectorTemplate.php:305