Predefinição:Ombox/core: diferenças entre revisões

Origem: Wikimotorpedia, a enciclopédia livre.
Saltar para a navegação Saltar para a pesquisa
Sem resumo de edição
Sem resumo de edição
Linha 1: Linha 1:
<table class="plainlinks ombox {{#switch:{{{peq|}}}|sim|yes=mbox-small}}
<table style="margin: 4px 10%; border-collapse: collapse; background: #{{#ifeq:{{{tipo|}}}|eliminação rápida|ffe4e1|f9f9f9}}; border: {{#switch:{{{tipo|}}}
{{#switch:{{{tipo|}}}
| speedy    |eliminação rápida = ombox-speedy
| delete    |eliminação        = ombox-delete
| content    |conteúdo          = ombox-content
| style      |estilo            = ombox-style
| move      |mover            = ombox-move
| protection |proteção          = ombox-protection
| notice    |notícia    <!-- notice = default -->
| #default  = ombox-notice
}}" 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|
<!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
<!-- 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 class="mbox-image" style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
| <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 = default -->
     | 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 class="mbox-text" style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{texto}}} </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= <!-- No image. -->
| {{#switch:{{{imagem_direita|}}}|nenhuma|none= <!-- Sem imagem. -->
   | <td class="mbox-imageright"> {{{imagem_direita}}} </td>
   | <td> {{{imagem_direita}}} </td>
   }}
   }}
}}
}}
</tr>
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
</table><!-- Detecta o uso incorreto do campo "tipo" -->{{#switch:{{{tipo|}}}
-->{{#switch:{{{tipo|}}}
|  <!-- "tipo" não especificado, também válido -->
|  <!-- No type fed, is also valid input -->
| 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  =    <!-- Do nothing, valid "type" -->
| notice    |notícia  =    <!-- Não faz nada, campos válidos -->
| #default  = <div style="text-align: center;">Esta caixa usa o parâmetro "tipo={{{tipo|}}}" de forma errada.</div><a class="autolink" href="/wiki/Category:Wikipedia message box parameter needs fixing">[[Category:Wikimotorpedia message box parameter needs fixing|<a class="autolink" href="/wiki/Template:main other">{{main other|Main:}}</a>{{FULLPAGENAME}}]]</a><!-- Sort on namespace -->
| #default  = <div class="error" style="text-align: center;">"O parâmetro "{{{tipo|'''tipo'''}}}" não está definido.</div>
}}<noinclude>
}}<noinclude>{{documentação}}</noinclude>
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Revisão das 16h44min de 28 de janeiro de 2019

{{{texto}}}

</noinclude>