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

З Вікіпедыі, свабоднай энцыклапедыі
[дагледжаная версія][дагледжаная версія]
Змесціва выдалена Змесціва дададзена
Няма тлумачэння праўкі
поўны фікс (ананім у папярэдняй праўцы — я)
Радок 9: Радок 9:
-->{{#if:{{{list2|}}} |<tr>
-->{{#if:{{{list2|}}} |<tr>
{{#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>}}
{{#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>
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list2style|}}}" {{#if:{{{group2|}}}| |colspan="2"}}>
{{{list2}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list3|}}} |<tr>
-->{{#if:{{{list3|}}} |<tr>
{{#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>}}
{{#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>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list3style|}}}" {{#if:{{{group3|}}}| |colspan="2"}}>{{{list3}}}</td>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list3style|}}}" {{#if:{{{group3|}}}| |colspan="2"}}>
{{{list3}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list4|}}} |<tr>
-->{{#if:{{{list4|}}} |<tr>
{{#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>}}
{{#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>}}
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list4style|}}}" {{#if:{{{group4|}}}| |colspan="2"}}>{{{list4}}}</td>
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list4style|}}}" {{#if:{{{group4|}}}| |colspan="2"}}>
{{{list4}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list5|}}} |<tr>
-->{{#if:{{{list5|}}} |<tr>
{{#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>}}
{{#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>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list5style|}}}" {{#if:{{{group5|}}}| |colspan="2"}}>{{{list5}}}</td>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list5style|}}}" {{#if:{{{group5|}}}| |colspan="2"}}>
{{{list5}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list6|}}} |<tr>
-->{{#if:{{{list6|}}} |<tr>
{{#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>}}
{{#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>}}
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list6style|}}}" {{#if:{{{group6|}}}| |colspan="2"}}>{{{list6}}}</td>
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list6style|}}}" {{#if:{{{group6|}}}| |colspan="2"}}>
{{{list6}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list7|}}} |<tr>
-->{{#if:{{{list7|}}} |<tr>
{{#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>}}
{{#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>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list7style|}}}" {{#if:{{{group7|}}}| |colspan="2"}}>{{{list7}}}</td>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list7style|}}}" {{#if:{{{group7|}}}| |colspan="2"}}>
{{{list7}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list8|}}} |<tr>
-->{{#if:{{{list8|}}} |<tr>
{{#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>}}
{{#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>}}
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list8style|}}}" {{#if:{{{group8|}}}| |colspan="2"}}>{{{list8}}}</td>
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list8style|}}}" {{#if:{{{group8|}}}| |colspan="2"}}>
{{{list8}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list9|}}} |<tr>
-->{{#if:{{{list9|}}} |<tr>
{{#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>}}
{{#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>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list9style|}}}" {{#if:{{{group9|}}}| |colspan="2"}}>{{{list9}}}</td>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list9style|}}}" {{#if:{{{group9|}}}| |colspan="2"}}>
{{{list9}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list10|}}} |<tr>
-->{{#if:{{{list10|}}} |<tr>
{{#if:{{{group10|}}} |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group10style|}}}">{{{group10}}}</td>}}
{{#if:{{{group10|}}} |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group10style|}}}">{{{group10}}}</td>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list10style|}}}" {{#if:{{{group10|}}}| |colspan="2"}}>{{{list10}}}</td>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list10style|}}}" {{#if:{{{group10|}}}| |colspan="2"}}>
{{{list10}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list11|}}} |<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>}}
{{#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>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list11style|}}}" {{#if:{{{group11|}}}| |colspan="2"}}>
{{{list11}}}</td>
</tr>}} <!--
</tr>}} <!--


-->{{#if:{{{list12|}}} |<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;}}}{{{groupoddstyle|}}}{{{group12style|}}}">{{{group12}}}</td>}}
{{#if:{{{group12|}}} |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group12style|}}}">{{{group12}}}</td>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list12style|}}}" {{#if:{{{group12|}}}| |colspan="2"}}>{{{list12}}}</td>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list12style|}}}" {{#if:{{{group12|}}}| |colspan="2"}}>
{{{list12}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list13|}}} |<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>}}
{{#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>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list13style|}}}" {{#if:{{{group13|}}}| |colspan="2"}}>
{{{list13}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list14|}}} |<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;}}}{{{groupoddstyle|}}}{{{group14style|}}}">{{{group14}}}</td>}}
{{#if:{{{group14|}}} |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupoddstyle|}}}{{{group14style|}}}">{{{group14}}}</td>}}
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list14style|}}}" {{#if:{{{group14|}}}| |colspan="2"}}>{{{list14}}}</td>
<td style="{{{liststyle|}}}{{{oddstyle|}}}{{{list14style|}}}" {{#if:{{{group14|}}}| |colspan="2"}}>
{{{list14}}}</td>
</tr>}}<!--
</tr>}}<!--


-->{{#if:{{{list15|}}} |<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;}}}{{{groupevenstyle|}}}{{{group15style|}}}">{{{group15}}}</td>}}
{{#if:{{{group15|}}} |<td style="background: #e6e6ff; white-space: nowrap; text-align: right; font-weight: bold;{{{groupstyle|width: 1%; padding: 0 7px;}}}{{{groupevenstyle|}}}{{{group15style|}}}">{{{group15}}}</td>}}
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list15style|}}}" {{#if:{{{group15|}}}| |colspan="2"}}>{{{list15}}}}}</td></tr><!--
<td style="{{{liststyle|}}}{{{evenstyle|}}}{{{list15style|}}}" {{#if:{{{group15|}}}| |colspan="2"}}>
{{{list15}}}}}</td></tr><!--


--></table><noinclude>
--></table><noinclude>

Версія ад 22:53, 21 студзеня 2014

(i) Дакументацыя

Выкарыстанне

{{Navbox subgroups
 |bodystyle =

 |groupstyle =
 |groupoddstyle =
 |groupevenstyle =

 |liststyle =
 |oddstyle =
 |evenstyle =

 |group1style = 
 |group1 =

 |list1 =
 |list1style =

 |group2 =
 |group2style = 

 |list2 = 
 |list2style =

<!-- ... -->

 |groupN =
 |groupNstyle = 

 |listN = 
 |listNstyle =
}}

Параметры

  • bodystyle — стыль цела, ужываецца да шаблону ў цэлым
  • groupstyle — стыль загалоўкаў
  • groupoddstyle — стыль няцотных загалоўкаў
  • groupevenstyle — стыль цотных загалоўкаў
  • liststyle — стыль спісаў
  • oddstyle — стыль няцотных спісаў
  • evenstyle — стыль цотных спісаў
  • groupNstyle — стыль N-нага загалоўка
  • groupN — змест N-нага загалоўка
  • listNstyle — стыль N-нага спісу
  • listN — змест N-нага спісу

Гл. таксама

Каб пазбегнуць паломак старонак, дзе ўжыты гэты шаблон, пажадана эксперыментаваць у сваёй асабістай прасторы.