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
Zackmann08 (talk | contribs) No edit summary |
No edit summary |
||
Line 20: | 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. | ||
[[Category:Template documentation]] |
Revision as of 19:19, 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.