Template:EntityClassPage: Difference between revisions
Jump to navigation
Jump to search
EntityClassPage entity class
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
<tr> | <tr> | ||
<th scope="row" style="text-align: left">Parent class</th> | <th scope="row" style="text-align: left">Parent class</th> | ||
<td><center>{{EntityClass|{{{parent}}}}}</center></td> | <td><center>[[parent class::{{{parent}}}| ]]{{EntityClass|{{{parent}}}}}</center></td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 58: | Line 58: | ||
[[Category:Entity Classes]] | [[Category:Entity Classes]] | ||
{{EntityClassPage_category_{{{type|npc}}}}} | {{EntityClassPage_category_{{{type|npc}}}}} | ||
{{#arraydefine:entity_subclasses|{{#ask: [[Category:Entity Class]] [[parent class::{{{id}}}]] | ?id# | mainlabel=- | limit=1000 | format=array}}}} | |||
{{#ifeq:0|{{#arraysize:entity_subclasses}}|| | |||
=== Subclasses === | |||
There exist the following refinements of {{#var:entity_class_name}}: | |||
<ul> | |||
{{#arrayprint:entity_subclasses||@class|<li>{{EntityClass|@class}}}} | |||
</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}}|| |
Revision as of 07:19, 8 March 2013
Description | |
---|---|
Type | |
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 classtype
(required) - entity type for this class - see Property:entity typename
(default:{{{PAGENAME}}}
) - friendly name of the entity classplural name
(default:{{{name}}}s
) - name for multiple of this classdescription
(default:description_{{{id|chicken}}}
) - key for the localised entity class descriptionscript
(default:{{{id}}}
) - script name for this entity classpath
- script path for this entity class - default depends on type:npc
:npc/{{{script}}}