Error creating thumbnail: File missing Join our Discord!
If you have been locked out of your account you can request a password reset here.

Template:Documentation/doc: Difference between revisions

From Internet Movie Firearms Database - Guns in Movies, TV and Video Games
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 21: Line 21:
Then this template automatically loads the content from the /doc subpage of the template it is used on.
Then this template automatically loads the content from the /doc subpage of the template it is used on.


[[Category:Template documentation]]
<noinclude>[[Category:Template documentation]]
</noinclude>

Latest revision as of 19:20, 1 April 2023

This is the {{documentation}} template.

This template displays a green doc 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 which are transcluded onto other pages. It can be used in template space and most other namespaces.

Use of this template allows templates to be protected where necessary, while allowing anyone to edit the documentation, categories, and interwiki links.

Usage

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

<!--Last line of your template code--><noinclude>

{{documentation}}
</noinclude>

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