Template:Infobox:SectionList/doc

From Cantr II Wiki
Jump to: navigation, search

{{Infobox:SectionList}} 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 list of ten items or less. It can set the background color of the title and the width of column left.

Usage

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

{{Infobox:SectionList
| color   = 
| title   = 
| width   = 
| ltitle  = 
| rtitle  = 
| item0   = 
| info0   = 
| item1   = 
| info1   = 
| item2   = 
| info2   = 
| item3   = 
| info3   = 
| item4   = 
| info4   = 
| item5   = 
| info5   = 
| item6   = 
| info6   = 
| item7   = 
| info7   = 
| item8   = 
| info8   = 
| item9   = 
| info9   = 
| content = 
}}

Parameters

  • color - Background color of table title in hexacecimal without the "#". The default is "FFFFFF" (white).
  • title - The title of the table. This parameter is required.
  • width - Width of the left column (in pixels). The default is 200.
  • ltitle - Title of the left column. This parameter is required.
  • rtitle - Title of the right column. This parameter is required.
  • itemx - Item 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
  • 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 other Template:Infobox:SectionList. But do not include other template Template:Infobox:Header 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
| width   = 200
| content = {{Infobox:Header
| color   = B8DB82
| width   = 200
| title   = Basil
| image   = Albahaca basil.jpg
| content = {{Infobox:SectionList
| color   = D6EAB7
| title   = Gathering rates
| width   = 150
| ltitle  = Method
| rtitle  = Amount
| item0   = Manual
| info0   = 115
| item1   = [[Bronze scissors]]
| info1   = 172
| item2   = [[Scissors]]
| info2   = 230
}}}}}}

See also