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: 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
 
(2 intermediate revisions by the same user not shown)
Line 34: Line 34:
     <!--"heading" not defined in this or previous level-->
     <!--"heading" not defined in this or previous level-->
     {{#switch: {{SUBJECTSPACE}}  
     {{#switch: {{SUBJECTSPACE}}  
     | {{ns:Template}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Template documentation
     | {{ns:Template}} = [[File:Template-info.jpg|50px|link=|alt=Documentation icon]] Template documentation
     | {{ns:File}} = Summary
     | {{ns:File}} = Summary
     | #default = Documentation
     | #default = Documentation

Latest revision as of 14:50, 7 September 2012

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.