Template:EntityClassPage: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 31: Line 31:
<td><center><b>{{GameMessage|{{#var:entity_class_description}}}}</b></center></td>
<td><center><b>{{GameMessage|{{#var:entity_class_description}}}}</b></center></td>
</tr>
</tr>
{{#if:{{{parent|}}}|
<tr>
<th scope="row" style="text-align: left">Parent class</th>
<td><center>{{EntityClass|{{{parent}}}}}</center></td>
</tr>
}}
<tr>
<tr>
<th scope="row" style="text-align: left">Type</th>
<th scope="row" style="text-align: left">Type</th>
Line 40: Line 46:
</tr>
</tr>
<tr>
<tr>
<th scope="row" style="text-align: left">Script</th>
<th scope="row" style="text-align: left">Script name</th>
<td><center><code>{{#var:entity_class_script}}</code></center></td>
<td><center><code>{{#var:entity_class_script}}</code></center></td>
</tr>
</tr>
<tr>
<tr>
<th scope="row" style="text-align: left">Path</th>
<th scope="row" style="text-align: left">Script path</th>
<td><center><code>{{#var:entity_class_path}}</code></center></td>
<td><center><code>{{#var:entity_class_path}}</code></center></td>
</tr>
</tr>

Revision as of 06:03, 8 March 2013

EntityClassPage entity class
Description
A chicken. [e]
Type
NPC
ID
chicken
Script name
chicken_base
Script path
npc/chicken_base


Usage

Template for entity class pages

Parameters:

  • id (required) - unique id used to find this entity class
  • type (required) - entity type for this class - see Property:entity type
  • name (default: {{{PAGENAME}}}) - friendly name of the entity class
  • plural name (default: {{{name}}}s) - name for multiple of this class
  • description (default: description_{{{id|chicken}}}) - key for the localised entity class description
  • script (default: {{{id}}}) - script name for this entity class
  • path - script path for this entity class - default depends on type:
    • npc: npc/{{{script}}}