Template:Doc

From Apache OpenOffice Wiki
Jump to: navigation, search
{{#ifexist:{{#rel2abs:Template:Doc/doc}}|{{#ifeq:|yes||[просмотр|review] }}[[{{fullurl:{{#rel2abs:Template:Doc/doc}}|action=edit}} править|edit]] {{#ifeq:|yes||[[{{fullurl:{{#rel2abs:Template:Doc/doc}}|action=history}} история|history]]}}|[[{{fullurl:{{#rel2abs:Template:Doc/doc}}|action=edit&redlink=1}} создать|create]]}} {{#ifeq:yes|yes||[[{{fullurl:{{#rel2abs:Template:Doc/doc}}|action=watch}} следить|watch]] }}[обновить|purge]
Документация Документация    —    Documentation

{{#ifexist:Template:Doc/doc|

РУС ENG
'

{{#switch: {{{level}}}

2 =

Предназначение    —    Mission

3 =

Предназначение    —    Mission

4 =

Предназначение    —    Mission

5 =
Предназначение    —    Mission
6 =
Предназначение    —    Mission
#default =

Предназначение    —    Mission

}}

Включает подстраницу с документаций для текущего шаблона. Точнее, включает шаблон название страницы/doc. Работает также и в обсуждении шаблона, то есть включает одну и ту же страницу как из шаблона, так и из его обсуждения. И всё же включение документации в обсуждение является нежелательным. Includes sub with the documentation for the current template. Specifically, the template includes the page title/doc. Works well in the discussion template that is comprised of one and the same page as a template, and from its discussion. Yet the inclusion of documentation in the discussion is undesirable.


'

{{#switch: {{{level}}}

2 =

Параметры    —    Parameters

3 =

Параметры    —    Parameters

4 =

Параметры    —    Parameters

5 =
Параметры    —    Parameters
6 =
Параметры    —    Parameters
#default =

Параметры    —    Parameters

}}

Шаблон поддерживает необязательный параметр. При вводе {{doc{{#if:Полное название страницы||Полное название страницы}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||и т. д.}}}} вместо страницы /doc будет включена любая необходимая. Это удобно для создания общей документации для однотипных шаблонов. Template supports an optional parameter. If you enter {{doc{{#if:Full page name||Full page name}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||и т. д.}}}} instead of the page /doc will be included either a necessary one. This is useful for creating a common document for similar patterns.


'

{{#switch: {{{level}}}

2 =

Инструкция по использованию    —    Operation manual

3 =

Инструкция по использованию    —    Operation manual

4 =

Инструкция по использованию    —    Operation manual

5 =
Инструкция по использованию    —    Operation manual
6 =
Инструкция по использованию    —    Operation manual
#default =

Инструкция по использованию    —    Operation manual

}}

Проще всего вставить вызов этого шаблона, а потом перейти по появившейся ссылке и создать или скопировать туда документацию. Достаточно добавить код <noinclude>{{doc}}</noinclude>. The easiest way to insert a call to this template, and then click on a link and create or copy the documents. Simply add the code <noinclude>{{doc}}</noinclude>.
Документация шаблона {{doc}} сформирована по тому же принципу, так что можно посмотреть код. Documentation template {{doc}} is formed on the same principle, so that you can see the code.
Основная цель выноса документации на отдельную страницу — избежать перегенерации HTML для всех страниц, использующих шаблон, при редактировании его документации. Также это сокращает страницу самого шаблона, что делает редактирование проще. The main purpose of removal of documentation on a separate page - to avoid regeneration HTML for all pages using the template, when editing its documentation. Also, it reduces the page template itself, which makes editing easier.


'

{{#switch: {{{level}}}

2 =

Шаблон основан на следующих шаблонах    —    Parent templates

3 =

Шаблон основан на следующих шаблонах    —    Parent templates

4 =

Шаблон основан на следующих шаблонах    —    Parent templates

5 =
Шаблон основан на следующих шаблонах    —    Parent templates
6 =
Шаблон основан на следующих шаблонах    —    Parent templates
#default =

Шаблон основан на следующих шаблонах    —    Parent templates

}}

<Перечень родительских шаблонов / List of parenting templates> <List of parenting templates>


'

{{#switch: {{{level}}}

2 =

Дочерние шаблоны    —    Subsidiaries templates

3 =

Дочерние шаблоны    —    Subsidiaries templates

4 =

Дочерние шаблоны    —    Subsidiaries templates

5 =
Дочерние шаблоны    —    Subsidiaries templates
6 =
Дочерние шаблоны    —    Subsidiaries templates
#default =

Дочерние шаблоны    —    Subsidiaries templates

}}

<Перечень дочерних шаблонов / List of subsidiaries templates> <List of subsidiaries templates>


'

{{#switch: {{{level}}}

2 =

Пример    —    Example

3 =

Пример    —    Example

4 =

Пример    —    Example

5 =
Пример    —    Example
6 =
Пример    —    Example
#default =

Пример    —    Example

}}

Шаблон    —    template Результат    —    result
{{doc}}

|{{#ifexist:Template:{{{1}}}|{{{{{1}}}}}|

Этому шаблону не хватает документации (подстраницы ./doc).   This pattern is not enough documentation (subpage ./doc).
Вы можете помочь проекту, сделав описание шаблона: что он делает, как его использовать, какие параметры он принимает. Это поможет другим людям использовать его.
Для оформления можете воспользоваться {{doc}}. Не забывайте помещать описание внутрь {{#if: 1 |<|{{}}noinclude{{#if: 1 |>|}}}}{{#if: 1 |<|{{}}/noinclude{{#if: 1 |>|}}}}.
You can help by making the description of a template: what it does, how to use it, what parameters it takes. This will help other people to use it.
For decor you can use {{doc}}. Do not forget to put the description into {{#if: 1 |<|{{}}noinclude{{#if: 1 |>|}}}}{{#if: 1 |<|{{}}/noinclude{{#if: 1 |>|}}}}.

{{#vardefine:NewPage|Template:Doc/doc}}




{{#if:||{{#ifeq:Template|Template||}}}}}}}}

Personal tools