From Cantr II Wiki
Jump to: navigation, search
Template documentation[ view ] [ discuss ] [edit]

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


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

| color   = 
| width   = 
| title   = 
| image   = 
| resize  = 
| comment = 
| content = 


  • color - Background color of table title in hexacecimal without the "#". The default is "FFFFFF" (white).
  • width - Image width (in pixels). The default is 250.
  • title - The title of the table. This parameter is required.
  • image - Image to be displayed. It is important to describe both the name and the file extension. Note that some images will make the table look extremely long. Avoid this kind of images, or use the resize parameter to resize the image, if posible.
  • resize - This parameter can be used to resize the image. Values are expressed in pixels. Options:
    • Change width: resize = 100
    • Change width and height: resize = 100x50
    • Original size: resize = 0

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.

  • comment - Comment that describes the image. If a picture was detailed, the comment appears beneath it. Otherwise, the comment is not showing.
  • content - This parameter can be used to add additional content to the table.

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.


Copy and paste on a page to see the results.

| width   = 200
| content = {{Infobox:Header
| color   = B8DB82
| width   = 200
| title   = Image of a basil
| image   = Albahaca basil.jpg
| comment = Fresh basil leaves.
| width   = 250
| content = {{Infobox:Header
| color   = ECBA71
| title   = Table without image, just a title
| comment = This comment is not showing.

See also