Шаблон:Nav — различия между версиями

Материал из Мегапедии
Перейти к: навигация, поиск
Строка 3: Строка 3:
 
{{{text|}}}
 
{{{text|}}}
 
{{#if: {{{group1|}}}|{{!}}-
 
{{#if: {{{group1|}}}|{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group1|}}}  
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group1|}}}  
 
{{!}}{{!}} {{{text1|}}}|}}{{#if: {{{group2|}}}|
 
{{!}}{{!}} {{{text1|}}}|}}{{#if: {{{group2|}}}|
 
 
 
 
 
{{!}}-
 
{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group2|}}}
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group2|}}}
 
{{!}}{{!}} {{{text2|}}}|}}{{#if: {{{group3|}}}|
 
{{!}}{{!}} {{{text2|}}}|}}{{#if: {{{group3|}}}|
 
 
 
 
 
{{!}}-
 
{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group3|}}}
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group3|}}}
 
{{!}}{{!}} {{{text3|}}}|}}{{#if: {{{group4|}}}|
 
{{!}}{{!}} {{{text3|}}}|}}{{#if: {{{group4|}}}|
 
 
 
 
 
{{!}}-
 
{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group4|}}}
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group4|}}}
 
{{!}}{{!}} {{{text4|}}}|}}{{#if: {{{group5|}}}|
 
{{!}}{{!}} {{{text4|}}}|}}{{#if: {{{group5|}}}|
 
 
 
 
 
{{!}}-
 
{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group5|}}}
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group5|}}}
 
{{!}}{{!}} {{{text5|}}}|}}{{#if: {{{group6|}}}|
 
{{!}}{{!}} {{{text5|}}}|}}{{#if: {{{group6|}}}|
 
 
 
 
 
{{!}}-
 
{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group6|}}}
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group6|}}}
 
{{!}}{{!}} {{{text6|}}}|}}{{#if: {{{group7|}}}|
 
{{!}}{{!}} {{{text6|}}}|}}{{#if: {{{group7|}}}|
 
 
 
 
 
{{!}}-
 
{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group7|}}}
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group7|}}}
 
{{!}}{{!}} {{{text7|}}}|}}{{#if: {{{group8|}}}|
 
{{!}}{{!}} {{{text7|}}}|}}{{#if: {{{group8|}}}|
 
 
 
 
 
{{!}}-
 
{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group8|}}}
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group8|}}}
 
{{!}}{{!}} {{{text8|}}}|}}{{#if: {{{group9|}}}|
 
{{!}}{{!}} {{{text8|}}}|}}{{#if: {{{group9|}}}|
 
 
 
 
 
{{!}}-
 
{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group9|}}}
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group9|}}}
 
{{!}}{{!}} {{{text9|}}}|}}{{#if: {{{group10|}}}|
 
{{!}}{{!}} {{{text9|}}}|}}{{#if: {{{group10|}}}|
 
 
 
 
 
{{!}}-
 
{{!}}-
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='15%' {{!}} {{{group10|}}}
+
!style='background: {{{bggroup|#f0f0f0}}}' align='center' width='{{{groupwidth|15%}}}' {{!}} {{{group10|}}}
 
{{!}}{{!}} {{{text10|}}}|}}
 
{{!}}{{!}} {{{text10|}}}|}}
 
|}</includeonly><noinclude>{{Дока}} [[Категория:Шаблоны для шаблонов|Nav]]</noinclude>
 
|}</includeonly><noinclude>{{Дока}} [[Категория:Шаблоны для шаблонов|Nav]]</noinclude>

Версия 14:47, 19 апреля 2012

(i) Документация шаблона

Заготовка для копирования

{{nav
| name     = 
| bgcolor   = 
| hbgcolor = 
| bggroup  = 
| image    = 
| header   = 
| group1   = 
| text1    = 
| group2   = 
| text2    = 
}}
Внимание, изменение кода шаблонов может серьезно изменить их внешний вид. Для свободного тестирования можно посетить наш полигон для испытаний. Спасибо.