Template:Doc: Difference between revisions
Template page
More actions
fandomwiki>007a83 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. ..." |
fandomwiki>Game widow No edit summary |
||
| Line 6: | Line 6: | ||
== Optional parameters == | == Optional parameters == | ||
=== clear === | === clear === | ||
If your main template page has floating content and you would like to stop it going over the documentation, put {{ | 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. | This is also useful for templates not using <includeonly>, as it will put some space between the template and the documentation box. | ||
=== nodoc=1 === | === nodoc=1 === | ||
If a template has no documentation and you don't know how to use it, put {{ | 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]]. | The documentation's background will become red to make it more noticeable, and the page will be added to [[:Category:Templates with no documentation]]. | ||
| Line 20: | Line 20: | ||
</div> | </div> | ||
[[Category:Documentation templates| | [[Category:Documentation templates| ]] | ||
</noinclude><includeonly>{{/doc}}</includeonly> | </noinclude><includeonly>{{/doc}}</includeonly> | ||