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
(Created page with " This is the {{tl|documentation}} template. For most of the instructions about how and when to use this template, see Wikipedia:Template documentation. This template dis...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:


This is the {{tl|documentation}} template.
This is the {{tl|documentation}} template.
For most of the instructions about how and when to use this template, see [[Wikipedia:Template documentation]].


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 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.
Line 22: Line 20:


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.
<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.