Difference between revisions of "Template:SecToc"

From Apache OpenOffice Wiki
Jump to: navigation, search
({{CoreCriticalTemplate}})
(-SectionLink)
Line 1: Line 1:
<includeonly>{{SectionLink|{{{1}}}|toc}}<!-- старый шаблон [[{{{1}}}|{{#lst:{{{1}}}|toc}}]] --></includeonly><noinclude>{{CoreCriticalTemplate}}{{doc}}
+
<includeonly>[[{{{1}}}|{{#lst:{{{1}}}|toc}}]]</includeonly><noinclude>{{CoreCriticalTemplate}}{{doc}}
 
[[Category:RU/wiki templates]]
 
[[Category:RU/wiki templates]]
 
</noinclude>
 
</noinclude>

Revision as of 20:30, 29 September 2010

CoreCriticalTemplate.png  Критически важный опорный шаблон    —    Core Critical Template.  

Необдуманное вмешательство в шаблон может повлечь за собой разрушение всего проекта! Unconsidered intervention in the template may result in the destruction of the entire project!
Документация Документация    —    Documentation
РУС ENG
'

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

SecToc = Section toc SecToc = Section toc
Данный шаблон предназначен для вставки содержимого секции toc со страницы, адрес которой указывается в качестве первого параметра. В проекте RU/kb, содержимое секции toc зарезервированно для списка подстраниц или коллекции ссылок на документы по теме текущей страницы. Также может использоваться для экспорта анонса страницы. Содержимое секции вставляется без каких-либо модификаций и оформления. This template includes content of toc section from page, which name used in first parameter. In RU/kb project, toc section reserved for table of content - list of subpages or list of thematical links. Also, you can use this section for anounce part of a page. Section content includes by this template as is.


'

Параметры    —    Parameters

Используется один параметр
  1. - обязательный - URL страницы.
Use one parameter
  1. - Mandatory - URL page.


'

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

Documentation caution.png Для использования шаблона требуются предварительно подготовленные страницы.

Например:

Есть страница RU/kb/page1.

Локализованное название "Страница 1".

Структуру страницы нужно привести к следующему виду:


<section begin=toc />
... Текст секции ...
<section end=toc />

Код для вставки на страницу:

{{SecToc|RU/kb/page1}}

Результат:

... Текст секции ...
Documentation caution.png To use a template requires pre-prepared pages.

Example:

There is a page RU/kb/page1.

Localised name of "Page 1 ".

The structure of the page should lead to the following form:


<section begin=toc />
... Текст секции ...
<section end=toc />

Embed page:

{{SecToc|RU/kb/page1}}

Result:

... Текст секции ...


'

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

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


'

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

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


'

Пример    —    Example

Шаблон    —    template Результат    —    result
Personal tools