Template:Infobox:Header/doc

From Cantr II Wiki
Revision as of 09:15, 21 February 2010 by Altotn (talk | contribs) (Examples)

Jump to: navigation, search

{{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

Copy and paste on a page to see the results.

{{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.
}}
}}