Difference between revisions of "Template:Gamedata/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(how to customize the title)
m (about {{raw}} usage)
 
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>

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}}
}}