Шаблон:Подгруппы навигационной таблицы — различия между версиями

Материал из Вики ВМК МГУ
Перейти к: навигация, поиск
ru>Dima st bk
(отмена правки 79051212 участника Dima st bk (обс))
ru>Dima st bk
(import from enwiki)
Строка 1: Строка 1:
<table style="background-color: transparent; font-size:100%; padding:0; border:none; margin:-2px; text-align:left; {{{bodystyle|}}}">
+
{{Navbox
 +
|name = {{{name|}}}
 +
|state = {{{state|}}}
 +
|navbar = {{{navbar|}}}
 +
|border = {{#if:{{{border|}}}|{{{border}}}|child}}
  
{{#if:{{{list1|}}}     |<tr>
+
|title = {{{title|}}}
{{#if:{{{group1|}}}    |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold; {{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group1style|}}}">{{{group1}}}</td>
+
|above = {{{above|}}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list1style|}}}">|<td colspan="2" style="{{{liststyle|}}}{{{oddstyle|}}}{{{list1style|}}}">}}{{{list1}}}</td>
+
|below = {{{below|}}}
</tr>}}<!--
+
|image = {{{image|}}}
+
|imageleft = {{{imageleft|}}}
-->{{#if:{{{list2|}}}    |<tr>
+
|groupwidth = {{{groupwidth|}}}
{{#if:{{{group2|}}}    |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupevenstyle|}}}{{{group2style|}}}">{{{group2}}}</td>}}
 
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list2style|}}}" {{#if:{{{group2|}}}| |colspan="2"}}>{{{list2}}}</td>
 
</tr>}}<!--
 
  
-->{{#if:{{{list3|}}} |<tr>
+
|group1 = {{#if:{{{group1|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group1}}}</div>}}
{{#if:{{{group3|}}}   |<td style="background:#e6e6ff;white-space:nowrap;text-align:right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group3style|}}}">{{{group3}}}</td>}}
+
|group2 = {{#if:{{{group2|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group2}}}</div>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list3style|}}}" {{#if:{{{group3|}}}| |colspan="2"}}>{{{list3}}}</td>
+
|group3 = {{#if:{{{group3|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group3}}}</div>}}
</tr>}}<!--
+
|group4 = {{#if:{{{group4|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group4}}}</div>}}
 +
|group5 = {{#if:{{{group5|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group5}}}</div>}}
 +
|group6 = {{#if:{{{group6|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group6}}}</div>}}
 +
|group7 = {{#if:{{{group7|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group7}}}</div>}}
 +
|group8 = {{#if:{{{group8|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group8}}}</div>}}
 +
|group9 = {{#if:{{{group9|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group9}}}</div>}}
 +
|group10 = {{#if:{{{group10|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group10}}}</div>}}
 +
|group11 = {{#if:{{{group11|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group11}}}</div>}}
 +
|group12 = {{#if:{{{group12|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group12}}}</div>}}
 +
|group13 = {{#if:{{{group13|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group13}}}</div>}}
 +
|group14 = {{#if:{{{group14|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group14}}}</div>}}
 +
|group15 = {{#if:{{{group15|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group15}}}</div>}}
 +
|group16 = {{#if:{{{group16|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group16}}}</div>}}
 +
|group17 = {{#if:{{{group17|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group17}}}</div>}}
 +
|group18 = {{#if:{{{group18|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group18}}}</div>}}
 +
|group19 = {{#if:{{{group19|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group19}}}</div>}}
 +
|group20 = {{#if:{{{group20|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group20}}}</div>}}
  
-->{{#if:{{{list4|}}} |<tr>
+
|list1 = {{{list1|}}}
{{#if:{{{group4|}}}   |<td style="background:#e6e6ff;white-space:nowrap;text-align:right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupevenstyle|}}}{{{group4style|}}}">{{{group4}}}</td>}}
+
|list2 = {{{list2|}}}
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list4style|}}}" {{#if:{{{group4|}}}| |colspan="2"}}>{{{list4}}}</td>
+
|list3 = {{{list3|}}}
</tr>}}<!--
+
|list4 = {{{list4|}}}
 +
|list5 = {{{list5|}}}
 +
|list6 = {{{list6|}}}
 +
|list7 = {{{list7|}}}
 +
|list8 = {{{list8|}}}
 +
|list9 = {{{list9|}}}
 +
|list10 = {{{list10|}}}
 +
|list11 = {{{list11|}}}
 +
|list12 = {{{list12|}}}
 +
|list13 = {{{list13|}}}
 +
|list14 = {{{list14|}}}
 +
|list15 = {{{list15|}}}
 +
|list16 = {{{list16|}}}
 +
|list17 = {{{list17|}}}
 +
|list18 = {{{list18|}}}
 +
|list19 = {{{list19|}}}
 +
|list20 = {{{list20|}}}
  
-->{{#if:{{{list5|}}} |<tr>
+
|bodyclass = {{{bodyclass|}}}
{{#if:{{{group5|}}}    |<td style="background:#e6e6ff;white-space:nowrap;text-align:right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group5style|}}}">{{{group5}}}</td>}}
+
|titleclass = {{{titleclass|}}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list5style|}}}" {{#if:{{{group5|}}}| |colspan="2"}}>{{{list5}}}</td>
+
|aboveclass = {{{aboveclass|}}}
</tr>}}<!--
+
|belowclass = {{{belowclass|}}}
 +
|groupclass = {{{groupclass|}}}
 +
|listclass = {{{listclass|}}}
  
-->{{#if:{{{list6|}}} |<tr>
+
|style = {{{style|}}}{{{bodystyle|}}}
{{#if:{{{group6|}}}   |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupevenstyle|}}}{{{group6style|}}}">{{{group6}}}</td>}}
+
|imageleftstyle = {{{imageleftstyle|}}}
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list6style|}}}" {{#if:{{{group6|}}}| |colspan="2"}}>{{{list6}}}</td>
+
|imagestyle = {{{imagestyle|}}}
</tr>}}<!--
+
|titlestyle = {{{titlestyle|}}}
 +
|basestyle = {{{basestyle|}}}
 +
|abovestyle = {{{abovestyle|}}}
 +
|belowstyle = {{{belowstyle|}}}
 +
|groupstyle = padding-left:0;padding-right:0;{{{groupstyle|}}}
 +
|liststyle = {{{liststyle|}}}
 +
|evenstyle = {{{evenstyle|}}}
 +
|oddstyle = {{{oddstyle|}}}
  
-->{{#if:{{{list7|}}} |<tr>
+
|group1style = {{{group1style|}}}
{{#if:{{{group7|}}}   |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group7style|}}}">{{{group7}}}</td>}}
+
|group2style = {{{group2style|}}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list7style|}}}" {{#if:{{{group7|}}}| |colspan="2"}}>{{{list7}}}</td>
+
|group3style = {{{group3style|}}}
</tr>}}<!--
+
|group4style = {{{group4style|}}}
 +
|group5style = {{{group5style|}}}
 +
|group6style = {{{group6style|}}}
 +
|group7style = {{{group7style|}}}
 +
|group8style = {{{group8style|}}}
 +
|group9style = {{{group9style|}}}
 +
|group10style = {{{group10style|}}}
 +
|group11style = {{{group11style|}}}
 +
|group12style = {{{group12style|}}}
 +
|group13style = {{{group13style|}}}
 +
|group14style = {{{group14style|}}}
 +
|group15style = {{{group15style|}}}
 +
|group16style = {{{group16style|}}}
 +
|group17style = {{{group17style|}}}
 +
|group18style = {{{group18style|}}}
 +
|group19style = {{{group19style|}}}
 +
|group20style = {{{group20style|}}}
  
-->{{#if:{{{list8|}}} |<tr>
+
|list1style = {{{list1style|}}}
{{#if:{{{group8|}}}   |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupevenstyle|}}}{{{group8style|}}}">{{{group8}}}</td>}}
+
|list2style = {{{list2style|}}}
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list8style|}}}" {{#if:{{{group8|}}}| |colspan="2"}}>{{{list8}}}</td>
+
|list3style = {{{list3style|}}}
</tr>}}<!--
+
|list4style = {{{list4style|}}}
 +
|list5style = {{{list5style|}}}
 +
|list6style = {{{list6style|}}}
 +
|list7style = {{{list7style|}}}
 +
|list8style = {{{list8style|}}}
 +
|list9style = {{{list9style|}}}
 +
|list10style = {{{list10style|}}}
 +
|list11style = {{{list11style|}}}
 +
|list12style = {{{list12style|}}}
 +
|list13style = {{{list13style|}}}
 +
|list14style = {{{list14style|}}}
 +
|list15style = {{{list15style|}}}
 +
|list16style = {{{list16style|}}}
 +
|list17style = {{{list17style|}}}
 +
|list18style = {{{list18style|}}}
 +
|list19style = {{{list19style|}}}
 +
|list20style = {{{list20style|}}}
  
-->{{#if:{{{list9|}}}  |<tr>
+
|evenodd = {{{evenodd|}}}
{{#if:{{{group9|}}}    |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group9style|}}}">{{{group9}}}</td>}}
+
|listpadding = {{{listpadding|}}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list9style|}}}" {{#if:{{{group9|}}}| |colspan="2"}}>{{{list9}}}</td>
 
</tr>}}<!--
 
  
-->{{#if:{{{list10|}}} |<tr>
+
}}<noinclude>
{{#if:{{{group10|}}}  |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupevenstyle|}}}{{{group10style|}}}">{{{group10}}}</td>}}
 
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list10style|}}}" {{#if:{{{group10|}}}| |colspan="2"}}>{{{list10}}}</td>
 
</tr>}}<!--
 
 
 
-->{{#if:{{{list11|}}} |<tr>
 
{{#if:{{{group11|}}}  |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group11style|}}}">{{{group11}}}</td>}}
 
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list11style|}}}" {{#if:{{{group11|}}}| |colspan="2"}}>{{{list11}}}</td>
 
</tr>}} <!--
 
 
 
-->{{#if:{{{list12|}}} |<tr>
 
{{#if:{{{group12|}}}  |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupevenstyle|}}}{{{group12style|}}}">{{{group12}}}</td>}}
 
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list12style|}}}" {{#if:{{{group12|}}}| |colspan="2"}}>{{{list12}}}</td>
 
</tr>}}<!--
 
 
 
-->{{#if:{{{list13|}}} |<tr>
 
{{#if:{{{group13|}}}  |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group13style|}}}">{{{group13}}}</td>}}
 
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list13style|}}}" {{#if:{{{group13|}}}| |colspan="2"}}>{{{list13}}}</td>
 
</tr>}}<!--
 
 
 
-->{{#if:{{{list14|}}} |<tr>
 
{{#if:{{{group14|}}}  |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupevenstyle|}}}{{{group14style|}}}">{{{group14}}}</td>}}
 
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list14style|}}}" {{#if:{{{group14|}}}| |colspan="2"}}>{{{list14}}}</td>
 
</tr>}}<!--
 
 
 
-->{{#if:{{{list15|}}} |<tr>
 
{{#if:{{{group15|}}}  |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group15style|}}}">{{{group15}}}</td>}}
 
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list15style|}}}" {{#if:{{{group15|}}}| |colspan="2"}}>{{{list15}}}</td>
 
</tr>}}<!--
 
 
 
--></table><noinclude>
 
 
{{doc}}
 
{{doc}}
 
</noinclude>
 
</noinclude>

Версия 13:58, 18 июня 2016

Шаблон:Navbox

<templatestyles src="Шаблон:Doc/styles.css" />{{#if: || }}

Шаблон:Якорь
Документация
{{#if: || <templatestyles src="Шаблон:Действия для страницы/styles.css" /> }}

{{#if:|{{#ifexist:{{{1}}}|{{{{{1}}}||||}}|{{#ifexist:Шаблон:{{{1}}}|{{{{{1}}}||||}}|Шаблон:Документировать}}}}|{{#ifexist:Шаблон:Подгруппы навигационной таблицы/doc|Шаблон:Подгруппы навигационной таблицы/doc|Шаблон:Документировать}}}}

<templatestyles src="Шаблон:Doc/styles.css" />{{#ifexpr: 10 mod 2 = 1

| Шаблон:^

|

}}