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 (test)
Line 3: Line 3:
 
<nowiki>{{CreatureCurrent table row|</nowiki><br>
 
<nowiki>{{CreatureCurrent table row|</nowiki><br>
 
<nowiki>
 
<nowiki>
name=[[</nowiki>{{lc:{{#df_tagvalue:{{{1}}}|CREATURE|N/A}}}}<nowiki>]]</nowiki><br><nowiki>
+
name=[[</nowiki>{{lc:{{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|CREATURE|N/A}}}}<nowiki>]]</nowiki><br><nowiki>
|symbol=</nowiki>{{#df_tagvalue:{{{1}}}|CREATURE_TILE|?}}<br><nowiki>
+
|symbol=</nowiki>{{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|CREATURE_TILE|?}}<br><nowiki>
 
|color=</nowiki>7:0:1<br><nowiki>
 
|color=</nowiki>7:0:1<br><nowiki>
|hostile=</nowiki>{{#if:{{#df_tag:{{{1}}}|LARGE_PREDATOR}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><nowiki>
+
|hostile=</nowiki>{{#if:{{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|LARGE_PREDATOR}}|<nowiki>{{Cgr|Y}}</nowiki>|<nowiki>{{Cgr|N}}</nowiki>}}<br><nowiki>
 
|food=N/A</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>
+
|swims=</nowiki>{{#if:{{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|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>
+
|flies=</nowiki>{{#if:{{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|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>
+
|magmasafe=</nowiki>{{#iferror: {{#ifexpr: ({{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|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>
+
|tamable=</nowiki>{{#if:{{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|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>
+
|trainable=</nowiki>{{#if:{{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|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>
+
|biome=</nowiki>{{#df_foreachtag:#df_raw:{{{1}}}||{{{2}}}}}|BIOME|<nowiki>{{bIcon|/2}}</nowiki>}} {{#iferror: {{#ifexpr: ({{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|COMMON_DOMESTIC}}) = 1 |<nowiki>{{bIcon|DOMESTIC}}</nowiki>}}|}}<br><nowiki>
 
|size=N/A</nowiki><br><nowiki>
 
|size=N/A</nowiki><br><nowiki>
|value={{PVm|</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>}}}}</nowiki>}}
+
|value={{PVm|</nowiki>{{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|PETVALUE|0}}<nowiki>}}}}</nowiki>}}
 
{| style="margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;" class="wikitable sortable"
 
{| 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="background:#F2F2F2;text-align:center;"
Line 31: Line 31:
 
!style="border:1px #AAA solid;padding:0.2em;" colspan="2"|Pet Value
 
!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;font-size: 175%;font-weight: bold; font-family: 'Century', monospace; background: black;color:{{fgcolor|{{{color|{{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|COLOR|7:0:1}}}}}}};text-align:center;"|{{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|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;"|[[{{lc:{{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|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;"|{{#if:{{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|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;"|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:#df_raw:{{{1}}}||{{{2}}}}}|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;"|{{#if:{{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|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;"|{{#iferror: {{#ifexpr: ({{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|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:#df_raw:{{{1}}}||{{{2}}}}}|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;text-align:center;"|{{#if:{{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|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;font-size: 100%;background: black;color:{{fgcolor|{{{color|2:0:0}}}}};text-align:center;"|{{#df_foreachtag:#df_raw:{{{1}}}||{{{2}}}}}|BIOME|{{bIcon|/2}}}} {{#iferror: {{#ifexpr: ({{#df_tag:#df_raw:{{{1}}}||{{{2}}}}}|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;"|N/A
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|{{#df_tagvalue:{{{1}}}|PETVALUE|0}}
+
|style="border:1px #AAA solid;padding:0.2em;text-align:center;"|{{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|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}}}}
+
|style="border:1px #AAA solid;padding:0em;font-size: 50%;font-family: 'Century', monospace; background: black;text-align:center;"|{{PVm|{{#df_tagvalue:#df_raw:{{{1}}}||{{{2}}}}}|PETVALUE|0}}}}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
  
 
Usage:<br>
 
Usage:<br>
 
<pre>
 
<pre>
   {{RawToTable|<single creature raw file>}}</pre>
+
   {{RawToTable| <creature raw file> | <id> }}</pre>
  
  
 
Ex:
 
Ex:
'''Walrus'''
+
<nowiki>{{RawToTable| <creature raw file> |'''Walrus'''}}</nowiki> =
  
 
----
 
----
Line 83: Line 83:
 
[MAXAGE:20:30]
 
[MAXAGE:20:30]
 
[HOMEOTHERM:10067]
 
[HOMEOTHERM:10067]
[SWIMS_INNATE][SWIM_SPEED:2500]}}
+
[SWIMS_INNATE][SWIM_SPEED:2500]|WALRUS}}

Revision as of 08:44, 10 April 2011


Usage:

  {{RawToTable| <creature raw file> | <id> }}


Ex: {{RawToTable| <creature raw file> |'''Walrus'''}} =



  RawToTable Wizard - Copying the text below will yield the table as a result
 

{{CreatureCurrent table row|
name=[[

]]
|symbol=|CREATURE_TILE|?}}
|color=7:0:1
|hostile=LARGE_PREDATOR|{{Cgr|Y}}|{{Cgr|N}}}}
|food=N/A
|swims=SWIMS_INNATE|{{Cgr|Y}}|{{Cgr|N}}}}
|flies=FLIER|{{Cgr|Y}}|{{Cgr|N}}}}
|magmasafe={{Cgr|Y}}|{{Cgr|N}}}}
|tamable=PETVALUE|{{Cgr|Y}}|{{Cgr|N}}}}
|trainable=TRAINABLE|{{Cgr|Y}}|{{Cgr|N}}}}
|biome=WALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUS|BIOME|{{bIcon|/2}}}} {{bIcon|DOMESTIC}}|}}
|size=N/A
|value={{PVm||PETVALUE|0}}}}}}}}

Symbol Name Hostile? Food? Swims? Flies? Magma-safe? Tamable? Trainable? Biome Adult mass (g) Pet Value
style="border:1px #AAA solid;padding:0.2em;font-size: 175%;font-weight: bold; font-family: 'Century', monospace; background: black;color:}};text-align:center;" ?}} [[}}]] LARGE_PREDATOR|2Y.gif|1N.gif}} N/A SWIMS_INNATE|2Y.gif|1N.gif}} FLIER|2Y.gif|1N.gif}} 2Y.gif|1N.gif}} PETVALUE|2Y.gif|1N.gif}} TRAINABLE|2Y.gif|1N.gif}} WALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUSWALRUS|BIOME|?}} D|}} N/A style="border:1px #AAA solid;padding:0.2em;text-align:center;" 0}}

<span style="width:Expression error: Unexpected / operator.%; height:6px; background:0; float:left; padding:0; margin:0;"> 

 

}}