Шаблон:Doc

Материал из 7 Days to Die Вики
Перейти к: навигация, поиск
Template-info.png Документация

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 Категория:Шаблоны документации.

Optional parameters[править код]

clear[править код]

If your main template page has floating content and you would like to stop it going over the documentation, put {{doc/start}} instead of {{doc/start}} on your documentation page.
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 {{doc/start}} (or if the template needs clear as well, {{doc/start}}) instead of {{doc/start}} on your 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.