MediaWiki  1.29.2
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  // Avoid PHP 7.1 warning
320  $skin = $this;
321  Hooks::run( $hook, [ &$skin, true ] );
322  }
323  ?>
324  </ul>
325  <?php
326  } else {
327  echo $content; /* Allow raw HTML block to be defined by extensions */
328  }
329 
330  $this->renderAfterPortlet( $name );
331  ?>
332  </div>
333  </div>
334  <?php
335  }
336 
343  protected function renderNavigation( $elements ) {
344  // If only one element was given, wrap it in an array, allowing more
345  // flexible arguments
346  if ( !is_array( $elements ) ) {
347  $elements = [ $elements ];
348  // If there's a series of elements, reverse them when in RTL mode
349  } elseif ( $this->data['rtl'] ) {
350  $elements = array_reverse( $elements );
351  }
352  // Render elements
353  foreach ( $elements as $name => $element ) {
354  switch ( $element ) {
355  case 'NAMESPACES':
356  ?>
357  <div id="p-namespaces" role="navigation" class="vectorTabs<?php
358  if ( count( $this->data['namespace_urls'] ) == 0 ) {
359  echo ' emptyPortlet';
360  }
361  ?>" aria-labelledby="p-namespaces-label">
362  <h3 id="p-namespaces-label"><?php $this->msg( 'namespaces' ) ?></h3>
363  <ul<?php $this->html( 'userlangattributes' ) ?>>
364  <?php
365  foreach ( $this->data['namespace_urls'] as $link ) {
366  ?>
367  <li <?php echo $link['attributes'] ?>><span><a href="<?php
368  echo htmlspecialchars( $link['href'] )
369  ?>" <?php
370  echo $link['key'];
371  if ( isset ( $link['rel'] ) ) {
372  echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"';
373  }
374  ?>><?php
375  echo htmlspecialchars( $link['text'] )
376  ?></a></span></li>
377  <?php
378  }
379  ?>
380  </ul>
381  </div>
382  <?php
383  break;
384  case 'VARIANTS':
385  ?>
386  <div id="p-variants" role="navigation" class="vectorMenu<?php
387  if ( count( $this->data['variant_urls'] ) == 0 ) {
388  echo ' emptyPortlet';
389  }
390  ?>" aria-labelledby="p-variants-label">
391  <?php
392  // Replace the label with the name of currently chosen variant, if any
393  $variantLabel = $this->getMsg( 'variants' )->text();
394  foreach ( $this->data['variant_urls'] as $link ) {
395  if ( stripos( $link['attributes'], 'selected' ) !== false ) {
396  $variantLabel = $link['text'];
397  break;
398  }
399  }
400  ?>
401  <h3 id="p-variants-label">
402  <span><?php echo htmlspecialchars( $variantLabel ) ?></span><a href="#"></a>
403  </h3>
404 
405  <div class="menu">
406  <ul>
407  <?php
408  foreach ( $this->data['variant_urls'] as $link ) {
409  ?>
410  <li<?php echo $link['attributes'] ?>><a href="<?php
411  echo htmlspecialchars( $link['href'] )
412  ?>" lang="<?php
413  echo htmlspecialchars( $link['lang'] )
414  ?>" hreflang="<?php
415  echo htmlspecialchars( $link['hreflang'] )
416  ?>" <?php
417  echo $link['key']
418  ?>><?php
419  echo htmlspecialchars( $link['text'] )
420  ?></a></li>
421  <?php
422  }
423  ?>
424  </ul>
425  </div>
426  </div>
427  <?php
428  break;
429  case 'VIEWS':
430  ?>
431  <div id="p-views" role="navigation" class="vectorTabs<?php
432  if ( count( $this->data['view_urls'] ) == 0 ) {
433  echo ' emptyPortlet';
434  }
435  ?>" aria-labelledby="p-views-label">
436  <h3 id="p-views-label"><?php $this->msg( 'views' ) ?></h3>
437  <ul<?php $this->html( 'userlangattributes' ) ?>>
438  <?php
439  foreach ( $this->data['view_urls'] as $link ) {
440  ?>
441  <li<?php echo $link['attributes'] ?>><span><a href="<?php
442  echo htmlspecialchars( $link['href'] )
443  ?>" <?php
444  echo $link['key'];
445  if ( isset ( $link['rel'] ) ) {
446  echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"';
447  }
448  ?>><?php
449  // $link['text'] can be undefined - bug 27764
450  if ( array_key_exists( 'text', $link ) ) {
451  echo array_key_exists( 'img', $link )
452  ? '<img src="' . $link['img'] . '" alt="' . $link['text'] . '" />'
453  : htmlspecialchars( $link['text'] );
454  }
455  ?></a></span></li>
456  <?php
457  }
458  ?>
459  </ul>
460  </div>
461  <?php
462  break;
463  case 'ACTIONS':
464  ?>
465  <div id="p-cactions" role="navigation" class="vectorMenu<?php
466  if ( count( $this->data['action_urls'] ) == 0 ) {
467  echo ' emptyPortlet';
468  }
469  ?>" aria-labelledby="p-cactions-label">
470  <h3 id="p-cactions-label"><span><?php
471  $this->msg( 'vector-more-actions' )
472  ?></span><a href="#"></a></h3>
473 
474  <div class="menu">
475  <ul<?php $this->html( 'userlangattributes' ) ?>>
476  <?php
477  foreach ( $this->data['action_urls'] as $link ) {
478  ?>
479  <li<?php echo $link['attributes'] ?>>
480  <a href="<?php
481  echo htmlspecialchars( $link['href'] )
482  ?>" <?php
483  echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] )
484  ?></a>
485  </li>
486  <?php
487  }
488  ?>
489  </ul>
490  </div>
491  </div>
492  <?php
493  break;
494  case 'PERSONAL':
495  ?>
496  <div id="p-personal" role="navigation" class="<?php
497  if ( count( $this->data['personal_urls'] ) == 0 ) {
498  echo ' emptyPortlet';
499  }
500  ?>" aria-labelledby="p-personal-label">
501  <h3 id="p-personal-label"><?php $this->msg( 'personaltools' ) ?></h3>
502  <ul<?php $this->html( 'userlangattributes' ) ?>>
503  <?php
504 
506 
507  if ( !$this->getSkin()->getUser()->isLoggedIn() &&
508  User::groupHasPermission( '*', 'edit' ) ){
509 
510  $notLoggedIn =
511  Html::rawElement( 'li',
512  [ 'id' => 'pt-anonuserpage' ],
513  $this->getMsg( 'notloggedin' )->escaped()
514  );
515 
516  }
517 
519 
521  if ( array_key_exists( 'uls', $personalTools ) ) {
522  $langSelector = $this->makeListItem( 'uls', $personalTools[ 'uls' ] );
523  unset( $personalTools[ 'uls' ] );
524  }
525 
526  if ( !$this->data[ 'rtl' ] ) {
527  echo $langSelector;
528  echo $notLoggedIn;
529  }
530 
531  foreach ( $personalTools as $key => $item ) {
532  echo $this->makeListItem( $key, $item );
533  }
534 
535  if ( $this->data[ 'rtl' ] ) {
536  echo $notLoggedIn;
537  echo $langSelector;
538  }
539  ?>
540  </ul>
541  </div>
542  <?php
543  break;
544  case 'SEARCH':
545  ?>
546  <div id="p-search" role="search">
547  <h3<?php $this->html( 'userlangattributes' ) ?>>
548  <label for="searchInput"><?php $this->msg( 'search' ) ?></label>
549  </h3>
550 
551  <form action="<?php $this->text( 'wgScript' ) ?>" id="searchform">
552  <div<?php echo $this->config->get( 'VectorUseSimpleSearch' ) ? ' id="simpleSearch"' : '' ?>>
553  <?php
554  echo $this->makeSearchInput( [ 'id' => 'searchInput' ] );
555  echo Html::hidden( 'title', $this->get( 'searchtitle' ) );
556  // We construct two buttons (for 'go' and 'fulltext' search modes),
557  // but only one will be visible and actionable at a time (they are
558  // overlaid on top of each other in CSS).
559  // * Browsers will use the 'fulltext' one by default (as it's the
560  // first in tree-order), which is desirable when they are unable
561  // to show search suggestions (either due to being broken or
562  // having JavaScript turned off).
563  // * The mediawiki.searchSuggest module, after doing tests for the
564  // broken browsers, removes the 'fulltext' button and handles
565  // 'fulltext' search itself; this will reveal the 'go' button and
566  // cause it to be used.
567  echo $this->makeSearchButton(
568  'fulltext',
569  [ 'id' => 'mw-searchButton', 'class' => 'searchButton mw-fallbackSearchButton' ]
570  );
571  echo $this->makeSearchButton(
572  'go',
573  [ 'id' => 'searchButton', 'class' => 'searchButton' ]
574  );
575  ?>
576  </div>
577  </form>
578  </div>
579  <?php
580 
581  break;
582  }
583  }
584  }
585 }
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:505
BaseTemplate\makeSearchButton
makeSearchButton( $mode, $attrs=[])
Definition: BaseTemplate.php:532
captcha-old.count
count
Definition: captcha-old.py:225
VectorTemplate\$langSelector
$langSelector
Definition: VectorTemplate.php:520
$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:2098
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:343
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:2122
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
$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:1956
$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:518
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:393
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