Difference between revisions of "Template:Infobox:FixedObject"

From Cantr II Wiki
Jump to: navigation, search
m
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
| info1s1  = {{if|test={{{capacity|}}}|then={{{capacity}}}|else=1}} person(s)
 
| info1s1  = {{if|test={{{capacity|}}}|then={{{capacity}}}|else=1}} person(s)
 
| item2s1  = Recovery Rate
 
| item2s1  = Recovery Rate
| info2s1  = {{if|test={{{recoveryrate|}}}|then={{{recoveryrate}}}|else=1}} (1/100 energy)
+
| info2s1  = {{if|test={{{recovery|}}}|then={{{recovery}}}|else=1}} (1/100 energy)
 
| section2 = {{if|test={{{storage|}}}|then=Fixed storage|else=}}
 
| section2 = {{if|test={{{storage|}}}|then=Fixed storage|else=}}
 
| item0s2  = Capacity
 
| item0s2  = Capacity
Line 14: Line 14:
 
| item0s3  = Range
 
| item0s3  = Range
 
| info0s3  = {{{range}}} pixels
 
| info0s3  = {{{range}}} pixels
| section4 = {{if|test={{{increasesailing|}}}|then=Masts and sails|else=}}
+
| section4 = {{if|test={{{sailing|}}}|then=Masts and sails|else=}}
 
| item0s4  = [[Increasesailing]]
 
| item0s4  = [[Increasesailing]]
| info0s4  = {{{increasesailing}}}
+
| info0s4  = {{{sailing}}}
}}<!-- 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}}}]][[Category:Radio broadcasters|{{{range}}}]]|else=}}{{if|test={{{sailing|}}}|then=[[Category:Masts and sails|{{{sailing}}}]]|else=}}</includeonly><!-- Categories for the template --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 11:57, 21 May 2012

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