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

From Cantr II Wiki
Jump to: navigation, search
 
(Parameters)
Line 52: Line 52:
 
== Parameters ==
 
== Parameters ==
 
* <tt>ancho0</tt> - Width of the table (in pixels). The default is "250". I recommend not to change this parameter.
 
* <tt>ancho0</tt> - Width of the table (in pixels). The default is "250". I recommend not to change this parameter.
* <tt>titulotabla</tt> - Title of the table. If not specified a title, the table is headed with the name of the article. For example, the name of this article is {{PAGENAME}}.
+
* <tt>titulotabla</tt> - Title of the table. If not specified a title, the table is headed with the name of the article. For example, the name of this article is "{{PAGENAME}}".
 
* <tt>imagencabecera</tt> - This parameter can be specified to add a picture that illustrates the resource.
 
* <tt>imagencabecera</tt> - This parameter can be specified to add a picture that illustrates the resource.
 
* <tt>comentarioimg</tt> - A comment to describe the image shown. The commentary is located below the image (if you defined any).
 
* <tt>comentarioimg</tt> - A comment to describe the image shown. The commentary is located below the image (if you defined any).
Line 59: Line 59:
 
* <tt>item0seccion1</tt> - Title of the first item in the food section. If this parameter is not defined, the first item of the section is not shown.
 
* <tt>item0seccion1</tt> - Title of the first item in the food section. If this parameter is not defined, the first item of the section is not shown.
 
* <tt>info0seccion1</tt> - Information concerning the first item in the food section. It can be used to detail the daily intake of a resource. Used in conjunction with the previous parameter.
 
* <tt>info0seccion1</tt> - Information concerning the first item in the food section. It can be used to detail the daily intake of a resource. Used in conjunction with the previous parameter.
* <tt>item1seccion1</tt> - Edit ehis.
+
* <tt>item1seccion1</tt> - Title of the second item in the food section. If this parameter is not defined, the second item of the section is not shown.  
* <tt>info1seccion1</tt> - Edit ehis.
+
* <tt>info1seccion1</tt> - Information concerning the second item in the food section. It can be used to define the healing properties of the resource. Used in conjunction with the previous parameter.  
 
* <tt>seccion2</tt> - Edit ehis.
 
* <tt>seccion2</tt> - Edit ehis.
 
* <tt>ancho2</tt> - Edit ehis.
 
* <tt>ancho2</tt> - Edit ehis.

Revision as of 11:28, 21 February 2010

{{Infobox:RecursoBase}}} is a meta-template, ie a template for creating templates. This template is intended to be a basic template for resource templates of different languages.

With this template you can describe, in a single table, all the characteristics of any resource. Moreover, one can define an image with description, and an alternative title (for templates in languages other than English).

Usage

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

{{Infobox:RecursoBase
| ancho0          = 
| titulotabla     = 
| imagencabecera  = 
| comentarioimg   = 
| seccion1        = 
| ancho1          = 
| item0seccion1   = 
| info0seccion1   = 
| item1seccion1   = 
| info1seccion1   = 
| seccion2        = 
| ancho2          = 
| item0seccion2   = 
| info0seccion2   = 
| item1seccion2   = 
| info1seccion2   = 
| ancho3          = 
| tituloizq       = 
| tituloder       = 
| item0seccion3   = 
| info0seccion3   = 
| item1seccion3   = 
| info1seccion3   = 
| item2seccion3   = 
| info2seccion3   = 
| item3seccion3   = 
| info3seccion3   = 
| item4seccion3   = 
| info4seccion3   = 
| item5seccion3   = 
| info5seccion3   = 
| item6seccion3   = 
| info6seccion3   = 
| item7seccion3   = 
| info7seccion3   = 
| item8seccion3   = 
| info8seccion3   = 
| item9seccion3   = 
| info9seccion3   = 

Parameters

  • ancho0 - Width of the table (in pixels). The default is "250". I recommend not to change this parameter.
  • titulotabla - Title of the table. If not specified a title, the table is headed with the name of the article. For example, the name of this article is "Infobox:ResourceBase/doc".
  • imagencabecera - This parameter can be specified to add a picture that illustrates the resource.
  • comentarioimg - A comment to describe the image shown. The commentary is located below the image (if you defined any).
  • seccion1 - Food Section title. If you define this parameter, the table shows a section with information of nutrition and healing. In addition, the section is entitled with the contents of this parameter.
  • ancho1 - Width of left column of the food section (in pixels). The default is "80". I recommend not to change this parameter (unless extremely necessary).
  • item0seccion1 - Title of the first item in the food section. If this parameter is not defined, the first item of the section is not shown.
  • info0seccion1 - Information concerning the first item in the food section. It can be used to detail the daily intake of a resource. Used in conjunction with the previous parameter.
  • item1seccion1 - Title of the second item in the food section. If this parameter is not defined, the second item of the section is not shown.
  • info1seccion1 - Information concerning the second item in the food section. It can be used to define the healing properties of the resource. Used in conjunction with the previous parameter.
  • seccion2 - Edit ehis.
  • ancho2 - Edit ehis.
  • item0seccion2 - Edit ehis.
  • info0seccion2 - Edit ehis.
  • item1seccion2 - Edit ehis.
  • info1seccion2 - Edit ehis.
  • ancho3 - Edit ehis.
  • tituloizq - Edit ehis.
  • tituloder - Edit ehis.
  • itemxseccion3 - Edit ehis.
  • infoxseccion3 - Edit ehis.

Examples

Here is an example of this template being used for the Spanish version of a template for resources.