Template:SectionLink
Критически важный опорный шаблон — Core Critical Template.
Необдуманное вмешательство в шаблон может повлечь за собой разрушение всего проекта! | Unconsidered intervention in the template may result in the destruction of the entire project! |
{{#if: | |}}
{{#ifexist:Template:SectionLink/doc|
№ | РУС | ENG | ||||||
---|---|---|---|---|---|---|---|---|
' |
{{#switch: {{{level}}} |
2 =
Предназначение — Mission |
3 =
Предназначение — Mission |
4 =
Предназначение — Mission |
5 =
Предназначение — Mission |
6 =
Предназначение — Mission |
#default =
Предназначение — Mission}} | |
Данный шаблон предназначен для формирование локализованной ссылки на страницу с содержанием именованной секции этой страницы, в качестве текста ссылки. Рекомендуется использовать его для генерации ссылок с текстом из нестандартных, редко используемых секций. Например, "title2".
Текст ссылки обрамляется парными тэгами секции: {{#if: 1 |<|{{}}section begin=имя_секции /{{#if: 1 |>|}}}} и {{#if: 1 |<|{{}}section end=имя_секции /{{#if: 1 |>|}}}}. |
This template is intended for the formation of localized links to a page with the contents of a named of section of this page as the link text. It is recommended to use it to generate links with the text of the unusual, seldom-used sections. For example, "title2".
The link text is flanked by paired tags section: {{#if: 1 |<|{{}}section begin=section_name /{{#if: 1 |>|}}}} и {{#if: 1 |<|{{}}section end=section_name /{{#if: 1 |>|}}}}.
| |||||||
' |
{{#switch: {{{level}}} |
2 =
Параметры — Parameters |
3 =
Параметры — Parameters |
4 =
Параметры — Parameters |
5 =
Параметры — Parameters |
6 =
Параметры — Parameters |
#default =
Параметры — Parameters}} | |
Используется два обязательных параметра
|
Use 2 parameter
| |||||||
' |
{{#switch: {{{level}}} |
2 =
Инструкция по использованию — Operation manual |
3 =
Инструкция по использованию — Operation manual |
4 =
Инструкция по использованию — Operation manual |
5 =
Инструкция по использованию — Operation manual |
6 =
Инструкция по использованию — Operation manual |
#default =
Инструкция по использованию — Operation manual}} | |
Например: Есть страница RU/kb/page1. Локализованное название (секция title): "Страница 1". Альтернативное название (секция title2): "Страница 2". Добавляем секцию title2: <section begin=title2 />Страница 2<section end=title2 /> Код для вставки на страницу: {{SectionLink|RU/kb/page1|title2}} Результат: [[RU/kb/page1|Страница 2]] |
Example: There is a page RU/kb/page1. Localised name (section title) is "Page 1 ". Alternative name (section title2) is "Page 2 ". Add title2 section in RU/kb/page1: <section begin=title2 />Page 2<section end=title2 /> Embed page: {{SectionLink|RU/kb/page1|title2}} Result: [[RU/kb/page1|Page 2]]
| |||||||
' |
{{#switch: {{{level}}} |
2 =
Шаблон основан на следующих шаблонах — Parent templates |
3 =
Шаблон основан на следующих шаблонах — Parent templates |
4 =
Шаблон основан на следующих шаблонах — Parent templates |
5 =
Шаблон основан на следующих шаблонах — Parent templates |
6 =
Шаблон основан на следующих шаблонах — Parent templates |
#default =
Шаблон основан на следующих шаблонах — Parent templates}} | |
<Перечень родительских шаблонов / List of parenting templates> | <List of parenting templates>
| |||||||
' |
{{#switch: {{{level}}} |
2 =
Дочерние шаблоны — Subsidiaries templates |
3 =
Дочерние шаблоны — Subsidiaries templates |
4 =
Дочерние шаблоны — Subsidiaries templates |
5 =
Дочерние шаблоны — Subsidiaries templates |
6 =
Дочерние шаблоны — Subsidiaries templates |
#default =
Дочерние шаблоны — Subsidiaries templates}} | |
<Перечень дочерних шаблонов / List of subsidiaries templates> | <List of subsidiaries templates>
| |||||||
' |
{{#switch: {{{level}}} |
2 =
Пример — Example |
3 =
Пример — Example |
4 =
Пример — Example |
5 =
Пример — Example |
6 =
Пример — Example |
#default =
Пример — Example}} | |
|
|{{#ifexist:Template:{{{1}}}|{{{{{1}}}}}|
Этому шаблону не хватает документации (подстраницы ./doc). | This pattern is not enough documentation (subpage ./doc). | |
Вы можете помочь проекту, сделав описание шаблона: что он делает, как его использовать, какие параметры он принимает. Это поможет другим людям использовать его. Для оформления можете воспользоваться {{doc}}. Не забывайте помещать описание внутрь {{#if: 1 |<|{{}}noinclude{{#if: 1 |>|}}}}{{#if: 1 |<|{{}}/noinclude{{#if: 1 |>|}}}}. |
You can help by making the description of a template: what it does, how to use it, what parameters it takes. This will help other people to use it. For decor you can use {{doc}}. Do not forget to put the description into {{#if: 1 |<|{{}}noinclude{{#if: 1 |>|}}}}{{#if: 1 |<|{{}}/noinclude{{#if: 1 |>|}}}}. |
{{#vardefine:NewPage|Template:SectionLink/doc}}
|
{{#if:||{{#ifeq:Template|Template||}}}}}}}}