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

From Cantr II Wiki
Jump to: navigation, search
(Examples of final templates in different languages)
m
 
(6 intermediate revisions by 2 users not shown)
Line 11: Line 11:
 
<pre>
 
<pre>
 
{{Infobox:ManufactureBase
 
{{Infobox:ManufactureBase
| widths0   =  
+
| widths0 =  
| title     =  
+
| title   =  
| image     =  
+
| image   =
| comment   =  
+
| resize  =  
| section1 =  
+
| comment =  
| widths1   =  
+
| section1 =  
| item0s1   =  
+
| widths1 =  
| info0s1   =  
+
| item0s1 =  
| item1s1   =  
+
| info0s1 =  
| info1s1   =  
+
| item1s1 =  
| item2s1   =  
+
| info1s1 =  
| info2s1   =  
+
| item2s1 =  
| item3s1   =  
+
| info2s1 =  
| info3s1   =  
+
| item3s1 =  
| item4s1   =  
+
| info3s1 =  
| info4s1   =  
+
| item4s1 =  
| item5s1   =  
+
| info4s1 =  
| info5s1   =  
+
| item5s1 =  
| item6s1   =  
+
| info5s1 =  
| info6s1   =  
+
| item6s1 =  
| item7s1   =  
+
| info6s1 =  
| info7s1   =  
+
| item7s1 =  
| section2 =  
+
| info7s1 =
| widths2   =  
+
| item8s1  =
| item0s2   =  
+
| info8s1  =
| info0s2   =  
+
| item9s1  =
| item1s2   =  
+
| info9s1  =  
| info1s2   =  
+
| section2 =  
 +
| widths2 =  
 +
| item0s2 =  
 +
| info0s2 =  
 +
| item1s2 =  
 +
| info1s2 =
 +
| section3 =
 +
| widths3  =
 +
| item0s3  =
 +
| info0s3  =
 +
| item1s3  =
 +
| info1s3  =
 +
| item2s3  =
 +
| info2s3  =
 +
| item3s3  =
 +
| info3s3  =
 +
| item4s3  =
 +
| info4s3  =
 +
| item5s3  =
 +
| info5s3  =
 +
| item6s3  =
 +
| info6s3  =
 +
| item7s3  =
 +
| info7s3  =  
 
}}
 
}}
 
</pre>
 
</pre>
Line 47: Line 70:
 
* <tt>title</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>title</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>image</tt> - This parameter can be specified to add a picture that illustrates the object. '''Note that some images will make the table look extremely long. Avoid this kind of images.'''
+
* <tt>image</tt> - 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 <tt>resize</tt> parameter to resize the image, if posible.'''
 +
 
 +
* <tt>resize</tt> - This parameter can be used to resize the image. Values are expressed in pixels. Options:
 +
** Change width: <tt>resize = 100</tt>
 +
** Change width and height: <tt>resize = 100x50</tt>
 +
** Original size: <tt>resize = 0</tt>
 +
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.
  
 
* <tt>comment</tt> - A comment to describe the image shown. The commentary is located below the image (if you defined any).
 
* <tt>comment</tt> - A comment to describe the image shown. The commentary is located below the image (if you defined any).
Line 77: Line 106:
 
* <tt>item5s1</tt> - Title of the sixth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 
* <tt>item5s1</tt> - Title of the sixth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  
* <tt>info5s1</tt> - Information concerning the sixth item in the manufacturing section. It can be used to define tools involved in the manufacturing. Used in conjunction with the previous parameter.
+
* <tt>info5s1</tt> - Information concerning the sixth item in the manufacturing section. It can be used to define the tools involved in the manufacturing. Used in conjunction with the previous parameter.
  
 
* <tt>item6s1</tt> - Title of the seventh item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 
* <tt>item6s1</tt> - Title of the seventh item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
Line 86: Line 115:
  
 
* <tt>info7s1</tt> - Information concerning the eighth item in the manufacturing section. It can be used to define the place where you can manufacture the object. Used in conjunction with the previous parameter.
 
* <tt>info7s1</tt> - Information concerning the eighth item in the manufacturing section. It can be used to define the place where you can manufacture the object. Used in conjunction with the previous parameter.
 +
 +
* <tt>item8s1</tt> - Title of the ninth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 +
 +
* <tt>info8s1</tt> - Information concerning the ninth item in the manufacturing section. It can be used to define the disassembly of the object. Used in conjunction with the previous parameter.
 +
 +
* <tt>item9s1</tt> - Title of the tenth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 +
 +
* <tt>info9s1</tt> - Information concerning the tenth item in the manufacturing section. It can be used to define the tool used to describe the object. Used in conjunction with the previous parameter.
 +
  
 
* <tt>section2</tt> - Rot and repair section title. If you define this parameter, the table shows a section with information of the rot and repair. In addition, the section is entitled with the contents of this parameter.
 
* <tt>section2</tt> - Rot and repair section title. If you define this parameter, the table shows a section with information of the rot and repair. In addition, the section is entitled with the contents of this parameter.
Line 98: Line 136:
  
 
* <tt>info1s2</tt> - Information concerning the second item in the rot/repair section. It can be used to define the repair of the object. Used in conjunction with the previous parameter.
 
* <tt>info1s2</tt> - Information concerning the second item in the rot/repair section. It can be used to define the repair of the object. Used in conjunction with the previous parameter.
 +
 +
* <tt>section3</tt> - Alternative manufacturing section title. If you define this parameter, the table shows a section with information of the alternative manufacturing. In addition, the section is entitled with the contents of this parameter.
 +
 +
* <tt>widths3</tt> - Width of left column of the alternative manufacturing section (in pixels). The default is "85". I recommend not to change this parameter (unless extremely necessary).
 +
 +
* <tt>item0s3</tt> - Title of the first item in the alternative manufacturing section. If this parameter is not defined, the first item of the section is not shown.
 +
 +
* <tt>info0s3</tt> - Information concerning the first item in the alternative manufacturing section. It can be used to detail the skill used in the manufacturing. Used in conjunction with the previous parameter.
 +
 +
* <tt>item1s3</tt> - Title of the second item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 +
 +
* <tt>info1s3</tt> - Information concerning the second item in the alternative manufacturing section. It can be used to define the time taken for the manufacture of the object. Used in conjunction with the previous parameter.
 +
 +
* <tt>item2s3</tt> - Title of the third item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 +
 +
* <tt>info2s3</tt> - Information concerning the third item in the alternative manufacturing section. It can be used to define the materials involved in the manufacture. Used in conjunction with the previous parameter.
 +
 +
* <tt>item3s3</tt> - Title of the fourth item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 +
 +
* <tt>info3s3</tt> - Information concerning the fourth item in the alternative manufacturing section. It can be used to define the objects involved in the manufacture. Used in conjunction with the previous parameter.
 +
 +
* <tt>item4s3</tt> - Title of the fifth item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 +
 +
* <tt>info4s3</tt> - Information concerning the fifth item in the alternative manufacturing section. It can be used to define the tools involved in the manufacturing. Used in conjunction with the previous parameter.
 +
 +
* <tt>item5s3</tt> - Title of the sixth item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 +
 +
* <tt>info5s3</tt> - Information concerning the sixth item in the alternative manufacturing section. It can be used to define the machinery involved in the manufacturing. Used in conjunction with the previous parameter.
 +
 +
* <tt>item6s3</tt> - Title of the seventh item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
 +
 +
* <tt>info6s3</tt> - Information concerning the seventh item in the alternative manufacturing section. It can be used to define the place where you can manufacture the object. Used in conjunction with the previous parameter.
  
 
== Examples of final templates in different languages ==
 
== Examples of final templates in different languages ==
 
You can add the different versions (translations) of the final template here:
 
You can add the different versions (translations) of the final template here:
 
* [[Template:Infobox:Fabricación]] - Spanish version (versión española)
 
* [[Template:Infobox:Fabricación]] - Spanish version (versión española)
 +
* [[Template:Infobox:Manufacture]] - English version
 
* Add version here
 
* Add version here
 
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude>
 
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 04:32, 27 February 2022

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

With this template you can describe, in a single table, all the characteristics of any manufacture. 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 manufacturing 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:ManufactureBase
| widths0  = 
| title    = 
| image    = 
| resize   = 
| comment  = 
| section1 = 
| widths1  = 
| item0s1  = 
| info0s1  = 
| item1s1  = 
| info1s1  = 
| item2s1  = 
| info2s1  = 
| item3s1  = 
| info3s1  = 
| item4s1  = 
| info4s1  = 
| item5s1  = 
| info5s1  = 
| item6s1  = 
| info6s1  = 
| item7s1  = 
| info7s1  = 
| item8s1  = 
| info8s1  = 
| item9s1  = 
| info9s1  = 
| section2 = 
| widths2  = 
| item0s2  = 
| info0s2  = 
| item1s2  = 
| info1s2  = 
| section3 = 
| widths3  = 
| item0s3  = 
| info0s3  = 
| item1s3  = 
| info1s3  = 
| item2s3  = 
| info2s3  = 
| item3s3  = 
| info3s3  = 
| item4s3  = 
| info4s3  = 
| item5s3  = 
| info5s3  = 
| item6s3  = 
| info6s3  = 
| item7s3  = 
| info7s3  = 
}}

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:ManufactureBase/doc".
  • 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 - Manufacturing section title. If you define this parameter, the table shows a section with information of the manufacturing. In addition, the section is entitled with the contents of this parameter.
  • widths1 - Width of left column of the manufacturing 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 manufacturing section. If this parameter is not defined, the first item of the section is not shown.
  • info0s1 - Information concerning the first item in the manufacturing section. It can be used to detail the category of the object being manufactured. Used in conjunction with the previous parameter.
  • item1s1 - Title of the second item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info1s1 - Information concerning the second item in the manufacturing section. It can be used to define the skill used in the manufacturing. Used in conjunction with the previous parameter.
  • item2s1 - Title of the third item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info2s1 - Information concerning the third item in the manufacturing section. It can be used to define the time taken for the manufacture of the object. Used in conjunction with the previous parameter.
  • item3s1 - Title of the fourth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info3s1 - Information concerning the fourth item in the manufacturing section. It can be used to define the materials involved in the manufacture. Used in conjunction with the previous parameter.
  • item4s1 - Title of the fifth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info4s1 - Information concerning the fifth item in the manufacturing section. It can be used to define the objects involved in the manufacture. Used in conjunction with the previous parameter.
  • item5s1 - Title of the sixth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info5s1 - Information concerning the sixth item in the manufacturing section. It can be used to define the tools involved in the manufacturing. Used in conjunction with the previous parameter.
  • item6s1 - Title of the seventh item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info6s1 - Information concerning the seventh item in the manufacturing section. It can be used to define the machinery involved in the manufacturing. Used in conjunction with the previous parameter.
  • item7s1 - Title of the eighth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info7s1 - Information concerning the eighth item in the manufacturing section. It can be used to define the place where you can manufacture the object. Used in conjunction with the previous parameter.
  • item8s1 - Title of the ninth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info8s1 - Information concerning the ninth item in the manufacturing section. It can be used to define the disassembly of the object. Used in conjunction with the previous parameter.
  • item9s1 - Title of the tenth item in the manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info9s1 - Information concerning the tenth item in the manufacturing section. It can be used to define the tool used to describe the object. Used in conjunction with the previous parameter.


  • section2 - Rot and repair section title. If you define this parameter, the table shows a section with information of the rot and repair. In addition, the section is entitled with the contents of this parameter.
  • widths2 - Width of left column of the rot/repair section (in pixels). The default is "85". I recommend not to change this parameter (unless extremely necessary).
  • item0s2 - Title of the first item in the rot/repair section. If this parameter is not defined, the first item of the section is not shown.
  • info0s2 - Information concerning the first item in the rot/repair section. It can be used to detail the deterioration of the object. Used in conjunction with the previous parameter.
  • item1s2 - Title of the second item in the rot/repair section. If this parameter is not defined, the second item of the section is not shown.
  • info1s2 - Information concerning the second item in the rot/repair section. It can be used to define the repair of the object. Used in conjunction with the previous parameter.
  • section3 - Alternative manufacturing section title. If you define this parameter, the table shows a section with information of the alternative manufacturing. In addition, the section is entitled with the contents of this parameter.
  • widths3 - Width of left column of the alternative manufacturing section (in pixels). The default is "85". I recommend not to change this parameter (unless extremely necessary).
  • item0s3 - Title of the first item in the alternative manufacturing section. If this parameter is not defined, the first item of the section is not shown.
  • info0s3 - Information concerning the first item in the alternative manufacturing section. It can be used to detail the skill used in the manufacturing. Used in conjunction with the previous parameter.
  • item1s3 - Title of the second item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info1s3 - Information concerning the second item in the alternative manufacturing section. It can be used to define the time taken for the manufacture of the object. Used in conjunction with the previous parameter.
  • item2s3 - Title of the third item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info2s3 - Information concerning the third item in the alternative manufacturing section. It can be used to define the materials involved in the manufacture. Used in conjunction with the previous parameter.
  • item3s3 - Title of the fourth item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info3s3 - Information concerning the fourth item in the alternative manufacturing section. It can be used to define the objects involved in the manufacture. Used in conjunction with the previous parameter.
  • item4s3 - Title of the fifth item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info4s3 - Information concerning the fifth item in the alternative manufacturing section. It can be used to define the tools involved in the manufacturing. Used in conjunction with the previous parameter.
  • item5s3 - Title of the sixth item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info5s3 - Information concerning the sixth item in the alternative manufacturing section. It can be used to define the machinery involved in the manufacturing. Used in conjunction with the previous parameter.
  • item6s3 - Title of the seventh item in the alternative manufacturing section. If this parameter is not defined, the second item of the section is not shown.
  • info6s3 - Information concerning the seventh item in the alternative manufacturing section. It can be used to define the place where you can manufacture the object. Used in conjunction with the previous parameter.

Examples of final templates in different languages

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