Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!
Difference between revisions of "Template:Spawns"
(add property to subobject for use as sort key) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{Monster link|{{{1|}}}|class={{{class|}}}}} {{#ifeq:{{{show dungeon|}}}|y|in [[{{{dungeon|{{PAGENAME}}}}}]] {{#ifeq:{{{hell|n}}}|y|(Hell Mode)}}|}}<!-- | + | <includeonly>{{Monster link|{{{1|}}}|class={{{class|{{#show:{{{1|}}}|?Has monster classification|link=none}}}}}}} {{#ifeq:{{{show dungeon|}}}|y|in [[{{{dungeon|{{PAGENAME}}}}}]] {{#ifeq:{{{hell|n}}}|y|(Hell Mode)}}|}}<!-- |
-->{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> |{{#subobject:spawn{{#vardefineecho:spawnnumber|{{#expr:{{#var:spawnnumber|-1}}+1}}}} | -->{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> |{{#subobject:spawn{{#vardefineecho:spawnnumber|{{#expr:{{#var:spawnnumber|-1}}+1}}}} | ||
| Spawns monster = {{{1}}} | | Spawns monster = {{{1}}} | ||
− | | Has monster location = {{{ | + | | Has monster location = {{{dungeon|{{PAGENAME}}}}} |
− | | Has monster classification ={{#switch:{{lc:{{{class|}}}}} | + | | Has monster spawn classification ={{#switch:{{lc:{{{class|}}}}} |
− | | | + | | ally = Ally |
| boss = Boss | | boss = Boss | ||
}} | }} | ||
| Is tied to hell mode = {{#ifeq:{{{hell|n}}}|y|y}} | | Is tied to hell mode = {{#ifeq:{{{hell|n}}}|y|y}} | ||
+ | | Has monster location entrance level requirement = {{#show:{{{dungeon|{{PAGENAME}}}}}|?Has dungeon entrance level requirement|link=none|default=1}} | ||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 19: | Line 20: | ||
* Spawns monster | * Spawns monster | ||
* Has monster location | * Has monster location | ||
+ | * Has monster spawn classification | ||
* Is tied to hell mode | * Is tied to hell mode | ||
+ | * Has monster location entrance level requirement | ||
== Usage == | == Usage == | ||
Line 35: | Line 38: | ||
; monster : Required. The wiki page of the monster. | ; monster : Required. The wiki page of the monster. | ||
; dungeon : Required. The wiki page of the dungeon. Defaults to the name of the base article (<code><nowiki>{{PAGENAME}}</nowiki></code>) | ; dungeon : Required. The wiki page of the dungeon. Defaults to the name of the base article (<code><nowiki>{{PAGENAME}}</nowiki></code>) | ||
− | ; class : Monster classification. Set to '' | + | ; class : Monster classification. Set to ''ally'' if the monster is friendly, or ''boss'' if the monster has a boss health bar. |
; hell : Set to ''y'' if the monster spawns in hell mode. | ; hell : Set to ''y'' if the monster spawns in hell mode. | ||
; show dungeon : Set to ''y'' to display the dungeon where the monster is spawned. Hides the dungeon name by default. | ; show dungeon : Set to ''y'' to display the dungeon where the monster is spawned. Hides the dungeon name by default. |
Latest revision as of 15:40, 25 March 2016
Contents
Description
This template creates a spawn record using monster and dungeon and displays the monster name.
It creates a subobject with the following properties:
- Spawns monster
- Has monster location
- Has monster spawn classification
- Is tied to hell mode
- Has monster location entrance level requirement
Usage
{{Spawns |<monster> | dungeon = | class = | hell = | show dungeon = }}
Parameters
All parameters are optional unless stated otherwise.
- monster
- Required. The wiki page of the monster.
- dungeon
- Required. The wiki page of the dungeon. Defaults to the name of the base article (
{{PAGENAME}}
) - class
- Monster classification. Set to ally if the monster is friendly, or boss if the monster has a boss health bar.
- hell
- Set to y if the monster spawns in hell mode.
- show dungeon
- Set to y to display the dungeon where the monster is spawned. Hides the dungeon name by default.
Examples
{{Spawns|Nilvas Gracia|class=boss|dungeon=Black Crusade}}
{{Spawns|Humanoid Kanuluk|dungeon=Furtz Power Plant|show dungeon=y|hell=y}}
Humanoid Kanuluk in Furtz Power Plant (Hell Mode)