Difference between revisions of "Template:SecToc"

From Apache OpenOffice Wiki
Jump to: navigation, search
(-SectionLink)
(добавил комментарий)
Line 1: Line 1:
<includeonly>[[{{{1}}}|{{#lst:{{{1}}}|toc}}]]</includeonly><noinclude>{{CoreCriticalTemplate}}{{doc}}
+
<!--
 +
Eng:
 +
"Optimization" by replacing code with SectionLink template calling is STRICTLY PROHIBITED!
 +
 
 +
SectionLink directly used to insert link with text from section with unusual section-name. For example, section
 +
title2, with alternative article title. This template using rarely and all articles whith unusial sections could be find in page "Links here": http://wiki.services.openoffice.org/wiki/Special:WhatLinksHere/Template:SectionLink.
 +
This auto monitoring functionality will be lost, if SectionLinks will be using in other templates.
 +
 
 +
Rus:
 +
ЗАПРЕЩЕНО "оптимизировать" этот шаблон, путём подстановки в код вызова шаблона SectionLink!
 +
 
 +
SectionLink используется напрямую для вставки содержимого нестандартных секций. Например, секции title2 для вставки альтернативного заголовка статьи. Этот шаблон используется редко, что позволяет отслеживать список всех статей с нестандартными секциями через механизм "Ссылки сюда": http://wiki.services.openoffice.org/wiki/Special:WhatLinksHere/Template:SectionLink. Если SectionLink будет использоваться в других шаблонах, такая возможность автомониторинга будет утеряна.
 +
 
 +
--><includeonly>[[{{{1}}}|{{#lst:{{{1}}}|toc}}]]</includeonly><noinclude>{{CoreCriticalTemplate}}{{doc}}
 
[[Category:RU/wiki templates]]
 
[[Category:RU/wiki templates]]
 
</noinclude>
 
</noinclude>

Revision as of 09:00, 30 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