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:Gamedata/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Documentation for the {{gamedata}} template)
 
m (about {{raw}} usage)
 
(One intermediate revision by the same user not shown)
Line 26: Line 26:
  
  
You can use the {{t|raw}} template as an argument:
+
It is preferred to use the {{t|raw}} template to pull the raws directly from the game files instead of copying and pasting them manually:
  
 
  <nowiki>{{gamedata|{{raw|DF2014:creature_domestic.txt|CREATURE|CAT}}}}</nowiki>
 
  <nowiki>{{gamedata|{{raw|DF2014:creature_domestic.txt|CREATURE|CAT}}}}</nowiki>
  
 
{{gamedata|{{raw|DF2014:creature_domestic.txt|CREATURE|CAT}}}}
 
{{gamedata|{{raw|DF2014:creature_domestic.txt|CREATURE|CAT}}}}
 +
 +
 +
You can customize the title using the <code>title=</code> argument:
 +
 +
<nowiki>{{gamedata
 +
|title=Raws of [[Cat|a certain invasive species]]
 +
|{{raw|DF2014:creature_domestic.txt|CREATURE|CAT}}
 +
}}</nowiki>
 +
 +
{{gamedata
 +
|title=Raws of [[Cat|a certain invasive species]]
 +
|{{raw|DF2014:creature_domestic.txt|CREATURE|CAT}}
 +
}}

Latest revision as of 16:06, 19 May 2019

Displays the raws from the Page name/raw directory.

Can be given custom raws to display instead:

{{gamedata|[ITEM_WEAPON:ITEM_WEAPON_HAMMER_WAR]
[NAME:war hammer:war hammers]
[SIZE:400]
[SKILL:HAMMER]
[TWO_HANDED:37500]
[MINIMUM_SIZE:32500]
[MATERIAL_SIZE:3]
[ATTACK:BLUNT:10:200:bash:bashes:NO_SUB:2000]
	[ATTACK_PREPARE_AND_RECOVER:3:3]
}}


It is preferred to use the {{raw}} template to pull the raws directly from the game files instead of copying and pasting them manually:

{{gamedata|{{raw|DF2014:creature_domestic.txt|CREATURE|CAT}}}}


You can customize the title using the title= argument:

{{gamedata
|title=Raws of [[Cat|a certain invasive species]]
|{{raw|DF2014:creature_domestic.txt|CREATURE|CAT}}
}}