Difference between revisions of "Template:Doc/doc/code/tbl/titleL1L2"

From Apache OpenOffice Wiki
Jump to: navigation, search
(корректировка)
(Добавлена колонка с номером)
Line 3: Line 3:
 
</noinclude>
 
</noinclude>
 
|-
 
|-
 +
| style="border-right: 1px dotted"|{{{nom|{{{nom|}}}}}}
 
!colspan="2" |
 
!colspan="2" |
{{#switch: {{{level|{{{3}}}}}}
+
{{#switch: {{{level|{{{level}}}}}}
 
|2          =
 
|2          =
=={{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}==
+
=={{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}==
 
|3          =
 
|3          =
==={{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}===
+
==={{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}===
 
|4          =
 
|4          =
===={{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}====
+
===={{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}====
 
|5          =
 
|5          =
====={{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}=====
+
====={{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}=====
 
|6          =
 
|6          =
======{{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}======
+
======{{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}======
 
| #default  =
 
| #default  =
=={{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}==
+
=={{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}==
 
}}
 
}}

Revision as of 16:34, 15 September 2010

Документация Документация    —    Documentation
РУС ENG
'

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

Шаблон для формирования заголовков заданного уровня внутри страниц документации. Поддерживаемые уровни — от 2 до 6. Первый уровень отводится заголовку статьи, поэтому не используется в шаблоне. This template is used for generating headings of predetermined levels in documentation pages. Allowed levels are 2 to 6. The top-level heading is automatically generated and gives the article title, so it cannot be used in the template.


'

Параметры    —    Parameters

Имеет три именованных параметра, два обязательных и третий опциональный:
  1. l1 — Заголовок на русском (национальном) языке;
  2. l2 — Заголовок на английском языке;
  3. level — уровень заголовка. Обозначается цифрами от 2 до 6.
Has three named parameters, two required and one optional:
  1. l1 is a National language heading;
  2. l2 is an English language heading;
  3. level is a heading level. Specified by an integer 2 to 6.


'

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

Используется только вместе с шаблонами:

так как содержит часть кода формирования таблицы.

{{Doc/doc/code/tbl/titleL1L2
 |l1=Научный принцип
 |l2=Scientific principle
 |level=3
}}
It is used only with following templates:

because it contains part of a table code.

{{Doc/doc/code/tbl/titleL1L2
 |l1=Научный принцип
 |l2=Scientific principle
 |level=3
}}


'

Пример    —    Example

Шаблон    —    template Результат    —    result
{{Doc/doc/code/tbl/titleL1L2
 |l1=Научный принцип
 |l2=Scientific principle
 |level=3}}
'

Научный принцип    —    Scientific principle

|- | style="border-right: 1px dotted"| !colspan="2" |

{{{l1}}}    —    {{{l2}}}

Personal tools