Template:Ambox: Difference between revisions

Jump to navigation Jump to search
no edit summary
[checked revision][checked revision]
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>{|class="metadata plainlinks ambox {{#if:{{{mini|}}}|ambox-mini}} {{#switch:{{{type|}}}|delete|serious|content|style|good|discussion|notice|merge=ambox-{{{type}}}|ambox-talk}}" {{#if:{{{style|}}}|style="{{{style}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{data-label-1|}}}|data-{{{data-label-1|}}}="{{{data-value-1}}}"}} {{#if:{{{data-label-2|}}}|data-{{{data-label-2|}}}="{{{data-value-2}}}"}} {{#if:{{{data-label-3|}}}|data-{{{data-label-3|}}}="{{{data-value-3}}}"}}
<includeonly>{|class="metadata plainlinks ambox {{#if:{{{mini|}}}|ambox-mini}} {{#switch:{{{type|}}}|delete|serious|content|style|good|discussion|notice|merge=ambox-{{{type}}}|ambox-talk}}" {{#if:{{{style|}}}|style="{{{style}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{data-label-1|}}}|data-{{{data-label-1|}}}="{{{data-value-1}}}"}} {{#if:{{{data-label-2|}}}|data-{{{data-label-2|}}}="{{{data-value-2}}}"}} {{#if:{{{data-label-3|}}}|data-{{{data-label-3|}}}="{{{data-value-3}}}"}}
{{#ifeq:{{{image|}}}|none||{{!}}class="ambox-image"{{!}}<div>{{#ifeq:{{{image}}}|blank|<span style="visibility:hidden;">&nbsp;</span>|{{#switch:{{{image|{{{type}}}}}}|delete|serious=[[File:Stop hand nuvola.svg|40px|Критические проблемы]]|content=[[File:Emblem-important.svg|40px|Проблемы с содержанием статьи]]|style=[[File:Broom icon.svg|40px|Стилевые проблемы]]|good=[[File:Green star boxed.svg|40px|Статус статьи]]|discussion=[[File:Nuvola apps ksirc.png|40px|Обсуждение]]|merge=[[File:Merge-split-transwiki default.svg|40x40px|Перенос содержимого]]|notice=[[File:Information.svg|40px|Информация]]|#default={{{image|[[File:Information.svg|40px|Информация]]}}}}}}}</div>}}
{{#ifeq:{{{image|}}}|none||{{!}}class="ambox-image"{{!}}<div>{{#ifeq:{{{image}}}|blank|<span style="visibility:hidden;">&nbsp;</span>|{{#switch:{{{image|{{{type}}}}}}|delete|serious=[[File:Stop hand nuvola.svg|40px|Critical problems]]|content=[[File:Emblem-important.svg|40px|Content problem]]|style=[[File:Broom icon.svg|40px|Writing syle problem]]|good=[[File:Green star boxed.svg|40px|Article status]]|discussion=[[File:Nuvola apps ksirc.png|40px|Discussion]]|merge=[[File:Merge-split-transwiki default.svg|40x40px|Content transfer]]|notice=[[File:Information.svg|40px|Info]]|#default={{{image|[[File:Information.svg|40px|Info]]}}}}}}}</div>}}
|class="ambox-text"|{{{text|<span style="font-size:smaller;color:#AAAAAA">Параметр&nbsp;''text'' не&nbsp;задан</span>}}}{{#if:{{{text-small|}}}|<div class="ambox-text-small">{{{text-small}}}</div>}}
|class="ambox-text"|{{{text|<span style="font-size:smaller;color:#AAAAAA">The&nbsp;''text''&nbsp;parameter&nbsp;is&nbsp;wrong</span>}}}{{#if:{{{text-small|}}}|<div class="ambox-text-small">{{{text-small}}}</div>}}
{{#if:{{{imageright|}}}|{{!}}class="ambox-imageright"{{!}}<div>{{{imageright}}}</div>}}
{{#if:{{{imageright|}}}|{{!}}class="ambox-imageright"{{!}}<div>{{{imageright}}}</div>}}
|class="widthhack"|<!-- a hack for some cases to keep the box wide -->
|class="widthhack"|<!-- a hack for some cases to keep the box wide -->
|}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
|}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>

Navigation menu