Difference between revisions of "Template:Template"

From ArchWiki
Jump to: navigation, search
(Working on a major overhaul of templates)
Line 1: Line 1:
<includeonly>{{Box Note|This page is a template. It contains no Arch Linux-related information but should be used as part of other articles. For more information, read [[Help:Templates]].
+
<noinclude>{{Template}}
  
Please do not experiment with this template; you could ruin [[Special:Whatlinkshere/Template:{{PAGENAME}}|all pages using this template]]. If you want to edit this template, copy the text to [[Template:Sandbox]], edit and test it there, and copy it back when it works.}}
+
A template to be used for all template pages.
 
+
Do you want to give us [[Template talk:{{PAGENAME}}|your opinion]]?
+
 
+
[[Category:Template]]</includeonly><noinclude>A template to be used for all template pages.
+
  
 
====Usage====
 
====Usage====
  
This template should be added at the end of all template pages in this form:
+
This template should be added at the very beginning of all template pages between 'noinclude' tags:
  
 
  &lt;noinclude&gt;<nowiki>{{Template}}</nowiki>&lt;/noinclude&gt;
 
  &lt;noinclude&gt;<nowiki>{{Template}}</nowiki>&lt;/noinclude&gt;
  
The actual template wikitext must be written between 'includeonly' tags:
+
A brief description of the template, usage instructions, and output example should also be added between the 'noinclude' tags (as in this template).
 +
 
 +
The template wikitext must be written between 'includeonly' tags:
 
   
 
   
 
  &lt;includeonly&gt;...&lt;/includeonly&gt;
 
  &lt;includeonly&gt;...&lt;/includeonly&gt;
Line 19: Line 17:
 
====Example====
 
====Example====
  
{{Template}}</noinclude>
+
{{Template}}</noinclude><includeonly>[[Category:Template]] {{Box Note|This page is a template. It contains no Arch Linux-related information but should be used as part of other articles. For more information, read [[Help:Templates]].
 +
 
 +
Please do not experiment with this template; you could ruin [[Special:Whatlinkshere/Template:{{PAGENAME}}|all pages using this template]]. If you want to edit this template, copy the text to [[Template:Sandbox]], edit and test it there, and copy it back when it works.
 +
 
 +
Feel free to voice [[Template talk:{{PAGENAME}}|your opinion]] regarding this template}}</includeonly>

Revision as of 05:18, 8 February 2009

This page is a template. It contains no Arch Linux-related information, but should be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

A template to be used for all template pages.

Usage

This template should be added at the very beginning of all template pages between 'noinclude' tags:

<noinclude>{{Template}}</noinclude>

A brief description of the template, usage instructions, and output example should also be added between the 'noinclude' tags (as in this template).

The template wikitext must be written between 'includeonly' tags:

<includeonly>...</includeonly>

Example

This page is a template. It contains no Arch Linux-related information, but should be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.