Difference between revisions of "Template:Infobox:ClothingBase"

From Cantr II Wiki
Jump to: navigation, search
(4 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
| title  = {{if|test={{{title|}}}|then={{{title}}}|else={{PAGENAME}}}}
 
| title  = {{if|test={{{title|}}}|then={{{title}}}|else={{PAGENAME}}}}
 
| image  = {{{image|}}}
 
| image  = {{{image|}}}
 +
| resize  = {{{resize|}}}
 
| comment = {{{comment|}}}}}<!-- Inclusion of the manufacturing section -->{{if|test={{{section1|}}}|then={{Infobox:Section
 
| comment = {{{comment|}}}}}<!-- Inclusion of the manufacturing section -->{{if|test={{{section1|}}}|then={{Infobox:Section
 
| color  = F4EAE0
 
| color  = F4EAE0
Line 23: Line 24:
 
| info5  = {{{info5s1|}}}
 
| info5  = {{{info5s1|}}}
 
| item6  = {{{item6s1|}}}
 
| item6  = {{{item6s1|}}}
| info6  = {{{info6s1|}}}|else=}}
+
| info6  = {{{info6s1|}}}
 +
| item7  = {{{item7s1|}}}
 +
| info7  = {{{info7s1|}}}}}|else=}}
 
}}</includeonly><noinclude>{{Doc}}[[Category:Meta-Templates|{{PAGENAME}}]]</noinclude>
 
}}</includeonly><noinclude>{{Doc}}[[Category:Meta-Templates|{{PAGENAME}}]]</noinclude>

Revision as of 07:47, 7 October 2013

Template documentation[ view ] [ discuss ] [edit]

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

With this template you can describe, in a single table, all the characteristics of any clothing. 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 clothing 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:ClothingBase
| 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  = 
}}

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:ClothingBase".
  • 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 clothing 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 clothing 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 type of the clothing being manufactured. 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 secondary type of the clothing being manufactured. 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 time taken for 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 materials involved in the manufacturing. 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 objects 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 tools 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 machinery involved in the manufacturing. 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 tools involved to describe the item. 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: