Template:EntityClassPage: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 57: Line 57:
<includeonly>
<includeonly>
[[Category:Entity Classes]]<!--
[[Category:Entity Classes]]<!--
  Define classes inherited by this class (including itself for convenience)


-->[[inherits class::{{{id}}}| ]]<!--
-->[[inherits class::{{{id}}}| ]]<!--
Line 63: Line 66:
   -->{{#arrayprint:entity_superclasses||@class|[[inherits class::@class| ]]}}<!--
   -->{{#arrayprint:entity_superclasses||@class|[[inherits class::@class| ]]}}<!--
-->}}<!--
-->}}<!--
  Display the class parent and child classes to the user


-->
-->
Line 75: Line 81:
</p>
</p>
}}<!--
}}<!--
  Custom description


-->{{{1|}}}
-->{{{1|}}}
<!--
<!--
  List instances of this class


-->{{#ifeq:|{{#show: {{FULLPAGENAME}} | ?entity id }}|<!--
-->{{#ifeq:|{{#show: {{FULLPAGENAME}} | ?entity id }}|<!--
-->{{#arraydefine:entity_class_instances|{{#ask: [[Category:Entities]] [[class::{{{id}}}]] | ?# | mainlabel=- | limit=1000 | format=array}}}}<!--
-->{{#arraydefine:entity_class_instances|{{#ask: [[Category:Entities]] [[has class::{{{id}}}]] | ?# | mainlabel=- | limit=1000 | format=array}}}}<!--
-->{{#ifeq:0|{{#arraysize:entity_class_instances}}||
-->{{#ifeq:0|{{#arraysize:entity_class_instances}}||
=== Known {{#var:entity_class_plural_name}} ===
=== Known {{#var:entity_class_plural_name}} ===
<p>
<p>
Line 91: Line 102:
</p>
</p>
|}}|}}<!--
|}}|}}<!--
  List spells spawning entities of this class


-->{{#arraydefine:spawining_spells|{{#ask: [[Category:Spells]] [[spawns entity class::{{{id}}}]] | ?# | mainlabel=- | limit=1000 | format=array}}}}<!--
-->{{#arraydefine:spawining_spells|{{#ask: [[Category:Spells]] [[spawns entity class::{{{id}}}]] | ?# | mainlabel=- | limit=1000 | format=array}}}}<!--
Line 102: Line 116:
</p>
</p>
}}<!--
}}<!--


--></includeonly><noinclude>
--></includeonly><noinclude>

Revision as of 03:56, 20 July 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}}}