Difference between revisions of "Template:Doc/doc"

From Wiki
Jump to navigationJump to search
(корректировка)
m (23 версии)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>{{docpage}}</noinclude><!--
 
<noinclude>{{docpage}}</noinclude><!--
 
{{#titleparts:{{#rel2abs:}}| | -1 }}--> <!-- Вычленяет последний сегмент имени страницы --><!--
 
{{#titleparts:{{#rel2abs:}}| | -1 }}--> <!-- Вычленяет последний сегмент имени страницы --><!--
-->__NOTOC__{{Doc/doc/code/tbl/begin}}
+
-->__NOTOC__{{Doc/doc/code/tbl/begin
 +
|l1=РУС
 +
}}
 
{{Doc/doc/code/tbl/titleMission}}
 
{{Doc/doc/code/tbl/titleMission}}
 
{{Doc/doc/code/tbl/strL10n
 
{{Doc/doc/code/tbl/strL10n
|l1=Данный шаблон предназначен для вставки в любое место текста названия {{OOo}} первой версии - '''OpenOffice.org&nbsp;1.x'''
+
|l1=Включает подстраницу с документаций для текущего шаблона. Точнее, включает шаблон <code style="white-space:nowrap"><span style="opacity:0.5">название страницы</span>/doc</code>. Работает также и в обсуждении шаблона, то есть включает одну и ту же страницу как из шаблона, так и из его обсуждения. И всё же включение документации в обсуждение является нежелательным.
|l2=This template is designed to be inserted into any place of the text name {{OOo}} the first version - '''OpenOffice.org&nbsp;1.x'''}}
+
|l2=Includes sub with the documentation for the current template. Specifically, the template includes <code style="white-space:nowrap"><span style="opacity:0.5">the page title</span>/doc</code>. 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.
 +
}}
 
{{Doc/doc/code/tbl/titleParameters}}
 
{{Doc/doc/code/tbl/titleParameters}}
 
{{Doc/doc/code/tbl/strL10n
 
{{Doc/doc/code/tbl/strL10n
|l1=В случае, если в тексте следует делать выделение '''OpenOffice.org&nbsp;1.x''' полужирным шрифтом, следует указать параметр.
+
|l1=Шаблон поддерживает необязательный параметр. При вводе {{tlp|doc|Полное название страницы}} вместо страницы <code>/doc</code> будет включена любая необходимая. Это удобно для создания общей документации для однотипных шаблонов.
 
+
|l2=Template supports an optional parameter. If you enter {{tlp|doc|Full page name}} instead of the page <code>/doc</code> will be included either a necessary one. This is useful for creating a common document for similar patterns.
В качестве параметра может быть использован любой символ.
+
}}
|l2=In the event that the text should make a selection '''OpenOffice.org&nbsp;1.x''' bold, it should be an option.
 
 
 
The parameter can be used by any character.}}
 
 
{{Doc/doc/code/tbl/titleOperationManual}}
 
{{Doc/doc/code/tbl/titleOperationManual}}
 
{{Doc/doc/code/tbl/strL10n
 
{{Doc/doc/code/tbl/strL10n
|l1=Вставить ссылку на шаблон в любом месте текста.
+
|l1=Проще всего вставить вызов этого шаблона, а потом перейти по появившейся ссылке и создать или скопировать туда документацию. Достаточно добавить код <code style="white-space:nowrap"><nowiki>&lt;noinclude&gt;{{doc}}&lt;/noinclude&gt;</nowiki></code>.
 
+
|l2=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 <code style="white-space:nowrap"><nowiki>&lt;noinclude&gt;{{doc}}&lt;/noinclude&gt;</nowiki></code>.
При использовании шаблона в заголовках, или внутри тегов {{Tag|DISPLAYTITLE:...}}, следует использовать его с параметром. В качестве параметра можно использовать 1.
+
}}
|l2=Insert a link to the template anywhere in the text.
+
{{Doc/doc/code/tbl/strL10n
 
+
|l1=Документация шаблона {{tl|doc}} сформирована по тому же принципу, так что можно посмотреть код.
When using a template in the headlines or in the tag {{Tag|DISPLAYTITLE:...}}, should use it with a parameter. As an option, you can use 1.}}
+
|l2=Documentation template {{tl|doc}} is formed on the same principle, so that you can see the code.
 +
}}
 +
{{Doc/doc/code/tbl/strL10n
 +
|l1=Основная цель выноса документации на отдельную страницу — избежать перегенерации HTML для всех страниц, использующих шаблон, при редактировании его документации. Также это сокращает страницу самого шаблона, что делает редактирование проще.
 +
|l2=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.
 +
}}
 +
{{Doc/doc/code/tbl/titleParentTemplate}}
 +
{{Doc/doc/code/tbl/strL10n
 +
|l1=<Перечень родительских шаблонов / List of parenting templates>
 +
|l2=<List of parenting templates>
 +
}}
 +
{{Doc/doc/code/tbl/titleSubsidiariesTemplates}}
 +
{{Doc/doc/code/tbl/strL10n
 +
|l1=<Перечень дочерних шаблонов / List of subsidiaries templates>
 +
|l2=<List of subsidiaries templates>
 +
}}
 
{{Doc/doc/code/tbl/titleExample}}
 
{{Doc/doc/code/tbl/titleExample}}
|-
+
{{Doc/doc/code/tbl/exampleBegin}}
| colspan="2" |
+
{{Doc/doc/code/tbl/exampleStrL10n
{| class="prettytable" style="width:100%"
+
  |examp1={{Tl|doc}}
|-
+
  |examp2=
!Шаблон
+
}}
!Результат
+
{{Doc/doc/code/tbl/exampleEnd}}
|-
 
|<nowiki>{{OOo1}}</nowiki>
 
  |{{OOo1}}
 
  |-
 
|<nowiki>{{OOo1|1}}</nowiki>
 
|{{OOo1|1}}
 
|}
 
 
{{Doc/doc/code/tbl/end}}
 
{{Doc/doc/code/tbl/end}}
 
<noinclude>
 
<noinclude>
[[Category:Navigation_templates:for_templates|{{PAGENAME}}]]
+
[[Category:RU/wiki_templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 10:17, 16 June 2011

РУС ENG
'

Предназначение    —    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.


'

Параметры    —    Parameters

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


'

Инструкция по использованию    —    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.


'

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

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


'

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

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


'

Пример    —    Example

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