Difference between revisions of "Template:Documentation"
m |
|||
Line 8: | Line 8: | ||
<div style="clear: both; margin:0.25em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;"> | <div style="clear: both; margin:0.25em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;"> | ||
::[[Image:Template_info.png|40px|link={{NAMESPACE}}:{{PAGENAME}}/doc]] ''This [[:Category:Template documentation|documentation]] is transcluded from [[{{{1|{{NAMESPACE}}:{{PAGENAME}}/doc}}}]]''. | ::[[Image:Template_info.png|40px|link={{NAMESPACE}}:{{PAGENAME}}/doc]] ''This [[:Category:Template documentation|documentation]] is transcluded from [[{{{1|{{NAMESPACE}}:{{PAGENAME}}/doc}}}]]''. | ||
− | </div> |<!-- no /doc --> }}</includeonly>__NOEDITSECTION__<noinclude> | + | </div> |<!-- no /doc --> }}<!-- |
+ | -->{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop|{{protected|small=1}}|}}</includeonly>__NOEDITSECTION__<noinclude> | ||
== Usage == | == Usage == | ||
* Place {{tl|Template doc}} inside {{code|<noinclude>}} tags on a template page to display [[:Category:Template documentation|template documentation]]. | * Place {{tl|Template doc}} inside {{code|<noinclude>}} tags on a template page to display [[:Category:Template documentation|template documentation]]. |
Revision as of 02:53, 29 September 2010
Documentation for Documentation
Usage
- Place
{{Template doc}}
insidetags on a template page to display template documentation.
- Generally template documentation should only be used on complex templates with multiple parameters. The majority of templates won't need a separate documentation subpage.
- If you want to have documentation displayed without a subpage, but with the green box, use
{{Doc begin}}
.