Difference between revisions of "Template:Documentation"
(New page: <noinclude><div style="display:none;"></noinclude><div style="border:1px solid black; margin:1em 3em 3em 3em; clear: both;"><div style="background:#ddd; color:#111; padding:0.5em; margin:0...) |
(saving space) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude><div style="display:none;"></noinclude><div style="border:1px solid black; margin:1em 3em 3em 3em; clear: both;"><div style="background:#ddd; color:#111; padding:0.5em; margin:0em;">'''Template documentation''' <span style="font-size:85%;">(for the template shown above, sometimes hidden or invisible)</span></div><div style="padding:1em; padding-bottom | <noinclude><div style="display:none;"></noinclude><div style="border:1px solid black; margin:1em 3em 3em 3em; clear: both;"><div style="background:#ddd; color:#111; padding:0.5em; margin:0em;">'''Template documentation''' <span style="font-size:85%;">(for the template shown above, sometimes hidden or invisible)</span></div><div style="padding:1em; padding-bottom:0em;">{{tocright}} | ||
{{{{PAGENAME}}/doc}} | {{{{PAGENAME}}/doc}} | ||
</div><br style="clear:both;"/><div style="background:#ddd; color:#111; padding:0.5em; margin:0em; font-size:85%; text-align:right;">Visit [[Template:{{PAGENAME}}/doc]] to edit this text! ([[Template:Documentation|How does this work]]?)</div></div><noinclude></div> | </div><br style="clear:both;"/><div style="background:#ddd; color:#111; padding:0.5em; margin:0em; font-size:85%; text-align:right;">Visit [[Template:{{PAGENAME}}/doc]] to edit this text! ([[Template:Documentation|How does this work]]?)</div></div><noinclude></div> | ||
Line 6: | Line 6: | ||
[[Category:Notice templates|{{PAGENAME}}]] | [[Category:Notice templates|{{PAGENAME}}]] | ||
[[Category:Template documentation| ]] | [[Category:Template documentation| ]] | ||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 11:57, 30 September 2021
This is the {{documentation}} template used on a template page to contain that template's documented instructions and information.
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 do so.
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.
Use of this template allows templates to be protected, where necessary, while allowing anyone to edit the documentation and categories.
Usage
Normally, this template is used without any parameters, and is placed at the bottom of the template page or other page being documented.