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

From Cantr II Wiki
Jump to: navigation, search
m (Template:Infobox:Cabecera/doc moved to Template:Infobox:Header/doc: Part of a translation process.)
Line 1: Line 1:
'''<nowiki>{{Infobox:Cabecera}}}</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]].
+
'''<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.
Line 8: Line 8:
  
 
<pre>
 
<pre>
{{Infobox:Cabecera
+
{{Infobox:Header
| color     =  
+
| color   =  
| ancho      =  
+
| width  =  
| titulo    =  
+
| title  =  
| imagen    =  
+
| image  =  
| comentario =  
+
| comment =  
| contenido  =  
+
| content =  
 
}}
 
}}
 
</pre>
 
</pre>
Line 20: Line 20:
 
== 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>ancho</tt> - Table width (in pixels). The default is 250.
+
* <tt>width</tt> - Table width (in pixels). The default is 250.
* <tt>titulo</tt> - The title of the table. This parameter is required.
+
* <tt>title</tt> - The title of the table. This parameter is required.
* <tt>imagen</tt> - Image to be displayed. It is important to describe both the name and the file extension.
+
* <tt>image</tt> - Image to be displayed. It is important to describe both the name and the file extension.
* <tt>comentario</tt> - Comment that describes the image. If a picture was detailed, the comment appears beneath it. Otherwise, the comment is not showing.
+
* <tt>comment</tt> - Comment that describes the image. If a picture was detailed, the comment appears beneath it. Otherwise, the comment is not showing.
* <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 [[Template:Infobox:Seccion]] and [[Template:Infobox:SeccionLista]]. But do not include other template [[Template:Infobox:Cabecera]] in this parameter. This template is intended only to lead the table.
+
You can complete the parameter <tt>content</tt> 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 ==
 
== Examples ==
Line 33: Line 33:
 
<pre>
 
<pre>
 
{{Infobox:Base
 
{{Infobox:Base
| content   = {{Infobox:Cabecera
+
| content = {{Infobox:Header
| color     = B8DB82
+
| color   = B8DB82
| ancho      = 200
+
| width  = 200
| titulo    = Image of a basil
+
| title  = Image of a basil
| imagen    = Albahaca basil.jpg
+
| image  = Albahaca basil.jpg
| comentario = Fresh basil leaves.
+
| comment = Fresh basil leaves.
| contenido  =
+
}}}}
}}
 
}}
 
 
</pre>
 
</pre>
  
 
<pre>
 
<pre>
 
{{Infobox:Base
 
{{Infobox:Base
| content   = {{Infobox:Cabecera
+
| content = {{Infobox:Header
| color     = ECBA71
+
| color   = ECBA71
| titulo    = Table without image, just a title
+
| title  = Table without image, just a title
| comentario = This comment is not showing.
+
| comment = This comment is not showing.
}}
+
}}}}
}}
 
 
</pre>
 
</pre>
 +
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude>

Revision as of 05:23, 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.
}}}}