Шаблон:Infobox: различия между версиями
Перейти к навигации
Перейти к поиску
[выверенная версия] | [выверенная версия] |
(Добавление переводов строк внутрь условного оператора.) |
(Показывать строку при наличии данных, а не метки.) |
||
Строка 6: | Строка 6: | ||
{{!}} colspan="2" style="background-color:#ddf; text-align: center; font-size: 110%; font-weight: bold;" {{!}} {{{title-1}}} | {{!}} colspan="2" style="background-color:#ddf; text-align: center; font-size: 110%; font-weight: bold;" {{!}} {{{title-1}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-1.1|}}} | |
{{!}} 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.1}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.1}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-1.1}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-1.2|}}} | |
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.2}}} | {{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.2}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.2}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-1.2}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-1.3|}}} | |
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.3}}} | {{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.3}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.3}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-1.3}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-1.4|}}} | |
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.4}}} | {{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.4}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.4}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-1.4}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-1.5|}}} | |
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.5}}} | {{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-1.5}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-1.5}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-1.5}}} | ||
Строка 29: | Строка 29: | ||
{{!}} colspan="2" style="background-color:#ddf; text-align: center; font-size: 110%; font-weight: bold;" {{!}} {{{title-2}}} | {{!}} colspan="2" style="background-color:#ddf; text-align: center; font-size: 110%; font-weight: bold;" {{!}} {{{title-2}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-2.1|}}} | |
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.1}}} | {{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.1}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.1}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-2.1}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-2.2|}}} | |
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.2}}} | {{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.2}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.2}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-2.2}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-2.3|}}} | |
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.3}}} | {{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.3}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.3}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-2.3}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-2.4|}}} | |
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.4}}} | {{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.4}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.4}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-2.4}}} | ||
{{!}}- | {{!}}- | ||
− | }}{{#if: {{{ | + | }}{{#if: {{{data-2.5|}}} | |
{{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.5}}} | {{!}} style="background-color:#eef; padding: 0.2em; font-weight: bold;" {{!}} {{{label-2.5}}} | ||
{{!}} style="padding: 0.2em;" {{!}} {{{data-2.5}}} | {{!}} style="padding: 0.2em;" {{!}} {{{data-2.5}}} |