Template:Infobox:Section/doc
{{Infobox:Section}} 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.
Contents
Usage
Put the following code in the template being designed. Complete the parameters you want, delete the unused.
{{Infobox:Section | color = | title = | width = | 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 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
- content - This parameter can be used to add additional content to the table.
You can complete the parameter content including other templates, such as other Template:Infobox:Section and 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 ''(Ocimum basilicum)'' | image = Albahaca basil.jpg | comment = | content = {{Infobox:Section | color = D6EAB7 | title = Scientific classification | width = 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 show. Guess why. }}}}}}