v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:CSizeInventory/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Created page with '==Usage== <pre> {{CSizeInventory|<creature name>}} </pre> Entering a valid creature name will return three values separated (with no spaces) by pipe symbols: * child body size of…')
 
m
Line 1: Line 1:
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
{{CSizeInventory|<creature name>}}
+
{{CSizeInventory|<creature name>|<offset>}}
 
</pre>
 
</pre>
Entering a valid creature name will return three values separated (with no spaces) by pipe symbols:
+
Entering a valid creature name will return one of three values, depending on the offset.
* child body size of the creature
+
* child body size of the creature (1)
* adolescent body size of the creature
+
* adolescent body size of the creature (2)
* adult body size of the creature
+
* adult body size of the creature (3)
  
  
Line 15: Line 15:
  
  
<nowiki>{{CSizeInventory|badger}}</nowiki><br>
+
<nowiki>{{CSizeInventory|badger|2}}</nowiki><br>
 
Yields:<br>
 
Yields:<br>
{{CSizeInventory|badger}}
+
{{CSizeInventory|badger|2}} - equal to the size of an adolescent badger

Revision as of 01:21, 1 May 2011

Usage

{{CSizeInventory|<creature name>|<offset>}}

Entering a valid creature name will return one of three values, depending on the offset.

  • child body size of the creature (1)
  • adolescent body size of the creature (2)
  • adult body size of the creature (3)


This is meant mainly for easy listing of creature size values in other templates.


Examples:


{{CSizeInventory|badger|2}}
Yields:
7500 - equal to the size of an adolescent badger