- 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 "Template:RawToTable"
m (food source implemented.) |
m (fixed?) |
||
Line 19: | Line 19: | ||
|color={{#df_tagvalue:{{{1}}}|COLOR|7:0:1}} | |color={{#df_tagvalue:{{{1}}}|COLOR|7:0:1}} | ||
|hostile={{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|{{Cgr|Y}}|{{Cgr|N}}}} | |hostile={{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|{{Cgr|Y}}|{{Cgr|N}}}} | ||
− | |food={{#switch:Y|{{if:{{#df_tagentry:{{{1}}}|ITEMCORPSE||1}}|N|Y}}={{Cgr|N}}|{{if:#df_tagentry:{{{1}}}|FANCIFUL||1}}|N|Y}}={{Cgr|N}}|{{if:#df_tagentry:{{{1}}}|NOMEAT||1}}|N|Y}}={{Cgr|N}}|{{if:#df_tagentry:{{{1}}}|NOT_BUTCHERABLE||1}}|N|Y}}={{Cgr|N}}|{{if:#df_tagentry:{{{1}}}|SMALL_REMAINS||1}}|N|Y}}={{Cgr|N}}|{{if:#df_tagentry:{{{1}}}|INTELLIGENT||1}}|N|Y}}={{Cgr|N}}|{{if:#df_tagentry:{{{1}}}|CAN_LEARN||1}}|N|Y}}={{Cgr|N}}|{{if:#df_tagentry:{{{1}}}|CAN_SPEAK||1}}|N|Y}}={{Cgr|N}}|#default={{if:{{if:{{#df_tagentry:{{{1}}}|FISHITEM||1}}||NONEMPTY}}{{if:{{#df_tagentry:{{{1}}}|MILKABLE||1}}||NONEMPTY}}|{{Cgr|Y}}|N/A}}}} | + | |food={{#switch:Y|{{#if:{{#df_tagentry:{{{1}}}|ITEMCORPSE||1}}|N|Y}}={{Cgr|N}}|{{#if:#df_tagentry:{{{1}}}|FANCIFUL||1}}|N|Y}}={{Cgr|N}}|{{#if:#df_tagentry:{{{1}}}|NOMEAT||1}}|N|Y}}={{Cgr|N}}|{{#if:#df_tagentry:{{{1}}}|NOT_BUTCHERABLE||1}}|N|Y}}={{Cgr|N}}|{{#if:#df_tagentry:{{{1}}}|SMALL_REMAINS||1}}|N|Y}}={{Cgr|N}}|{{#if:#df_tagentry:{{{1}}}|INTELLIGENT||1}}|N|Y}}={{Cgr|N}}|{{#if:#df_tagentry:{{{1}}}|CAN_LEARN||1}}|N|Y}}={{Cgr|N}}|{{#if:#df_tagentry:{{{1}}}|CAN_SPEAK||1}}|N|Y}}={{Cgr|N}}|#default={{#if:{{#if:{{#df_tagentry:{{{1}}}|FISHITEM||1}}||NONEMPTY}}{{#if:{{#df_tagentry:{{{1}}}|MILKABLE||1}}||NONEMPTY}}|{{Cgr|Y}}|N/A}}}} |
|swims={{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|{{Cgr|Y}}|{{Cgr|N}}}} | |swims={{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|{{Cgr|Y}}|{{Cgr|N}}}} | ||
|flies={{#if:{{#df_tag:{{{1}}}|FLIER}}|{{Cgr|Y}}|{{Cgr|N}}}} | |flies={{#if:{{#df_tag:{{{1}}}|FLIER}}|{{Cgr|Y}}|{{Cgr|N}}}} | ||
Line 30: | Line 30: | ||
}} | }} | ||
|} | |} | ||
− | {{KReference|RawToTable Wizard - Copying the text below will yield the table as a result|<nowiki>{{CreatureWorking table row</nowiki><nowiki>|name=[[</nowiki>{{lc:{{#df_tagentry:{{{1}}}|NAME|1}}}}<nowiki>]]</nowiki><nowiki>|symbol=</nowiki>{{#df_tagvalue:{{{1}}}|CREATURE_TILE|?}}<nowiki>|color=</nowiki>{{#df_tagvalue:{{{1}}}|COLOR|7:0:1}}<nowiki>|hostile=</nowiki>{{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|food=</nowiki>{{#switch:Y|{{if:{{#df_tagentry:{{{1}}}|ITEMCORPSE||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{if:#df_tagentry:{{{1}}}|FANCIFUL||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{if:#df_tagentry:{{{1}}}|NOMEAT||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{if:#df_tagentry:{{{1}}}|NOT_BUTCHERABLE||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{if:#df_tagentry:{{{1}}}|SMALL_REMAINS||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{if:#df_tagentry:{{{1}}}|INTELLIGENT||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{if:#df_tagentry:{{{1}}}|CAN_LEARN||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{if:#df_tagentry:{{{1}}}|CAN_SPEAK||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|#default={{if:{{if:{{#df_tagentry:{{{1}}}|FISHITEM||1}}||NONEMPTY}}{{if:{{#df_tagentry:{{{1}}}|MILKABLE||1}}||NONEMPTY}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>N/A</nowiki>}}}}<nowiki>|swims=</nowiki>{{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|flies=</nowiki>{{#if:{{#df_tag:{{{1}}}|FLIER}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|magmasafe=</nowiki>{{#iferror: {{#ifexpr: ({{#df_tagvalue:{{{1}}}|IF_EXISTS_SET_MELTING_POINT|0}}) > 12000 |<nowiki>{{Cgr|Y}}</nowiki><nowiki>{{Cgr|N}}</nowiki>}}|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|tamable=</nowiki>{{#if:{{#df_tag:{{{1}}}|PETVALUE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|trainable=</nowiki>{{#if:{{#df_tag:{{{1}}}|TRAINABLE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|biome=</nowiki>{{#df_foreachtag:{{{1}}}|BIOME|<nowiki>{{bIcon|</nowiki>\2<nowiki>}}</nowiki>}} {{#iferror: {{#ifexpr: ({{#df_tag:{{{1}}}|COMMON_DOMESTIC}}) = 1 |<nowiki>{{bIcon|DOMESTIC}}</nowiki>}}|}}{{#if:{{#df_tag:{{{1}}}|UNDERGROUND_DEPTH}}|<nowiki>{{bIcon|C</nowiki>{{#df_tagentry:{{{1}}}|UNDERGROUND_DEPTH|1}}<nowiki>}}{{bIcon|TO}}{{bIcon|C</nowiki>{{#df_tagentry:{{{1}}}|UNDERGROUND_DEPTH|2}}<nowiki>}}</nowiki>|}}<nowiki>|size=N/A</nowiki><nowiki>|value=</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>}}</nowiki>}}</includeonly><noinclude>{{documentation}}<noinclude> | + | {{KReference|RawToTable Wizard - Copying the text below will yield the table as a result|<nowiki>{{CreatureWorking table row</nowiki><nowiki>|name=[[</nowiki>{{lc:{{#df_tagentry:{{{1}}}|NAME|1}}}}<nowiki>]]</nowiki><nowiki>|symbol=</nowiki>{{#df_tagvalue:{{{1}}}|CREATURE_TILE|?}}<nowiki>|color=</nowiki>{{#df_tagvalue:{{{1}}}|COLOR|7:0:1}}<nowiki>|hostile=</nowiki>{{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|food=</nowiki>{{#switch:Y|{{#if:{{#df_tagentry:{{{1}}}|ITEMCORPSE||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{#if:#df_tagentry:{{{1}}}|FANCIFUL||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{#if:#df_tagentry:{{{1}}}|NOMEAT||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{#if:#df_tagentry:{{{1}}}|NOT_BUTCHERABLE||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{#if:#df_tagentry:{{{1}}}|SMALL_REMAINS||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{#if:#df_tagentry:{{{1}}}|INTELLIGENT||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{#if:#df_tagentry:{{{1}}}|CAN_LEARN||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|{{#if:#df_tagentry:{{{1}}}|CAN_SPEAK||1}}|N|Y}}=<nowiki>{{Cgr|N}}</nowiki>|#default={{#if:{{#if:{{#df_tagentry:{{{1}}}|FISHITEM||1}}||NONEMPTY}}{{#if:{{#df_tagentry:{{{1}}}|MILKABLE||1}}||NONEMPTY}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>N/A</nowiki>}}}}<nowiki>|swims=</nowiki>{{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|flies=</nowiki>{{#if:{{#df_tag:{{{1}}}|FLIER}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|magmasafe=</nowiki>{{#iferror: {{#ifexpr: ({{#df_tagvalue:{{{1}}}|IF_EXISTS_SET_MELTING_POINT|0}}) > 12000 |<nowiki>{{Cgr|Y}}</nowiki><nowiki>{{Cgr|N}}</nowiki>}}|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|tamable=</nowiki>{{#if:{{#df_tag:{{{1}}}|PETVALUE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|trainable=</nowiki>{{#if:{{#df_tag:{{{1}}}|TRAINABLE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<nowiki>|biome=</nowiki>{{#df_foreachtag:{{{1}}}|BIOME|<nowiki>{{bIcon|</nowiki>\2<nowiki>}}</nowiki>}} {{#iferror: {{#ifexpr: ({{#df_tag:{{{1}}}|COMMON_DOMESTIC}}) = 1 |<nowiki>{{bIcon|DOMESTIC}}</nowiki>}}|}}{{#if:{{#df_tag:{{{1}}}|UNDERGROUND_DEPTH}}|<nowiki>{{bIcon|C</nowiki>{{#df_tagentry:{{{1}}}|UNDERGROUND_DEPTH|1}}<nowiki>}}{{bIcon|TO}}{{bIcon|C</nowiki>{{#df_tagentry:{{{1}}}|UNDERGROUND_DEPTH|2}}<nowiki>}}</nowiki>|}}<nowiki>|size=N/A</nowiki><nowiki>|value=</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>}}</nowiki>}}</includeonly><noinclude>{{documentation}}<noinclude> |
Revision as of 20:03, 10 April 2011
(view - edit - history - purge) Documentation
Usage:
{{ RawToTable | <single creature raw file> | mode=<table mode>}}
This template will automatically fill in most values of the creature table, reading the raws and then providing you with a preview and source. This should not actually be used outside of preview.
Warning: May be somewhat inaccurate in the meat column. Adult body size cannot be found from a raw file, as multiple body size tags exist and it is impossible to automatically distinguish between them.
Ex:
- {{RawToTable|{{v0.31:Cow/raw}}|mode=1}}
Symbol | Name | Hostile? | Food? | Swims? | Flies? | Magma-safe? | Tamable? | Trainable? | Biome | Adult mass (g) | Pet Value | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
not found | - | - | - | - | - | - | 0 | 0 | Unspecified
= |NOT_BUTCHERABLE|N|Y}}= |SMALL_REMAINS|N|Y}}= |INTELLIGENT|N|Y}}= |CAN_LEARN|N|Y}}= |CAN_SPEAK|N|Y}}= |#default=N/A}} |
swims= | flies= | magmasafe= | tamable= | trainable= | biome= D | size=N/A | value=300
}} |
RawToTable Wizard - Copying the text below will yield the table as a result | |
NOMEAT |
={{Cgr|N}}|NOT_BUTCHERABLE|N|Y}}={{Cgr|N}}|SMALL_REMAINS|N|Y}}={{Cgr|N}}|INTELLIGENT|N|Y}}={{Cgr|N}}|CAN_LEARN|N|Y}}={{Cgr|N}}|CAN_SPEAK|N|Y}}={{Cgr|N}}|#default=N/A}}|swims={{Cgr|Y}}|flies={{Cgr|N}}|magmasafe={{Cgr|N}}|tamable={{Cgr|Y}}|trainable={{Cgr|N}}|biome= {{bIcon|DOMESTIC}}|size=N/A|value=300}}}}
- {{RawToTable|{{v0.31:Dragon/raw}}|mode=2}}
Symbol | Name | Hostile? | Food? | Swims? | Flies? | Magma-safe? | Tamable? | Trainable? | Biome | Adult mass (g) | Pet Value | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
not found | - | - | - | - | - | - | 0 | 0 | Unspecified
= |NOT_BUTCHERABLE|N|Y}}= |SMALL_REMAINS|N|Y}}= |INTELLIGENT|N|Y}}= |CAN_LEARN|N|Y}}= |CAN_SPEAK|N|Y}}= |#default=N/A}} |
swims= | flies= | magmasafe= | tamable= | trainable= | biome=ALL | size=N/A | value=10000
}} |
RawToTable Wizard - Copying the text below will yield the table as a result | |
NOMEAT |
={{Cgr|N}}|NOT_BUTCHERABLE|N|Y}}={{Cgr|N}}|SMALL_REMAINS|N|Y}}={{Cgr|N}}|INTELLIGENT|N|Y}}={{Cgr|N}}|CAN_LEARN|N|Y}}={{Cgr|N}}|CAN_SPEAK|N|Y}}={{Cgr|N}}|#default=N/A}}|swims={{Cgr|Y}}|flies={{Cgr|N}}|magmasafe={{Cgr|Y}}{{Cgr|N}}|tamable={{Cgr|Y}}|trainable={{Cgr|Y}}|biome={{bIcon|ANY_LAND}} |size=N/A|value=10000}}}}
- {{RawToTable|{{v0.31:Longfin mako shark/raw}}}}
Symbol | Name | Hostile? | Food? | Swims? | Flies? | Magma-safe? | Tamable? | Trainable? | Biome | Adult mass (g) | Pet Value | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
not found | - | - | - | - | - | - | 0 | 0 | Unspecified
= |NOT_BUTCHERABLE|N|Y}}= |SMALL_REMAINS|N|Y}}= |INTELLIGENT|N|Y}}= |CAN_LEARN|N|Y}}= |CAN_SPEAK|N|Y}}= |#default=N/A}} |
swims= | flies= | magmasafe= | tamable= | trainable= | biome=≈ ≈
|
size=N/A | value=500
}} |
RawToTable Wizard - Copying the text below will yield the table as a result | |
NOMEAT |
={{Cgr|N}}|NOT_BUTCHERABLE|N|Y}}={{Cgr|N}}|SMALL_REMAINS|N|Y}}={{Cgr|N}}|INTELLIGENT|N|Y}}={{Cgr|N}}|CAN_LEARN|N|Y}}={{Cgr|N}}|CAN_SPEAK|N|Y}}={{Cgr|N}}|#default=N/A}}|swims={{Cgr|Y}}|flies={{Cgr|N}}|magmasafe={{Cgr|N}}|tamable={{Cgr|Y}}|trainable={{Cgr|N}}|biome={{bIcon|OCEAN_TEMPERATE}}{{bIcon|OCEAN_TROPICAL}} |size=N/A|value=500}}}}