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

From Cantr II Wiki
Jump to: navigation, search
 
Line 71: Line 71:
 
| item4        = Species
 
| item4        = Species
 
| info4        = O. basilicum
 
| info4        = O. basilicum
| info5        = This information will not be displayed. Guess why.
+
| info5        = This won't shown. Guess why.
 
}}
 
}}
 
}}
 
}}
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 09:51, 21 February 2010

{{Infobox:Seccion}}} 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 and a maximum of ten items divided into two column. It can set the background color of the title and the width of the left column.

Usage

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

{{Infobox:Seccion
| color         = 
| tituloseccion = 
| ancholinea    = 
| item0         = 
| info0         = 
| item1         = 
| info1         = 
| item2         = 
| info2         = 
| item3         = 
| info3         = 
| item4         = 
| info4         = 
| item5         = 
| info5         = 
| item6         = 
| info6         = 
| item7         = 
| info7         = 
| item8         = 
| info8         = 
| item9         = 
| info9         = 
| contenido     = 
}}

Parameters

  • color - Background color of table title in hexacecimal without the "#". The default is "FFFFFF" (white).
  • tituloseccion - The title of the table. This parameter is required.
  • ancholinea - Width of the left column (in pixels). The default is 80.
  • itemx - Title number x in the left column. Replacing "x" by a number from 0 to 9. Use together with the following parameter.
  • infox - Information number x in the right column. Replacing "x" by a number from 0 to 9. Shown only if defined itemx
  • contenido - This parameter can be used to add additional content to the table.

You can complete the parameter contenido including other templates, such as other Template:Infobox:Seccion and Template:Infobox:SeccionLista. But do not include other template Template:Infobox:Cabecera in this parameter. That 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        = Basil ''(Ocimum basilicum)'' 
| imagen        = Albahaca basil.jpg
| comentario    = 
| contenido     = {{Infobox:Seccion
| color         = D6EAB7
| tituloseccion = Scientific classification
| ancholinea    = 100
| item0         = Kingdom
| info0         = Plantae
| item1         = Order
| info1         = Lamiales
| item2         = Family
| info2         = Lamiaceae
| item3         = Genus
| info3         = Ocimum
| item4         = Species
| info4         = O. basilicum
| info5         = This won't shown. Guess why.
}}
}}
}}