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:Bodysize"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
(simplify)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{4|0}}}|0|{{#expr:{{{1}}} * {{{3|100}}}}}|{{#expr:{{{1}}} * 2 * {{{2}}} / ({{{2}}} + {{{4}}})}}}}</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{tagvalue|{{{1|}}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{tagentry|{{{1|}}}|BODY_SIZE|2|{{{2|-1}}}|notfound=1}} * {{tagvalue|{{{1|}}}|CHANGE_BODY_SIZE_PERC|notfound=100}}}}|{{#expr:{{tagentry|{{{1|}}}|BODY_SIZE|2|{{{2|-1}}}|notfound=1}} * 2 * {{tagentry|{{{1|}}}|BODY_SIZE|2|-1|notfound=1}} / ({{tagentry|{{{1|}}}|BODY_SIZE|2|-1|notfound=1}} + {{tagvalue|{{{1|}}}|GRAVITATE_BODY_SIZE|notfound=0}})}}}}</includeonly><noinclude>
Usage: <nowiki>{{bodysize | specific size | adult size | CHANGE_BODY_SIZE_PERC | GRAVITATE_BODY_SIZE}}</nowiki>
+
Usage: <nowiki>{{bodysize | creature raws | growth stage}}</nowiki>
  
If not specified, CHANGE_BODY_SIZE_PERC defaults to 100 and GRAVITATE_BODY_SIZE defaults to 0. Specifying both is not valid.
+
If growth_stage is omitted, assumes adult body size.
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 20:02, 26 March 2012

Usage: {{bodysize | creature raws | growth stage}}

If growth_stage is omitted, assumes adult body size.