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

Материал из Алговики
Перейти к навигации Перейти к поиску
[выверенная версия][выверенная версия]
м (Small fix.)
(Добавление условных операторов.)
Строка 1: Строка 1:
 
{| style="border-collapse: separate; border-spacing: 4px; border: 1px solid darkgray; margin: 1em 1em 1em 0; background-color: #f9f9f9; border: 1px #aaa solid; clear: right; float: right;"
 
{| style="border-collapse: separate; border-spacing: 4px; border: 1px solid darkgray; margin: 1em 1em 1em 0; background-color: #f9f9f9; border: 1px #aaa solid; clear: right; float: right;"
| colspan="2" style="background-color:#cfc; text-align: center; font-size: 120%; font-weight: bold;" | {{{title}}}
+
{{#if: {{{title|}}} |
|-
+
{{!}} colspan="2" style="background-color:#cfc; text-align: center; font-size: 120%; font-weight: bold;" {{!}} {{{title}}}
| colspan="2" style="background-color:#ddf; text-align: center; font-size: 110%; font-weight: bold;" | {{{title-1}}}
+
}}
|- border="0"
+
{{#if: {{{title-1|}}} |
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-1.1}}}
+
{{!}}-
| style="padding: 0.2em;" | {{{data-1.1}}}
+
{{!}} colspan="2" style="background-color:#ddf; text-align: center; font-size: 110%; font-weight: bold;" {{!}} {{{title-1}}}
|- border="0"
+
}}
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-1.2}}}
+
{{#if: {{{label-1.1|}}} |
| style="padding: 0.2em;" | {{{data-1.2}}}
+
{{!}}-
|- border="0"
+
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.1}}}
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-1.3}}}
+
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.1}}}
| style="padding: 0.2em;" | {{{data-1.3}}}
+
}}
|- border="0"
+
{{#if: {{{label-1.2|}}} |
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-1.4}}}
+
{{!}}-
| style="padding: 0.2em;" | {{{data-1.4}}}
+
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.2}}}
|- border="0"
+
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.2}}}
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-1.5}}}
+
}}
| style="padding: 0.2em;" | {{{data-1.5}}}
+
{{#if: {{{label-1.3|}}} |
|-
+
{{!}}-
| colspan="2" style="background-color:#ddf; text-align: center; font-size: 110%; font-weight: bold;" | {{{title-2}}}
+
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.3}}}
|-
+
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.3}}}
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-2.1}}}
+
}}
| style="padding: 0.2em;" | {{{data-2.1}}}
+
{{#if: {{{label-1.4|}}} |
|- border="0"
+
{{!}}-
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-2.2}}}
+
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.4}}}
| style="padding: 0.2em;" | {{{data-2.2}}}
+
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.4}}}
|- border="0"
+
}}
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-2.3}}}
+
{{#if: {{{label-1.5|}}} |
| style="padding: 0.2em;" | {{{data-2.3}}}
+
{{!}}-
|- border="0"
+
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.5}}}
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-2.4}}}
+
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.5}}}
| style="padding: 0.2em;" | {{{data-2.4}}}
+
}}
|- border="0"
+
{{#if: {{{title-2|}}} |
| style="background-color:#eef; padding: 0.2em; font-weight: bold;" | {{{label-2.5}}}
+
{{!}} colspan="2" style="background-color:#ddf; text-align: center; font-size: 110%; font-weight: bold;" {{!}} {{{title-2}}}
| style="padding: 0.2em;" | {{{data-2.5}}}
+
}}
 +
{{#if: {{{label-2.1|}}} |
 +
{{!}}-
 +
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.1}}}
 +
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.1}}}
 +
}}
 +
{{#if: {{{label-2.2|}}} |
 +
{{!}}-
 +
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.2}}}
 +
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.2}}}
 +
}}
 +
{{#if: {{{label-2.3|}}} |
 +
{{!}}-
 +
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.3}}}
 +
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.3}}}
 +
}}
 +
{{#if: {{{label-2.4|}}} |
 +
{{!}}-
 +
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.4}}}
 +
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.4}}}
 +
}}
 +
{{#if: {{{label-2.5|}}} |
 +
{{!}}-
 +
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.5}}}
 +
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.5}}}
 +
}}
 
|}
 
|}

Версия 23:42, 9 июня 2015