Go to the documentation of this file.
33 global $wgUseRCPatrol, $wgUseNPPatrol, $wgLocalInterwikis,
34 $wgCanonicalServer, $wgScript;
43 $title = $titleObj->getPrefixedText();
49 $url = $wgCanonicalServer . $wgScript;
55 if ( $wgUseRCPatrol || (
$attribs[
'rc_type'] ==
RC_NEW && $wgUseNPPatrol ) ) {
65 if ( $szdiff < -500 ) {
66 $szdiff =
"\002$szdiff\002";
67 } elseif ( $szdiff >= 0 ) {
68 $szdiff =
'+' . $szdiff;
71 $szdiff =
'(' . $szdiff .
')';
79 $targetText = $rc->
getTitle()->getPrefixedText();
85 if ( !
$attribs[
'rc_patrolled'] && ( $wgUseRCPatrol ||
$attribs[
'rc_type'] ==
RC_NEW && $wgUseNPPatrol ) ) {
91 if ( $feed[
'add_interwiki_prefix'] ===
true && $wgLocalInterwikis ) {
93 $prefix = $wgLocalInterwikis[0];
94 } elseif ( $feed[
'add_interwiki_prefix'] ) {
95 $prefix = $feed[
'add_interwiki_prefix'];
99 if ( $prefix !==
false ) {
100 $titleString =
"\00314[[\00303$prefix:\00307$title\00314]]";
102 $titleString =
"\00314[[\00307$title\00314]]";
105 # see http://www.irssi.org/documentation/formats for some colour codes. prefix is \003,
106 # no colour (\003) switches back to the term default
107 $fullString =
"$titleString\0034 $flag\00310 " .
108 "\00302$url\003 \0035*\003 \00303$user\003 \0035*\003 $szdiff \00310$comment\003\n";
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Utility class for creating new RC entries.
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
presenting them properly to the user as errors is done by the caller $title
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
static decodeCharReferences( $text)
Decode any character references, numeric or named entities, in the text and return a UTF-8 string.
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query
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