- 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.
Difference between revisions of "User talk:Kaos"
(→Raw Templates: new section) |
|||
Line 79: | Line 79: | ||
I've reverted your recent change to Template:CreatureCurrent table row in order to make the Creatures page actually possible to load. Adding 18 {{tl|rgb}} calls to every single row was more than enough to completely overload the wiki - even with the current implementation of the rgb template, using it more than 33 times consumes the regex limit for the entire page, causing everything else to stop working. --[[User:Quietust|Quietust]] 16:57, 29 March 2011 (UTC) | I've reverted your recent change to Template:CreatureCurrent table row in order to make the Creatures page actually possible to load. Adding 18 {{tl|rgb}} calls to every single row was more than enough to completely overload the wiki - even with the current implementation of the rgb template, using it more than 33 times consumes the regex limit for the entire page, causing everything else to stop working. --[[User:Quietust|Quietust]] 16:57, 29 March 2011 (UTC) | ||
+ | :Some further testing on a partial mirror of this wiki (running on my own web server) reveals that even if we switch to a custom extension designed solely for parsing Dwarf Fortress raws, there's simply too much information on the Creature page - after auto-populating the creature colors for the main races and animal peoples, the wiki itself '''stops parsing templates altogether''' because there are too many on the page. --[[User:Quietust|Quietust]] 18:03, 29 March 2011 (UTC) |
Revision as of 18:03, 29 March 2011
Creatures
What exactly is the purpose of having 18 "Colors" columns? --Quietust 21:26, 28 March 2011 (UTC)
- I want to put all the colors a creature can have, i'm working on it right now....
- I want to make 18 cells with the 18 color variations a dwarf can have...
- the same with the elves, and so on...
- So far I guess 18 is the maximum color variations a creature can have....
- If you're referring to the colors that are based on professions (e.g. Miner, Stoneworker, Farmer, etc.), then you should know that those are all hardcoded (and even so, Dwarf Fortress itself only supports 16 colors, one of which is black) - the only colors that can be changed in the raws are caste-specific colors, and no creature has more than 5 castes. --Quietust 21:35, 28 March 2011 (UTC)
- no, I'm refering to the skin/fur/outter tissue layer colors that a creature can have, can't you make nested tables when using the templates???
- take a look, one picture is better than a thousand words... :)
Dwarf | blah |
|
just that the template doesn't seem to accept the nested table for some reason... any ideas?
you were right i didn't need 18 columns in the template... i was confused about how the template worked... I edited it back to 1 colors column and I have made what I want to do for the dwarves in the Template:L page,
- I've just created a template you might find useful - {{rgb|COLOR_NAME}}. --Quietust 00:05, 29 March 2011 (UTC)
You read my mind!
I got it working with nested tables as you can see in the Template:L page, basically I did this:
{{CreatureCurrent table head}} {{CreatureCurrent table row|name={{L|Dwarf}}|symbol=☺|color=3:0:0|hostile=No|food=No|size=60,000|value=Not tameable|biome=Fortresses|note=Trading race|colors=<span></span> {{{!}} {{!}}- {{!}} width="20em" style="background: {{rgb|BROWN}}" {{!}} {{!}} width="20em" style="background: {{rgb|BURNT_UMBER}}" {{!}} {{!}} width="20em" style="background: {{rgb|CINNAMON}}" {{!}} {{!}}} }} {{CreatureCurrent table row|name={{L|Elf}}|symbol=e|color=3:0:0|hostile=Variable<sup>1</sup>|food=No|size=60,000|value=Not tameable|biome=Forest retreats|note=Trading race}} {{CreatureCurrent table row|name={{L|Goblin}}|symbol=g|color=7:0:0|hostile=Variable<sup>1</sup>|food=No|size=60,000|value=Not tameable|biome=Dark fortresses|note=Trading race}} {{CreatureCurrent table row|name={{L|Human}}|symbol=U|color=3:0:0|hostile=Variable<sup>1</sup>|food=No|size=70,000|value=Not tameable|biome=Towns and cities|note=Trading race}} {{CreatureCurrent table row|name={{L|Kobold}}|symbol=k|color=6:0:0|hostile=Variable<sup>1</sup>|food=No|size=20,000|value=Not tameable|biome=Caves|note=Skulking race}} |}
I was thinking of making a Template with the nested table before I found how to work around the pipe selector problem I had changing "|" for "{{!}}" and adding "<span></span>" so it recognizes the table starting in a new line...
That's why I tried creating this page Template:L but it seems you got a better way using the descriptor file.... just that I don't seem to get it to work.... I tried {{rgb|brown}} and {{rgb|BROWN}} and I get this result
and
am I doing something wrong??--Kaos 00:55, 29 March 2011 (UTC)
- The {{rgb}} template is namespace-sensitive - it can only be used within the DF2010, 40d, or 23a namespaces (technically only DF2010 right now, since I haven't uploaded descriptor_color_standard.txt for any other version, but 23a and 40d didn't make any significant use of color tokens aside from dyes), and it cannot be used on talk pages. --Quietust 01:02, 29 March 2011 (UTC)
- when I try a preview in the creature page I get:
not found
- and
rgb(150,75,0)
- I assume they are case sensitive and the COLOR_NAME parameter is what token from the description file
[NAME:aqua]
- or
[COLOR:AQUA]
{{rgb|BROWN}}
- and I get this in the preview:
rgb(150,75,0)
- is the template working as designed?? what am I missing?? --Kaos 02:08, 29 March 2011 (UTC)
- Yes, that's how it's supposed to work - you feed it the color ID, and it returns the RGB values in that particular format so you can feed them into a CSS 'background' attribute. --Quietust 03:03, 29 March 2011 (UTC)
- You mean this:
- Yes, that's how it's supposed to work - you feed it the color ID, and it returns the RGB values in that particular format so you can feed them into a CSS 'background' attribute. --Quietust 03:03, 29 March 2011 (UTC)
- is the template working as designed?? what am I missing?? --Kaos 02:08, 29 March 2011 (UTC)
style="background: {{rgb|BROWN}}"
- then why does it say it's a new template, since I copied that code from the Colors page??
- How can I get permission to create new pages? I want to create a template that reads the creature raws and gets the data for the colors automatically... =D
Raw Templates
I've reverted your recent change to Template:CreatureCurrent table row in order to make the Creatures page actually possible to load. Adding 18 {{rgb}} calls to every single row was more than enough to completely overload the wiki - even with the current implementation of the rgb template, using it more than 33 times consumes the regex limit for the entire page, causing everything else to stop working. --Quietust 16:57, 29 March 2011 (UTC)
- Some further testing on a partial mirror of this wiki (running on my own web server) reveals that even if we switch to a custom extension designed solely for parsing Dwarf Fortress raws, there's simply too much information on the Creature page - after auto-populating the creature colors for the main races and animal peoples, the wiki itself stops parsing templates altogether because there are too many on the page. --Quietust 18:03, 29 March 2011 (UTC)