Template:Infobox:ResourceBase/doc

From Cantr II Wiki
Revision as of 11:23, 21 February 2010 by Altotn (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{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 - Edit ehis.
  • info1seccion1 - Edit ehis.
  • 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.