<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://ejwiki.org/index.php?action=history&amp;feed=atom&amp;title=%D0%9F%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%B8%3AExtension%3AMyVariables</id>
	<title>Публикации:Extension:MyVariables - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://ejwiki.org/index.php?action=history&amp;feed=atom&amp;title=%D0%9F%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%B8%3AExtension%3AMyVariables"/>
	<link rel="alternate" type="text/html" href="https://ejwiki.org/index.php?title=%D0%9F%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%B8:Extension:MyVariables&amp;action=history"/>
	<updated>2026-06-28T23:27:04Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://ejwiki.org/index.php?title=%D0%9F%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%B8:Extension:MyVariables&amp;diff=396413&amp;oldid=prev</id>
		<title>IrisAdmin: Добавление категории Категория:Публикации ко всем страницам пространства «Публикации»</title>
		<link rel="alternate" type="text/html" href="https://ejwiki.org/index.php?title=%D0%9F%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%B8:Extension:MyVariables&amp;diff=396413&amp;oldid=prev"/>
		<updated>2026-01-15T21:49:31Z</updated>

		<summary type="html">&lt;p&gt;Добавление категории &lt;a href=&quot;/index.php/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%B8&quot; title=&quot;Категория:Публикации&quot;&gt;Категория:Публикации&lt;/a&gt; ко всем страницам пространства «Публикации»&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 21:49, 15 января 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l109&quot;&gt;Строка 109:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 109:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Категория:Публикации]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>IrisAdmin</name></author>
	</entry>
	<entry>
		<id>https://ejwiki.org/index.php?title=%D0%9F%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%B8:Extension:MyVariables&amp;diff=393406&amp;oldid=prev</id>
		<title>IrisAdmin в 21:28, 26 ноября 2012</title>
		<link rel="alternate" type="text/html" href="https://ejwiki.org/index.php?title=%D0%9F%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%B8:Extension:MyVariables&amp;diff=393406&amp;oldid=prev"/>
		<updated>2012-11-26T21:28:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
/**&lt;br /&gt;
* @file&lt;br /&gt;
* @ingroup Extensions&lt;br /&gt;
* @author Iris Mersel, thanks to Aran Dunkley for help&lt;br /&gt;
* @copyright © 2012&lt;br /&gt;
* $Made for www.ejwiki-pubs.org&lt;br /&gt;
*/&lt;br /&gt;
 &lt;br /&gt;
if( !defined( &amp;#039;MEDIAWIKI&amp;#039; ) ) die( &amp;quot;Not an entry point.&amp;quot; );&lt;br /&gt;
 &lt;br /&gt;
define( &amp;#039;MYVARIABLES_VERSION&amp;#039;, &amp;quot;1.1, 2012-11-08&amp;quot; );&lt;br /&gt;
 &lt;br /&gt;
/** REGISTRATION */&lt;br /&gt;
$wgExtensionCredits[&amp;#039;parserhook&amp;#039;][] = array(&lt;br /&gt;
        &amp;#039;path&amp;#039; =&amp;gt; __FILE__,&lt;br /&gt;
        &amp;#039;name&amp;#039; =&amp;gt; &amp;#039;MyVariables&amp;#039;,&lt;br /&gt;
        &amp;#039;url&amp;#039; =&amp;gt; &amp;#039;http://www.ejwiki-pubs.org/wiki/Extension:MyVariables&amp;#039;,&lt;br /&gt;
        &amp;#039;author&amp;#039; =&amp;gt; array( &amp;#039;Iris Mersel&amp;#039;),&lt;br /&gt;
        &amp;#039;description&amp;#039; =&amp;gt; &amp;#039;Uses additional variables, like CustomTitle, CustomName and allows assign them via tags in page source&amp;#039;,&lt;br /&gt;
        &amp;#039;version&amp;#039; =&amp;gt; MYVARIABLES_VERSION&lt;br /&gt;
);&lt;br /&gt;
 &lt;br /&gt;
/** EXTENSION */&lt;br /&gt;
$wgCustomVariables = array(&amp;#039;CUSTOMTITLE&amp;#039;,&amp;#039;CUSTNAME&amp;#039;);&lt;br /&gt;
$wgMyVar=array(&amp;#039;custtitle&amp;#039;,&amp;#039;custname&amp;#039;); &lt;br /&gt;
$wgHooks[&amp;#039;MagicWordMagicWords&amp;#039;][]          = &amp;#039;wfAddCustomVariable&amp;#039;;&lt;br /&gt;
$wgHooks[&amp;#039;MagicWordwgVariableIDs&amp;#039;][]       = &amp;#039;wfAddCustomVariableID&amp;#039;;&lt;br /&gt;
$wgHooks[&amp;#039;LanguageGetMagic&amp;#039;][]             = &amp;#039;wfAddCustomVariableLang&amp;#039;;&lt;br /&gt;
$wgHooks[&amp;#039;ParserGetVariableValueSwitch&amp;#039;][] = &amp;#039;wfGetCustomVariable&amp;#039;;&lt;br /&gt;
$wgHooks[&amp;#039;ParserFirstCallInit&amp;#039;][] = &amp;#039;wfParserInit&amp;#039;;&lt;br /&gt;
function wfAddCustomVariable(&amp;amp;$magicWords) &lt;br /&gt;
{&lt;br /&gt;
        $magicWords[] = &amp;quot;MAG_CUSTOMTITLE&amp;quot;;&lt;br /&gt;
		  $magicWords[] = &amp;quot;MAG_CUSTOMNAME&amp;quot;;&lt;br /&gt;
        return true;&lt;br /&gt;
        }&lt;br /&gt;
 function wfAddCustomVariableID(&amp;amp;$variables) &lt;br /&gt;
 {&lt;br /&gt;
        $variables[] = &amp;quot;MAG_CUSTOMTITLE&amp;quot;;&lt;br /&gt;
		  $variables[] = &amp;quot;MAG_CUSTOMNAME&amp;quot;;&lt;br /&gt;
        return true;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
function wfAddCustomVariableLang(&amp;amp;$langMagic, $langCode = 0) &lt;br /&gt;
{&lt;br /&gt;
     $magic = &amp;#039;MAG_CUSTOMTITLE&amp;#039;;&lt;br /&gt;
		$langMagic[defined($magic) ? constant($magic) : $magic] = array(0,&amp;#039;CUSTOMTITLE&amp;#039;);&lt;br /&gt;
     $magic = &amp;#039;MAG_CUSTOMNAME&amp;#039;;&lt;br /&gt;
		$langMagic[defined($magic) ? constant($magic) : $magic] = array(0,&amp;#039;CUSTOMNAME&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
        return true;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
function wfGetCustomVariable(&amp;amp;$parser,&amp;amp;$cache,&amp;amp;$index,&amp;amp;$ret) &lt;br /&gt;
{&lt;br /&gt;
        global $wgMyVar;&lt;br /&gt;
        switch ($index) &lt;br /&gt;
		   {&lt;br /&gt;
         case &amp;#039;MAG_CUSTOMTITLE&amp;#039;:&lt;br /&gt;
            $parser-&amp;gt;disableCache(); # Mark this content as uncacheable&lt;br /&gt;
            $ret=$wgMyVar[&amp;#039;custtitle&amp;#039;];&lt;br /&gt;
            break;			&lt;br /&gt;
			&lt;br /&gt;
			case &amp;#039;MAG_CUSTOMNAME&amp;#039;:&lt;br /&gt;
            $parser-&amp;gt;disableCache(); # Mark this content as uncacheable&lt;br /&gt;
            $ret=$wgMyVar[&amp;#039;custname&amp;#039;];&lt;br /&gt;
            break;			&lt;br /&gt;
         }&lt;br /&gt;
        return true;&lt;br /&gt;
   }&lt;br /&gt;
		&lt;br /&gt;
 function wfParserInit( Parser $parser ) &lt;br /&gt;
 {&lt;br /&gt;
        // When the parser sees the &amp;lt;sample&amp;gt; tag, it executes &lt;br /&gt;
        // the wfSampleRender function (see below)&lt;br /&gt;
        $parser-&amp;gt;setHook( &amp;#039;custtitle&amp;#039;, &amp;#039;wfTitleRender&amp;#039; );&lt;br /&gt;
        $parser-&amp;gt;setHook( &amp;#039;custname&amp;#039;, &amp;#039;wfNameRender&amp;#039; );&lt;br /&gt;
              &lt;br /&gt;
	   // Always return true from this function. The return value does not denote&lt;br /&gt;
        // success or otherwise have meaning - it just must always be true.&lt;br /&gt;
        &lt;br /&gt;
	   return true;&lt;br /&gt;
}&lt;br /&gt;
function wfTitleRender($text, $args, $parser, $frame )&lt;br /&gt;
{&lt;br /&gt;
global $wgMyVar;&lt;br /&gt;
 		      $a=&amp;#039;custtitle&amp;#039;;&lt;br /&gt;
	&lt;br /&gt;
        $output = $parser-&amp;gt;recursiveTagParse( $text );&lt;br /&gt;
        $wgMyVar[$a]=$output;&lt;br /&gt;
&lt;br /&gt;
        return &amp;quot;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function wfNameRender($text, $args, $parser, $frame )&lt;br /&gt;
{&lt;br /&gt;
global $wgMyVar;&lt;br /&gt;
    &lt;br /&gt;
		      $a=&amp;#039;custname&amp;#039;;&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
        $output = $parser-&amp;gt;recursiveTagParse( $text );&lt;br /&gt;
        $wgMyVar[$a]=$output;&lt;br /&gt;
&lt;br /&gt;
        return &amp;quot;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>IrisAdmin</name></author>
	</entry>
</feed>