Template:Documentation

From MultiVersus Wiki
Jump to navigation Jump to search
Template Documentation follows
[view | edit | history | purge]
Description
This template is used to insert documentation on template pages.
Syntax
Type <noinclude>{{documentation}}</noinclude> at the end of the template page.

General usage

On the Template page

Template code<noinclude>
{{Documentation}}
</noinclude>

On the Template/doc page

; Description
: This template is used to do something.
; Dependencies:
:* Uses (some CSS, JS, file, or other template).
; Syntax
: Type <code>{{t|templatename}}</code> somewhere.
; Sample output
: <code><nowiki>{{templatename|foo}}</nowiki></code> gives...
: {{templatename|foo}}

<includeonly>Any categories for the template itself
</includeonly><noinclude>
[[Category:Template documentation]]
</noinclude>

Use any or all of the above description/syntax/sample output sections. You may also want to add "see also" or further usage information sections.

Note that the above example also uses {{T}}.

TemplateData

This template is used to display documentation on template pages. It also adds some tools to help the editor to modify the /doc subpage and the template.

Template parameters

ParameterDescriptionTypeStatus
Custom Documentation Location1

The name of the custom /doc subpage.

Default
{{FULLPAGENAME}}/doc
Example
Template:Documentation/doc
Stringoptional
Inline Documentation Contentcontent

Content if documentation page will not be transcluded

Example
This template creates quotes.
Stringoptional
Heading textheading

Changes the default "Documentation" header to a different one

Example
About this template
Stringoptional
Custom footer contentfooter

Replaces the default link box with a custom one

Example
Documentation is automatically generated by {{t|ambox}}.<br/>It's contents are shown here.
Unbalanced wikitextoptional
The above documentation is transcluded from Template:Documentation/doc. (edit | history)
Add categories and interwikis to the /doc subpage. Subpages of template.