Template:EntityClassPage: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 56: Line 56:
</div>
</div>
<includeonly>
<includeonly>
[[Category:Entity Classes]]
[[Category:Entity Classes]]<!--
{{EntityClassPage_category_{{{type|npc}}}}}
 
{{#arraydefine:entity_subclasses|{{#ask: [[Category:Entity Classes]] [[parent class::{{{id}}}]] | ?id# | mainlabel=- | limit=1000 | format=array}}}}
 
-->{{EntityClassPage_category_{{{type|npc}}}}}
{{#arraydefine:entity_subclasses|{{#ask: [[Category:Entity Classes]] [[parent class::{{{id}}}]] | ?id | mainlabel=- | limit=1000 | format=array}}}}
{{#ifeq:0|{{#arraysize:entity_subclasses}}||
{{#ifeq:0|{{#arraysize:entity_subclasses}}||
=== Subclasses ===
=== Subclasses ===
Line 65: Line 67:
{{#arrayprint:entity_subclasses||@class|<li>{{EntityClass|@class}}}}
{{#arrayprint:entity_subclasses||@class|<li>{{EntityClass|@class}}}}
</ul>
</ul>
}}
}}<!--
{{#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}}}}
{{#ifeq:0|{{#arraysize:spawining_spells}}||
{{#ifeq:0|{{#arraysize:spawining_spells}}||
=== Summon spells ===
=== Summon spells ===
Line 73: Line 77:
{{#arrayprint:spawining_spells||@spell|<li>{{Spell|@spell}}}}
{{#arrayprint:spawining_spells||@spell|<li>{{Spell|@spell}}}}
</ul>
</ul>
}}
}}<!--
</includeonly><noinclude>
 
 
--></includeonly><noinclude>


== Usage ==
== Usage ==

Revision as of 07:27, 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}}}