Editing Help:Templates

From Guild of Archivists
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 50: Line 50:
<pre>Template wiki code<noinclude>Text that will not be included</noinclude></pre>
<pre>Template wiki code<noinclude>Text that will not be included</noinclude></pre>


== Documenting templates ==
== Formatting a template page ==


If your template has multiple parameters or is complicated to use, you are encouraged to include documentation on how to use it. It is also good practice to include documentation describing when to use your template, regardless of its complexity. To add documentation to a template, add the following to the bottom of the template page:
If your template has multiple parameters or is complicated to use, you are encouraged to include documentation on how to use it. It is also good practice to include documentation describing when to use your template, regardless of its complexity. To add documentation to a template, add the following to the bottom of the template page:
Line 60: Line 60:
</pre>
</pre>


This will add the documentation template to the page, which transcludes any material found at  
This will add the documentation template to the page, which transcludes any material found at <pre>Template:Template name/doc</pre>.
<pre>Template:Template name/doc</pre>


After you save your template, you can click on the "'''create'''" link in the transcluded documentation header to go straight to the /doc page for your template.
== Formatting documentation ==
There are no strict formatting guidelines for template documentation, just try to outline everything that the template does and the available parameters. However, the suggested headings for template page are given below. You can also use the "'''Manage TemplateData'''" button above the editor when creating your documentation to expedite the process of documenting the template's parameters.
There are no strict formatting guidelines for template documentation, just try to outline everything that the template does and the available parameters. However, the suggested headings for template page are given below. You can also use the "'''Manage TemplateData'''" button above the editor when creating your documentation to expedite the process of documenting the template's parameters.


Please note that all contributions to Guild of Archivists may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see GoArch:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)