Difference between revisions of "Template:RUDocToc"
m |
m |
||
Line 7: | Line 7: | ||
<div id="bookid" style="border:1px solid #9BC0F5; padding: 0px; font-size: xx-small; background-color: #ebf5fb; text-align: center;"> | <div id="bookid" style="border:1px solid #9BC0F5; padding: 0px; font-size: xx-small; background-color: #ebf5fb; text-align: center;"> | ||
<div id="doc_toctitle" class="docooo_toctitle docsection"> | <div id="doc_toctitle" class="docooo_toctitle docsection"> | ||
− | {{#if: {{{1|}}} |Содержание | <!-- | + | {{#if: {{{1|}}} |Содержание | <!-- |
+ | ------------------------------------------------------------------------------------------- | ||
+ | Если вызов с параметром, значит оглавление книги. | ||
+ | Первый блок вырождается в слово "Содержание". | ||
+ | |||
+ | Если вызов без параметров, значит навигация внутри книги. | ||
+ | Вставляем название книги и навигацию по соседним главам | ||
------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ||
Заголовок блока = секция bookname одного из родительских разделов. | Заголовок блока = секция bookname одного из родительских разделов. | ||
Line 18: | Line 24: | ||
------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ||
− | --> | + | Таблица с навигацией назад-вперёд для верхнего уровня (глав книги) |
− | {|border=0 width=100% style="background-color:none;" | + | !!! Пока не отлажена |
+ | -->{|border=0 width=100% style="background-color:none;" | ||
|- | |- | ||
|style="text-align:left;"|← {{#lst:{{#rel2abs: ..}}|prev}} | |style="text-align:left;"|← {{#lst:{{#rel2abs: ..}}|prev}} | ||
Line 28: | Line 35: | ||
------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ||
--></div> | --></div> | ||
− | |||
− | |||
<div id="tocbody" class="docooo_tocbody" style="padding: 6px; text-align: left;"><!-- | <div id="tocbody" class="docooo_tocbody" style="padding: 6px; text-align: left;"><!-- | ||
------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ||
Line 35: | Line 40: | ||
-->{{#lst:{{#rel2abs: .}}|toc}}<!-- | -->{{#lst:{{#rel2abs: .}}|toc}}<!-- | ||
------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ||
− | --> </div> | + | --> </div><!-- |
− | {|border=0 width=100% | + | |
+ | ------------------------------------------------------------------------------------------- | ||
+ | Таблица с навигацией назад-вперёд для текущего уровня | ||
+ | -->{|border=0 width=100% | ||
|- | |- | ||
|style="text-align:left;"|<!-- если существует ссылка на предыдущую статью | |style="text-align:left;"|<!-- если существует ссылка на предыдущую статью |
Revision as of 19:24, 13 October 2010
Критически важный опорный шаблон — Core Critical Template.
Необдуманное вмешательство в шаблон может повлечь за собой разрушение всего проекта! | Unconsidered intervention in the template may result in the destruction of the entire project! |
{{#if: | |}}
{{#ifexist:Template:RUDocToc/doc|
№ | РУС | ENG | ||||||
---|---|---|---|---|---|---|---|---|
' |
{{#switch: {{{level}}} |
2 =
Предназначение — Mission |
3 =
Предназначение — Mission |
4 =
Предназначение — Mission |
5 =
Предназначение — Mission |
6 =
Предназначение — Mission |
#default =
Предназначение — Mission}} | |
Этот шаблон зарезервирован для оформления навигации по книгам и руководствам. | This template reserved for navigation block in books and guides
| |||||||
' |
{{#switch: {{{level}}} |
2 =
Параметры — Parameters |
3 =
Параметры — Parameters |
4 =
Параметры — Parameters |
5 =
Параметры — Parameters |
6 =
Параметры — Parameters |
#default =
Параметры — Parameters}} | |
<Описание параметров шаблона на национальном языке / Description of the template parameters in the national language> | <Description of the template parameters in English>
| |||||||
' |
{{#switch: {{{level}}} |
2 =
Инструкция по использованию — Operation manual |
3 =
Инструкция по использованию — Operation manual |
4 =
Инструкция по использованию — Operation manual |
5 =
Инструкция по использованию — Operation manual |
6 =
Инструкция по использованию — Operation manual |
#default =
Инструкция по использованию — Operation manual}} | |
<Инструкция по использованию шаблона на национальном языке / Instructions for using the template in the national language> | <Instructions for using the template in English> | |||||||
<Инструкция по использованию шаблона на национальном языке / Instructions for using the template in the national language> | <Instructions for using the template in English> | |||||||
<Инструкция по использованию шаблона на национальном языке / Instructions for using the template in the national language> | <Instructions for using the template in English>
| |||||||
' |
{{#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}} | |
}} | ||||||||
{{#if: | ← [[{{#rel2abs: }}|]]}} | {{#if: | [[{{#rel2abs: }}|]] →}} |
|- |{{RUDocToc{{#if:1||1}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||и т. д.}}}}
|
{{#if: 1 |Содержание | {{#if: | [[{{#rel2abs: .}}|]]}}{{#if: | [[{{#rel2abs: ..}}|]]}}{{#if: | [[{{#rel2abs: ../../}}|]]}}{{#if: | [[{{#rel2abs: ../../../}}|]]}}{|border=0 width=100% style="background-color:none;" |- |style="text-align:left;"|← |style="text-align:right;"| → |} }}
|- |style="text-align:left;"|{{#if: | ← [[{{#rel2abs: }}|]]}} |style="text-align:right;"|{{#if: | [[{{#rel2abs: }}|]] →}} |}
|}
|} |{{#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:RUDocToc/doc}}
|
{{#if:||{{#ifeq:Template|Template||}}}}}}}}