Template:Documentation/doc

From JoJo's Bizarre Encyclopedia - JoJo Wiki
< Template:Documentation
Revision as of 11:20, 27 December 2012 by MetallicKaiser (talk | contribs) (Created page with "{{#ifexist: Template:T | <!-- nothing; T already copied/exists --> | :<strong class="error">Please copy <nowiki>{{T}}</nowiki> from w:c:templates:Template:T to [[Template:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Description

This template is used to insert documentation on template pages.

Dependencies

This template uses File:Template-info.svg and the templates {{!}} and {{Tocright}}, while the documentation needs {{T}}.

Syntax

Type <noinclude>{{Documentation}}</noinclude> at the end of the template page.

Parameters

NOTOC= with any values not null, it will not show the table of contents - optional.

See Also

- Category:Template Documentation
- Category:Templates Without Documentation

General Usage

On the Template Page

Template code <includeonly>Any categories to be inserted
into articles by the template</includeonly>
<noinclude>{{Documentation}}</noinclude>

On the Template/doc Page

See also Template:Documentation/preload
;Description
This template is used to do ''this''.
;Dependencies
This template uses [[:File:image.jpg]]...; {{T|Template1}}...; and the CSS Style/Java scripts
<pre>
Script code
</pre>
(or the link to the code)
;Syntax
Type {{T|nometemplate}} ''here''.
;Parameters
'''text/1=''' parameter 1 - free, default: 1.
'''other=''' value of other - optional.
;Samples
{{T|Templatename|parameter}} gives:
{{Templatename|parameter}}
;See Also/External Links
- Links.

<includeonly>Any categories for the template itself</includeonly>
<noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>

Take any or all of the above sections as model to write the documentation. Note that the above example also uses {{T}}.