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.

Template talk:CreatureInfo v0.34

From Dwarf Fortress Wiki
Jump to navigation Jump to search

Eggs[edit]

I think it would be nice to add information on eggs, although I'm not sure where to put them (I was thinking under "butchering returns" would be the most appropriate, but it isn't exactly a butchering byproduct).

Suggested edit: change this:

|#default={{infocell|'''Food items'''}}
{{#if:{{{meat|}}}|{{inforow|[[Meat]]|{{{meat|}}}}}|{{!-}}}}

...to this:

|#default={{infocell|'''Eggs'''}}
{{#if:{{{clutch_size|}}}|{{inforow|[[Egg_production#Egg-laying_Animals|clutch size]]|{{{clutch_size}}}|{{!-}}}}
{{#if:{{{egg_size|}}}|{{inforow|[[Egg]] size|{{{egg_size}}}|{{!-}}}}
{{infocell|'''Food items'''}}
{{#if:{{{meat|}}}|{{inforow|[[Meat]]|{{{meat|}}}}}|{{!-}}}}

I'm open to changing the placement of this information - I'd rather not make a new section for 2 items, but I suppose it could fit under tamed attributes as well (at least for .34). Ideas? --Lethosor (talk) 21:22, 4 March 2013 (UTC)

I don't think "Butchering returns" is the proper place for this information. Since only tame critters will currently claim a nest box and lay eggs, I think the "Tamed Attributes" box would be the best location. In fact, tame egglaying animals already have an "Egglaying" tag in the "Tamed Attributes" section. Clutch size is not currently indicated, but it could be added in the form "Egglaying (x - y)", or egglaying could be refactored into an "attribute/value" pair in "Tamed Attributes" like "Pet value" and "Grazer". Egg size is currently ignored by the game; it would probably be best not to include that information since it has no effect, and including it would imply that there is a difference. --Loci 19:55, 5 March 2013 (UTC)


Creaturelookup code[edit]

I've found this code to work for parsing out egg clutch sizes:

{{#rreplace:{{tagvalue|{{DF2012:/raw|}}|CLUTCH_SIZE}}|:|-}}

This should work for obtaining egg size:

{{tagvalue|{{/raw|}}|EGG_SIZE}}

--Lethosor (talk) 21:22, 4 March 2013 (UTC)