Modelo:Metamodelo de avisos: Diferenzas entre revisións

Contido eliminado Contido engadido
mSen resumo de edición
modificacións coa axuda de en.wp
Liña 1:
<table styleclass="{{{estilo|}}}"metadata class="plainlinks ambox {{#switch:{{{tipo|}}}
{{#switch:{{{type|}}}
| protección = ambox-protection
| serio borrado rápido = ambox-seriousspeedy
| borrar | contido = ambox-contentdelete
| estilo contido = ambox-stylecontent
| stilo | fusionar = ambox-mergestyle
| avisomover = ambox-noticemove
| desenvolvementoprotección = ambox-growthprotection
| aviso <!-- aviso = por defecto -->
| #default = ambox-notice
}}">
}}" style="{{{stilo|}}}">
<tr>
{{#ifeq:{{{imageimaxe|}}}|ningunha
<td class="ambox-image">
| <!-- Sen imaxe. --><td style="border: none; padding: 0px; width: 1px;"></td>
{{#ifeq:{{{image}}}|ningunha
| <td class="amboxmbox-imagerightimage"><div style="width: 52px;"> {{{imageright}}} </div></td>
| <!-- non hai cela con imaxe; cela baleira necesaria para que a cela de texto teña anchura 100% -->
{{#ifeq:{{{imaxe|}}}|en branco
| <div style="width:52px;"> {{#switch:{{{image|{{{tipo|}}}}}}
| &nbsp;
| protección = [[Imaxe:Padlock.svg|40px]]
| {{#if:{{{imagerightimaxe|}}}|
| serio = [[Imaxe:Stop hand nuvola.svg|40px]]
| {{{imaxe}}}
| contido = [[Imaxe:Emblem-important.svg|40px]]
| <div style="width:52px;"> {{#switch:{{{image|{{{tipo|}}}}}}
| estilo = [[Imaxe:Broom icon.svg|40px]]
| borrado rápido = [[Ficheiro:Ambox speedy deletion.png|40x40px]]
| fusionar = [[Imaxe:Merge-split-transwiki default.svg]]
| aviso | borrar = [[ImaxeFicheiro:InfoAmbox non-talkdeletion.png|40px40x40px]]
| desenvolvementocontido = [[ImaxeFicheiro:N write greenAmbox blackcontent.svgpng|40px40x40px]]
| baleirostilo = [[ImaxeFicheiro:NoAmbox imagestyle.svgpng|40x40px]]
| #defaultmover = {{{imaxe|[[ImaxeFicheiro:InfoAmbox non-talkmove.png|40px40x40px]]}}}
| protección = ambox-[[Ficheiro:Ambox protection.png|40x40px]]
}}</div>
| aviso <!-- aviso = por defecto -->
}}</td>
| #default = [[Ficheiro:Ambox notice.png|40x40px]]
<td class="ambox-text">{{{texto}}}</td>
}}
{{#if:{{{imageright|}}}|
}}
<td class="ambox-imageright"><div style="width:52px"> {{{imageright}}} </div></td>
}}</div></td>
}}">
<td class="amboxmbox-text" style="{{{estilotexto|}}}"> {{{texto}}} </td>
{{#if:{{{imaxedereita|}}}
| <td class="mbox-imageright"><div style="width: 52px;"> {{{imaxedereita}}} </div></td>
}}
</tr>
</table><!-- Detectar e informar dun uso erróneo do parámetro "tipo":
</table><noinclude>
-->{{#switch:{{{tipo|}}}
| <!-- Non se introduciu un tipo, é igualmente válido. -->
| borrado rápido
| borrar
| contido
| stilo
| mover
| protección
| aviso = <!-- Non fai nada, "tipo" válido. -->
| #default = <div style="text-align: center;">Esta caixa usa un parámetro "type={{{tipo|}}}" inválido e precisa ser reparado.</div>
</table>}}<noinclude>
{{Uso de marcador}}
</noinclude>