<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://ru.ru-skazki.ru/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3ATemplate_invocation%2Fdoc</id>
	<title>Модуль:Template invocation/doc - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://ru.ru-skazki.ru/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3ATemplate_invocation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Template_invocation/doc&amp;action=history"/>
	<updated>2026-04-12T05:21:50Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Template_invocation/doc&amp;diff=4429&amp;oldid=prev</id>
		<title>Импортёр: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Template_invocation/doc&amp;diff=4429&amp;oldid=prev"/>
		<updated>2024-05-01T09:53:44Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 12:53, 1 мая 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Импортёр</name></author>
	</entry>
	<entry>
		<id>http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Template_invocation/doc&amp;diff=4428&amp;oldid=prev</id>
		<title>ru&gt;Andras: Новая страница: «{{Не удаляйте модуль|text=Он используется при подстановке в модуле Unsubst.}}  This is a meta-module for producing MediaWiki template invocations.  == Usage ==  First load the module:  &lt;source lang=&quot;lua&quot;&gt; local mTemplateInvocation = require(&#039;Module:Template invocation&#039;) &lt;/source&gt;  Then you can use the individual functions as documented below.  === Name ===  &lt;source lang=&quot;lua&quot;&gt; mTempl...»</title>
		<link rel="alternate" type="text/html" href="http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Template_invocation/doc&amp;diff=4428&amp;oldid=prev"/>
		<updated>2023-06-04T16:57:26Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «{{Не удаляйте модуль|text=Он используется при подстановке в модуле &lt;a href=&quot;/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Unsubst&quot; title=&quot;Модуль:Unsubst&quot;&gt;Unsubst&lt;/a&gt;.}}  This is a meta-module for producing MediaWiki template invocations.  == Usage ==  First load the module:  &amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt; local mTemplateInvocation = require(&amp;#039;Module:Template invocation&amp;#039;) &amp;lt;/source&amp;gt;  Then you can use the individual functions as documented below.  === Name ===  &amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt; mTempl...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Не удаляйте модуль|text=Он используется при подстановке в модуле [[Модуль:Unsubst|Unsubst]].}}&lt;br /&gt;
&lt;br /&gt;
This is a meta-module for producing MediaWiki template invocations.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
First load the module:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mTemplateInvocation = require(&amp;#039;Module:Template invocation&amp;#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you can use the individual functions as documented below.&lt;br /&gt;
&lt;br /&gt;
=== Name ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mTemplateInvocation.name(title)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function produces the name to be used in a template invocation. For pages in the template namespace it returns the page name with no namespace prefix, for pages in the main namespace it returns the full page name prefixed with &amp;quot;:&amp;quot;, and for other pages it returns the full page name. &amp;lt;var&amp;gt;title&amp;lt;/var&amp;gt; can be a string or a [[mw:Extension:Scribunto/Lua reference manual#Title objects|mw.title object]]. {{Red|If &amp;lt;var&amp;gt;title&amp;lt;/var&amp;gt; is a string, a mw.title object is created for it, which is [[WP:EXPENSIVE|expensive]].}}&lt;br /&gt;
&lt;br /&gt;
=== Invocation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mTemplateInvocation.invocation(name, args, format)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function creates a MediaWiki [[Help:Template|template]] invocation.&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;name&amp;#039;&amp;#039;&amp;#039; - the name of the template (string, required). This should be exactly as it will appear in the invocation, e.g. for [[Template:Example]] use &amp;quot;Example&amp;quot;. To generate the template name from a page name you can use the [[#Name|name]] function.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;args&amp;#039;&amp;#039;&amp;#039; - the arguments to use in the invocation (table, required). Table keys and values must be either strings or numbers.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;format&amp;#039;&amp;#039;&amp;#039; - the format of the invocation (string, optional). The default is a normal invocation with unescaped curly braces, pipes, and equals signs. If this parameter is the string &amp;quot;nowiki&amp;quot;, then the curly braces, pipes and equals signs are replaced with the appropriate [[HTML entities]].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The code {{Code|1=mTemplateInvocation.invocation(&amp;#039;foo&amp;#039;, {&amp;#039;bar&amp;#039;, &amp;#039;baz&amp;#039;, abc = &amp;#039;def&amp;#039;})|2=lua}} would produce &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Foo|bar|baz|abc=def}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Категория:Модули:Документация]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Категория:РуСказки:Модули]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>ru&gt;Andras</name></author>
	</entry>
</feed>