Difference between revisions of "Template:Infobox:ResourceBase"

From Cantr II Wiki
Jump to: navigation, search
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox:Base
 
<includeonly>{{Infobox:Base
| contenido    = {{Infobox:Cabecera
+
| width  = {{{widths0|310}}}
| color         = F0E68C
+
| content = {{Infobox:Header
| ancho        = {{{ancho0|250}}}
+
| color   = F0E68C
| titulo        = {{if|test={{{titulotabla|}}}|then={{{titulotabla}}}|else={{PAGENAME}}}}
+
| width  = {{{widths0|300}}}
| imagen        = {{{imagencabecera|}}}
+
| title  = {{if|test={{{title|}}}|then={{{title}}}|else={{PAGENAME}}}}
| comentario    = {{{comentarioimg|}}}}}<!-- Inclusion de la tabla Alimento -->{{if|test={{{seccion1|}}}|then={{Infobox:Seccion
+
| image  = {{{image|}}}
| color         = F8F2C2
+
| resize  = {{{resize|}}}
| tituloseccion = {{{seccion1|ERROR TITULO SECCION 1}}}
+
| comment = {{{comment|}}}}}<!-- Inclusion of the food section -->{{if|test={{{section1|}}}|then={{Infobox:Section
| ancholinea    = {{{ancho1|80}}}
+
| color   = F8F2C2
| item0         = {{{item0seccion1|}}}
+
| title  = {{{section1|SECTION 1 TITLE ERROR}}}
| info0         = {{{info0seccion1|}}}
+
| width  = {{{widths1|85}}}
| item1         = {{{item1seccion1|}}}
+
| item0   = {{{item0s1|}}}
| info1         = {{{info1seccion1|}}}}}|else=}}<!-- Inclusion de la tabla Recurso primo -->{{if|test={{{seccion2|}}}|then={{Infobox:Seccion
+
| info0   = {{{info0s1|}}}
| color         = F8F2C2
+
| item1   = {{{item1s1|}}}
| tituloseccion = {{{seccion2|ERROR TITULO SECCION 2}}}
+
| info1   = {{{info1s1|}}}
| ancholinea    = {{{ancho2|80}}}
+
| item2  = {{{item2s1|}}}
| item0         = {{{item0seccion2|}}}
+
| info2  = {{{info2s1|}}}}}|else=}}<!-- Inclusion of the raw resource section -->{{if|test={{{section2|}}}|then={{Infobox:Section
| info0         = {{{info0seccion2|}}}
+
| color   = F8F2C2
| item1         = {{{item1seccion2|}}}
+
| title  = {{{section2|SECTION 2 TITLE ERROR}}}
| info1         = {{{info1seccion2|}}}}}|else=}}<!-- Inclusion de la tabla Metodos -->{{if|test={{{seccion3|}}}|then={{Infobox:SeccionLista
+
| width  = {{{widths2|85}}}
| color         = F8F2C2
+
| item0   = {{{item0s2|}}}
| tituloseccion = {{{seccion3|ERROR TITULO SECCION 3}}}
+
| info0   = {{{info0s2|}}}
| ancholinea    = {{{ancho3|200}}}
+
| item1   = {{{item1s2|}}}
| tituloizq    = {{{tituloizq|ERROR TITULO IZQUIERDA}}}
+
| info1   = {{{info1s2|}}}}}|else=}}<!-- Inclusion of the elaboration section -->{{if|test={{{section2b|}}}|then={{Infobox:Section
| tituloder    = {{{tituloder|ERROR TITULO DERECHA}}}
+
| color   = F8F2C2
| item0         = {{if|test={{{item0seccion3|}}}|then={{if|test={{{info0seccion3|}}}|then={{{item0seccion3}}}|else=}}|else=}}
+
| title  = {{{section2b|SECTION 2B TITLE ERROR}}}
| info0         = {{if|test={{{info0seccion3|}}}|then={{if|test={{{item0seccion3|}}}|then={{{info0seccion3}}}|else=}}|else=}}
+
| width  = {{{widths2b|85}}}
| item1         = {{if|test={{{item1seccion3|}}}|then={{if|test={{{info1seccion3|}}}|then={{{item1seccion3}}}|else=}}|else=}}
+
| item0  = {{{item0s2b|}}}
| info1         = {{if|test={{{info1seccion3|}}}|then={{if|test={{{item1seccion3|}}}|then={{{info1seccion3}}}|else=}}|else=}}
+
| info0  = {{{info0s2b|}}}
| item2         = {{if|test={{{item2seccion3|}}}|then={{if|test={{{info2seccion3|}}}|then={{{item2seccion3}}}|else=}}|else=}}
+
| item1  = {{{item1s2b|}}}
| info2         = {{if|test={{{info2seccion3|}}}|then={{if|test={{{item2seccion3|}}}|then={{{info2seccion3}}}|else=}}|else=}}
+
| info1  = {{{info1s2b|}}}
| item3         = {{if|test={{{item3seccion3|}}}|then={{if|test={{{info3seccion3|}}}|then={{{item3seccion3}}}|else=}}|else=}}
+
| item2  = {{{item2s2b|}}}
| info3         = {{if|test={{{info3seccion3|}}}|then={{if|test={{{item3seccion3|}}}|then={{{info3seccion3}}}|else=}}|else=}}
+
| info2  = {{{info2s2b|}}}
| item4         = {{if|test={{{item4seccion3|}}}|then={{if|test={{{info4seccion3|}}}|then={{{item4seccion3}}}|else=}}|else=}}
+
| item3  = {{{item3s2b|}}}
| info4         = {{if|test={{{info4seccion3|}}}|then={{if|test={{{item4seccion3|}}}|then={{{info4seccion3}}}|else=}}|else=}}
+
| info3  = {{{info3s2b|}}}
| item5         = {{if|test={{{item5seccion3|}}}|then={{if|test={{{info5seccion3|}}}|then={{{item5seccion3}}}|else=}}|else=}}
+
| item4  = {{{item4s2b|}}}
| info5         = {{if|test={{{info5seccion3|}}}|then={{if|test={{{item5seccion3|}}}|then={{{info5seccion3}}}|else=}}|else=}}
+
| info4  = {{{info4s2b|}}}}}|else=}}<!-- Inclusion of the methods section -->{{if|test={{{section3|}}}|then={{Infobox:SectionList
| item6         = {{if|test={{{item6seccion3|}}}|then={{if|test={{{info6seccion3|}}}|then={{{item6seccion3}}}|else=}}|else=}}
+
| color  = F8F2C2
| info6         = {{if|test={{{info6seccion3|}}}|then={{if|test={{{item6seccion3|}}}|then={{{info6seccion3}}}|else=}}|else=}}
+
| title  = {{{section3|SECTION 3 TITLE ERROR}}}
| item7         = {{if|test={{{item7seccion3|}}}|then={{if|test={{{info7seccion3|}}}|then={{{item7seccion3}}}|else=}}|else=}}
+
| width  = {{{widths3|260}}}
| info7         = {{if|test={{{info7seccion3|}}}|then={{if|test={{{item7seccion3|}}}|then={{{info7seccion3}}}|else=}}|else=}}
+
| ltitle  = {{{ltitle|LEFT TITLE ERROR}}}
| item8         = {{if|test={{{item8seccion3|}}}|then={{if|test={{{info8seccion3|}}}|then={{{item8seccion3}}}|else=}}|else=}}
+
| rtitle  = {{{rtitle|RIGHT TITLE ERROR}}}
| info8         = {{if|test={{{info8seccion3|}}}|then={{if|test={{{item8seccion3|}}}|then={{{info8seccion3}}}|else=}}|else=}}
+
| item0   = {{if|test={{{item0s3|}}}|then={{if|test={{{info0s3|}}}|then={{{item0s3}}}|else=}}|else=}}
| item9         = {{if|test={{{item9seccion3|}}}|then={{if|test={{{info9seccion3|}}}|then={{{item9seccion3}}}|else=}}|else=}}
+
| info0   = {{if|test={{{info0s3|}}}|then={{if|test={{{item0s3|}}}|then={{{info0s3}}}|else=}}|else=}}
| info9         = {{if|test={{{info9seccion3|}}}|then={{if|test={{{item9seccion3|}}}|then={{{info9seccion3}}}|else=}}|else=}}}}|else=}}
+
| item1   = {{if|test={{{item1s3|}}}|then={{if|test={{{info1s3|}}}|then={{{item1s3}}}|else=}}|else=}}
}}</includeonly><noinclude>{{Doc}}[[Category:Meta-Plantillas|{{PAGENAME}}]]</noinclude>
+
| info1   = {{if|test={{{info1s3|}}}|then={{if|test={{{item1s3|}}}|then={{{info1s3}}}|else=}}|else=}}
 +
| item2   = {{if|test={{{item2s3|}}}|then={{if|test={{{info2s3|}}}|then={{{item2s3}}}|else=}}|else=}}
 +
| info2   = {{if|test={{{info2s3|}}}|then={{if|test={{{item2s3|}}}|then={{{info2s3}}}|else=}}|else=}}
 +
| item3   = {{if|test={{{item3s3|}}}|then={{if|test={{{info3s3|}}}|then={{{item3s3}}}|else=}}|else=}}
 +
| info3   = {{if|test={{{info3s3|}}}|then={{if|test={{{item3s3|}}}|then={{{info3s3}}}|else=}}|else=}}
 +
| item4   = {{if|test={{{item4s3|}}}|then={{if|test={{{info4s3|}}}|then={{{item4s3}}}|else=}}|else=}}
 +
| info4   = {{if|test={{{info4s3|}}}|then={{if|test={{{item4s3|}}}|then={{{info4s3}}}|else=}}|else=}}
 +
| item5   = {{if|test={{{item5s3|}}}|then={{if|test={{{info5s3|}}}|then={{{item5s3}}}|else=}}|else=}}
 +
| info5   = {{if|test={{{info5s3|}}}|then={{if|test={{{item5s3|}}}|then={{{info5s3}}}|else=}}|else=}}
 +
| item6   = {{if|test={{{item6s3|}}}|then={{if|test={{{info6s3|}}}|then={{{item6s3}}}|else=}}|else=}}
 +
| info6   = {{if|test={{{info6s3|}}}|then={{if|test={{{item6s3|}}}|then={{{info6s3}}}|else=}}|else=}}
 +
| item7   = {{if|test={{{item7s3|}}}|then={{if|test={{{info7s3|}}}|then={{{item7s3}}}|else=}}|else=}}
 +
| info7   = {{if|test={{{info7s3|}}}|then={{if|test={{{item7s3|}}}|then={{{info7s3}}}|else=}}|else=}}
 +
| item8   = {{if|test={{{item8s3|}}}|then={{if|test={{{info8s3|}}}|then={{{item8s3}}}|else=}}|else=}}
 +
| info8   = {{if|test={{{info8s3|}}}|then={{if|test={{{item8s3|}}}|then={{{info8s3}}}|else=}}|else=}}
 +
| item9   = {{if|test={{{item9s3|}}}|then={{if|test={{{info9s3|}}}|then={{{item9s3}}}|else=}}|else=}}
 +
| info9   = {{if|test={{{info9s3|}}}|then={{if|test={{{item9s3|}}}|then={{{info9s3}}}|else=}}|else=}}}}|else=}}
 +
}}</includeonly><noinclude>{{Doc}}[[Category:Meta-Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 14:34, 17 February 2016

Template documentation[ view ] [ discuss ] [edit]

{{Infobox:ResourceBase}} 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.

Important note: If you want to create a resource template in your language, do not use this template, this is a base template. Instead, copy the final template of another language and translate into your language. See "Examples of final templates in different languages" section for a list of currently created templates that you can translate.

{{Infobox:ResourceBase
| widths0   = 
| title     = 
| image     = 
| resize    = 
| comment   = 
| section1  = 
| widths1   = 
| item0s1   = 
| info0s1   = 
...
| item2s1   = 
| info2s1   = 
| section2  = 
| widths2   = 
| item0s2   = 
| info0s2   = 
| item1s2   = 
| info1s2   = 
| section2b = 
| widths2b  = 
| item0s2b  = 
| info0s2b  =
...
| item4s2b  = 
| info4s2b  = 
| section3  = 
| widths3   = 
| ltitle    = 
| rtitle    = 
| item0s3   = 
| info0s3   = 
...
| item9s3   = 
| info9s3   = 
}}

Parameters

  • widths0 - Width of the table (in pixels). The default is "300". I recommend not to change this parameter.
  • title - 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".
  • image - Image to be displayed. It is important to describe both the name and the file extension. Note that some images will make the table look extremely long. Avoid this kind of images, or use the resize parameter to resize the image, if posible.
  • resize - This parameter can be used to resize the image. Values are expressed in pixels. Options:
    • Change width: resize = 100
    • Change width and height: resize = 100x50
    • Original size: resize = 0

Even if width and height are specified the image will keep its original aspect ratio: either the width or the height will be equal to the specified maximum, whichever allows the other to be <= the maximum.

  • comment - A comment to describe the image shown. The commentary is located below the image (if you defined any).
  • section1 - 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.
  • widths1 - Width of left column of the food section (in pixels). The default is "85". I recommend not to change this parameter (unless extremely necessary).
  • item0s1 - Title of the first item in the food section. If this parameter is not defined, the first item of the section is not shown.
  • info0s1 - 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.
  • item1s1 - Title of the second item in the food section. If this parameter is not defined, the second item of the section is not shown.
  • info1s1 - 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.
  • section2 - Raw resource section title. If you define this parameter, the table shows a section with gathering information. In addition, the section is entitled with the contents of this parameter.
  • widths2 - Width of left column of the gathering section (in pixels). The default is "85". I recommend not to change this parameter (unless extremely necessary).
  • item0s2 - Title of the fisrt item in the gathering section. If this parameter is not defined, the first item of the section is not shown.
  • info0s2 - Information concerning the first item in the gathering section. It can be used to detail the number of grams of this resource which is collected per day. Used in conjunction with the previous parameter.
  • item1s2 - Title of the second item in the gathering section. If this parameter is not defined, the second item of the section is not shown.
  • info1s2 - Information concerning the second item in the gathering section. It can be used to detail the gathering skills used. Used in conjunction with the previous parameter.
  • section2b - Elaboration section title. If you define this parameter, the table shows a section with elaboration information. In addition, the section is entitled with the contents of this parameter.
  • widths2b - Width of left column of the elaboration section (in pixels). The default is "85". I recommend not to change this parameter (unless extremely necessary).
  • item0s2b - Title of the first item in the elaboration section. If this parameter is not defined, the first item of the section is not shown.
  • info0s2b - Information concerning the first item in the elaboration section. It can be used to detail the materials involved in the elaboration of the resource. Used in conjunction with the previous parameter.
  • item1s2b - Title of the second item in the elaboration section. If this parameter is not defined, the second item of the section is not shown.
  • info1s2b - Information concerning the second item in the elaboration section.It can be used to detail the tools involved in the elaboration of the resource. Used in conjunction with the previous parameter.
  • item2s2b - Title of the third item in the elaboration section. If this parameter is not defined, the third item of the section is not shown.
  • info2s2b - Information concerning the third item in the elaboration section. It can be used to detail the machinery involved in the elaboration of the resource. Used in conjunction with the previous parameter.
  • item3s2b - Title of the fourth item in the elaboration section. If this parameter is not defined, the second item of the section is not shown.
  • info3s2b - Information concerning the fourth item in the elaboration section. It can be used to detail the elaboration skills used. Used in conjunction with the previous parameter.
  • item4s2b - Title of the fifth item in the elaboration section. If this parameter is not defined, the fifth item of the section is not shown.
  • info4s2b - Information concerning the fifth item in the elaboration section. It can be used to detail the number of grams of this resource which are elaborated per day. Used in conjunction with the previous parameter.
  • section3 - Gathering rates section title. If you define this parameter, the table shows a section with gathering information. In addition, the section is entitled with the contents of this parameter.
  • widths3 - Width of left column of the gathering rates section (in pixels). The default is "260". I recommend not to change this parameter (unless extremely necessary).
  • ltitle - Title of the left column. This parameter is required.
  • rtitle - Title of the right column. This parameter is required.
  • itemxs3 - Item number x in the left column. Replacing "x" by a number from 0 to 9. Use together with the following parameter.
  • infoxs3 - Information number x in the right column. Replacing "x" by a number from 0 to 9. Shown only if defined itemxs3.

Examples of final templates in different languages

You can add the different versions (translations) of the final template here: