Difference between revisions of "Template:RUDocToc"
From Apache OpenOffice Wiki
(Поправил код, добавил комментариев, убрал ссылки на верхний уровень) |
(-{{CoreCriticalTemplate}}) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude>{{doc}} |
− | [[Category:RU/ | + | [[Category:RU/wiki_templates/not_used]] |
</noinclude><includeonly><div id="tocwrapper" clear:both; class="docooo_tocwrapper" style="float:right; width: 23%; padding: 0px; border: 3px solid #fff; border-left: 20px solid #fff; border-bottom: 20px solid #fff; margin-left: 3px; margin-bottom: 20px; margin-top: -5px;"> | </noinclude><includeonly><div id="tocwrapper" clear:both; class="docooo_tocwrapper" style="float:right; width: 23%; padding: 0px; border: 3px solid #fff; border-left: 20px solid #fff; border-bottom: 20px solid #fff; margin-left: 3px; margin-bottom: 20px; margin-top: -5px;"> | ||
Line 22: | Line 22: | ||
-->{{#if: {{#lst:{{#rel2abs: ../../..}}|bookname}} | {{SectionLink|{{#rel2abs: ../../..}}|bookname}}}}<!-- Если выше на три уровня | -->{{#if: {{#lst:{{#rel2abs: ../../..}}|bookname}} | {{SectionLink|{{#rel2abs: ../../..}}|bookname}}}}<!-- Если выше на три уровня | ||
------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ||
− | --></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 38: | Line 38: | ||
!!! В секциях prev и next ДОЛЖНА ИСПОЛЬЗОВАТЬСЯ ОТНОСИТЕЛЬНАЯ АДРЕСАЦИЯ!!! | !!! В секциях prev и next ДОЛЖНА ИСПОЛЬЗОВАТЬСЯ ОТНОСИТЕЛЬНАЯ АДРЕСАЦИЯ!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
+ | |||
+ | Проверки не срабатывают, нужно убрать вложенность циклов... | ||
-->{{#if: {{#lst: {{#rel2abs: .}}|prev}} | <!-- если существует ссылка на предыдущую статью | -->{{#if: {{#lst: {{#rel2abs: .}}|prev}} | <!-- если существует ссылка на предыдущую статью | ||
− | -->← {{#if: {{{1|}}} | + | -->← {{#if: {{{1|}}} {{!}} <!-- Если шаблон вызван с параметром, |
− | -->[[{{#rel2abs: {{#lst: {{#rel2abs: .}}|prev}}}}|Назад]] | + | -->[[{{#rel2abs: {{#lst: {{#rel2abs: .}}|prev}}}}|Назад]] {{!}}<!-- выводим статичный текст |
-->{{SecTitle|{{#rel2abs: {{#lst: {{#rel2abs: .}}|prev}}}}}}<!-- иначе, выводим название страницы | -->{{SecTitle|{{#rel2abs: {{#lst: {{#rel2abs: .}}|prev}}}}}}<!-- иначе, выводим название страницы | ||
-->}}<!-- | -->}}<!-- |
Latest revision as of 11:16, 1 May 2011
Документация — Documentation
№ | РУС | ENG | ||||||
---|---|---|---|---|---|---|---|---|
' |
Предназначение — Mission | |||||||
Этот шаблон зарезервирован для оформления навигации по книгам и руководствам. | This template reserved for navigation block in books and guides
| |||||||
' |
Параметры — Parameters | |||||||
<Описание параметров шаблона на национальном языке / Description of the template parameters in the national language> | <Description of the template parameters in English>
| |||||||
' |
Инструкция по использованию — 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>
| |||||||
' |
Шаблон основан на следующих шаблонах — Parent templates | |||||||
<Перечень родительских шаблонов / List of parenting templates> | <List of parenting templates>
| |||||||
' |
Дочерние шаблоны — Subsidiaries templates | |||||||
<Перечень дочерних шаблонов / List of subsidiaries templates> | <List of subsidiaries templates>
| |||||||
' |
Пример — Example | |||||||
|