Difference between revisions of "Template:Infobox:Header/doc"

From Cantr II Wiki
Jump to: navigation, search
 
Line 29: Line 29:
  
 
== Examples ==
 
== Examples ==
<table><tr><td>
+
Copia y pega en una página para ver los resultados.
 +
 
 
<pre>
 
<pre>
 
{{Infobox:Base
 
{{Infobox:Base
Line 35: Line 36:
 
| color      = B8DB82
 
| color      = B8DB82
 
| ancho      = 200
 
| ancho      = 200
| titulo    = Basil
+
| titulo    = Image of a basil
 
| imagen    = Albahaca basil.jpg
 
| imagen    = Albahaca basil.jpg
 
| comentario = Fresh basil leaves.
 
| comentario = Fresh basil leaves.
Line 42: Line 43:
 
}}
 
}}
 
</pre>
 
</pre>
</td><td>
+
 
{{Infobox:Base
 
| contenido  = {{Infobox:Cabecera
 
| color      = B8DB82
 
| ancho      = 200
 
| titulo    = Basil
 
| imagen    = Albahaca basil.jpg
 
| comentario = Fresh basil leaves.
 
| contenido  =
 
}}
 
}}
 
</td></tr><tr><td>
 
 
<pre>
 
<pre>
 
{{Infobox:Base
 
{{Infobox:Base
Line 63: Line 53:
 
}}
 
}}
 
</pre>
 
</pre>
</td><td>
 
{{Infobox:Base
 
| contenido  = {{Infobox:Cabecera
 
| color      = ECBA71
 
| titulo    = Table without image, just a title
 
| comentario = This comment is not showing.
 
}}
 
}}
 
</td></tr></table>
 

Revision as of 09:07, 21 February 2010

{{Infobox:Cabecera}}} 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 table.

Usage

Put the following code in the template being designed. Complete the parameters you want, delete the unused.

{{Infobox:Cabecera
| color      = 
| ancho      = 
| titulo     = 
| imagen     = 
| comentario = 
| contenido  = 
}}

Parameters

  • color - Background color of table title in hexacecimal without the "#". The default is "FFFFFF" (white).
  • ancho - Table width (in pixels). The default is 250.
  • titulo - The title of the table. This parameter is required.
  • imagen - Image to be displayed. It is important to describe both the name and the file extension.
  • comentario - Comment that describes the image. If a picture was detailed, the comment appears beneath it. Otherwise, the comment is not showing.
  • contenido - This parameter can be used to add additional content to the table.

You can complete the parameter contenido including other templates, such as Template:Infobox:Seccion and Template:Infobox:SeccionLista. But do not include other template Template:Infobox:Cabecera in this parameter. This template is intended only to lead the table.

Examples

Copia y pega en una página para ver los resultados.

{{Infobox:Base
| contenido  = {{Infobox:Cabecera
| color      = B8DB82
| ancho      = 200
| titulo     = Image of a basil
| imagen     = Albahaca basil.jpg
| comentario = Fresh basil leaves.
| contenido  = 
}}
}}
{{Infobox:Base
| contenido  = {{Infobox:Cabecera
| color      = ECBA71
| titulo     = Table without image, just a title
| comentario = This comment is not showing.
}}
}}