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"
(remove named classification, add ally classification) |
(add property to subobject for use as sort key) |
||
Line 3: | Line 3: | ||
-->{{#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 spawn classification ={{#switch:{{lc:{{{class|}}}}} | | Has monster spawn classification ={{#switch:{{lc:{{{class|}}}}} | ||
| ally = Ally | | ally = Ally | ||
Line 9: | Line 9: | ||
}} | }} | ||
| 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 21: | Line 22: | ||
* Has monster spawn classification | * Has monster spawn classification | ||
* Is tied to hell mode | * Is tied to hell mode | ||
+ | * Has monster location entrance level requirement | ||
== Usage == | == Usage == |
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)