Difference between revisions of "Template:Infobox:Header"
Line 1: | Line 1: | ||
<table style="background-color: #F9F9F9; font-size: 95%; margin:0 0 0 0;" cellpadding="0px" border="0px" cellspacing="0px"><tr><th style="background-color:#<!-- Color de fondo del titulo -->{{{color|FFFFFF}}}; font-size: larger; width:<!-- Ancho de la cabecera -->{{{ancho|250}}}px;"><!-- Titulo -->{{{titulo|ERROR TITULO CABECERA}}}</th></tr><!-- Inclusion de la imagen -->{{if|test={{{imagen|}}}|then= | <table style="background-color: #F9F9F9; font-size: 95%; margin:0 0 0 0;" cellpadding="0px" border="0px" cellspacing="0px"><tr><th style="background-color:#<!-- Color de fondo del titulo -->{{{color|FFFFFF}}}; font-size: larger; width:<!-- Ancho de la cabecera -->{{{ancho|250}}}px;"><!-- Titulo -->{{{titulo|ERROR TITULO CABECERA}}}</th></tr><!-- Inclusion de la imagen -->{{if|test={{{imagen|}}}|then= | ||
<tr><td style="padding:4px 0 0 0"><!-- Imagen y comentario de la imagen -->[[Image:{{{imagen|ERROR IMAGEN}}}|{{{ancho|250}}}px]]{{if|test={{{comentario|}}}|then=<br>{{{comentario|ERROR COMENTARIO}}}|else=}}</td></tr>|else=}}<!-- Inclusion de contenido adicional -->{{if|test={{{contenido|}}}|then= | <tr><td style="padding:4px 0 0 0"><!-- Imagen y comentario de la imagen -->[[Image:{{{imagen|ERROR IMAGEN}}}|{{{ancho|250}}}px]]{{if|test={{{comentario|}}}|then=<br>{{{comentario|ERROR COMENTARIO}}}|else=}}</td></tr>|else=}}<!-- Inclusion de contenido adicional -->{{if|test={{{contenido|}}}|then= | ||
− | <tr><td>{{{contenido|ERROR CONTENIDO CABECERA}}}</td></tr>|else=}}</table><noinclude>[[Category:Meta-Plantillas|{{PAGENAME}}]] | + | <tr><td>{{{contenido|ERROR CONTENIDO CABECERA}}}</td></tr>|else=}}</table><noinclude>{{Doc}}[[Category:Meta-Plantillas|{{PAGENAME}}]] |
</noinclude> | </noinclude> |
Revision as of 09:04, 21 February 2010
ERROR TITULO CABECERA |
---|
{{Infobox:Header}} is a meta-template, ie a template for creating templates. This template is intended to be used in line with the template Template:Infobox:Base. With this template you can create a table containing a title, an image with commentary and some additional content. You can set the background color for the title and the width of the image. ContentsUsagePut the following code in the template being designed. Complete the parameters you want, delete the unused. {{Infobox:Header | color = | width = | title = | image = | resize = | comment = | content = }} Parameters
Even if width and height are specified the image will keep its original aspect ratio: either the width or the height will be equal to the specified maximum, whichever allows the other to be <= the maximum.
You can complete the parameter content including other templates, such as Template:Infobox:Section and Template:Infobox:SectionList. But do not include other template Template:Infobox:Header in this parameter. This template is intended only to lead the table. ExamplesCopy and paste on a page to see the results. {{Infobox:Base | width = 200 | content = {{Infobox:Header | color = B8DB82 | width = 200 | title = Image of a basil | image = Albahaca basil.jpg | comment = Fresh basil leaves. }}}} {{Infobox:Base | width = 250 | content = {{Infobox:Header | color = ECBA71 | title = Table without image, just a title | comment = This comment is not showing. }}}} See also |