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:Drops"

From DFO World Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{Item|{{{item|}}}|{{{1|}}}}}{{#ifeq:{{{show monster|}}}|y|&nbsp;by {{{monster|all monsters}}}|}} in {{#if:{{{dungeon|}}}|[[{{{dungeon}}}]] ({{#if:{{{difficulty|}}}|{{#arraymap:{{{difficulty|}}}|,|@@@|{{#switch: {{lc:@@@}}
+
<includeonly>{{Item|{{{1|}}}}}{{#ifeq:{{{show monster|}}}|y|&#32;by {{Monster link|{{{monster|{{PAGENAME}}}}}}}|}} in {{#if:{{{dungeon|}}}|[[{{{dungeon}}}]] ({{#ifeq:{{{hell|n}}}|y|Hell Mode|{{#if:{{{difficulty|}}}|{{#arraymap:{{{difficulty|}}}|,|@@@|{{#switch: {{lc:@@@}}
 
| normal | expert | master | king | slayer = {{ucfirst:{{lc:@@@}}}}
 
| normal | expert | master | king | slayer = {{ucfirst:{{lc:@@@}}}}
 
| all = all difficulties
 
| all = all difficulties
}}|,&nbsp;}}|all difficulties}})|''Unknown''}}{{#if:{{{quest requirement|}}}|&nbsp;(Requires the quest {{{quest requirement}}})|}}{{#subobject:drop{{#vardefineecho:dropnumber|{{#expr:{{#var:dropnumber|-1}}+1}}}}
+
}}|,&nbsp;}}|all difficulties}}}})|''Unknown''}}{{#if:{{{quest requirement|}}}|&nbsp;(Requires the quest {{{quest requirement}}})|}}{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | {{#subobject:drop{{#vardefineecho:dropnumber|{{#expr:{{#var:dropnumber|-1}}+1}}}}
| Has monster = {{{monster|}}}
+
| Has monster source = {{{monster|{{PAGENAME}}}}}
| Drops item = {{{item}}}
+
| Drops item = {{{1}}}
 
| Has monster location = {{{dungeon|''Unspecified''}}}
 
| Has monster location = {{{dungeon|''Unspecified''}}}
 
| Has dungeon difficulty ={{#if:{{{difficulty|}}}|{{#arraymap:{{{difficulty|}}}|,|@@@|{{#switch:{{lc:@@@}}
 
| Has dungeon difficulty ={{#if:{{{difficulty|}}}|{{#arraymap:{{{difficulty|}}}|,|@@@|{{#switch:{{lc:@@@}}
 
| normal | expert | master | king | slayer | all = {{ucfirst:{{lc:@@@}}}}
 
| normal | expert | master | king | slayer | all = {{ucfirst:{{lc:@@@}}}}
 
}}|;}}|All}}|+sep=;
 
}}|;}}|All}}|+sep=;
 +
| Is tied to hell mode = {{#ifeq:{{{hell|n}}}|y|y}}
 
| Has quest requirement = {{{quest requirement|}}}
 
| Has quest requirement = {{{quest requirement|}}}
 +
}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
== Description ==
 
== Description ==
Line 17: Line 19:
 
It creates a subobject with the following properties:
 
It creates a subobject with the following properties:
  
* Has monster
+
* Has monster source
 
* Drops item
 
* Drops item
 
* Has monster location
 
* Has monster location
 
* Has dungeon difficulty
 
* Has dungeon difficulty
 
* Has quest requirement
 
* Has quest requirement
 +
* Is tied to hell mode
  
 
== Usage ==
 
== Usage ==
 
<pre>{{Drops
 
<pre>{{Drops
| monster =  
+
|<item> =
| item =  
+
| monster =
 
| dungeon =  
 
| dungeon =  
 
| difficulty =  
 
| difficulty =  
 +
| hell =
 
| quest requirement =  
 
| quest requirement =  
 
| show monster =  
 
| show monster =  
| <text>
 
 
}}</pre>
 
}}</pre>
  
Line 37: Line 40:
 
All parameters are optional unless stated otherwise.
 
All parameters are optional unless stated otherwise.
  
; ''monster'' : Monster page. The wiki page of the monster. On the monster's page, you can simply use <code><nowiki>{{PAGENAME}}</nowiki></code>.
+
; monster : Monster page. The wiki page of the monster. Defaults to the name of the base article (<code><nowiki>{{PAGENAME}}</nowiki></code>)
; ''item'' : Required. Item page. The wiki page of the item.
+
; item : Required. Item page. The wiki page of the item.
; ''dungeon'' : Required. Dungeon page. The wiki page of the dungeon. If the monster appears in multiple dungeons, use the template twice.
+
; dungeon : Required. The wiki page of the dungeon. If the monster appears in multiple dungeons, use the template once for each appearance.
; ''difficulty'' : Required. Difficulty of the dungeon. Allowed values are ''all'', ''normal'', ''expert'', ''master'', ''king'', ''slayer''. Separate multiple with a comma. Defaults to ''all''.
+
; difficulty : Required. Difficulty of the dungeon. Allowed values are ''all'', ''normal'', ''expert'', ''master'', ''king'', ''slayer''. Separate multiple with a comma. Defaults to ''all''.
; ''quest requirement'' : Quest that is required to be accepted in order to have the item drop.
+
; quest requirement : Quest that is required to be accepted in order to have the item drop.
; ''show monster'' : Set to ''y'' to display the monster that drops the item. Hides the monster name by default.
+
; hell : Set to ''y'' if the monster spawns in hell mode.
; ''text'' : Displayed text for the item. Defaults to the name of the item.
+
; show monster : Set to ''y'' to display the monster that drops the item. Hides the monster name by default.
 +
; text : Displayed text for the item. Defaults to the name of the item.
  
 
=== Examples ===
 
=== Examples ===
  
<pre>{{Drops|monster=Nilvas Gracia|dungeon=Black Crusade|item=Corrupt Imposter Death Scythe}}</pre>
+
<pre>{{Drops|monster=Nilvas Gracia|dungeon=Black Crusade|Corrupt Imposter Death Scythe}}</pre>
 
+
{{Drops|monster=Nilvas Gracia|dungeon=Black Crusade|Corrupt Imposter Death Scythe}}
{{Drops|monster=Nilvas Gracia|dungeon=Black Crusade|item=Corrupt Imposter Death Scythe}}
 
  
 
<pre>{{Drops
 
<pre>{{Drops
 
| monster = Nilvas Gracia
 
| monster = Nilvas Gracia
| item = Corrupt Imposter Death Scythe
 
 
| dungeon = Black Crusade
 
| dungeon = Black Crusade
 
| difficulty = king, slayer
 
| difficulty = king, slayer
 
| quest requirement = Test Quest?!
 
| quest requirement = Test Quest?!
 
| show monster = y
 
| show monster = y
|Demonize scythe}}</pre>
+
|Corrupt Imposter Death Scythe}}</pre>
 
 
 
{{Drops
 
{{Drops
 
| monster = Nilvas Gracia
 
| monster = Nilvas Gracia
| item = Corrupt Imposter Death Scythe
 
 
| dungeon = Black Crusade
 
| dungeon = Black Crusade
 
| difficulty = king, slayer
 
| difficulty = king, slayer
 
| quest requirement = Test Quest?!
 
| quest requirement = Test Quest?!
 
| show monster = y
 
| show monster = y
|Demonize scythe}}
+
|Corrupt Imposter Death Scythe}}
 +
 
 +
<pre>{{Drops
 +
| monster = Humanoid Kanuluk
 +
| dungeon = Kore Power Plant
 +
| hell = y
 +
| show monster = y
 +
|Garroter Sickle}}</pre>
 +
{{Drops
 +
| monster = Humanoid Kanuluk
 +
| dungeon = Kore Power Plant
 +
| hell = y
 +
| show monster = y
 +
|Garroter Sickle}}
  
</noinclude>
+
[[Category:Formatting Templates]][[Category:Subobject Template]]</noinclude>

Revision as of 19:50, 12 March 2016

Description

This template creates a drop record using monster, item, dungeon, difficulty and necessary quest, and displays everything but the monster name.

It creates a subobject with the following properties:

  • Has monster source
  • Drops item
  • Has monster location
  • Has dungeon difficulty
  • Has quest requirement
  • Is tied to hell mode

Usage

{{Drops
|<item> =
| monster =  
| dungeon = 
| difficulty = 
| hell = 
| quest requirement = 
| show monster = 
}}

Parameters

All parameters are optional unless stated otherwise.

monster 
Monster page. The wiki page of the monster. Defaults to the name of the base article ({{PAGENAME}})
item 
Required. Item page. The wiki page of the item.
dungeon 
Required. The wiki page of the dungeon. If the monster appears in multiple dungeons, use the template once for each appearance.
difficulty 
Required. Difficulty of the dungeon. Allowed values are all, normal, expert, master, king, slayer. Separate multiple with a comma. Defaults to all.
quest requirement 
Quest that is required to be accepted in order to have the item drop.
hell 
Set to y if the monster spawns in hell mode.
show monster 
Set to y to display the monster that drops the item. Hides the monster name by default.
text 
Displayed text for the item. Defaults to the name of the item.

Examples

{{Drops|monster=Nilvas Gracia|dungeon=Black Crusade|Corrupt Imposter Death Scythe}}

Corrupt Imposter Death Scythe.png Corrupt Imposter Death Scythe in Black Crusade (all difficulties)

{{Drops
| monster = Nilvas Gracia
| dungeon = Black Crusade
| difficulty = king, slayer
| quest requirement = Test Quest?!
| show monster = y
|Corrupt Imposter Death Scythe}}

Corrupt Imposter Death Scythe.png Corrupt Imposter Death Scythe by No Icon.png Nilvas Gracia in Black Crusade (King, Slayer) (Requires the quest Test Quest?!)

{{Drops
| monster = Humanoid Kanuluk
| dungeon = Kore Power Plant
| hell = y
| show monster = y
|Garroter Sickle}}

Garroter Sickle.png Garroter Sickle by No Icon.png Humanoid Kanuluk in Kore Power Plant (Hell Mode)