Predefinição:Ombox/core: diferenças entre revisões
Saltar para a navegação
Saltar para a pesquisa
Sem resumo de edição |
Sem resumo de edição |
||
| Linha 1: | Linha 1: | ||
<table | <table style="margin: 4px 10%; border-collapse: collapse; background: #{{#ifeq:{{{tipo|}}}|eliminação rápida|ffe4e1|f9f9f9}}; border: {{#switch:{{{tipo|}}} | ||
|eliminação rápida|eliminação=2px solid #b22222|1px solid #aaa}}; {{{estilo|}}}"> | |eliminação rápida|eliminação=2px solid #b22222|1px solid #aaa}}; {{{estilo|}}}"> | ||
<tr> | <tr> | ||
{{#ifeq:{{{imagem|}}}|nenhuma| | {{#ifeq:{{{imagem|}}}|nenhuma| | ||
<!-- | <!-- Sem imagem. Ajuste no "padding" ou "width" é necessário para que a caixa ocupe 100% da largura da página --><td style="border: none; padding: 0px; width: 1px;"></td> | ||
| <td | | <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;"> | ||
{{#if:{{{imagem|}}} | {{#if:{{{imagem|}}} | ||
| {{{imagem | | {{{imagem}}} | ||
| [[Ficheiro:{{#switch:{{{tipo|}}} | | [[Ficheiro:{{#switch:{{{tipo|}}} | ||
| speedy |eliminação rápida | | speedy |eliminação rápida | ||
| Linha 24: | Linha 14: | ||
| move |mover = Merge-split-transwiki default 2.svg | | move |mover = Merge-split-transwiki default 2.svg | ||
| protection |proteção = Emblem-readonly.svg | | protection |proteção = Emblem-readonly.svg | ||
| notice |notícia <!-- | | notice |notícia <!-- padrão --> | ||
| #default = Information icon.svg | | #default = Information icon.svg | ||
}} | {{#switch:{{{peq|}}}|sim|yes=30x30px|40x40px}} ]] | }} | {{#switch:{{{peq|}}}|sim|yes=30x30px|40x40px}} ]] | ||
}}</td> | }}</td> | ||
}} | }} | ||
<td | <td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{texto}}} </td> | ||
{{#if:{{{imagem_direita|}}} | {{#if:{{{imagem_direita|}}} | ||
| {{#switch:{{{imagem_direita|}}}|nenhuma|none= <!-- | | {{#switch:{{{imagem_direita|}}}|nenhuma|none= <!-- Sem imagem. --> | ||
| <td | | <td> {{{imagem_direita}}} </td> | ||
}} | }} | ||
}} | }} | ||
</tr> | </tr> | ||
</table><!-- | </table><!-- Detecta o uso incorreto do campo "tipo" -->{{#switch:{{{tipo|}}} | ||
-->{{#switch:{{{tipo|}}} | | <!-- "tipo" não especificado, também válido --> | ||
| <!-- | |||
| speedy |eliminação rápida | | speedy |eliminação rápida | ||
| delete |eliminação | | delete |eliminação | ||
| Linha 45: | Linha 34: | ||
| move |mover | | move |mover | ||
| protection |proteção | | protection |proteção | ||
| notice |notícia = <!-- | | notice |notícia = <!-- Não faz nada, campos válidos --> | ||
| #default = <div style="text-align: center;"> | | #default = <div class="error" style="text-align: center;">"O parâmetro "{{{tipo|'''tipo'''}}}" não está definido.</div> | ||
}} | }}<noinclude>{{documentação}}</noinclude> | ||
</noinclude> | |||