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
(Created page with "<includeonly>{{Item|{{{1|}}}|{{{2|}}}}}{{#set:Drops item={{{1|}}}}}</includeonly><noinclude> == Description == This template displays an item and adds it as a drop of the ene...")
 
Line 1: Line 1:
<includeonly>{{Item|{{{1|}}}|{{{2|}}}}}{{#set:Drops item={{{1|}}}}}</includeonly><noinclude>
+
<includeonly>{{Item|{{{item|}}}|{{{1|}}}}}{{#ifeq:{{{show monster|}}}|y|&nbsp;by {{{monster|all monsters}}}|}} in {{#if:{{{dungeon|}}}|[[{{{dungeon}}}]] ({{#if:{{{difficulty|}}}|{{#arraymap:{{{difficulty|}}}|,|@@@|{{#switch: {{lc:@@@}}
 +
| normal | expert | master | king | slayer = {{ucfirst:{{lc:@@@}}}}
 +
| 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}}}}
 +
| Has monster = {{{monster|}}}
 +
| Drops item = {{{item}}}
 +
| Has monster location = {{{dungeon|''Unspecified''}}}
 +
| Has dungeon difficulty ={{#if:{{{difficulty|}}}|{{#arraymap:{{{difficulty|}}}|,|@@@|{{#switch:{{lc:@@@}}
 +
| normal | expert | master | king | slayer | all = {{ucfirst:{{lc:@@@}}}}
 +
}}|;}}|All}}|+sep=;
 +
| Has quest requirement = {{{quest requirement|}}}
 +
}}</includeonly><noinclude>
 
== Description ==
 
== Description ==
  
This template displays an item and adds it as a drop of the enemy.
+
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
 +
* Drops item
 +
* Has monster location
 +
* Has dungeon difficulty
 +
* Has quest requirement
  
 
== Usage ==
 
== Usage ==
<pre>{{Drops item
+
<pre>{{Drops
| <item page>
+
| monster =
 +
| item =
 +
| dungeon =
 +
| difficulty =
 +
| quest requirement =
 +
| show monster =
 
| <text>
 
| <text>
 
}}</pre>
 
}}</pre>
Line 13: Line 37:
 
All parameters are optional unless stated otherwise.
 
All parameters are optional unless stated otherwise.
  
; ''item page'' : Required. Item page. The wiki page of the item.
+
; ''monster'' : Monster page. The wiki page of the monster. On the monster's page, you can simply use <code><nowiki>{{PAGENAME}}</nowiki></code>.
; ''text'' : Displayed text. Defaults to the name 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.
 +
; ''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.
 +
; ''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|Corrupt Imposter Death Scythe}}</pre>
+
<pre>{{Drops|monster=Nilvas Gracia|dungeon=Black Crusade|item=Corrupt Imposter Death Scythe}}</pre>
  
{{Drops|Corrupt Imposter Death Scythe}}
+
{{Drops|monster=Nilvas Gracia|dungeon=Black Crusade|item=Corrupt Imposter Death Scythe}}
  
<pre>{{Drops|Corrupt Imposter Death Scythe|Blargh}}</pre>
+
<pre>{{Drops
 +
| monster = Nilvas Gracia
 +
| item = Corrupt Imposter Death Scythe
 +
| dungeon = Black Crusade
 +
| difficulty = king, slayer
 +
| quest requirement = Test Quest?!
 +
| show monster = y
 +
|Demonize scythe}}</pre>
  
{{Drops|Corrupt Imposter Death Scythe|Blargh}}
+
{{Drops
 +
| monster = Nilvas Gracia
 +
| item = Corrupt Imposter Death Scythe
 +
| dungeon = Black Crusade
 +
| difficulty = king, slayer
 +
| quest requirement = Test Quest?!
 +
| show monster = y
 +
|Demonize scythe}}
  
 
</noinclude>
 
</noinclude>

Revision as of 20:42, 18 January 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
  • Drops item
  • Has monster location
  • Has dungeon difficulty
  • Has quest requirement

Usage

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

Parameters

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 {{PAGENAME}}.
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.
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.
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|item=Corrupt Imposter Death Scythe}}

No Icon.png [[|]] in Black Crusade (all difficulties)

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

No Icon.png Demonize scythe by No Icon.png Nilvas Gracia in Black Crusade (King, Slayer) (Requires the quest Test Quest?!)