Template:Doc

To use, create a sub-page from the template called Doc, put Doc/Start at the start of your documentation, and Doc/End at the end.

Go back to the main template page and put doc on a new line after the end of the template. /doc pages will automatically be added to Category:Documentation templates.

clear
If the main template page has floating content that must be prevented from going over the documentation, put instead of Doc/Start on the documentation page. This is also useful for templates not using, as it will put some space between the template and the documentation box.

nodoc=1
If a template has no documentation and the editor does not know how to use it, put (or if the template needs clear as well, ) instead of Doc/Start on the documentation page. The documentation's background will become red to make it more noticeable, and the page will be added to.

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. The documentation's background will become yellow to make it more noticeable, and the page will be added to.

If both nodoc and baddoc are specified, baddoc will be ignored.