Diferencia entre revisiones de «Plantilla:Fmbox»
De Wikiexplora
m (Texto reemplazado: « » por « ») |
|||
(No se muestran 2 ediciones intermedias del mismo usuario) | |||
Línea 2: | Línea 2: | ||
<table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks fmbox | <table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks fmbox | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
− | | warning | + | | warning = fmbox-warning |
| editnotice = fmbox-editnotice | | editnotice = fmbox-editnotice | ||
− | | system | + | | system <!-- system = default --> |
− | | #default | + | | #default = fmbox-system |
}} {{{class|}}}" style="{{{style|}}}"> | }} {{{class|}}}" style="{{{style|}}}"> | ||
<tr> | <tr> | ||
Línea 11: | Línea 11: | ||
| <!-- No image. --> | | <!-- No image. --> | ||
| <td class="mbox-image"> | | <td class="mbox-image"> | ||
− | + | {{#if:{{{image|}}} | |
− | + | | {{{image}}} | |
− | + | | [[File:{{#switch:{{{type|}}} | |
− | + | | warning = Cmbox deletion.png | |
− | + | | editnotice = Ejemplo.jpg | |
− | + | | system <!-- system = default --> | |
− | + | | #default = Ejemplo.jpg | |
− | + | }}|40x40px|link=|alt=]] | |
− | + | }}</td> | |
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
Línea 27: | Línea 27: | ||
</tr> | </tr> | ||
</table><!-- | </table><!-- | ||
− | + | Detect and report usage with faulty "type" parameter: | |
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|}}} | ||
− | | | + | | <!-- No type fed, is also valid input --> |
| warning | | warning | ||
| editnotice | | editnotice | ||
− | | system | + | | system = <!-- Do nothing, valid "type" --> |
− | | #default | + | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> |
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here!--> | <!-- Add categories and interwikis to the /doc subpage, not here!--> | ||
</noinclude> | </noinclude> |
Revisión actual del 10:20 15 nov 2016
{{{text}}} |
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |