<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://gssc.esa.int/navipedia/index.php?action=history&amp;feed=atom&amp;title=Help%3ATemplates</id>
	<title>Help:Templates - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gssc.esa.int/navipedia/index.php?action=history&amp;feed=atom&amp;title=Help%3ATemplates"/>
	<link rel="alternate" type="text/html" href="https://gssc.esa.int/navipedia/index.php?title=Help:Templates&amp;action=history"/>
	<updated>2026-04-26T06:35:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://gssc.esa.int/navipedia/index.php?title=Help:Templates&amp;diff=307&amp;oldid=prev</id>
		<title>Timo.Kouwenhoven: Created page with &quot;Templates are useful to include standard items on several pages, like the information boxes on the article pages. They can also be used for standard formatting of items like tabl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://gssc.esa.int/navipedia/index.php?title=Help:Templates&amp;diff=307&amp;oldid=prev"/>
		<updated>2010-11-17T16:23:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Templates are useful to include standard items on several pages, like the information boxes on the article pages. They can also be used for standard formatting of items like tabl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Templates are useful to include standard items on several pages, like the information boxes on the article pages. They can also be used for standard formatting of items like tables. Only users belonging to the Contentmanagers group can create and edit templates. Template names are prefixed with &amp;lt;code&amp;gt;Template:&amp;lt;/code&amp;gt;, you create them like any other wiki page.&lt;br /&gt;
&lt;br /&gt;
==Using a template==&lt;br /&gt;
Templates are wiki pages which can be used in other pages in three ways:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Name}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; includes the content of the template at the moment the page containing it is fetched &amp;lt;nowiki&amp;gt;&amp;quot;[[Template:Name]]&amp;quot;&amp;lt;/nowiki&amp;gt;. &lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{subst:Name}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; inserts the content of the template into the code of the page in a form that is editable normally &amp;lt;nowiki&amp;gt;&amp;quot;[[Template:Name]]&amp;quot;&amp;lt;/nowiki&amp;gt; after you have saved your text. &lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{msgnw:Name}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; when the page containing it is fetched, includes the template in a form that displays it as raw wiki syntax, like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;amp;lt;nowiki&amp;amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; does&lt;br /&gt;
&lt;br /&gt;
For templates to be effective users need to know how to use them. A simple technique is to include an example on the template page.Then, an editor can simply copy and paste the example to create a similar page. For example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;display:table; width:auto;&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
==Usage==&lt;br /&gt;
Allows to establish a link to a subject:&lt;br /&gt;
{{NameOfTemplate|Term1+Term2+Term3}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using parameters in templates==&lt;br /&gt;
You can define parameters in templates either numbered as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{1}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or named &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{param}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; You want a little thank you note you can put on the talk page of other users. It will contain a reason and your signature. You could create [[Template:Thankyou]] to enter your text, as in the example in the table.&lt;br /&gt;
&lt;br /&gt;
When using the template on a page, you fill in the parameter values, separated by a pipe char (|): &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Thankyou|all|Joe}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.  For named parameters use &amp;quot;name=value&amp;quot; pairs separated by a pipe char:   &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Thankyou|reason=all|signature=Joe}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. The advantage of using named parameters in your template is that they are flexible in order. It also makes the template easier to understand if you have many parameters. If you want to change the order of numbered parameters, you have to mention them explicitly: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Thankyou|2=Joe|1=all}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| {{Prettytable}} &lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; |&amp;#039;&amp;#039;&amp;#039;Template with numbered parameters&amp;#039;&amp;#039;&amp;#039;	&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt; &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A little thank you...&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;for {{{1}}}.&amp;lt;br&amp;gt;&lt;br /&gt;
hugs, {{{2}}}&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
||&amp;#039;&amp;#039;&amp;#039;You type&amp;#039;&amp;#039;&amp;#039;	&lt;br /&gt;
||&amp;#039;&amp;#039;&amp;#039;You get&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Thankyou|all|Joe}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
{{Thankyou|all|Joe}}&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; |&amp;#039;&amp;#039;&amp;#039;with named parameters&amp;#039;&amp;#039;&amp;#039;	&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt; &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A little thank you...&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;for {{{reason}}}.&amp;lt;br&amp;gt;&lt;br /&gt;
hugs, {{{signature}}}&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
||&amp;#039;&amp;#039;&amp;#039;You type&amp;#039;&amp;#039;&amp;#039;	&lt;br /&gt;
||&amp;#039;&amp;#039;&amp;#039;You get&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{Thankyou&lt;br /&gt;
|reason=all&lt;br /&gt;
|signature=Joe}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
{{Thankyou|all|Joe}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Control template inclusion==&lt;br /&gt;
You can control template inclusion by the use of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;noinclude&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tags.&lt;br /&gt;
&lt;br /&gt;
Anything between &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;noinclude&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/noinclude&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will be processed and&lt;br /&gt;
displayed only when the page is being viewed directly, not included.&lt;br /&gt;
&lt;br /&gt;
Possible applications are:&lt;br /&gt;
* Categorising templates&lt;br /&gt;
* Interlanguage links to similar templates in other languages&lt;br /&gt;
* Explanatory text about how to use the template&lt;br /&gt;
&lt;br /&gt;
The converse is &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Text between &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will be processed and displayed only when the page is&lt;br /&gt;
being included. The obvious application is to add all pages containing a given template to a category.&lt;br /&gt;
&lt;br /&gt;
Note that the usual update problems apply -- if you change the&lt;br /&gt;
categories inside a template, the categories of the referring pages&lt;br /&gt;
won&amp;#039;t be updated until those pages are edited.&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
[[Category:Help]]&lt;/div&gt;</summary>
		<author><name>Timo.Kouwenhoven</name></author>
	</entry>
</feed>