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:RawToTable"
Jump to navigation
Jump to search
m |
m (fixed?) |
||
Line 14: | Line 14: | ||
!style="border:1px #AAA solid;padding:0.2em;"|Adult mass (g) | !style="border:1px #AAA solid;padding:0.2em;"|Adult mass (g) | ||
!style="border:1px #AAA solid;padding:0.2em;" colspan="2"|Pet Value | !style="border:1px #AAA solid;padding:0.2em;" colspan="2"|Pet Value | ||
− | {{CreatureWorking table row|name=[[{{lc:{{#df_tagentry:{{{1}}}|NAME|1}}}}]]|symbol={{#df_tagvalue:{{{1}}}|CREATURE_TILE|?}}|color={{#df_tagvalue:{{{1}}}|COLOR|7:0:1}}|hostile={{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|{{Cgr|Y}}|{{Cgr|N}}}}|food=|swims={{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|{{Cgr|Y}}|{{Cgr|N}}}}|flies={{#if:{{#df_tag:{{{1}}}|FLIER}}|{{Cgr|Y}}|{{Cgr|N}}}}|magmasafe={{#iferror: {{#ifexpr: ({{#df_tagvalue:{{{1}}}|IF_EXISTS_SET_MELTING_POINT|0}}) > 12000 |{{Cgr|Y}}|{{Cgr|N}}}}|{{Cgr|N}}}}|tamable={{#if:{{#df_tag:{{{1}}}|PETVALUE}}|{{Cgr|Y}}|{{Cgr|N}}}}|trainable={{#if:{{#df_tag:{{{1}}}|TRAINABLE}}|{{Cgr|Y}}|{{Cgr|N}}}}|biome={{#eval:{{#df_foreachtag:{{{1}}}|BIOME|{{#delay:bIcon|\2}}}}}} {{#iferror: {{#ifexpr:({{#df_tag:{{{1}}}|COMMON_DOMESTIC}}) = 1|{{bIcon|DOMESTIC}}}}|}}|size=N/A|value={{#df_tagvalue:{{{1}}}|PETVALUE|0}}}}|} | + | {{CreatureWorking table row |
+ | |name=[[{{lc:{{#df_tagentry:{{{1}}}|NAME|1}}}}]] | ||
+ | |symbol={{#df_tagvalue:{{{1}}}|CREATURE_TILE|?}} | ||
+ | |color={{#df_tagvalue:{{{1}}}|COLOR|7:0:1}} | ||
+ | |hostile={{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|{{Cgr|Y}}|{{Cgr|N}}}} | ||
+ | |food=N/A | ||
+ | |swims={{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|{{Cgr|Y}}|{{Cgr|N}}}} | ||
+ | |flies={{#if:{{#df_tag:{{{1}}}|FLIER}}|{{Cgr|Y}}|{{Cgr|N}}}} | ||
+ | |magmasafe={{#iferror: {{#ifexpr: ({{#df_tagvalue:{{{1}}}|IF_EXISTS_SET_MELTING_POINT|0}}) > 12000 |{{Cgr|Y}}|{{Cgr|N}}}}|{{Cgr|N}}}} | ||
+ | |tamable={{#if:{{#df_tag:{{{1}}}|PETVALUE}}|{{Cgr|Y}}|{{Cgr|N}}}} | ||
+ | |trainable={{#if:{{#df_tag:{{{1}}}|TRAINABLE}}|{{Cgr|Y}}|{{Cgr|N}}}} | ||
+ | |biome={{#eval:{{#df_foreachtag:{{{1}}}|BIOME|{{#delay:bIcon|\2}}}}}} {{#iferror: {{#ifexpr:({{#df_tag:{{{1}}}|COMMON_DOMESTIC}}) = 1|{{bIcon|DOMESTIC}}}}|}} | ||
+ | |size=N/A | ||
+ | |value={{#df_tagvalue:{{{1}}}|PETVALUE|0}}}}|} | ||
{{KReference|RawToTable Wizard - Copying the text below will yield the table as a result|<nowiki>{{CreatureWorking table row</nowiki><br><nowiki>|name=[[</nowiki>{{lc:{{#df_tagentry:{{{1}}}|NAME|1}}}}<nowiki>]]</nowiki><br><nowiki>|symbol=</nowiki>{{#df_tagvalue:{{{1}}}|CREATURE_TILE|?}}<br><nowiki>|color=</nowiki>{{#df_tagvalue:{{{1}}}|COLOR|7:0:1}}<br><nowiki>|hostile=</nowiki>{{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><nowiki>|food=N/A</nowiki><br><nowiki>|swims=</nowiki>{{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><nowiki>|flies=</nowiki>{{#if:{{#df_tag:{{{1}}}|FLIER}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><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>}}<br><nowiki>|tamable=</nowiki>{{#if:{{#df_tag:{{{1}}}|PETVALUE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><nowiki>|trainable=</nowiki>{{#if:{{#df_tag:{{{1}}}|TRAINABLE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><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>}}|}}<br><nowiki>|size=N/A</nowiki><br><nowiki>|value=</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>}}</nowiki>}}</includeonly><noinclude> | {{KReference|RawToTable Wizard - Copying the text below will yield the table as a result|<nowiki>{{CreatureWorking table row</nowiki><br><nowiki>|name=[[</nowiki>{{lc:{{#df_tagentry:{{{1}}}|NAME|1}}}}<nowiki>]]</nowiki><br><nowiki>|symbol=</nowiki>{{#df_tagvalue:{{{1}}}|CREATURE_TILE|?}}<br><nowiki>|color=</nowiki>{{#df_tagvalue:{{{1}}}|COLOR|7:0:1}}<br><nowiki>|hostile=</nowiki>{{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><nowiki>|food=N/A</nowiki><br><nowiki>|swims=</nowiki>{{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><nowiki>|flies=</nowiki>{{#if:{{#df_tag:{{{1}}}|FLIER}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><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>}}<br><nowiki>|tamable=</nowiki>{{#if:{{#df_tag:{{{1}}}|PETVALUE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><nowiki>|trainable=</nowiki>{{#if:{{#df_tag:{{{1}}}|TRAINABLE}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><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>}}|}}<br><nowiki>|size=N/A</nowiki><br><nowiki>|value=</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>}}</nowiki>}}</includeonly><noinclude> | ||
Revision as of 17:05, 10 April 2011
Usage:
{{ RawToTable | <single creature raw file> }}
This will automatically fill in most values of the creature table, reading the raws.
Ex:
- {{RawToTable|{{raw|DF2010:creature_large_ocean.txt|CREATURE|WALRUS}}}}
Symbol | Name | Hostile? | Food? | Swims? | Flies? | Magma-safe? | Tamable? | Trainable? | Biome | Adult mass (g) | Pet Value | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
not found | not found | - | - | - | - | - | - | N/A | not found | Unspecified |
RawToTable Wizard - Copying the text below will yield the table as a result | |
{{CreatureWorking table row |
- {{RawToTable|{{raw|DF2010:creature_domestic.txt|CREATURE|BIRD_DUCK}}}}
Symbol | Name | Hostile? | Food? | Swims? | Flies? | Magma-safe? | Tamable? | Trainable? | Biome | Adult mass (g) | Pet Value | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
not found | not found | - | - | - | - | - | - | N/A | not found | Unspecified |
RawToTable Wizard - Copying the text below will yield the table as a result | |
{{CreatureWorking table row |