[dismiss]
Difference between revisions of "Template:Drops table row"
Jump to navigation
Jump to search
m |
|||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- {{#vardefine:itemdropcnt|{{#expr:{{#var:itemdropcnt|0}}+1}}}}{{#subobject:itemdrop{{#var:itemdropcnt}} | ||
| Has item drop creature object = {{#titleparts:{{BASEPAGENAME}}}} | |||
| Has item drop = {{{1|}}} | |||
| Is fixed = {{#if:{{{fixed|}}}|true|false}} | |||
| Has fate requirement = {{{fate|}}} | |||
| Has minimum quantity output = {{#vardefineecho:drop_qty_min|{{#explode:{{#if:{{{2|}}}|{{{2}}}|1}}|-|0}}}} | |||
| Has maximum quantity output = {{#vardefineecho:drop_qty_max|{{#if:{{#pos:{{{2|}}}|-}}|{{#explode:{{{2}}}|-|1}}|0}}}} | |||
| Has minimum creature level = {{#vardefineecho:drop_creature_level_min|{{#explode:{{{level|{{#var:dropstablelevel}}}}}|-|0}}}} | |||
| Has maximum creature level = {{#vardefineecho:drop_creature_level_max|{{#if:{{#pos:{{{level|{{#var:dropstablelevel}}}}}|-}}|{{#explode:{{{level|{{#var:dropstablelevel}}}}}|-|1}}|0}}}} | |||
}} | |||
| {{item icon|{{{1}}}}} <!-- | | {{item icon|{{{1}}}}} <!-- | ||
-->{{#if:{{{fate|}}}| [[File:Notorious monster FATE (map icon).png|24px|This item is dropped by the fate {{{fate}}}.|link={{{fate}}}]]}}<!-- | -->{{#if:{{{fate|}}}| [[File:Notorious monster FATE (map icon).png|24px|This item is dropped by the fate {{{fate}}}.|link={{{fate}}}]]}}<!-- | ||
-->{{#if:{{{fixed|}}}| [[File:Starred Bag | -->{{#if:{{{fixed|}}}| [[File:Starred Bag.png|20px|This item is guaranteed to drop.|link=]]}} | ||
| {{#if:{{{type|}}}|{{#arraymap:{{{type}}}|, |@@@|[[{{ucfirst:{{lc:@@@}}}}]]|, }}|{{#arraymap:{{#show:{{{1}}}|?Has item type}}|, |@@@|[[@@@]]|, }}}} | | {{#if:{{{type|}}}|{{#arraymap:{{{type}}}|, |@@@|[[{{ucfirst:{{lc:@@@}}}}]]|, }}|{{#arraymap:{{#show:{{{1}}}|?Has item type}}|, |@@@|[[@@@]]|, }}}} | ||
| {{#if:{{#show:{{{1}}}|?Has item level}}|{{#show:{{{1}}}|?Has item level}}|N/A}} | |||
| {{#if:{{#show:{{{1}}}|?Has item rarity}}|{{rarity|{{#show:{{{1}}}|?Has item rarity}}}}}} | |||
| style="text-align:center;" | {{#var:drop_qty_min}}{{#ifeq:{{#var:drop_qty_max}}|0||-{{#var:drop_qty_max}}}}<!-- | |||
-->{{#if:{{{level|{{#var:dropstablelevel}}}}}| {{!}}{{!}} style="text-align:center;padding-right: 1.5em;" {{!}}{{#var:drop_creature_level_min}}{{#ifeq:{{#var:drop_creature_level_max}}|0||-{{#var:drop_creature_level_max}}}}|}}</includeonly><noinclude> | |||
-->{{#if:{{{level|{{#var:dropstablelevel}}}}}| {{!}}{{!}}{{ | |||
== Description == | == Description == | ||
Creates a row storing a single drop info. For use with {{tl|Drops table header}}. | |||
=== Parameters === | === Parameters === | ||
Line 17: | Line 24: | ||
:Required. Item name. | :Required. Item name. | ||
;unnamed parameter 2 | ;unnamed parameter 2 | ||
:Optional. Quantity. | :Optional. Quantity. Accepts a hyphen-separated value for min/max output quantities. | ||
;level | ;level | ||
:Optional. Adds another column to the row and adds the contents of the parameter. Defaults to <code><nowiki>{{#var:dropstablelevel}}</nowiki></code> if present. | :Optional. Adds another column to the row and adds the contents of the parameter. Accepts a hyphen-separated value for min/max level range. Defaults to <code><nowiki>{{#var:dropstablelevel}}</nowiki></code> if present. | ||
;fate | ;fate | ||
:Optional. Adds a line break to the item name column and adds information that this is only dropped from the specified FATE. | :Optional. Adds a line break to the item name column and adds information that this is only dropped from the specified FATE. | ||
Line 28: | Line 35: | ||
;type | ;type | ||
:Optional. Overrides the type field with the specified item types, separated by comma. | :Optional. Overrides the type field with the specified item types, separated by comma. | ||
== Example 1 == | == Example 1 == | ||
<pre>{{Drops table header|show-levels=n}} | <pre>{{Drops table header|show-levels=n}} | ||
{{Drops table row|Antiquated Failnaught}} | {{Drops table row|Antiquated Failnaught}} | ||
{{Drops table row|Frumenty|fate=Some FATE | {{Drops table row|Frumenty|fate=Some FATE}} | ||
{{Drops table row|Raisins|fixed=y}} | {{Drops table row|Raisins|fixed=y}} | ||
{{Table footer}}</pre> | {{Table footer}}</pre> | ||
Line 39: | Line 45: | ||
{{Drops table header|show-levels=n}} | {{Drops table header|show-levels=n}} | ||
{{Drops table row|Antiquated Failnaught}} | {{Drops table row|Antiquated Failnaught}} | ||
{{Drops table row|Frumenty|fate=Some FATE | {{Drops table row|Frumenty|fate=Some FATE}} | ||
{{Drops table row|Raisins|fixed=y}} | {{Drops table row|Raisins|fixed=y}} | ||
{{Table footer}} | {{Table footer}} |
Latest revision as of 01:02, 18 October 2023
Description
Creates a row storing a single drop info. For use with {{Drops table header}}.
Parameters
- unnamed parameter 1
- Required. Item name.
- unnamed parameter 2
- Optional. Quantity. Accepts a hyphen-separated value for min/max output quantities.
- level
- Optional. Adds another column to the row and adds the contents of the parameter. Accepts a hyphen-separated value for min/max level range. Defaults to
{{#var:dropstablelevel}}
if present. - fate
- Optional. Adds a line break to the item name column and adds information that this is only dropped from the specified FATE.
- fixed
- Optional. Adds a line break to the item name column and adds information that this drop is fixed.
- rarity
- Optional. Checks for the specified rarity of the subobjects of the given item, and will only display this rarity.
- type
- Optional. Overrides the type field with the specified item types, separated by comma.
Example 1
{{Drops table header|show-levels=n}} {{Drops table row|Antiquated Failnaught}} {{Drops table row|Frumenty|fate=Some FATE}} {{Drops table row|Raisins|fixed=y}} {{Table footer}}
Name | Type | Item Level | Rarity | Quantity |
---|---|---|---|---|
Antiquated Failnaught | Archer's Arm | 290 | Blue | 1 |
Frumenty ![]() |
Meal | 4 | Basic | 1 |
Raisins ![]() |
Meal | 3 | Basic | 1 |
Example 2
{{Drops table header|show-levels=y|levels=3-80}} {{Drops table row|Raisins|2|level=48}} {{Drops table row|Wind Shard}} {{Table footer}}
Name | Type | Item Level | Rarity | Quantity | Creature level |
---|---|---|---|---|---|
Raisins | Meal | 3 | Basic | 2 | 48 |
Wind Shard | Crystal | N/A | Basic | 1 | 3-80 |