<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="el">
	<id>https://el.diadikasies.gr/index.php?action=history&amp;feed=atom&amp;title=%CE%92%CE%BF%CE%AE%CE%B8%CE%B5%CE%B9%CE%B1%3AA_quick_guide_to_templates</id>
	<title>Βοήθεια:A quick guide to templates - Ιστορικό εκδόσεων</title>
	<link rel="self" type="application/atom+xml" href="https://el.diadikasies.gr/index.php?action=history&amp;feed=atom&amp;title=%CE%92%CE%BF%CE%AE%CE%B8%CE%B5%CE%B9%CE%B1%3AA_quick_guide_to_templates"/>
	<link rel="alternate" type="text/html" href="https://el.diadikasies.gr/index.php?title=%CE%92%CE%BF%CE%AE%CE%B8%CE%B5%CE%B9%CE%B1:A_quick_guide_to_templates&amp;action=history"/>
	<updated>2026-04-15T00:23:58Z</updated>
	<subtitle>Ιστορικό αναθεωρήσεων για αυτή τη σελίδα στο wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://el.diadikasies.gr/index.php?title=%CE%92%CE%BF%CE%AE%CE%B8%CE%B5%CE%B9%CE%B1:A_quick_guide_to_templates&amp;diff=3266&amp;oldid=prev</id>
		<title>Dkalo: Εισήχθη 1 αναθεώρηση</title>
		<link rel="alternate" type="text/html" href="https://el.diadikasies.gr/index.php?title=%CE%92%CE%BF%CE%AE%CE%B8%CE%B5%CE%B9%CE%B1:A_quick_guide_to_templates&amp;diff=3266&amp;oldid=prev"/>
		<updated>2015-06-11T14:24:25Z</updated>

		<summary type="html">&lt;p&gt;Εισήχθη 1 αναθεώρηση&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Νέα σελίδα&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Wikipedia how to|sort-by=Templates, A quick guide to}}&lt;br /&gt;
This is a quick &amp;#039;&amp;#039;&amp;#039;overview of templates&amp;#039;&amp;#039;&amp;#039;. Full details can be found in &amp;#039;&amp;#039;&amp;#039;[[Help:Template]]&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;[[m:Help:Advanced templates]]&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Sandfoermchen-3.jpg|right|300px|thumb|A template allows you to reproduce infinite content.]]&lt;br /&gt;
Templates are pages in the [[Wikipedia:Template namespace|template namespace]]. This means any page whose title begins with &amp;quot;Template:&amp;quot;, such as &amp;quot;[[Template:foo]]&amp;quot;, can be used as a template. The content of a template titled Template:templatename, can be added to a page by typing &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{templatename}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; while editing the page. When the page is later viewed, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{templatename}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is replaced by the content of the page &amp;quot;Template:templatename&amp;quot;. If the page &amp;quot;Template:templatename&amp;quot; is later altered, all the pages with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{templatename}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in them will change automatically.&lt;br /&gt;
&lt;br /&gt;
Among other things, templates are used to add recurring messages to pages in a consistent way, to add [[Wikipedia:Glossary#Boilerplate text|boilerplate]] messages, and to create navigational boxes.&lt;br /&gt;
&lt;br /&gt;
When a template is automatically expanded and appears on a page, it is said to be &amp;quot;[[Wikipedia:Transclusion|transcluded]]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Templates are documented (or should be) at their pages. Thus if you want to know how to use a template whose name is &amp;quot;foo&amp;quot; (perhaps because you&amp;#039;ve seen &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{foo|...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in the source of an article), then go to &amp;quot;Template:foo&amp;quot;. (The documentation itself will usually be located at &amp;quot;Template:foo/doc&amp;quot;, but will be transcluded onto the &amp;quot;Template:foo&amp;quot; page).&lt;br /&gt;
&lt;br /&gt;
==Creating, editing and using templates==&lt;br /&gt;
You start a new template in the same way you would [[Wikipedia:Starting an article|start an article page]]. The only difference is that its title must start with &amp;lt;code&amp;gt;Template:&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Once you have made the template, for example &amp;#039;&amp;#039;Template:templatename&amp;#039;&amp;#039;, you can add &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;templatename&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to the pages you want to use it on. Every page using this template uses the same [[boilerplate (text)|boilerplate]] text, each time a user visits it. When the template is updated, all pages containing the template tag are automatically updated.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can add &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;subst:&amp;#039;&amp;#039;templatename&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to the pages you want to use the boilerplate text on. The system fetches a one-time copy of the template text, and &amp;#039;&amp;#039;&amp;#039;[[Wikipedia:Substitution|substitutes]]&amp;#039;&amp;#039;&amp;#039; it into the page, in place of the template tag. If anyone edits the template afterwards, pages that used the &amp;lt;code&amp;gt;subst:&amp;lt;/code&amp;gt; keyword do &amp;#039;&amp;#039;&amp;#039;not update&amp;#039;&amp;#039;&amp;#039;. Sometimes that is what you want.&lt;br /&gt;
&lt;br /&gt;
If the template you want to edit looks like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{foo}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, you would go to [[Template:foo]] to edit it. To get there, type &amp;quot;Template:foo&amp;quot; in the search box (see [[Help:Searching|search]]), or make a wikilink like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Template:foo]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; somewhere, such as in the [[{{ns:4}}:sandbox|sandbox]], and click on it.&lt;br /&gt;
&lt;br /&gt;
Once you are there, just click &amp;quot;edit&amp;quot; or &amp;quot;edit this page&amp;quot; and edit it in the same way you would any other page. You can add anything you would add to a normal page, including text, images and other templates. Please be aware that your edit might affect many pages, so be cautious.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
Templates can have parameters. Instead of just the template name, like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{foo}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, a template with parameters will have additional text, separated by [[vertical bar]]s (|), e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{foo|July|lc=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Here &amp;lt;code&amp;gt;July&amp;lt;/code&amp;gt; is the value of the first unnamed parameter; &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt; is the value of the named parameter &amp;lt;code&amp;gt;lc&amp;lt;/code&amp;gt;. Writing the template page for a template with parameters is more complicated than for a template with no parameters. See [[Help:Template]].&lt;br /&gt;
&lt;br /&gt;
== Template link template==&lt;br /&gt;
The [[template:template link|&amp;#039;&amp;#039;&amp;#039;template link&amp;#039;&amp;#039;&amp;#039; template]] is a simple [[w:Macro (computer science)|macro]] [[m:Help:template|template]] used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tl|Example}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:generates&lt;br /&gt;
::{{tl|Example}}&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
;How can I find out how to use an existing template? : To see the documentation for the template whose name is &amp;quot;foo&amp;quot;, go to &amp;quot;Template:foo&amp;quot;.&lt;br /&gt;
;Can I use a template in more than one project? : No, if you want to use it on two different language Wikipedias, for example, you would need to create it twice.&lt;br /&gt;
; Are templates case-sensitive? : Yes, except usually the first letter.&lt;br /&gt;
; Can I add parameters? : Yes, see [[Help:Template]] for instructions.&lt;br /&gt;
; How many templates can I use in a page? : A lot, but it depends on how they work. (In older versions you could not use the &amp;#039;&amp;#039;same one&amp;#039;&amp;#039; more than 5 times). There is a limit on the number of template expansions allowed during the creation of a page. If the templates you put on the page use other templates when they are expanded, it is possible to exceed the limit. See [[WP:UNNEST]].&lt;br /&gt;
; I edited the template, so why didn&amp;#039;t the page it is used on change? : Wikipedia and your computer both store &amp;#039;&amp;#039;[[Web cache|caches]]&amp;#039;&amp;#039;&amp;amp;nbsp;– or saved copies&amp;amp;nbsp;– and don&amp;#039;t always show you an updated page. First, try to [[WP:BYPASS|bypass your browser&amp;#039;s cache]] by pressing ⌘R or Ctrl and F5. If that fails, you need to [[WP:PURGE|purge]] the page&amp;#039;s cache (which can be done several different ways). Perhaps the easiest way to do this is by clicking &amp;#039;&amp;#039;&amp;#039;edit&amp;#039;&amp;#039;&amp;#039; on the page in which the template appears, and then clicking on &amp;#039;&amp;#039;&amp;#039;Save page&amp;#039;&amp;#039;&amp;#039; without having changed anything&amp;amp;nbsp;– there is no need to fill in the &amp;#039;&amp;#039;Summary&amp;#039;&amp;#039; field since there will not be any &amp;#039;&amp;#039;history&amp;#039;&amp;#039; of this as a change generated.&lt;br /&gt;
; Can I move a template to a new name? : Yes, this works in exactly the same way as normal [[Help:Moving a page|page moves]]. When a page called for inclusion is a redirect page, the redirect target is included instead.&lt;br /&gt;
; Can I use a template within a template? : Yes.&lt;br /&gt;
;How do I add a new template?: You start a new template in the same way you would start a normal page. The only difference is that its title must start with {{code|Template:}}. Don&amp;#039;t forget to document it so that other editors can use it!&lt;br /&gt;
; Where is the manual for the programming language used to write templates?: The language inside templates is the same language as regular wiki markup, but template writers tend to use the more complex available functions such as #if: statements. See Wikipedia&amp;#039;s [[Help:Template]], Wikimedia&amp;#039;s [[mw:Help:Template]], and all of the &amp;quot;advanced functioning&amp;quot; help pages listed toward the bottom of [[mw:Help:Template#Links to other help pages]].&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
*[[w:en:Template:stub]]: an often used message (at English Wikipedia).&lt;br /&gt;
&amp;lt;!-- *[[w:en:Template:europe]]: a navigational template --&amp;gt;&lt;br /&gt;
*[[w:en:Template:Biological classification]]: a template with parameters (at English Wikipedia).&lt;br /&gt;
*[[b:en:Template:GeneralChemTOC]]: a horizontal menu bar (at English [[Wikibooks]]).&lt;br /&gt;
*[[w:en:Template:Underwater work]]: a template as a simple table with a picture (at English Wikipedia).&lt;br /&gt;
&lt;br /&gt;
== Wikipedia-specific help ==&lt;br /&gt;
*[[Help:Template]] (more details)&lt;br /&gt;
*[[m:Help:Templates]] (details from [[Wikimedia]])&lt;br /&gt;
*[[m:Help:Advanced templates]] (advanced details from Wikimedia)&lt;br /&gt;
*[[Wikipedia:Template namespace]] (the usual [[Wikipedia:Namespace|namespace]] for templates)&lt;br /&gt;
*[[Wikipedia:Transclusion]] (transcluding templates)&lt;br /&gt;
*[[Wikipedia:Substitution]] (substituting templates)&lt;br /&gt;
*[[Wikipedia:Template messages]] (categorised list of links to available templates)&lt;br /&gt;
&lt;br /&gt;
{{Help navigation}}&lt;br /&gt;
{{Wikipedia technical help|collapsed}}&lt;br /&gt;
[[Category:Wikipedia templates| ]]&lt;/div&gt;</summary>
		<author><name>Dkalo</name></author>
	</entry>
</feed>