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

From Cantr II Wiki
Jump to: navigation, search
m
Line 1: Line 1:
'''<nowiki>{{Infobox:Header}}}</nowiki>''' 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]].
+
[[Template:Infobox:Header|<nowiki>{{Infobox:Header}}</nowiki>]] 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.
 
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.

Revision as of 06:20, 22 February 2010

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

Usage

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

{{Infobox:Header
| color   = 
| width   = 
| title   = 
| image   = 
| comment = 
| content = 
}}

Parameters

  • color - Background color of table title in hexacecimal without the "#". The default is "FFFFFF" (white).
  • width - Table 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.
  • 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.

Examples

Copy and paste on a page to see the results.

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