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
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 +
{{#ifexpr {{{3|0}}} = 1|
 
{{KReference|RawToTable Wizard - Copying the text below will yield the table as a result|
 
{{KReference|RawToTable Wizard - Copying the text below will yield the table as a result|
 
<nowiki>{{CreatureWorking table row|</nowiki><br>
 
<nowiki>{{CreatureWorking table row|</nowiki><br>
Line 15: Line 16:
 
|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>
 
|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>
 
|size=N/A</nowiki><br><nowiki>
|value=</nowiki>{{#df_tagvalue:{{{1}}}|PETVALUE|0}}<nowiki>}}</nowiki>}}
+
|value=</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="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 48: Line 49:
 
Usage:<br>
 
Usage:<br>
 
<pre>
 
<pre>
   {{RawToTable|<single creature raw file>}}</pre><br>
+
   {{RawToTable | <single creature raw file> | <place a 1 here if you want to get source> }}</pre><br>
 
This will automatically fill in most values of the creature table, reading the raws.
 
This will automatically fill in most values of the creature table, reading the raws.
  
Line 54: Line 55:
 
Ex:
 
Ex:
 
'''Walrus'''<br>
 
'''Walrus'''<br>
<nowiki>{{RawToTable|{{raw|DF2010:creature_large_ocean.txt|CREATURE|WALRUS}}}}</nowiki>
+
<nowiki>{{RawToTable|{{raw|DF2010:creature_large_ocean.txt|CREATURE|WALRUS}}|1}}</nowiki>
  
 
----
 
----
  
  
{{RawToTable|{{raw|DF2010:creature_large_ocean.txt|CREATURE|WALRUS}}}}
+
{{RawToTable|{{raw|DF2010:creature_large_ocean.txt|CREATURE|WALRUS}}|1}}

Revision as of 16:18, 10 April 2011


Usage:

  {{RawToTable | <single creature raw file> | <place a 1 here if you want to get source> }}


This will automatically fill in most values of the creature table, reading the raws.


Ex: Walrus
{{RawToTable|{{raw|DF2010:creature_large_ocean.txt|CREATURE|WALRUS}}|1}}



{{#ifexpr 0 = 1|

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

{{CreatureWorking table row|
name=[[not found]]
|symbol=not found
|color=not found
|hostile={{Cgr|N}}
|food=N/A
|swims={{Cgr|N}}
|flies={{Cgr|N}}
|magmasafe={{Cgr|N}}
|tamable={{Cgr|N}}
|trainable={{Cgr|N}}
|biome=
|size=N/A
|value=not found}}

|}}

Symbol Name Hostile? Food? Swims? Flies? Magma-safe? Tamable? Trainable? Biome Adult mass (g) Pet Value
not found not found 1N.gif N/A 1N.gif 1N.gif 1N.gif 1N.gif 1N.gif N/A not found

<span style="width:Expression error: Unrecognized word "found".%; height:6px; background:#ff5; float:left; padding:0; margin:0;">