Template:/doc: Difference between revisions

Line 3: Line 3:


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]].
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 content and you would like to stop it going over the documentation, put {{tl|doc/start|clear}} instead of {{tl|doc/start}} on your documentation page.<br />
This is also useful for templates not using &lt;includeonly&gt;, 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 {{tl|doc/start|nodoc{{=}}1}} (or if the template needs clear as well, {{tl|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]].

Revision as of 18:11, 3 April 2012

Template-info.png Documentation

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 your main template page and put <noinclude>{{/doc}}</noinclude> on a newline after the end of the template. /doc pages will automatically be added to Category:Documentation templates.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis