Template:Documentation/doc

From Minecart Rapid Transit Wiki
Jump to navigation Jump to search

This is the {{Documentation}} template, used on almost every template page to contain that template's documented instructions and information.

For detailed instructions on how and when to use this template, see Wikipedia:Template documentation (shortcut: WP:TDOC).

This template displays a green documentation 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.

This template is intended for documenting templates and other pages that are transcluded onto other pages. It can be used in the template namespace and most other namespaces.


Usage

Normally this template is used without any parameters, placed at the bottom of the template or page being documented, within a container:

<!--Last line of your template code--><noinclude>
{{Documentation}}
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
</noinclude>

Then this template automatically loads the content from the /doc subpage of the template it is used on.

This template can also load the content from any other page. Like this:

<!--Last line of your template code--><noinclude>
{{Documentation |Template:Other page/doc}}
</noinclude>

For more information and sourcing, see https://en.wikipedia.org/wiki/Template:Documentation