Template:EntityClassPage: Difference between revisions
Jump to navigation
Jump to search
EntityClassPage entity class
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 53: | Line 53: | ||
<td><center><code>{{#var:entity_class_path}}</code></center></td> | <td><center><code>{{#var:entity_class_path}}</code></center></td> | ||
</tr> | </tr> | ||
{{#if:{{{scripttype|}}}| | |||
<tr> | |||
<th scope="row" style="text-align: left">Script £type</th> | |||
<td><center><code>[[script type::{{{scripttype}}}| ]]{{{scripttype}}}</code></center></td> | |||
</tr> | |||
}} | |||
</table> | </table> | ||
</div> | </div> | ||
Line 92: | Line 98: | ||
-->{{#ifeq:|{{#show: {{FULLPAGENAME}} | ?entity id }}|<!-- | -->{{#ifeq:|{{#show: {{FULLPAGENAME}} | ?entity id }}|<!-- | ||
-->{{#arraydefine:entity_class_instances|{{#ask: [[Category:Entities]] [[has 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}}|| | ||
=== Notable {{#var:entity_class_plural_name}} === | === Notable {{#var:entity_class_plural_name}} === | ||
Line 106: | Line 112: | ||
List spells spawning entities of this class | 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}}}}<!-- | ||
-->{{#ifeq:0|{{#arraysize:spawining_spells}}|| | -->{{#ifeq:0|{{#arraysize:spawining_spells}}|| | ||
=== Summon spells === | === Summon spells === | ||
Line 134: | Line 140: | ||
* <code>path</code> - script path for this entity class - default depends on type: | * <code>path</code> - script path for this entity class - default depends on type: | ||
** <code>npc</code>: <code><nowiki>npc/{{{script}}}</nowiki></code> | ** <code>npc</code>: <code><nowiki>npc/{{{script}}}</nowiki></code> | ||
** <code>item</code>: <code><nowiki>items/{{{script}}}</nowiki></code> | |||
* <code>scripttype</code> script £type for this entity class |
Latest revision as of 02:19, 14 April 2020
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}}}
item
:items/{{{script}}}
scripttype
script £type for this entity class