* (bug 6849) Block @ from usernames; interferes with multi-database tools and
was meant to be banned years ago... For now existing accounts will not be
prevented fromm login.
+* (bug 6092) Introduce magic words {{REVISIONDAY}}, {{REVISIONDAY2}, {{REVISIONMONTH}},
+ {{REVISIONYEAR}} and {{REVISIONTIMESTAMP}}
== Languages updated ==
return $subjPage->getPrefixedUrl();
case 'revisionid':
return $this->mRevisionId;
+ case 'revisionday':
+ return intval( substr( $this->mTitle->getTouched(), 6, 2 ) );
+ case 'revisionday2':
+ return substr( $this->mTitle->getTouched(), 6, 2 );
+ case 'revisionmonth':
+ return intval( substr( $this->mTitle->getTouched(), 4, 2 ) );
+ case 'revisionyear':
+ return substr( $this->mTitle->getTouched(), 0, 4 );
+ case 'revisiontimestamp':
+ return $this->mTitle->getTouched();
case 'namespace':
return str_replace('_',' ',$wgContLang->getNsText( $this->mTitle->getNamespace() ) );
case 'namespacee':
'localweek' => array( 1, 'LOCALWEEK' ),
'localdow' => array( 1, 'LOCALDOW' ),
'revisionid' => array( 1, 'REVISIONID' ),
+ 'revisionday' => array( 1, 'REVISIONDAY' ),
+ 'revisionday2' => array( 1, 'REVISIONDAY2' ),
+ 'revisionmonth' => array( 1, 'REVISIONMONTH' ),
+ 'revisionyear' => array( 1, 'REVISIONYEAR' ),
+ 'revisiontimestamp' => array( 1, 'REVISIONTIMESTAMP' ),
'plural' => array( 0, 'PLURAL:' ),
'fullurl' => array( 0, 'FULLURL:' ),
'fullurle' => array( 0, 'FULLURLE:' ),