Manual:Hooks/ParserGetVariableValueTs

From Linux Web Expert

ParserGetVariableValueTs
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
use this to change the value of the time for the {{LOCAL...}} magic word
<translate> Define function:</translate>
public static function onParserGetVariableValueTs( &$parser, &$time ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"ParserGetVariableValueTs": "MediaWiki\\Extension\\MyExtension\\Hooks::onParserGetVariableValueTs"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> Parser.php
<translate> Interface:</translate> ParserGetVariableValueTsHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ParserGetVariableValueTs extensions</tvar>.</translate>

Details

  • &$parser: Parser object
  • &$time: actual time (timestamp)