<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=Help%3ATemplate</id>
	<title>Help:Template - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=Help%3ATemplate"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Help:Template&amp;action=history"/>
	<updated>2026-05-01T16:27:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=Help:Template&amp;diff=17435&amp;oldid=prev</id>
		<title>DavidWhitten: /* Usage */</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Help:Template&amp;diff=17435&amp;oldid=prev"/>
		<updated>2018-03-20T15:32:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage&lt;/span&gt;&lt;/p&gt;
&lt;a href=&quot;https://vistapedia.com/index.php?title=Help:Template&amp;amp;diff=17435&amp;amp;oldid=9533&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>DavidWhitten</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=Help:Template&amp;diff=9533&amp;oldid=prev</id>
		<title>152.131.9.69 at 17:54, 15 June 2005</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Help:Template&amp;diff=9533&amp;oldid=prev"/>
		<updated>2005-06-15T17:54:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;amp;larr; [[Help: Contents]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The MediaWiki software allows you to automatically substitute &amp;#039;&amp;#039;&amp;#039;messages and templates&amp;#039;&amp;#039;&amp;#039; in the article text.  As of the upgrade to MediaWiki 1.3 (in September 2004), templates now have their own [[Help:namespace|namespace]] inside the database.  Template pages will start with the &amp;#039;&amp;#039;Template:&amp;#039;&amp;#039; prefix.&lt;br /&gt;
&lt;br /&gt;
==Include a message==&lt;br /&gt;
The syntax for insertion of the page &amp;quot;Template:name&amp;quot; is &amp;lt;nowiki&amp;gt;{{name}}&amp;lt;/nowiki&amp;gt;.  This reference in the wikitext causes insertion of the template content when the referring page is rendered.&lt;br /&gt;
&lt;br /&gt;
If the page &amp;quot;Template:name&amp;quot; does not exist, then &amp;lt;nowiki&amp;gt;{{name}}&amp;lt;/nowiki&amp;gt; works as &amp;lt;nowiki&amp;gt;[[Template:name]]&amp;lt;/nowiki&amp;gt;, a link to a non-existing page, leading to the edit page.&lt;br /&gt;
&lt;br /&gt;
Self links do not give any complication: they are neatly displayed in bold and not as link. However, templates should have the correct page names and not rely on redirecting, since the feature does not work in that case.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
You may also include a message as a &amp;#039;&amp;#039;&amp;#039;template&amp;#039;&amp;#039;&amp;#039; by applying parameters to the template.&lt;br /&gt;
&lt;br /&gt;
Template parameters are either named or numbered. The syntax to add a message with parameters is &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{thing|param=value}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{{param}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; tags in the template, or &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{thing|value1|value2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{{1}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{{2}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;, etc. tags in the template. (Note that parameter tags in the template have &amp;#039;&amp;#039;three&amp;#039;&amp;#039; braces rather than two).&lt;br /&gt;
&lt;br /&gt;
On rendering, surplus parameters are ignored. In the case of too few, the parameters will appear as links to nonexistent templates.&lt;br /&gt;
&lt;br /&gt;
Parameter templates are used in the template [[Template:imagecopyright|&amp;lt;nowiki&amp;gt;{{imagecopyright}}&amp;lt;/nowiki&amp;gt;]], for example. The template contains references to &amp;quot;owner&amp;quot; and &amp;quot;source&amp;quot;, so the template call&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;{{imagecopyright|owner=[[Kivas Fajo]]|source=Kivas Fajos ship}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will produce the following note:&lt;br /&gt;
&lt;br /&gt;
:{{imagecopyright|owner=[[Kivas Fajo]]|source=Kivas Fajos ship}}&lt;br /&gt;
&lt;br /&gt;
This example shows that you can even use wiki links in template parameters. This is not necessary if you are adding a well-formed URL - those are presented as links automatically.&lt;br /&gt;
&lt;br /&gt;
==Substitutions==&lt;br /&gt;
If you include the string &amp;quot;subst:&amp;quot; after the double opening curly-braces, MediaWiki will &amp;#039;&amp;#039;substitute&amp;#039;&amp;#039; the template text in the wikitext rather than include it.  The net effect is that the current text of the template will be permanently saved, and will not be &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; &amp;lt;nowiki&amp;gt;{{subst:copyvio1}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When subst is applied to a template, a variable in the template is copied as such in the wikitext.  (As of MediaWiki 1.3.2, there is a bug in the system where setting parameters with substitutions does not work.  The developers are aware of this problem and are creating a fix. [http://bugzilla.wikipedia.org/show_bug.cgi?id=89])&lt;br /&gt;
&lt;br /&gt;
You cannot substitute the same template more than five times per edit.  (However, this only applies to any one edit; you can then go back and add the same template five more times.  Why anyone might one to do this, though, is unclear.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
Templates are useful for any text for which one wants a copy in two or more pages, and there is no need for each copy to be edited independently, to adapt it to the page it is in. Since parameters can be used, versions may to that extent even be different, and parameter values can be edited independently for each.&lt;br /&gt;
&lt;br /&gt;
* [[OpenVistA Wiki:Template]]&lt;br /&gt;
** [[OpenVistA Wiki:Message templates]]&lt;br /&gt;
** [[OpenVistA Wiki:Navigational templates]]&lt;br /&gt;
** [[OpenVistA Wiki:Sidebar templates]]&lt;br /&gt;
** [[OpenVistA Wiki:Meta templates]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;See also:&amp;#039;&amp;#039;&amp;#039; [[OpenVistA Wiki: Article templates]]&lt;/div&gt;</summary>
		<author><name>152.131.9.69</name></author>
	</entry>
</feed>