Diferencia entre revisiones de «Plantilla:Ambox/core»

De FamilySearch Wiki
(remove code that checked "type" parameter and displayed an error if the didn't match the original English code)
(regresó al código original con fines de compatibilidad)
 
(No se muestran 3 ediciones intermedias del mismo usuario)
Línea 2: Línea 2:
| left = mbox-small-left
| left = mbox-small-left
}} {{#switch:{{{type|}}}
}} {{#switch:{{{type|}}}
| serio    = ambox-speedy
| speedy    = ambox-speedy
| eliminar     = ambox-delete
| delete     = ambox-delete
| contenido  = ambox-content
| content    = ambox-content
| estilo     = ambox-style
| style     = ambox-style
| fusionar      = ambox-move
| move      = ambox-move
| protección = ambox-protection
| protection = ambox-protection
| aviso     <!-- aviso = defecto -->
| notice     <!-- notice = default -->
| #default  = ambox-notice
| #default  = ambox-notice
}} {{{class|}}}" style="{{{style|}}}">
}} {{{class|}}}" style="{{{style|}}}">
Línea 24: Línea 24:
   | {{{image}}}
   | {{{image}}}
   | [[File:{{#switch:{{{type|}}}
   | [[File:{{#switch:{{{type|}}}
     | serio     = Icon-warning.png
     | speedy     = Icon-warning.png
     | eliminar     = Deletion icon.svg.png
     | delete     = Deletion icon.svg.png
     | contenido   = Important.png
     | content   = Important.png
     | estilo     = Broom icon.png
     | style     = Broom icon.png
     | fusionar       = Move.png
     | move       = Move.png
     | protección = Ambox protection.png
     | protection = Ambox protection.png
     | aviso         <!-- aviso = default -->
     | notice         <!-- notice = default -->
     | #default  = Information icon.png
     | #default  = Information icon.png
     }} | {{#switch:{{{small|}}}  
     }} | {{#switch:{{{small|}}}  
Línea 55: Línea 55:
</tr>
</tr>
</table><!--  
</table><!--  
Detectar e informar sobre el uso con errónea "type" de parámetros:
-->{{#switch:{{{type|}}}
|  <!-- No "type" parámetro introducido se considera una entrada válida -->
| speedy
| delete
| content
| style
| move
| protection
| notice    = <!-- parámetro por defecto -->
| #default  = <div style="text-align: center;">Esta caja mensaje está utilizando un inválido "type={{{type|}}}" parámetro en el código que necesita ser reparado.</div>[[Categoría:Plantillas de caja mensaje que necesita un parámetro reparado|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<!--
Detect and report usage of deprecated "image=blank":
Detect and report usage of deprecated "image=blank":
-->{{#switch:{{{image|}}}
-->{{#switch:{{{image|}}}

Revisión actual - 22:11 28 jun 2012

[crear] Template-info.svg.png Plantilla Documentación