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

From Apache OpenOffice Wiki
Jump to: navigation, search
(Тестирование шаблона)
(Корректировка оформления)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>{{doc}}
 +
[[Category:RU/wiki templates:Doc|{{PAGENAME}}]]
 +
</noinclude>
 
|-
 
|-
 +
|'''{{{nom|{{{nom|}}}}}}'''
 
!colspan="2" |
 
!colspan="2" |
{{#switch:{{level:{{{3}}}}}
+
{{#switch: {{{level|{{{level}}}}}}
| 2          =
+
|2          =
== Уровень 2 {{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}==
+
=={{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}==
| 3          =
+
|3          =
=== Уровень 3 {{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}===
+
==={{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}===
| 4          =
+
|4          =
==== Уровень 4 {{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}====
+
===={{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}====
| 5          =
+
|5          =
===== Уровень 5 {{{l1|{{{1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{2}}}}}}=====
+
====={{{l1|{{{l1}}}}}}{{Doc/doc/code/tbl/titleSeparator}}{{{l2|{{{l2}}}}}}=====
| 6          =
+
|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}}}}}}==
}}<noinclude>
+
}}
[[Category:RU/wiki templates:Doc|{{PAGENAME}}]]
+
</noinclude>
+

Latest revision as of 11:44, 25 October 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

|- |' !colspan="2" |

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

Personal tools