MediaWiki  1.30.0
VectorTemplate.php
Go to the documentation of this file.
1 <?php
30  /* Functions */
31 
35  public function execute() {
36  $this->data['namespace_urls'] = $this->data['content_navigation']['namespaces'];
37  $this->data['view_urls'] = $this->data['content_navigation']['views'];
38  $this->data['action_urls'] = $this->data['content_navigation']['actions'];
39  $this->data['variant_urls'] = $this->data['content_navigation']['variants'];
40 
41  // Move the watch/unwatch star outside of the collapsed "actions" menu to the main "views" menu
42  if ( $this->config->get( 'VectorUseIconWatch' ) ) {
43  $mode = $this->getSkin()->getUser()->isWatched( $this->getSkin()->getRelevantTitle() )
44  ? 'unwatch'
45  : 'watch';
46 
47  if ( isset( $this->data['action_urls'][$mode] ) ) {
48  $this->data['view_urls'][$mode] = $this->data['action_urls'][$mode];
49  unset( $this->data['action_urls'][$mode] );
50  }
51  }
52 
53  // Reverse horizontally rendered navigation elements
54  if ( $this->data['rtl'] ) {
55  $this->data['view_urls'] =
56  array_reverse( $this->data['view_urls'] );
57  $this->data['namespace_urls'] =
58  array_reverse( $this->data['namespace_urls'] );
59  $this->data['personal_urls'] =
60  array_reverse( $this->data['personal_urls'] );
61  }
62 
63  $this->data['pageLanguage'] =
64  $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode();
65 
66  // Output HTML Page
67  $this->html( 'headelement' );
68  ?>
69  <div id="mw-page-base" class="noprint"></div>
70  <div id="mw-head-base" class="noprint"></div>
71  <div id="content" class="mw-body" role="main">
72  <a id="top"></a>
73 
74  <?php
75  if ( $this->data['sitenotice'] ) {
76  ?>
77  <div id="siteNotice" class="mw-body-content"><?php $this->html( 'sitenotice' ) ?></div>
78  <?php
79  }
80  ?>
81  <?php
82  if ( is_callable( [ $this, 'getIndicators' ] ) ) {
83  echo $this->getIndicators();
84  }
85  // Loose comparison with '!=' is intentional, to catch null and false too, but not '0'
86  if ( $this->data['title'] != '' ) {
87  ?>
88  <h1 id="firstHeading" class="firstHeading" lang="<?php $this->text( 'pageLanguage' ); ?>"><?php
89  $this->html( 'title' )
90  ?></h1>
91  <?php
92  } ?>
93  <?php $this->html( 'prebodyhtml' ) ?>
94  <div id="bodyContent" class="mw-body-content">
95  <?php
96  if ( $this->data['isarticle'] ) {
97  ?>
98  <div id="siteSub" class="noprint"><?php $this->msg( 'tagline' ) ?></div>
99  <?php
100  }
101  ?>
102  <div id="contentSub"<?php $this->html( 'userlangattributes' ) ?>><?php
103  $this->html( 'subtitle' )
104  ?></div>
105  <?php
106  if ( $this->data['undelete'] ) {
107  ?>
108  <div id="contentSub2"><?php $this->html( 'undelete' ) ?></div>
109  <?php
110  }
111  ?>
112  <?php
113  if ( $this->data['newtalk'] ) {
114  ?>
115  <div class="usermessage"><?php $this->html( 'newtalk' ) ?></div>
116  <?php
117  }
118  ?>
119  <div id="jump-to-nav" class="mw-jump">
120  <?php $this->msg( 'jumpto' ) ?>
121  <a href="#mw-head"><?php
122  $this->msg( 'jumptonavigation' )
123  ?></a><?php $this->msg( 'comma-separator' ) ?>
124  <a href="#p-search"><?php $this->msg( 'jumptosearch' ) ?></a>
125  </div>
126  <?php
127  $this->html( 'bodycontent' );
128 
129  if ( $this->data['printfooter'] ) {
130  ?>
131  <div class="printfooter">
132  <?php $this->html( 'printfooter' ); ?>
133  </div>
134  <?php
135  }
136 
137  if ( $this->data['catlinks'] ) {
138  $this->html( 'catlinks' );
139  }
140 
141  if ( $this->data['dataAfterContent'] ) {
142  $this->html( 'dataAfterContent' );
143  }
144  ?>
145  <div class="visualClear"></div>
146  <?php $this->html( 'debughtml' ); ?>
147  </div>
148  </div>
149  <div id="mw-navigation">
150  <h2><?php $this->msg( 'navigation-heading' ) ?></h2>
151 
152  <div id="mw-head">
153  <?php $this->renderNavigation( 'PERSONAL' ); ?>
154  <div id="left-navigation">
155  <?php $this->renderNavigation( [ 'NAMESPACES', 'VARIANTS' ] ); ?>
156  </div>
157  <div id="right-navigation">
158  <?php $this->renderNavigation( [ 'VIEWS', 'ACTIONS', 'SEARCH' ] ); ?>
159  </div>
160  </div>
161  <div id="mw-panel">
162  <div id="p-logo" role="banner"><a class="mw-wiki-logo" href="<?php
163  echo htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] )
164  ?>" <?php
166  ?>></a></div>
167  <?php $this->renderPortals( $this->data['sidebar'] ); ?>
168  </div>
169  </div>
170  <div id="footer" role="contentinfo"<?php $this->html( 'userlangattributes' ) ?>>
171  <?php
172  foreach ( $this->getFooterLinks() as $category => $links ) {
173  ?>
174  <ul id="footer-<?php echo $category ?>">
175  <?php
176  foreach ( $links as $link ) {
177  ?>
178  <li id="footer-<?php echo $category ?>-<?php echo $link ?>"><?php $this->html( $link ) ?></li>
179  <?php
180  }
181  ?>
182  </ul>
183  <?php
184  }
185  ?>
186  <?php $footericons = $this->getFooterIcons( 'icononly' );
187  if ( count( $footericons ) > 0 ) {
188  ?>
189  <ul id="footer-icons" class="noprint">
190  <?php
191  foreach ( $footericons as $blockName => $footerIcons ) {
192  ?>
193  <li id="footer-<?php echo htmlspecialchars( $blockName ); ?>ico">
194  <?php
195  foreach ( $footerIcons as $icon ) {
196  echo $this->getSkin()->makeFooterIcon( $icon );
197  }
198  ?>
199  </li>
200  <?php
201  }
202  ?>
203  </ul>
204  <?php
205  }
206  ?>
207  <div style="clear:both"></div>
208  </div>
209  <?php $this->printTrail(); ?>
210 
211  </body>
212 </html>
213 <?php
214  }
215 
221  protected function renderPortals( $portals ) {
222  // Force the rendering of the following portals
223  if ( !isset( $portals['SEARCH'] ) ) {
224  $portals['SEARCH'] = true;
225  }
226  if ( !isset( $portals['TOOLBOX'] ) ) {
227  $portals['TOOLBOX'] = true;
228  }
229  if ( !isset( $portals['LANGUAGES'] ) ) {
230  $portals['LANGUAGES'] = true;
231  }
232  // Render portals
233  foreach ( $portals as $name => $content ) {
234  if ( $content === false ) {
235  continue;
236  }
237 
238  // Numeric strings gets an integer when set as key, cast back - T73639
239  $name = (string)$name;
240 
241  switch ( $name ) {
242  case 'SEARCH':
243  break;
244  case 'TOOLBOX':
245  $this->renderPortal( 'tb', $this->getToolbox(), 'toolbox', 'SkinTemplateToolboxEnd' );
246  break;
247  case 'LANGUAGES':
248  if ( $this->data['language_urls'] !== false ) {
249  $this->renderPortal( 'lang', $this->data['language_urls'], 'otherlanguages' );
250  }
251  break;
252  default:
253  $this->renderPortal( $name, $content );
254  break;
255  }
256  }
257  }
258 
265  protected function renderPortal( $name, $content, $msg = null, $hook = null ) {
266  if ( $msg === null ) {
267  $msg = $name;
268  }
269  $msgObj = wfMessage( $msg );
270  $labelId = Sanitizer::escapeId( "p-$name-label" );
271  ?>
272  <div class="portal" role="navigation" id='<?php
273  echo Sanitizer::escapeId( "p-$name" )
274  ?>'<?php
275  echo Linker::tooltip( 'p-' . $name )
276  ?> aria-labelledby='<?php echo $labelId ?>'>
277  <h3<?php $this->html( 'userlangattributes' ) ?> id='<?php echo $labelId ?>'><?php
278  echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $msg );
279  ?></h3>
280 
281  <div class="body">
282  <?php
283  if ( is_array( $content ) ) {
284  ?>
285  <ul>
286  <?php
287  foreach ( $content as $key => $val ) {
288  echo $this->makeListItem( $key, $val );
289  }
290  if ( $hook !== null ) {
291  // Avoid PHP 7.1 warning
292  $skin = $this;
293  Hooks::run( $hook, [ &$skin, true ] );
294  }
295  ?>
296  </ul>
297  <?php
298  } else {
299  // Allow raw HTML block to be defined by extensions
300  echo $content;
301  }
302 
303  $this->renderAfterPortlet( $name );
304  ?>
305  </div>
306  </div>
307  <?php
308  }
309 
316  protected function renderNavigation( $elements ) {
317  // If only one element was given, wrap it in an array, allowing more
318  // flexible arguments
319  if ( !is_array( $elements ) ) {
320  $elements = [ $elements ];
321  // If there's a series of elements, reverse them when in RTL mode
322  } elseif ( $this->data['rtl'] ) {
323  $elements = array_reverse( $elements );
324  }
325  // Render elements
326  foreach ( $elements as $name => $element ) {
327  switch ( $element ) {
328  case 'NAMESPACES':
329  ?>
330  <div id="p-namespaces" role="navigation" class="vectorTabs<?php
331  if ( count( $this->data['namespace_urls'] ) == 0 ) {
332  echo ' emptyPortlet';
333  }
334  ?>" aria-labelledby="p-namespaces-label">
335  <h3 id="p-namespaces-label"><?php $this->msg( 'namespaces' ) ?></h3>
336  <ul<?php $this->html( 'userlangattributes' ) ?>>
337  <?php
338  foreach ( $this->data['namespace_urls'] as $key => $item ) {
339  echo "\t\t\t\t\t\t\t" . $this->makeListItem( $key, $item, [
340  'vector-wrap' => true,
341  ] ) . "\n";
342  }
343  ?>
344  </ul>
345  </div>
346  <?php
347  break;
348  case 'VARIANTS':
349  ?>
350  <div id="p-variants" role="navigation" class="vectorMenu<?php
351  if ( count( $this->data['variant_urls'] ) == 0 ) {
352  echo ' emptyPortlet';
353  }
354  ?>" aria-labelledby="p-variants-label">
355  <?php
356  // Replace the label with the name of currently chosen variant, if any
357  $variantLabel = $this->getMsg( 'variants' )->text();
358  foreach ( $this->data['variant_urls'] as $item ) {
359  if ( isset( $item['class'] ) && stripos( $item['class'], 'selected' ) !== false ) {
360  $variantLabel = $item['text'];
361  break;
362  }
363  }
364  ?>
365  <h3 id="p-variants-label">
366  <span><?php echo htmlspecialchars( $variantLabel ) ?></span>
367  </h3>
368 
369  <div class="menu">
370  <ul>
371  <?php
372  foreach ( $this->data['variant_urls'] as $key => $item ) {
373  echo "\t\t\t\t\t\t\t\t" . $this->makeListItem( $key, $item ) . "\n";
374  }
375  ?>
376  </ul>
377  </div>
378  </div>
379  <?php
380  break;
381  case 'VIEWS':
382  ?>
383  <div id="p-views" role="navigation" class="vectorTabs<?php
384  if ( count( $this->data['view_urls'] ) == 0 ) {
385  echo ' emptyPortlet';
386  }
387  ?>" aria-labelledby="p-views-label">
388  <h3 id="p-views-label"><?php $this->msg( 'views' ) ?></h3>
389  <ul<?php $this->html( 'userlangattributes' ) ?>>
390  <?php
391  foreach ( $this->data['view_urls'] as $key => $item ) {
392  echo "\t\t\t\t\t\t\t" . $this->makeListItem( $key, $item, [
393  'vector-wrap' => true,
394  'vector-collapsible' => true,
395  ] ) . "\n";
396  }
397  ?>
398  </ul>
399  </div>
400  <?php
401  break;
402  case 'ACTIONS':
403  ?>
404  <div id="p-cactions" role="navigation" class="vectorMenu<?php
405  if ( count( $this->data['action_urls'] ) == 0 ) {
406  echo ' emptyPortlet';
407  }
408  ?>" aria-labelledby="p-cactions-label">
409  <h3 id="p-cactions-label"><span><?php
410  $this->msg( 'vector-more-actions' )
411  ?></span></h3>
412 
413  <div class="menu">
414  <ul<?php $this->html( 'userlangattributes' ) ?>>
415  <?php
416  foreach ( $this->data['action_urls'] as $key => $item ) {
417  echo "\t\t\t\t\t\t\t\t" . $this->makeListItem( $key, $item ) . "\n";
418  }
419  ?>
420  </ul>
421  </div>
422  </div>
423  <?php
424  break;
425  case 'PERSONAL':
426  ?>
427  <div id="p-personal" role="navigation" class="<?php
428  if ( count( $this->data['personal_urls'] ) == 0 ) {
429  echo ' emptyPortlet';
430  }
431  ?>" aria-labelledby="p-personal-label">
432  <h3 id="p-personal-label"><?php $this->msg( 'personaltools' ) ?></h3>
433  <ul<?php $this->html( 'userlangattributes' ) ?>>
434  <?php
436 
437  if ( !$this->getSkin()->getUser()->isLoggedIn() &&
438  User::groupHasPermission( '*', 'edit' )
439  ) {
440  $notLoggedIn =
441  Html::rawElement( 'li',
442  [ 'id' => 'pt-anonuserpage' ],
443  $this->getMsg( 'notloggedin' )->escaped()
444  );
445  }
446 
448 
450  if ( array_key_exists( 'uls', $personalTools ) ) {
451  $langSelector = $this->makeListItem( 'uls', $personalTools[ 'uls' ] );
452  unset( $personalTools[ 'uls' ] );
453  }
454 
455  if ( !$this->data[ 'rtl' ] ) {
456  echo $langSelector;
457  echo $notLoggedIn;
458  }
459 
460  foreach ( $personalTools as $key => $item ) {
461  echo $this->makeListItem( $key, $item );
462  }
463 
464  if ( $this->data[ 'rtl' ] ) {
465  echo $notLoggedIn;
466  echo $langSelector;
467  }
468  ?>
469  </ul>
470  </div>
471  <?php
472  break;
473  case 'SEARCH':
474  ?>
475  <div id="p-search" role="search">
476  <h3<?php $this->html( 'userlangattributes' ) ?>>
477  <label for="searchInput"><?php $this->msg( 'search' ) ?></label>
478  </h3>
479 
480  <form action="<?php $this->text( 'wgScript' ) ?>" id="searchform">
481  <div<?php echo $this->config->get( 'VectorUseSimpleSearch' ) ? ' id="simpleSearch"' : '' ?>>
482  <?php
483  echo $this->makeSearchInput( [ 'id' => 'searchInput' ] );
484  echo Html::hidden( 'title', $this->get( 'searchtitle' ) );
485  /* We construct two buttons (for 'go' and 'fulltext' search modes),
486  * but only one will be visible and actionable at a time (they are
487  * overlaid on top of each other in CSS).
488  * * Browsers will use the 'fulltext' one by default (as it's the
489  * first in tree-order), which is desirable when they are unable
490  * to show search suggestions (either due to being broken or
491  * having JavaScript turned off).
492  * * The mediawiki.searchSuggest module, after doing tests for the
493  * broken browsers, removes the 'fulltext' button and handles
494  * 'fulltext' search itself; this will reveal the 'go' button and
495  * cause it to be used.
496  */
497  echo $this->makeSearchButton(
498  'fulltext',
499  [ 'id' => 'mw-searchButton', 'class' => 'searchButton mw-fallbackSearchButton' ]
500  );
501  echo $this->makeSearchButton(
502  'go',
503  [ 'id' => 'searchButton', 'class' => 'searchButton' ]
504  );
505  ?>
506  </div>
507  </form>
508  </div>
509  <?php
510 
511  break;
512  }
513  }
514  }
515 
519  public function makeLink( $key, $item, $options = [] ) {
520  $html = parent::makeLink( $key, $item, $options );
521  // Add an extra wrapper because our CSS is weird
522  if ( isset( $options['vector-wrap'] ) && $options['vector-wrap'] ) {
523  $html = Html::rawElement( 'span', [], $html );
524  }
525  return $html;
526  }
527 
531  public function makeListItem( $key, $item, $options = [] ) {
532  // For fancy styling of watch/unwatch star
533  if (
534  $this->config->get( 'VectorUseIconWatch' )
535  && ( $key === 'watch' || $key === 'unwatch' )
536  ) {
537  $item['class'] = rtrim( 'icon ' . $item['class'], ' ' );
538  $item['primary'] = true;
539  }
540 
541  // Add CSS class 'collapsible' to links which are not marked as "primary"
542  if (
543  isset( $options['vector-collapsible'] ) && $options['vector-collapsible']
544  && !( isset( $item['primary'] ) && $item['primary'] )
545  ) {
546  $item['class'] = rtrim( 'collapsible ' . $item['class'], ' ' );
547  }
548 
549  // We don't use this, prevent it from popping up in HTML output
550  unset( $item['redundant'] );
551 
552  return parent::makeListItem( $key, $item, $options );
553  }
554 }
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:584
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:435
BaseTemplate\makeSearchButton
makeSearchButton( $mode, $attrs=[])
Definition: BaseTemplate.php:531
captcha-old.count
count
Definition: captcha-old.py:249
VectorTemplate\$langSelector
$langSelector
Definition: VectorTemplate.php:449
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:302
User\groupHasPermission
static groupHasPermission( $group, $role)
Check, if the given group has the given permission.
Definition: User.php:4791
QuickTemplate\getSkin
getSkin()
Get the Skin object related to this object.
Definition: QuickTemplate.php:183
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\makeListItem
makeListItem( $key, $item, $options=[])
@inheritDoc
Definition: VectorTemplate.php:531
VectorTemplate\$footericons
$this html('userlangattributes') foreach( $this->getFooterLinks() as $category=> $links) foreach( $links as $link) $this html($link) $footericons
Definition: VectorTemplate.php:186
VectorTemplate\makeLink
makeLink( $key, $item, $options=[])
@inheritDoc
Definition: VectorTemplate.php:519
$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:1965
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
VectorTemplate\execute
execute()
Outputs the entire contents of the (X)HTML page.
Definition: VectorTemplate.php:35
BaseTemplate\printTrail
printTrail()
Output getTrail.
Definition: BaseTemplate.php:750
form
null means default in associative array form
Definition: hooks.txt:1965
VectorTemplate\renderPortal
renderPortal( $name, $content, $msg=null, $hook=null)
Definition: VectorTemplate.php:265
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
captcha-old.action
action
Definition: captcha-old.py:212
Html\hidden
static hidden( $name, $value, array $attribs=[])
Convenience function to produce an input element with type=hidden.
Definition: Html.php:725
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:2111
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:316
VectorTemplate\renderPortals
renderPortals( $portals)
Render a series of portals.
Definition: VectorTemplate.php:221
style
Bar style
Definition: parserTests.txt:192
Linker\tooltip
static tooltip( $name, $options=null)
Returns raw bits of HTML, use titleAttrib()
Definition: Linker.php:2132
BaseTemplate\getToolbox
getToolbox()
Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate.
Definition: BaseTemplate.php:58
$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:1965
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:1965
$link
usually copyright or history_copyright This message must be in HTML not wikitext & $link
Definition: hooks.txt:2981
VectorTemplate\$personalTools
if(! $this->getSkin() ->getUser() ->isLoggedIn() &&User::groupHasPermission(' *', 'edit') $personalTools)
Definition: VectorTemplate.php:447
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:357
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:203
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:277