Help:Spells
From EQ KnowledgePit
Contents |
[edit] Mob Spell Usage
Here on EQ KnowledgePit, we have an easy way for editors to include a list of spells a mob uses. In an article about a mob (for instance, Zi-Thuuli of the Granite Claw), simply adding the code <spells zone="Demi-Plane of Blood" /> will include all spells linked to Zi-Thuuli. It will display them as a normal wiki section, complete with an [edit] link.
[edit] "zone" Parameter
This is the only required parameter. It is used to specify the zone that the spells are used in; it could be omitted for the display, but it's required for editing reasons. To pass the parameter, you would use something like the above; <spells zone="Demi-Plane of Blood" /> would output all the spells used by the Demi-Plane of Blood incarnation of the current article's mob.
[edit] Complete Syntax
The <spells /> tag supports more than just a list of the current mob's spells, however; it has a couple parameters that can be used to modify the function and display of the tag's output.
[edit] "for" Parameter
Let's take Zi-Thuuli for example again. He has his five spells; but he also spawns a battered steel chest when he is killed, which has an AoE of its own if not disarmed. For convenience's sake, it would be nice to be able to simply display the chest's spell list on Zi-Thuuli's page, rather than requiring the user to follow a link to see the list.
This is where the for parameter comes into play. To display all the spells that can be used by a battered steel chest in any article, one would type the tag as <spells for="a battered steel chest" zone="Demi-Plane of Blood" />. The output of this tag is displayed below:
[edit] Output
[edit] Spells Used by A battered steel chest in Demi-Plane of Blood |
[edit] "h" Parameter
Now, let's say you don't want a full top-level <h2> tag for your spell list's header. Using Zi-Thuuli and his chest as the example once again, you would for instance want to display Zi-Thuuli's spells with a top-level <h2>, with the chest's spells as an <h3> subsection.
The h parameter is useful here. We would output Zi-Thuuli's spells (in his own article) with a simple <spells zone="Demi-Plane of Blood" /> call, then on the next line we would get the chest's spells with <spells for="a battered steel chest" zone="Demi-Plane of Blood" h="3" />, so it would be displayed as a subsection, rather than its own full section. The display would be as follows:
[edit] Output
[edit] Spells Used by Zi-Thuuli of the Granite Claw in Demi-Plane of Blood[edit] Spells Used by A battered steel chest in Demi-Plane of Blood |
[edit] "format" Parameter
The <spells /> tag supports one last parameter; the format parameter. This parameter allows you to choose to display either the complete spell information, rather than a simple list. The parameter has two possible values; display (format="display") and list (format="list"). If the parameter is not found, or it is any other value, it will default to list. The output of <drops for="Zi-Thuuli of the Granite Claw" zone="Demi-Plane of Blood" format="display" /> is as follows:
[edit] Output
[edit] Spells Used by Zi-Thuuli of the Granite Claw in Demi-Plane of Blood
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||



