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.

Editing Template talk:Creaturelookup/0

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 11: Line 11:
  
 
:The problem I have with adding categories that depend on /raw information is that they will turn out exactly like [[:Category:DF2012:Flying]]; that is, mostly empty and non-functional. I specifically did not create categories for [http://dwarffortresswiki.org/index.php?title=Template:Attrib_proc&diff=prev&oldid=181612 my recent additions] to creature attributes because I believe non-functional categories reflect poorly on the wiki. That being said, creating an administrative category for [[:Category:DF2012:Incomplete butchering returns|incomplete butchering returns]] shouldn't cause any problems. A "quick-link" to creature variations is an interesting idea, but significantly more difficult to implement. I will try to think of an acceptable way to handle variation information. --[[User:Loci|Loci]] 20:32, 27 February 2013 (UTC)
 
:The problem I have with adding categories that depend on /raw information is that they will turn out exactly like [[:Category:DF2012:Flying]]; that is, mostly empty and non-functional. I specifically did not create categories for [http://dwarffortresswiki.org/index.php?title=Template:Attrib_proc&diff=prev&oldid=181612 my recent additions] to creature attributes because I believe non-functional categories reflect poorly on the wiki. That being said, creating an administrative category for [[:Category:DF2012:Incomplete butchering returns|incomplete butchering returns]] shouldn't cause any problems. A "quick-link" to creature variations is an interesting idea, but significantly more difficult to implement. I will try to think of an acceptable way to handle variation information. --[[User:Loci|Loci]] 20:32, 27 February 2013 (UTC)
 
:: About the quick-links for variations - I thought of searching for <code>[APPLY_CREATURE_VARIATION]</code>, but I'm not even sure if it would be visible to a template - see the aardvark man raws, for example. If it's possible, a creature with that tag would provide an easy reference to the base creature (but it wouldn't be so easy to look up creatures that inherit from the base creature).  --{{User:Lethosor/sig}} 21:29, 27 February 2013 (UTC)
 
 
:: I tried making a rudimentary page at [[:Template:Creature/variation links]]. My idea was to extract the name of the base creature (since no creature variations that I know of change base names), using [http://en.wikipedia.org/wiki/Template:Remove_first_word this template] as an example, but it seems that this wiki doesn't support <code>#invoke</code> (or several other useful parser functions). I intended to have the template parse out the creature name, then include a secondary template which would simply display the links. Do you happen to know of any alternatives for string processing like this? --{{User:Lethosor/sig}} 22:57, 27 February 2013 (UTC)
 
  
 
::I was apparently mistaken about butchering returns. The Creaturelookup template uses logic to disable butchering returns for [[DF2012:Learns|intelligent]] creatures, which is determined by processing the /raw values. That means the [[:Category:DF2012:Incomplete butchering returns|incomplete butchering returns category]] automatically includes those creatures which should have been excluded as non-butcherable. Adding "contrib=no" to these creatures will still remove them from the category, but that's a lot of extra work for no appreciable gain. --[[User:Loci|Loci]] 20:39, 27 February 2013 (UTC)
 
::I was apparently mistaken about butchering returns. The Creaturelookup template uses logic to disable butchering returns for [[DF2012:Learns|intelligent]] creatures, which is determined by processing the /raw values. That means the [[:Category:DF2012:Incomplete butchering returns|incomplete butchering returns category]] automatically includes those creatures which should have been excluded as non-butcherable. Adding "contrib=no" to these creatures will still remove them from the category, but that's a lot of extra work for no appreciable gain. --[[User:Loci|Loci]] 20:39, 27 February 2013 (UTC)
 
:::My original thought was that, because animalmen inherit the NOT_BUTCHERABLE tag from their base creature, it wouldn't show up when searched for, but [[nightwing]], a normal creature, appears in the category. Another interesting observation: the raws on [[aardvark man]] are different than the ones on [[DF2012:Aardvark man/raw]] - the latter ''includes'' the inherited tags. I honestly don't know why, since the gamedata template doesn't seem to call #df_raw anywhere. In any case, it turns out creature'''info''' is what places contrib=yes pages into a category. This is even more confusing, since it looks like the category should only be included when the contribution message appears, which is not the case with [[aardvark man]]. --{{User:Lethosor/sig}} 21:20, 27 February 2013 (UTC)
 
:::: On second glance, it also turns out that you added that category, so I guess you would know about it. --{{User:Lethosor/sig}} 21:29, 27 February 2013 (UTC)
 
:::: I managed to track down [[:Template:Variation raw]], which uses <code>no_decode</code> to prevent expanding creature variations. I guess that's a relief, since it means both the un-expanded and expanded raws are accessible. --{{User:Lethosor/sig}} 21:36, 27 February 2013 (UTC)
 
 
::::Right. When '''you''' view [[aardvark man]] you don't see the "contrib" message because the Creaturelookup template sets "death=nobutcher" based on certain values in the /raws, then the CreatureInfo template suppresses the "contrib" message because "death=nobutcher". When '''the automated update process''' views [[aardvark man]], though, the /raws are not accessible, so the "death=nobutcher" line is not included, so the "contrib" message (and associated category) ''are'' included. This is the exact same bug that affects every other category that depends on information from the /raws. --[[User:Loci|Loci]] 21:15, 3 March 2013 (UTC)
 
  
 
===Suggested categories===
 
===Suggested categories===
Line 29: Line 19:
 
* This is probably unrelated to attributes, but quick access to creature variations (giant, animalman, etc) could be useful in some cases. They're hard to find in the creature template, and it's especially hard when the base creature is a vermin (although in that case it uses vermininfo instead, which makes it a lot harder to set up links between creatures since they use different templates. Using a separate template to look up creature variations given a creature name could work, similar to [[:Template:Tame attrib proc]].)
 
* This is probably unrelated to attributes, but quick access to creature variations (giant, animalman, etc) could be useful in some cases. They're hard to find in the creature template, and it's especially hard when the base creature is a vermin (although in that case it uses vermininfo instead, which makes it a lot harder to set up links between creatures since they use different templates. Using a separate template to look up creature variations given a creature name could work, similar to [[:Template:Tame attrib proc]].)
 
* Adding a category for creatures with <code>contrib=yes</code> would make it easier to track down pages that need more information (this is probably the easiest, just adding a simple <code><nowiki>{{#if:{{{contrib}}}| {{Category|Incomplete butchering returns}}}}</nowiki></code> should do the trick, but I'm not sure if it should be added on this template or under creatureinfo. Also, while I would prefer to use the category template to split the category into namespaces, using a link might be preferable in a few cases which I have yet to discover).
 
* Adding a category for creatures with <code>contrib=yes</code> would make it easier to track down pages that need more information (this is probably the easiest, just adding a simple <code><nowiki>{{#if:{{{contrib}}}| {{Category|Incomplete butchering returns}}}}</nowiki></code> should do the trick, but I'm not sure if it should be added on this template or under creatureinfo. Also, while I would prefer to use the category template to split the category into namespaces, using a link might be preferable in a few cases which I have yet to discover).
 
== interwiki ==
 
 
Please add <nowiki>{{interwiki|{{FULLPAGENAME}}}}</nowiki> as in Template:Plantlookup/aux. It should make possible to jump (back) to the russian version... (Maybe it's not the best place for it?). --[[User:Aklad|Aklad]] ([[User talk:Aklad|talk]]) 20:57, 17 January 2014 (UTC)
 
:I added the interwiki template to the {{tl|creaturedesc}} template instead--the interwiki links should still automatically appear on creature pages, and this template is already excessively complex.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:28, 22 January 2014 (UTC)
 
::Thanks! --[[User:Aklad|Aklad]] ([[User talk:Aklad|talk]]) 07:11, 23 January 2014 (UTC)
 
 
== Masterwork mod ==
 
 
Hi there,
 
I've been trying to add data to animal pages from the mod. Since the mod changed the butchered items (no spleen, sweetbread, lungs etc - but wool, pelt etc added), I was wondering whether it is possible to alter the template to adjust to those changes. I tried simply adding/deleting certain categories but the preview still shows the old ones. Any ideas?--[[User:Afghani84|Afghani84]] ([[User talk:Afghani84|talk]]) 09:40, 5 February 2014 (UTC)
 
 
:Seems to work for me. Note that the same template is used across all the pages; you should not remove things from the template itself. Simply add the necessary items to the template invocation on the specific masterwork creature page, like so:
 
 
::<nowiki>{{Creaturelookup/0
 
|fat=20-32
 
|eye=2
 
|lung=6-8
 
|heart=1-2
 
|intestine=9-13
 
|kidney=2-4
 
|brain=3-4
 
|meat=45-156
 
|tooth=1
 
|horn=2
 
|bone=40-48
 
|skin=hide
 
|skull=1
 
|contrib=yes
 
|wiki=yes
 
}}</nowiki>
 
 
:Removing those items which don't exist, and adding any other items. The results should appear correctly when you preview the creature's page. If there's a specific creature you're having trouble with, go ahead and edit it so I can see what's going wrong.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:26, 5 February 2014 (UTC)
 
 
::I believe Afghani84 was looking for a way to add additional parameters. It can be done in this template (it's probably best to just pass additional parameters to {{tl|CreatureInfo Masterwork}}). I'm not sure how {{{pelt}}} and {{{wool}}} would work - it would be easiest to treat them the same way as {{{scale}}} (by passing them to {{{skin}}}), but that means they could also be used on vanilla pages where they shouldn't exist. &mdash;[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 20:44, 5 February 2014 (UTC)
 
 
:::Wool should already be supported--see [[sheep]]. Pelt would probably make sense as a value for skin, but I'm not familiar with the masterwork mod. It could also just be added as a separate value; it simply wouldn't be used in vanilla. --[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 21:21, 5 February 2014 (UTC)
 
 
 
== Strange behavior ==
 
 
* [[Masterwork:Moose]] does not render. Possibly other pages as well?
 
 
* Masterwork creature pages have a purple background behind the creature name. (ex: [[Masterwork:Black piranha]]). Verminlookup does not have this problem (and verminlookup is the template being used for [[Masterwork:Dwarf]] for some reason. [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 20:37, 25 July 2014 (UTC)
 
 
:*Since so many of the masterwork creature pages are missing anyway, I'll just assume nobody cares about getting this to work over there. [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 21:37, 25 July 2014 (UTC)
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Please sign comments with ~~~~

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page: