Content added Content deleted
FruitLoops (talk | contribs) (Created page with "<noinclude>{{doc/start}} To use, create a sub-page from the template called '''doc''', put {{tl|doc/start}} at the start of your documentation, and {{tl|doc/end}} at the end. Go back to your main template page and put <noinclude>{{tl|doc}}</noinclude> on a newline after the end of the template. /doc pages will automatically be added to Category:Documentation templates. == Optional parameters == === clear === If your main template page has floating cont...") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="doc-header">'''Template Documentation'''<span style="font-size:0.8em; text-align:right; float:right">[{{fullurl:{{FULLPAGENAME}}/Documentation|action=edit}} Edit This Documentation]</span></div> |
|||
⚫ | |||
<div class="doc-content">{{{{FULLPAGENAME}}/Documentation}}{{clear}} |
|||
To use, create a sub-page from the template called '''doc''', put {{tl|doc/start}} at the start of your documentation, and {{tl|doc/end}} at the end. |
|||
----- |
|||
<span style="font-style:italic">This documentation is automatically transcluded from [[{{FULLPAGENAME}}/Documentation]] and is not included when this page is transcluded.</span></div></includeonly><noinclude>{{Documentation}} |
|||
Go back to your main template page and put <noinclude>{{tl|doc}}</noinclude> on a newline after the end of the template. /doc pages will automatically be added to [[:Category:Documentation templates]]. |
|||
[[Category:Universal]] |
|||
[[Category:Template Documentation]] |
|||
== Optional parameters == |
|||
⚫ | |||
=== clear === |
|||
If your main template page has floating content and you would like to stop it going over the documentation, put {{tlx|doc/start|clear}} instead of {{tl|doc/start}} on your documentation page.<br> |
|||
This is also useful for templates not using <includeonly>, as it will put some space between the template and the documentation box. |
|||
=== nodoc=1 === |
|||
If a template has no documentation and you don't know how to use it, put {{tlx|doc/start|nodoc{{=}}1}} (or if the template needs clear as well, {{tlx|doc/start|clear|nodoc{{=}}1}}) instead of {{tl|doc/start}} on your documentation page.<br> |
|||
The documentation's background will become red to make it more noticeable, and the page will be added to [[:Category:Templates with no documentation]]. |
|||
=== baddoc=1 === |
|||
Similar to nodoc, this is used to mark templates that '''do''' have documentation, but it isn't very good. This can mean it doesn't have enough examples, doesn't explain all the functions properly, or doesn't explain the point of the template properly.<br> |
|||
The documentation's background will become yellow to make it more noticeable, and the page will be added to [[:Category:Templates with bad documentation]]. |
|||
If both nodoc and baddoc are specified, baddoc will be ignored. |
|||
</div> |
Revision as of 03:56, 2 February 2022
Template DocumentationEdit This Documentation
==Usage==
Include
This documentation is automatically transcluded from Template:Doc/Documentation and is not included when this page is transcluded.
{{Documentation}}
or {{Doc}}
at the bottom of a template to transclude the Documentation subpage.
This documentation is automatically transcluded from Template:Doc/Documentation and is not included when this page is transcluded.