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"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{Item | + | <includeonly>{{Item|{{{1|}}}}}{{#ifeq:{{{show monster|}}}|y| 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 | ||
− | }}|, }}|all difficulties}})|''Unknown''}}{{#if:{{{quest requirement|}}}| (Requires the quest {{{quest requirement}}})|}}{{#subobject:drop{{#vardefineecho:dropnumber|{{#expr:{{#var:dropnumber|-1}}+1}}}} | + | }}|, }}|all difficulties}}}})|''Unknown''}}{{#if:{{{quest requirement|}}}| (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 game context =Drop |
− | | Drops item = {{{ | + | | Has monster source = {{{monster|{{PAGENAME}}}}} |
+ | | 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 20: | ||
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 | ||
− | | | + | |<item> = |
− | | | + | | monster = |
| dungeon = | | dungeon = | ||
| difficulty = | | difficulty = | ||
+ | | hell = | ||
| quest requirement = | | quest requirement = | ||
| show monster = | | show monster = | ||
− | |||
}}</pre> | }}</pre> | ||
Line 37: | Line 41: | ||
All parameters are optional unless stated otherwise. | All parameters are optional unless stated otherwise. | ||
− | ; | + | ; 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. |
− | ; | + | ; 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. |
− | ; ''show monster | + | ; 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 === | === Examples === | ||
− | <pre>{{Drops|monster=Nilvas Gracia|dungeon=Black Crusade| | + | <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| | ||
<pre>{{Drops | <pre>{{Drops | ||
| monster = Nilvas Gracia | | monster = Nilvas Gracia | ||
− | |||
| 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 | ||
− | | | + | |Corrupt Imposter Death Scythe}}</pre> |
− | |||
{{Drops | {{Drops | ||
| monster = Nilvas Gracia | | monster = Nilvas Gracia | ||
− | |||
| 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 | ||
− | | | + | |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 Templates]]</noinclude> |
Latest revision as of 18:15, 17 March 2016
Contents
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 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 by 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 by Humanoid Kanuluk in Kore Power Plant (Hell Mode)