Difference between revisions of "Template:Infobox:HoldableBase"

From Cantr II Wiki
Jump to: navigation, search
 
Line 5: Line 5:
 
| width  = {{{widths0|300}}}
 
| width  = {{{widths0|300}}}
 
| title  = {{if|test={{{title|}}}|then={{{title}}}|else=HEADER TITLE ERROR}}}}{{Infobox:Section
 
| title  = {{if|test={{{title|}}}|then={{{title}}}|else=HEADER TITLE ERROR}}}}{{Infobox:Section
| color  = FFA080
+
| color  = FFC799
 
| title  = {{{section1|SECTION 1 TITLE ERROR}}}
 
| title  = {{{section1|SECTION 1 TITLE ERROR}}}
 
| width  = {{{widths1|115}}}
 
| width  = {{{widths1|115}}}
Line 22: Line 22:
 
| item6  = {{{item6s1|}}}
 
| item6  = {{{item6s1|}}}
 
| info6  = {{{info6s1|}}}}}<!-- Inclusion of the Special features section -->{{if|test={{{section2|}}}|then={{Infobox:Section
 
| info6  = {{{info6s1|}}}}}<!-- Inclusion of the Special features section -->{{if|test={{{section2|}}}|then={{Infobox:Section
| color  = FFA080
+
| color  = FFC799
 
| title  = {{{section2|SECTION 2 TITLE ERROR}}}
 
| title  = {{{section2|SECTION 2 TITLE ERROR}}}
 
| width  = {{{widths2|85}}}
 
| width  = {{{widths2|85}}}

Latest revision as of 02:19, 2 August 2015

Template documentation[ view ] [ discuss ] [edit]

{{Infobox:HoldableBase}} is a meta-template, ie a template for creating templates. This template is intended to be a basic template for templates of holdable items in different languages.

With this template you can describe, in a single table, all the characteristics of any holdable item. Moreover, one can define an alternative title (for templates in languages other than English) and the special features that have the object.

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 template for holdable items 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:HoldableBase
| widths0  = 
| title    = 
| section1 = 
| widths1  = 
| item0s1  = 
| info0s1  = 
| item1s1  = 
| info1s1  = 
| item2s1  = 
| info2s1  = 
| item3s1  = 
| info3s1  = 
| item4s1  = 
| info4s1  = 
| item5s1  = 
| info5s1  = 
| item6s1  = 
| info6s1  = 
| section2 = 
| widths2  = 
| item0s2  = 
| info0s2  = 
| item1s2  = 
| info1s2  = 
| item2s2  = 
| info2s2  = 
}}

Parameters

  • widths0 - Width of the table (in pixels). The default is "300". I recommend not to change this parameter.
  • title - Title of the table. This parameter is required.
  • section1 - Main section title. This parameter is required.
  • widths1 - Width of left column of the main 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 main section. If this parameter is not defined, the first item of the section is not shown.
  • info0s1 - Information concerning the first item in the main section. It can be used to detail the attack points of the object being described. Used in conjunction with the previous parameter.
  • item1s1 - Title of the second item in the main section. If this parameter is not defined, the second item of the section is not shown.
  • info1s1 - Information concerning the second item in the main section. It can be used to detail the skill weighting of the object being described. Used in conjunction with the previous parameter.
  • item2s1 - Title of the third item in the main section. If this parameter is not defined, the second item of the section is not shown.
  • info2s1 - Information concerning the third item in the main section. It can be used to detail the defense points of the object being described. Used in conjunction with the previous parameter.
  • item3s1 - Title of the fourth item in the main section. If this parameter is not defined, the second item of the section is not shown.
  • info3s1 - Information concerning the fourth item in the main section. It can be used to detail the weight of the object being described. Used in conjunction with the previous parameter.
  • item4s1 - Title of the fifth item in the main section. If this parameter is not defined, the second item of the section is not shown.
  • info4s1 - Information concerning the fifth item in the main section. It can be used to detail the visibility of the object being described. Used in conjunction with the previous parameter.
  • section2 - Special features section title. If you define this parameter, the table shows a section with information of the special features that have the object. In addition, the section is entitled with the contents of this parameter.
  • widths2 - Width of left column of the special features 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 special features section. If this parameter is not defined, the first item of the section is not shown.
  • info0s2 - Information concerning the first item in the special features section. It can be used to detail the writing properties of the object being described. Used in conjunction with the previous parameter.
  • item1s2 - Title of the second item in the special features section. If this parameter is not defined, the second item of the section is not shown.
  • info1s2 - Information concerning the second item in the special features section. It can be used to detail the vision properties of the object being described. Used in conjunction with the previous parameter.
  • item2s2 - Title of the third item in the special features section. If this parameter is not defined, the second item of the section is not shown.
  • info2s2 - Information concerning the third item in the special features section. It can be used to detail the storage properties of the object being described. 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: