/**
* @param Parser $parser
* @param string $s
- * @return
+ * @return string
*/
static function lc( $parser, $s = '' ) {
global $wgContLang;
/**
* @param Parser $parser
* @param string $s
- * @return
+ * @return string
*/
static function uc( $parser, $s = '' ) {
global $wgContLang;
* @param Parser $parser
* @param string $case
* @param string $word
- * @return
+ * @return string
*/
static function grammar( $parser, $case = '', $word = '' ) {
$word = $parser->killMarkers( $word );
/**
* @param Parser $parser
* @param string $username
- * @return
+ * @return string
*/
static function gender( $parser, $username ) {
wfProfileIn( __METHOD__ );
/**
* @param Parser $parser
* @param string $text
- * @return
+ * @return string
*/
static function plural( $parser, $text = '' ) {
$forms = array_slice( func_get_args(), 2 );
* corresponding magic word
* Note: function name changed to "mwnamespace" rather than "namespace"
* to not break PHP 5.3
+ * @param Parser $parser
+ * @param string $title
* @return mixed|string
*/
static function mwnamespace( $parser, $title = null ) {
/**
* Functions to get and normalize pagenames, corresponding to the magic words
* of the same names
+ * @param Parser $parser
+ * @param string $title
* @return string
*/
static function pagename( $parser, $title = null ) {
* Return the number of pages, files or subcats in the given category,
* or 0 if it's nonexistent. This is an expensive parser function and
* can't be called too many times per page.
+ * @param Parser $parser
+ * @param string $name
+ * @param string $arg1
+ * @param string $arg2
* @return string
*/
static function pagesincategory( $parser, $name = '', $arg1 = null, $arg2 = null ) {
* Get the pageid of a specified page
* @param Parser $parser
* @param string $title Title to get the pageid from
+ * @return int|null|string
* @since 1.23
*/
public static function pageid( $parser, $title = null ) {
* Get the id from the last revision of a specified page.
* @param Parser $parser
* @param string $title Title to get the id from
+ * @return int|null|string
* @since 1.23
*/
public static function revisionid( $parser, $title = null ) {
* Get the day from the last revision of a specified page.
* @param Parser $parser
* @param string $title Title to get the day from
+ * @return string
* @since 1.23
*/
public static function revisionday( $parser, $title = null ) {
* Get the day with leading zeros from the last revision of a specified page.
* @param Parser $parser
* @param string $title Title to get the day from
+ * @return string
* @since 1.23
*/
public static function revisionday2( $parser, $title = null ) {
* Get the month with leading zeros from the last revision of a specified page.
* @param Parser $parser
* @param string $title Title to get the month from
+ * @return string
* @since 1.23
*/
public static function revisionmonth( $parser, $title = null ) {
* Get the month from the last revision of a specified page.
* @param Parser $parser
* @param string $title Title to get the month from
+ * @return string
* @since 1.23
*/
public static function revisionmonth1( $parser, $title = null ) {
* Get the year from the last revision of a specified page.
* @param Parser $parser
* @param string $title Title to get the year from
+ * @return string
* @since 1.23
*/
public static function revisionyear( $parser, $title = null ) {
* Get the timestamp from the last revision of a specified page.
* @param Parser $parser
* @param string $title Title to get the timestamp from
+ * @return string
* @since 1.23
*/
public static function revisiontimestamp( $parser, $title = null ) {
* Get the user from the last revision of a specified page.
* @param Parser $parser
* @param string $title Title to get the user from
+ * @return string
* @since 1.23
*/
public static function revisionuser( $parser, $title = null ) {