- 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/doc"
m (more warning) |
m |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Usage:<br> | Usage:<br> | ||
<pre> | <pre> | ||
− | {{ RawToTable | <single creature raw file> }}</pre><br> | + | {{ RawToTable | <single creature raw file> | mode=<table mode>}}</pre><br> |
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. | 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 | + | '''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: | Ex: | ||
− | * <nowiki>{{RawToTable|{{raw | + | * <nowiki>{{RawToTable|{{v0.31:Cow/raw}}|mode=1}}</nowiki> |
− | {{RawToTable|{{raw | + | {{RawToTable|{{v0.31:Cow/raw}}|mode=1}} |
− | * <nowiki>{{RawToTable|{{raw | + | * <nowiki>{{RawToTable|{{v0.31:Dragon/raw}}|mode=2}}</nowiki> |
− | {{RawToTable|{{raw | + | {{RawToTable|{{v0.31:Dragon/raw}}|mode=2}} |
− | |||
+ | * <nowiki>{{RawToTable|{{v0.31:Longfin mako shark/raw}}}}</nowiki> | ||
− | {{RawToTable|{{raw | + | |
+ | {{RawToTable|{{v0.31:Longfin mako shark/raw}}}} | ||
+ | |||
+ | <includeonly>[[Category:Templates]]</includeonly> | ||
+ | <noinclude>[[Category:Template Documentation]]</noinclude> |
Latest revision as of 17:32, 23 July 2013
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}}
RawToTable: Copying the text below will yield a specialized hostility table row as a result: {{CreatureWorking table row|1|name=[[not found]]|symbol=|color=not found|hostile=N|fighter=N}}
- {{RawToTable|{{v0.31:Dragon/raw}}|mode=2}}
RawToTable: Copying the text below will yield a specialized nutrition table row as a result: {{CreatureWorking table row|1|name=[[not found]]|symbol=|color=not found|egg=Y|milk=N|meat=N/A}}
- {{RawToTable|{{v0.31:Longfin mako shark/raw}}}}
RawToTable: {{CreatureWorking table row|name={{L|not found}}|symbol=|color=not found|hostile=Y|swims=Y|flies=N|egg=N|milk=N|meat=Y|size=|value=500|alignment=Neutral}}