Шаблон:Навигационная таблица: различия между версиями

( Новая страница: «<table class="navbox collapsible {{{state|autocollapse}}} nowraplinks" style="margin:auto; {{{style|}}}{{{bodystyle|}}}"> <tr><!-- ---Titlebar--...»)
 
м (1 версия импортирована)
 
(не показана 61 промежуточная версия 20 участников)
Строка 1: Строка 1:
<table class="navbox collapsible {{{state|autocollapse}}} nowraplinks" style="margin:auto; {{{style|}}}{{{bodystyle|}}}">
+
<includeonly>{{#invoke:Navbox|navbox}}</includeonly>{{#ifeq: {{NAMESPACE}} | Шаблон
<tr><!--
+
| {{#switch: {{{1|{{{border|}}}}}}
 
+
  | child | subgroup | none =
---Titlebar---
+
  | {{#ifeq: {{{имя|{{{name|}}}}}} | {{PAGENAME}}
--><th colspan="{{#if:{{{изображение|}}}|3|2}}" style="text-align:center;width:100%;{{{titlestyle|}}}"><!--
+
    |
--><div style="float:left; width:6em; text-align:left;">{{#switch:{{{navbar|}}} |plain= |#default={{Tnavbar|{{{имя<noinclude>|Navbox generic</noinclude>}}} |mini=1}}}}</div><span style="font-size:110%;">{{{заголовок}}}</span></th>
+
    | {{#if:{{yesno|{{{tracking|}}}|no=1|yes=|blank=}}
</tr><!--
+
      |
 
+
      | {{#if: {{{имя|{{{name|}}}}}}
---Above (optional)---
+
        | {{#ifeq:{{ROOTPAGENAME}}|Работа недели||{{no-doc|[[Категория:Навигационные шаблоны, у которых нужно проверить параметр Имя]]}}}}
-->{{#if:{{{above|}}} |<tr><td style="{{{abovestyle|}}}" colspan="{{#if:{{{изображение|}}}|3|2}}">{{{above|}}}</td></tr>}}<!--
+
        | [[Категория:Навигационные шаблоны, у которых предположительно недостаёт параметра Имя]]
 
+
        }}
---Groups---
+
      }}
-->{{#if:{{{тело1|}}}|<tr>{{#if:{{{заголовок1|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок1}}}</th>}}
+
    }}
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок1|}}}|1|2}}">{{{тело1}}}</td><!--
+
  }}
 
+
}}<noinclude>
-->{{#if:{{{изображение|}}}|<td rowspan="{{#expr: {{#if:{{{тело1|}}}|1|0}} +{{#if:{{{тело2|}}}|1|0}} +{{#if:{{{тело3|}}}|1|0}} +{{#if:{{{тело4|}}}|1|0}} +{{#if:{{{тело5|}}}|1|0}} +{{#if:{{{тело6|}}}|1|0}} +{{#if:{{{тело7|}}}|1|0}} +{{#if:{{{тело8|}}}|1|0}} +{{#if:{{{тело9|}}}|1|0}} +{{#if:{{{тело10|}}}|1|0}} +{{#if:{{{тело11|}}}|1|0}} +{{#if:{{{тело12|}}}|1|0}} +{{#if:{{{тело13|}}}|1|0}} +{{#if:{{{тело14|}}}|1|0}} +{{#if:{{{тело15|}}}|1|0}} +{{#if:{{{тело16|}}}|1|0}} +{{#if:{{{тело17|}}}|1|0}} +{{#if:{{{тело18|}}}|1|0}} +{{#if:{{{тело19|}}}|1|0}} +{{#if:{{{тело20|}}}|1|0}}}}" <!--
+
{{doc}}
-->style="vertical-align:middle; padding-left:7px; width:0%; {{{imagestyle|}}}">{{{изображение}}}</td>}}</tr>}}<!--
 
 
 
-->{{#if:{{{тело2|}}}|<tr>{{#if:{{{заголовок2|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок2}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок2|}}}|1|2}}">{{{тело2}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело3|}}}|<tr>{{#if:{{{заголовок3|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок3}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок3|}}}|1|2}}">{{{тело3}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело4|}}}|<tr>{{#if:{{{заголовок4|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок4}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок4|}}}|1|2}}">{{{тело4}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело5|}}}|<tr>{{#if:{{{заголовок5|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок5}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок5|}}}|1|2}}">{{{тело5}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело6|}}}|<tr>{{#if:{{{заголовок6|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок6}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок6|}}}|1|2}}">{{{тело6}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело7|}}}|<tr>{{#if:{{{заголовок7|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок7}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок7|}}}|1|2}}">{{{тело7}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело8|}}}|<tr>{{#if:{{{заголовок8|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок8}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок8|}}}|1|2}}">{{{тело8}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело9|}}}|<tr>{{#if:{{{заголовок9|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок9}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок9|}}}|1|2}}">{{{тело9}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело10|}}}|<tr>{{#if:{{{заголовок10|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок10}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок10|}}}|1|2}}">{{{тело10}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело11|}}}|<tr>{{#if:{{{заголовок11|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок11}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок11|}}}|1|2}}">{{{тело11}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело12|}}}|<tr>{{#if:{{{заголовок12|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок12}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок12|}}}|1|2}}">{{{тело12}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело13|}}}|<tr>{{#if:{{{заголовок13|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок13}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок13|}}}|1|2}}">{{{тело13}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело14|}}}|<tr>{{#if:{{{заголовок14|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок14}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок14|}}}|1|2}}">{{{тело14}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело15|}}}|<tr>{{#if:{{{заголовок15|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок15}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок15|}}}|1|2}}">{{{тело15}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело16|}}}|<tr>{{#if:{{{заголовок16|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок16}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок16|}}}|1|2}}">{{{тело16}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело17|}}}|<tr>{{#if:{{{заголовок17|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок17}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок17|}}}|1|2}}">{{{тело17}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело18|}}}|<tr>{{#if:{{{заголовок18|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок18}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок18|}}}|1|2}}">{{{тело18}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело19|}}}|<tr>{{#if:{{{заголовок19|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок19}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{oddstyle|}}}" colspan="{{#if:{{{заголовок19|}}}|1|2}}">{{{тело19}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{тело20|}}}|<tr>{{#if:{{{заголовок20|}}}|<th style="white-space:nowrap;{{{groupstyle|}}}">{{{заголовок20}}}</th>}}
 
<td style="width:100%;{{{liststyle|}}}{{{evenstyle|}}}" colspan="{{#if:{{{заголовок20|}}}|1|2}}">{{{тело20}}}</td></tr>}}<!--
 
 
 
---Below (optional)---
 
-->{{#if:{{{below|}}}|<tr><td style="{{{belowstyle|}}}" colspan="{{#if:{{{изображение|}}}|3|2}}">{{{below|}}}</td></tr>}}<!--
 
 
 
--></table><noinclude>
 
{{template doc}}
 
<!-- Добавляйте категории и интервики не здесь, а на подстраницу /doc! -->
 
 
</noinclude>
 
</noinclude>

Текущая версия от 19:52, 6 сентября 2024

Документация