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"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
m
 
(91 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{KReference|RawToTable Wizard - Copying the text below will yield the table as a result|
+
{{#switch: {{{mode}}}
<nowiki>{{CreatureCurrent table row|</nowiki><br>
+
|1=<span style="color:#f00;">RawToTable: Copying the text below will yield a specialized hostility table row as a result: </span><nowiki>{{CreatureWorking table row|1|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>Y</nowiki>|{{#if:{{#df_tag:{{{1}}}|ATTACK_TRIGGER}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}}}<nowiki>|fighter=</nowiki>{{#if:{{#df_tag:{{{1}}}|LIKES_FIGHTING}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>}}</nowiki>
<nowiki>
+
|2=<span style="color:#f00;">RawToTable: Copying the text below will yield a specialized nutrition table row as a result: </span><nowiki>{{CreatureWorking table row|1|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>|egg=</nowiki>{{#if:{{#df_tag:{{{1}}}|LAYS_EGGS}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|milk=</nowiki>{{#if:{{#df_tag:{{{1}}}|MILKABLE}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|meat=</nowiki>{{#switch:Y|{{#if:{{#df_tagentry:{{{1}}}|ITEMCORPSE||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|NOMEAT||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|NOT_BUTCHERABLE||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|SMALL_REMAINS||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|INTELLIGENT||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|CAN_LEARN||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|CAN_SPEAK||1}}|N|Y}}=<nowiki>N</nowiki>|#default={{#if:{{#if:{{#df_tagentry:{{{1}}}|FISHITEM||1}}||NONEMPTY}}{{#if:{{#df_tagentry:{{{1}}}|FISHITEM||1}}||NONEMPTY}}|<nowiki>Y</nowiki>|<nowiki>N/A</nowiki>}}}}<nowiki>}}</nowiki>
name=[[</nowiki>{{lc:{{#df_tagvalue:{{{1}}}|CREATURE|N/A}}}}<nowiki>]]</nowiki><br><nowiki>
+
|4=<span style="color:#f00;">RawToTable: Copying the text below will yield a specialized pet value table row as a result: </span><nowiki>{{CreatureWorking table row|4|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>|tamable=</nowiki>{{#if:{{#df_tag:{{{1}}}|PETVALUE}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|trainable=</nowiki>{{#if:{{#df_tag:{{{1}}}|TRAINABLE}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|value=</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>}}</nowiki>
|symbol=</nowiki>{{#df_tagvalue:{{{1}}}|CREATURE_TILE|?}}<br><nowiki>
+
|5=<span style="color:#f00;">RawToTable: Copying the text below will yield a specialized adult size table row as a result: </span><nowiki>{{CreatureWorking table row|5|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>|size=</nowiki>{{formatnum:{{CSizeInventory|{{lc:{{#df_tagentry:{{{1}}}|NAME|1}}}}}}}}<nowiki>}}</nowiki>
|color=</nowiki>7:0:1<br><nowiki>
+
|b1=<span style="color:#f00;">RawToTable: Copying the text below will yield a general creature table row as a result: </span><nowiki>{{CreatureWorking table row|b1|name=[[</nowiki>{{lc:{{#df_tagentry:{{{1}}}|NAME|1}}}}<nowiki>]]|symbol=</nowiki>{{#df_tagvalue:{{{1}}}|TILE|?}}<nowiki>|color=</nowiki>{{#df_tagvalue:{{{1}}}|COLOR|7:0:1}}<nowiki>|hostile=</nowiki>{{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|<nowiki>Y</nowiki>|{{#if:{{#df_tag:{{{1}}}|ATTACK_TRIGGER}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}}}<nowiki>|swims=</nowiki>{{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|flies=</nowiki>{{#if:{{#df_tag:{{{1}}}|FLIER}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|size=</nowiki>{{#df_tagvalue:{{{1}}}|SIZE|0}}<nowiki>|value=</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>}}</nowiki>
|hostile=</nowiki>{{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><nowiki>
+
|#default=<span style="color:#f00;">RawToTable: </span><nowiki>{{CreatureWorking table row|name={{L|</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>Y</nowiki>|{{#if:{{#df_tag:{{{1}}}|ATTACK_TRIGGER}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}}}<nowiki>|swims=</nowiki>{{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|flies=</nowiki>{{#if:{{#df_tag:{{{1}}}|FLIER}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|egg=</nowiki>{{#if:{{#df_tag:{{{1}}}|LAYS_EGGS}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|milk=</nowiki>{{#if:{{#df_tag:{{{1}}}|MILKABLE}}|<nowiki>Y</nowiki>|<nowiki>N</nowiki>}}<nowiki>|meat=</nowiki>{{#switch:Y|{{#if:{{#df_tagentry:{{{1}}}|ITEMCORPSE||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|NOMEAT||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|NOT_BUTCHERABLE||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|SMALL_REMAINS||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|INTELLIGENT||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|CAN_LEARN||1}}|N|Y}}=<nowiki>N</nowiki>|{{#if:{{#df_tagentry:{{{1}}}|CAN_SPEAK||1}}|N|Y}}=<nowiki>N</nowiki>|#default={{#if:{{#if:{{#df_tagentry:{{{1}}}|FISHITEM||1}}||NONEMPTY}}{{#if:{{#df_tagentry:{{{1}}}|FISHITEM||1}}||NONEMPTY}}|<nowiki>Y</nowiki>|<nowiki>Y</nowiki>}}}}<nowiki>|size=</nowiki>{{formatnum:{{CSizeInventory|{{lc:{{#df_tagentry:{{{1}}}|NAME|1}}}}}}}}<nowiki>|value=</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>|alignment=</nowiki>{{#switch:1|{{#df_tag:{{{1}}}|BENIGN}}=Benign|{{#df_tag:{{{1}}}|GOOD}}=Good|{{#df_tag:{{{1}}}|EVIL}}=Evil|{{#df_tag:{{{1}}}|SAVAGE}}=Savage|#default=Neutral}}<nowiki>}}</nowiki>
|food=N/A</nowiki><br><nowiki>
+
}}</includeonly><noinclude>{{documentation}}<noinclude>
|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|/2}}</nowiki>}} {{#iferror: {{#ifexpr: ({{#df_tag:{{{1}}}|COMMON_DOMESTIC}}) = 1 |<nowiki>{{bIcon|DOMESTIC}}</nowiki>}}|}}<br><nowiki>
 
|size=N/A</nowiki><br><nowiki>
 
|value={{PVm|</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>
 
}}}}</nowiki>}}
 
{| style="margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;" class="wikitable sortable"
 
|- style="background:#F2F2F2;text-align:center;"
 
!style="border:1px #AAA solid;padding:0.2em;" class="unsortable"|Symbol
 
!style="border:1px #AAA solid;padding:0.2em;"|Name
 
!style="border:1px #AAA solid;padding:0.2em;"|<small>Hostile?</small>
 
!style="border:1px #AAA solid;padding:0.2em;"|<small>Food?</small>
 
!style="border:1px #AAA solid;padding:0.2em;"|<small>Swims?</small>
 
!style="border:1px #AAA solid;padding:0.2em;"|<small>Flies?</small>
 
!style="border:1px #AAA solid;padding:0.2em;"|<small>Magma-safe?</small>
 
!style="border:1px #AAA solid;padding:0.2em;"|<small>Tamable?</small>
 
!style="border:1px #AAA solid;padding:0.2em;"|<small>Trainable?</small>
 
!style="border:1px #AAA solid;padding:0.2em;" class="unsortable"|Biome
 
!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;font-size: 175%;font-weight: bold; font-family: 'Century', monospace; background: black;color:{{fgcolor|{{{color|{{#df_tagvalue:{{{1}}}|COLOR|7:0:1}}}}}}};text-align:center;"|{{#df_tagvalue:{{{1}}}|CREATURE_TILE|?}}
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|[[{{lc:{{#df_tagvalue:{{{1}}}|CREATURE|N/A}}}}]]
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|{{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|{{Cgr|Y}}|{{Cgr|N}}}}
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|N/A
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|{{#if:{{#df_tag:{{{1}}}|SWIMS_INNATE}}|{{Cgr|Y}}|{{Cgr|N}}}}
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|{{#if:{{#df_tag:{{{1}}}|FLIER}}|{{Cgr|Y}}|{{Cgr|N}}}}
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|{{#iferror: {{#ifexpr: ({{#df_tagvalue:{{{1}}}|IF_EXISTS_SET_MELTING_POINT|0}}) > 12000 |{{Cgr|Y}}|{{Cgr|N}}}}|{{Cgr|N}}}}
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|{{#if:{{#df_tag:{{{1}}}|PETVALUE}}|{{Cgr|Y}}|{{Cgr|N}}}}
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|{{#if:{{#df_tag:{{{1}}}|TRAINABLE}}|{{Cgr|Y}}|{{Cgr|N}}}}
 
|style="border:1px #AAA solid;padding:0.2em;font-size: 100%;background: black;color:{{fgcolor|{{{color|2:0:0}}}}};text-align:center;"|{{#df_foreachtag:{{{1}}}|BIOME|{{bIcon|/2}}}} {{#iferror: {{#ifexpr: ({{#df_tag:{{{1}}}|COMMON_DOMESTIC}}) = 1 |{{bIcon|DOMESTIC}}}}|}}
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|N/A
 
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|{{#df_tagvalue:{{{1}}}|PETVALUE|0}}
 
|style="border:1px #AAA solid;padding:0em;font-size: 50%;font-family: 'Century', monospace; background: black;text-align:center;"|{{PVm|{{#df_tagvalue:{{{1}}}|PETVALUE|0}}}}
 
|}</includeonly><noinclude>
 
 
 
Usage:<br>
 
<pre>
 
  {{RawToTable|<single creature raw file>}}</pre>
 
 
 
 
 
Ex:
 
'''Walrus'''
 
 
 
----
 
 
 
 
 
{{RawToTable|[CREATURE:WALRUS]
 
[CREATURE_TILE:'W'][COLOR:6:0:0]
 
[PETVALUE:400]
 
[BIOME:OCEAN_ARCTIC]
 
[BODY:BASIC_2PARTBODY:BASIC_HEAD:FRONT_BODY_FLIPPERS:REAR_BODY_FLIPPERS:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:MOUTH:2TUSKS:GENERIC_TEETH:RIBCAGE]
 
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
 
[USE_MATERIAL_TEMPLATE:IVORY:TOOTH_TEMPLATE]
 
[STATE_NAME:ALL_SOLID:ivory]
 
[STATE_ADJ:ALL_SOLID:ivory]
 
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
 
[USE_TISSUE_TEMPLATE:IVORY:IVORY_TEMPLATE]
 
[TISSUE_NAME:ivory:NP]
 
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]
 
[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
 
[PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]
 
[TL_MAJOR_ARTERIES]
 
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
 
[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS]
 
[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
 
[TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
 
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]
 
[BODY_SIZE:0:0:150000]
 
[BODY_SIZE:2:0:750000]
 
[BODY_SIZE:5:0:1500000]
 
[MAXAGE:20:30]
 
[HOMEOTHERM:10067]
 
[SWIMS_INNATE][SWIM_SPEED:2500]}}
 

Latest revision as of 16:24, 26 July 2011