Difference between revisions of "Template:Infobox:FixedObject"

From Cantr II Wiki
Jump to: navigation, search
 
m
Line 15: Line 15:
 
| item0s4  = [[Increasesailing]]
 
| item0s4  = [[Increasesailing]]
 
| info0s4  = {{{increasesailing}}}
 
| info0s4  = {{{increasesailing}}}
 +
| section5 = {{if|test={{{recoveryrate|}}}|then={{{recoveryrate}}}|else=}}
 +
| item0s5  = Recovery Rate
 +
| info0s5  = {{{recoveryrate|}}} (1/100 energy)
 
}}<!-- Categories for the object -->{{if|test={{{energy|}}}|then={{if|test={{{sortingname|}}}|then=[[Category:Resting furniture|{{{sortingname}}}]]|else=[[Category:Resting furniture]]}}|else=}}{{if|test={{{storage|}}}|then={{if|test={{{sortingname|}}}|then=[[Category:Storage|{{{sortingname}}}]]|else=[[Category:Storage]]}}|else=}}{{if|test={{{range|}}}|then=[[Category:Electronics|{{{range}}}]]|else=}}{{if|test={{{increasesailing|}}}|then=[[Category:Masts and sails|{{{increasesailing}}}]]|else=}}</includeonly><!-- Categories for the template --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
}}<!-- Categories for the object -->{{if|test={{{energy|}}}|then={{if|test={{{sortingname|}}}|then=[[Category:Resting furniture|{{{sortingname}}}]]|else=[[Category:Resting furniture]]}}|else=}}{{if|test={{{storage|}}}|then={{if|test={{{sortingname|}}}|then=[[Category:Storage|{{{sortingname}}}]]|else=[[Category:Storage]]}}|else=}}{{if|test={{{range|}}}|then=[[Category:Electronics|{{{range}}}]]|else=}}{{if|test={{{increasesailing|}}}|then=[[Category:Masts and sails|{{{increasesailing}}}]]|else=}}</includeonly><!-- Categories for the template --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 00:41, 22 January 2011

Template documentation[ view ] [ discuss ] [edit]

{{Infobox:FixedObject}} shows, in a single table, all the features of any fixed object.

The table is located in the upper right corner, and may contain: information on resting furniture, fixed storage, radio transmission equipment and speed increasing masts and sails.

The article is automatically added (as appropriate) to the categories: Resting furniture Storage Electronics and / or Masts and sails.

Usage

Copy the text box below and paste it to the top of the page you are editing, within the ST template. Complete the fields with the information you want to display. Unused fields can be deleted or left incomplete.

{{Infobox:FixedObject
| sortingname = 
| energy      = 
| capacity    = 
| recovery    = 
| storage     = 
| range       = 
| sailing     = 
}}

Parameters

  • sortingname
    • Alternative Name of the object. It is used for the proper ordering of the item in the category resting furniture and Storage, so it only makes sense to use it for objects belong to these categories.
    • When and how to use it?
      • Where there are accented letters, replace that letter by one without an accent. For example, sortingname = Arcon for object "Arcón".
      • Where the letter "ñ" occurs, replace that letter with an "n" and add a "!" (Exclamation mark) at the end. For example, small barrel nombreoculto = Barril pequeno! for object "Barril pequeño."
  • energy
    • The number of energy points that are restored per hour of using the object.
    • If this parameter has a value, the tables special section of resting information is displayed. The article is automatically added to the category Resting furniture.
    • Example: energy = 800
  • capacity
    • The number of people who can use the object simultaneously.
    • This is required if energy is specified, and is not needed if energy is not specified. (The default is "1", but it is advisable to define this parameter.)
    • Example: capacity = 2
  • recovery
    • The recovery rate while resting, equal to 1/100 of energy specified.
    • This is required if energy is specified, and is not needed if energy is not specified.
    • Example: recovery = 8
  • storage
    • Capacity (in grams) that the object can hold.
    • Capacidad (en gramos) de almacenamiento que tiene el objeto. We recommend using thousands separator in this parameter.
    • If there is value to this parameter, the tables special section of storage information is displayed.The article is automatically added to the category Storage.
    • Correct example: storage = 20,500
    • Wrong example: storage = 20500
  • range
    • Range (in pixels) of transmission of the object
    • If there is value to this parameter, the tables special section for transmitter information is displayed. The article is automatically added to the category Electronics. In addition, the sorting order within the category is based on the range.
    • Example: range = 60
  • sailing
    • Speed increase granted by the object. Use a period (".") to separate the digits.
    • If there is value to this parameter, the tables special section of increasesailing is displayed. The article is automatically added to the category Masts and sails. In addition, the sorting order within the category is by the value of this parameter.
    • Correct example: sailing = 0.02
    • Wrong example: sailing = 0,02