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"

From DFO World Wiki
Jump to: navigation, search
(remove named classification, add ally classification)
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 = {{{monster|{{PAGENAME}}}}}
 
| Has monster location = {{{monster|{{PAGENAME}}}}}
| Has monster classification ={{#switch:{{lc:{{{class|}}}}}
+
| Has monster spawn classification ={{#switch:{{lc:{{{class|}}}}}
   | named = Named
+
   | ally = Ally
 
   | boss = Boss
 
   | boss = Boss
 
   }}
 
   }}
Line 19: Line 19:
 
* Spawns monster
 
* Spawns monster
 
* Has monster location
 
* Has monster location
 +
* Has monster spawn classification
 
* Is tied to hell mode
 
* Is tied to hell mode
  
Line 35: Line 36:
 
; 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 ''named'' if the monster is a green named monster, or ''boss'' if the monster has a boss health bar.
+
; 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.

Revision as of 15:39, 24 March 2016

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

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}}

No Icon.png Nilvas Gracia

{{Spawns|Humanoid Kanuluk|dungeon=Furtz Power Plant|show dungeon=y|hell=y}}

No Icon.png Humanoid Kanuluk in Furtz Power Plant (Hell Mode)