<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Vorlage%3ADocumentation%2Fdoc</id>
	<title>Vorlage:Documentation/doc - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Vorlage%3ADocumentation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Vorlage:Documentation/doc&amp;action=history"/>
	<updated>2026-04-05T23:25:52Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Verzauberte Welten e.V.</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.verzauberte-welten.de/index.php?title=Vorlage:Documentation/doc&amp;diff=4645&amp;oldid=prev</id>
		<title>imported&gt;Oetterer am 21. Februar 2018 um 11:50 Uhr</title>
		<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Vorlage:Documentation/doc&amp;diff=4645&amp;oldid=prev"/>
		<updated>2018-02-21T11:50:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 21. Februar 2018, 13:50 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l84&quot;&gt;Zeile 84:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 84:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When in the Template namespace, this template shows this heading:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When in the Template namespace, this template shows this heading:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:[[File:Template-info&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.png&lt;/del&gt;|32px]] '''Template documentation'''&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:[[File:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Image mapper|&lt;/ins&gt;Template-info&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;|32px]] '''Template documentation'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In most other namespaces, such as &amp;quot;Wikipedia:&amp;quot;, it shows this heading:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In most other namespaces, such as &amp;quot;Wikipedia:&amp;quot;, it shows this heading:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Oetterer</name></author>
	</entry>
	<entry>
		<id>https://www.verzauberte-welten.de/index.php?title=Vorlage:Documentation/doc&amp;diff=107&amp;oldid=prev</id>
		<title>mw&gt;Oetterer am 5. Februar 2015 um 08:33 Uhr</title>
		<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Vorlage:Documentation/doc&amp;diff=107&amp;oldid=prev"/>
		<updated>2015-02-05T08:33:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
== Description ==&lt;br /&gt;
{{lua|Module:Documentation}}&lt;br /&gt;
This is the {{tl|documentation}} template.&lt;br /&gt;
&lt;br /&gt;
For most of the instructions about how and when to use this template, see [[Hilfe:Richtlinen zur Erstellung von Templates]] and [[Hilfe:Template Dokumentation]].&lt;br /&gt;
&lt;br /&gt;
This template displays a green doc box like you are seeing now, and automatically loads the content from a /doc subpage. It can also load the content from other places if instructed to.&lt;br /&gt;
&lt;br /&gt;
This template is intended for documenting templates and other pages which are transcluded onto other pages. It can be used in template space and most other namespaces.&lt;br /&gt;
&lt;br /&gt;
Use of this template allows templates to be protected where necessary, while allowing anyone to edit the documentation and categories.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
=== optional ===&lt;br /&gt;
;1&lt;br /&gt;
:A page to load the documentation from. default is /doc, which should be used in almost every case.&lt;br /&gt;
;content&lt;br /&gt;
:Specifies a documention text for usage in place of subpage /doc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Normally this template is used without any parameters, placed at the bottom of the template or page being documented, within &amp;lt;code&amp;gt;&amp;amp;lt;noinclude&amp;gt;&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!--Last line of your template code--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Add categories to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then this template automatically loads the content from the /doc subpage of the template it is used on.&lt;br /&gt;
&lt;br /&gt;
This template can also load the content from any other page. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!--Last line of your template code--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{documentation |Template:Other page/doc}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that when loading the documentation from another page than the local /doc page it becomes tricky to handle the categories and interwiki links.&lt;br /&gt;
&lt;br /&gt;
The content can also be fed directly as text. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!--Last line of your template code--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{documentation |content=&lt;br /&gt;
Some documentation text.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When the {{para|content}} parameter is used, the doc box normally does not show the [edit] [purge] links in the top right corner. Note that if the /doc page exists a link to it is still shown in the link box below the doc box.&lt;br /&gt;
&lt;br /&gt;
Parameter {{para|1}} and the {{para|content}} parameter can also be combined, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!--Last line of your template code--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{documentation&lt;br /&gt;
|1=Template:Any page/doc&lt;br /&gt;
|content=&lt;br /&gt;
{{Template:Any page/doc |parameters}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then the pagename fed as parameter 1 is used for the [edit] [purge] links and for the /doc link in the link box below the doc box. But the '''content''' parameter is used for the content shown in the doc box. The above code means that the content is transcluded as ''Template:Any page/doc{{!}}parameters''. In this example a parameter is also fed to the /doc page being loaded.&lt;br /&gt;
&lt;br /&gt;
=== Best practice ===&lt;br /&gt;
&lt;br /&gt;
The code should be added at the bottom of the template code, with no space before {{tag|noinclude|o}} (which would cause extra space on pages where the template is used).&lt;br /&gt;
&lt;br /&gt;
Categories that apply to the template itself should be added to the bottom of the /doc subpage, inside {{tag|includeonly}} tags.&lt;br /&gt;
&lt;br /&gt;
If the documentation page contains {{tag|includeonly|o}} or {{tag|noinclude|o}} tags as part of the visible documentation text, replace the &amp;quot;&amp;lt;code&amp;gt;&amp;amp;lt;&amp;lt;/code&amp;gt;&amp;quot; with &amp;quot;&amp;lt;code&amp;gt;&amp;amp;amp;lt;&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== The heading ===&lt;br /&gt;
&lt;br /&gt;
When in the Template namespace, this template shows this heading:&lt;br /&gt;
:[[File:Template-info.png|32px]] '''Template documentation'''&lt;br /&gt;
&lt;br /&gt;
In most other namespaces, such as &amp;quot;Wikipedia:&amp;quot;, it shows this heading:&lt;br /&gt;
:'''Documentation'''&lt;br /&gt;
&lt;br /&gt;
But when on File (image) pages it shows this heading:&lt;br /&gt;
:'''Summary'''&lt;br /&gt;
&lt;br /&gt;
The '''heading''' parameter can be used to set the heading to something else. Like this:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{documentation |heading=Infobox documentation}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the '''heading''' parameter is empty but defined, no heading is shown and no [edit] [purge] links are shown. Like this:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{documentation |heading=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The '''heading-style''' parameter can be fed optional CSS values. Without quotation marks &amp;lt;code&amp;gt;&amp;quot; &amp;quot;&amp;lt;/code&amp;gt; but with the ending semicolons &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt;. For example:&lt;br /&gt;
:&amp;lt;code&amp;gt;heading-style = color: red; font-size: 150%;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The link box ===&lt;br /&gt;
&lt;br /&gt;
Below the big doc box is a small link box that shows some meta-data about the documentation. The link box shows different things depending on what parameters are fed to this template, and in which namespace it is used. In some cases the link box is not shown at all.&lt;br /&gt;
&lt;br /&gt;
To hide the link box, add the parameter {{para|link box|off}}.&lt;br /&gt;
&lt;br /&gt;
You can also insert customised text in the link box, by defining the {{para|link box}} parameter. For example:&lt;br /&gt;
{{para|link box|This documentation is automatically generated by [&amp;lt;nowiki /&amp;gt;[Template:Country showdata]]}}&lt;br /&gt;
&lt;br /&gt;
=== Automatic functions ===&lt;br /&gt;
&lt;br /&gt;
If the documentation page does not exist, the [create] link includes a preload page so that clicking it will pre-fill the edit form with the basic documentation page format.&lt;br /&gt;
&lt;br /&gt;
When this template is on a protected template page it now automatically adds {{tl|pp-template}} which shows the grey or red padlock in the top right corner. So no need to manually add {{tl|pp-template}} to templates that use {{tl|documentation}}.&lt;br /&gt;
&lt;br /&gt;
=== Subject namespaces vs. talk namespaces ===&lt;br /&gt;
&lt;br /&gt;
Terminology: ''Subject namespaces'' are the opposite of ''talk namespaces''. For instance &amp;quot;Template:&amp;quot; is the subject space of &amp;quot;Template talk:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This template is usually placed in a subject namespace, within {{tag|noinclude|o}} tags. But in some cases this template needs to be on the talk page:&lt;br /&gt;
&lt;br /&gt;
* For preload pages (usually in Template or Wikipedia namespaces), since they cannot use {{tag|noinclude|o}}.&lt;br /&gt;
&lt;br /&gt;
* In the Mediawiki namespace, since {{tag|noinclude|o}} often does not work in system messagesm and since the Mediawiki namespace needs to be kept clean for performance reasons.&lt;br /&gt;
&lt;br /&gt;
When placed on talk pages, this template usually is placed near the top of the page and without {{tag|noinclude}} tags.&lt;br /&gt;
&lt;br /&gt;
The /doc, /sandbox and /testcases pages should normally be in the subject namespace, except in the namespaces that do not have the MediaWiki Subpage feature enabled: Main, File, Mediawiki and Category. (But currently we only show the /sandbox and /testcases links from User, User talk, Template and Template talk namespaces.) There are also a whole bunch of other technical reasons why the /doc page must be stored under the talk page for those (but only those) namespaces.&lt;br /&gt;
&lt;br /&gt;
This template automatically points its &amp;lt;small&amp;gt;[create]&amp;lt;/small&amp;gt; links for the /doc, /sandbox and /testcases to the right namespace.&lt;br /&gt;
&lt;br /&gt;
=== Technical details ===&lt;br /&gt;
&lt;br /&gt;
This template uses [[Module:Documentation]]&lt;br /&gt;
&lt;br /&gt;
The preload page for the /doc &amp;lt;small&amp;gt;[create]&amp;lt;/small&amp;gt; link is [[Template:Documentation/preload]].&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- {{documentation/see also}} --&amp;gt;&lt;br /&gt;
* {{tl|documentation}} – Placed on templates and other pages to document them.&lt;br /&gt;
* {{tl|documentation subpage}} – Used at the top of /doc subpages to explain what they are and to link back to the page they document.&lt;br /&gt;
* [[Hilfe:Richtlinen zur Erstellung von Templates]] – The how-to guide about template (cration and documentation).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories go here --&amp;gt;&lt;br /&gt;
[[Category:Template documentation]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>mw&gt;Oetterer</name></author>
	</entry>
</feed>