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

From Cantr II Wiki
Jump to: navigation, search
 
m (Examples)
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''<nowiki>{{Infobox:Seccion}}}</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:Section|<nowiki>{{Infobox:Section}}</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 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.
 
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.
Line 8: Line 8:
  
 
<pre>
 
<pre>
{{Infobox:Seccion
+
{{Infobox:Section
| color         =  
+
| color   =  
| tituloseccion =  
+
| title  =  
| ancholinea    =  
+
| width  =  
| item0         =  
+
| item0   =  
| info0         =  
+
| info0   =  
| item1         =  
+
| item1   =  
| info1         =  
+
| info1   =  
| item2         =  
+
| item2   =  
| info2         =  
+
| info2   =  
| item3         =  
+
| item3   =  
| info3         =  
+
| info3   =  
| item4         =  
+
| item4   =  
| info4         =  
+
| info4   =  
| item5         =  
+
| item5   =  
| info5         =  
+
| info5   =  
| item6         =  
+
| item6   =  
| info6         =  
+
| info6   =  
| item7         =  
+
| item7   =  
| info7         =  
+
| info7   =  
| item8         =  
+
| item8   =  
| info8         =  
+
| info8   =  
| item9         =  
+
| item9   =  
| info9         =  
+
| info9   =  
| contenido    =  
+
| content =  
 
}}
 
}}
 
</pre>
 
</pre>
Line 38: Line 38:
 
== Parameters ==
 
== Parameters ==
 
* <tt>color</tt> - Background color of table title in hexacecimal without the "#". The default is "FFFFFF" (white).
 
* <tt>color</tt> - Background color of table title in hexacecimal without the "#". The default is "FFFFFF" (white).
* <tt>tituloseccion</tt> - The title of the table. This parameter is required.
+
* <tt>title</tt> - The title of the table. This parameter is required.
* <tt>ancholinea</tt> - Width of the left column (in pixels). The default is 80.
+
* <tt>width</tt> - Width of the left column (in pixels). The default is 80.
 
* <tt>itemx</tt> - Title number x in the left column. Replacing "x" by a number from 0 to 9. Use together with the following parameter.
 
* <tt>itemx</tt> - Title number x in the left column. Replacing "x" by a number from 0 to 9. Use together with the following parameter.
 
* <tt>infox</tt> - Information number x in the right column. Replacing "x" by a number from 0 to 9. Shown only if defined <tt>itemx</tt>
 
* <tt>infox</tt> - Information number x in the right column. Replacing "x" by a number from 0 to 9. Shown only if defined <tt>itemx</tt>
* <tt>contenido</tt> - This parameter can be used to add additional content to the table.
+
* <tt>content</tt> - This parameter can be used to add additional content to the table.
  
You can complete the parameter <tt>contenido</tt> 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.
+
You can complete the parameter <tt>content</tt> 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 ==
 
== Examples ==
Line 51: Line 51:
 
<pre>
 
<pre>
 
{{Infobox:Base
 
{{Infobox:Base
| contenido    = {{Infobox:Cabecera
+
| width  = 200
| color         = B8DB82
+
| content = {{Infobox:Header
| ancho        = 200
+
| color   = B8DB82
| titulo        = Basil ''(Ocimum basilicum)''  
+
| width  = 200
| imagen        = Albahaca basil.jpg
+
| title  = Basil ''(Ocimum basilicum)''  
| comentario    =  
+
| image  = Albahaca basil.jpg
| contenido    = {{Infobox:Seccion
+
| comment =  
| color         = D6EAB7
+
| content = {{Infobox:Section
| tituloseccion = Scientific classification
+
| color   = D6EAB7
| ancholinea    = 100
+
| title  = Scientific classification
| item0         = Kingdom
+
| width  = 100
| info0         = Plantae
+
| item0   = Kingdom
| item1         = Order
+
| info0   = Plantae
| info1         = Lamiales
+
| item1   = Order
| item2         = Family
+
| info1   = Lamiales
| info2         = Lamiaceae
+
| item2   = Family
| item3         = Genus
+
| info2   = Lamiaceae
| info3         = Ocimum
+
| item3   = Genus
| item4         = Species
+
| info3   = Ocimum
| info4         = O. basilicum
+
| item4   = Species
| info5         = This information will not be displayed. Guess why.
+
| info4   = O. basilicum
}}
+
| info5   = This won't show. Guess why.
}}
+
}}}}}}
}}
 
 
</pre>
 
</pre>
 +
 +
== See also ==
 +
* [[Template:Infobox:Base|<nowiki>{{Infobox:Base}}</nowiki>]]
 +
* [[Template:Infobox:Header|<nowiki>{{Infobox:Header}}</nowiki>]]
 +
* [[Template:Infobox:SectionList|<nowiki>{{Infobox:SectionList}}</nowiki>]]
 +
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 15:49, 13 November 2010

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

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

See also