<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://techwiki.neosys.com/index.php?action=history&amp;feed=atom&amp;title=How_to_create_templates_in_wiki</id>
	<title>How to create templates in wiki - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://techwiki.neosys.com/index.php?action=history&amp;feed=atom&amp;title=How_to_create_templates_in_wiki"/>
	<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=How_to_create_templates_in_wiki&amp;action=history"/>
	<updated>2026-05-29T18:27:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=How_to_create_templates_in_wiki&amp;diff=861&amp;oldid=prev</id>
		<title>Vineet: Created page with &#039;==Creation== Templates are standard wiki pages whose content is designed to be embedded inside other pages. Templates follow a convention that the name is prefixed with &quot;&lt;code&gt;Te…&#039;</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=How_to_create_templates_in_wiki&amp;diff=861&amp;oldid=prev"/>
		<updated>2012-01-23T13:28:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;==Creation== Templates are standard wiki pages whose content is designed to be embedded inside other pages. Templates follow a convention that the name is prefixed with &amp;quot;&amp;lt;code&amp;gt;Te…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Creation==&lt;br /&gt;
Templates are standard wiki pages whose content is designed to be embedded inside other pages. Templates follow a convention that the name is prefixed with &amp;quot;&amp;lt;code&amp;gt;Template:&amp;lt;/code&amp;gt;&amp;quot;, assigning it to that namespace; besides this, you can create them like any other wiki page.&lt;br /&gt;
&lt;br /&gt;
The simplest use of templates is as follows. If you create a page called &amp;quot;Template:Welcome&amp;quot; with contents:&lt;br /&gt;
&lt;br /&gt;
 Hello! Welcome to the wiki.&lt;br /&gt;
&lt;br /&gt;
you&amp;#039;ll have created your first template! &lt;br /&gt;
&lt;br /&gt;
If you then insert the code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{Welcome}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in any other page, when that page is viewed the text &amp;quot;Hello! Welcome to the wiki.&amp;quot; will appear instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Welcome}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
You can then insert &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Welcome}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; at any point of any page where you wish to welcome someone. Suppose it is used in 100 pages. &lt;br /&gt;
&lt;br /&gt;
Now, If you then change the template contents to:&lt;br /&gt;
&lt;br /&gt;
 Hi there! Welcome to this wonderful wiki.&lt;br /&gt;
&lt;br /&gt;
and revisit any of the 100 pages where the template was used, you&amp;#039;ll see the new text instead of the original one. In this way, you have changed the content of 100 pages without editing them all.&lt;br /&gt;
&lt;br /&gt;
This is the basic mechanism of templates.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
Parameters allow the template to produce different contents or exhibit different behaviour.&lt;br /&gt;
&lt;br /&gt;
When using the template on a page, you fill in the parameter values, separated by a &amp;quot;pipe&amp;quot; character (|).&lt;br /&gt;
&lt;br /&gt;
Suppose you wish to modify the Welcome template mentioned above so that it greets different users by their names, for example:&lt;br /&gt;
&lt;br /&gt;
 Hello Ashwin! Welcome to the wiki. &lt;br /&gt;
 OR &lt;br /&gt;
 Hello Steve! Welcome to the wiki.&lt;br /&gt;
&lt;br /&gt;
Then, in such cases, the &amp;quot;Template:Welcome&amp;quot; must contain the following text:&lt;br /&gt;
&lt;br /&gt;
 Hello {{{1}}}! Welcome to the wiki.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note -&amp;#039;&amp;#039; Notice the use of {{{1}}}. This is the way to identify, within templates, the parameters that will be passed in when the template is used. Each parameter is surrounded by three braces: {{{ }}}. This is different from normal template name usage.&lt;br /&gt;
&lt;br /&gt;
Now, If you insert the code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{Welcome|Ashwin}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in any page then, when that page is viewed, the text &amp;quot;Hello Ashwin! Welcome to the wiki.&amp;quot; will appear instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Welcome|Ashwin}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Similarly,&lt;br /&gt;
If you insert the code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{Welcome|Steve}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in any page then, when that page is viewed, the text &amp;quot;Hello Steve! Welcome to the wiki.&amp;quot; will appear.&lt;br /&gt;
&lt;br /&gt;
== Finding Templates ==&lt;br /&gt;
To find Templates, users can:&lt;br /&gt;
#Click Special Pages &amp;gt; All Pages&lt;br /&gt;
#In the Namespace list, choose Template and click Go.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
</feed>