Difference between revisions of "Template:Drops table row"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
 
(11 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|}}}|&nbsp; [[File:Notorious monster FATE (map icon).png|20px|This item is dropped by the fate {{{fate}}}.|link={{{fate}}}]]}}<!--
-->{{#if:{{{fate|}}}|&nbsp; [[File:Notorious monster FATE (map icon).png|24px|This item is dropped by the fate {{{fate}}}.|link={{{fate}}}]]}}<!--
-->{{#if:{{{fixed|}}}|&nbsp; [[File:Starred Bag 2.png|20px|This item is fixed and always dropped.|link=]]}}
-->{{#if:{{{fixed|}}}|&nbsp; [[File:Starred Bag.png|20px|This item is guaranteed to drop.|link=]]}}
| {{#if:{{{type|}}}|{{#arraymap:{{{type}}}|, |@@@|[[{{ucfirst:{{lc:@@@}}}}]]|,&nbsp;}}|{{#arraymap:{{#show:{{{1}}}|?Has item type}}|, |@@@|[[@@@]]|,&nbsp;}}}}<!--
| {{#if:{{{type|}}}|{{#arraymap:{{{type}}}|, |@@@|[[{{ucfirst:{{lc:@@@}}}}]]|,&nbsp;}}|{{#arraymap:{{#show:{{{1}}}|?Has item type}}|, |@@@|[[@@@]]|,&nbsp;}}}}
-->|| {{#if:{{#show:{{{1}}}|?Has item rarity}}|{{rarity|{{#show:{{{1}}}|?Has item rarity}}}}|<!--
| {{#if:{{#show:{{{1}}}|?Has item level}}|{{#show:{{{1}}}|?Has item level}}|N/A}}
-->{{#if:{{{rarity|}}}|{{#arraymap:{{#show:{{{1}}}|?Has subobject|link=none}}|, |@@@|{{#ifeq:{{#show:@@@|?Has item rarity}}|{{ucfirst:{{lc:{{{rarity}}}}}}}|{{#if:{{#varexists:dtr{{{1}}}{{#show:@@@|?Has item rarity}}}}||{{rarity|{{#show:@@@|?Has item rarity}}{{#vardefine:dtr{{{1}}}{{#show:@@@|?Has item rarity}}}}}}}}}}}}<!--
| {{#if:{{#show:{{{1}}}|?Has item rarity}}|{{rarity|{{#show:{{{1}}}|?Has item rarity}}}}}}
-->|{{#arraymap:{{#show:{{{1}}}|?Has subobject|link=none}}|, |@@@|{{#if:{{#varexists:dtr{{{1}}}{{#show:@@@|?Has item rarity}}}}||{{rarity|{{#show:@@@|?Has item rarity}}{{#vardefine:dtr{{{1}}}{{#show:@@@|?Has item rarity}}}}}}}}|,&nbsp;}}}}}}<!--
| style="text-align:center;" | {{#var:drop_qty_min}}{{#ifeq:{{#var:drop_qty_max}}|0||-{{#var:drop_qty_max}}}}<!--
-->|| style="text-align:center;" | {{#if:{{{2|}}}|{{{2}}}|1}}<!--
-->{{#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}}}}}| {{!}}{{!}}{{{level|{{#var:dropstablelevel}}}}}|}}<!--
-->{{#if:{{NAMESPACE}}||{{#set:Drops item={{{1|}}}}}}}</includeonly><noinclude>
== Description ==
== Description ==
To be used in conjunction with {{tl|Drops table header}}.  
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.
;collapsed
 
:Optional. Collapses the text from the ''fate'' and ''fixed'' parameters.
== 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|collapsed=y}}
{{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|collapsed=y}}
{{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 icon1.png  Antiquated Failnaught Archer's Arm 290 CBlue 1
Frumenty icon1.png  Frumenty   This item is dropped by the fate Some FATE. Meal 4 ABasic 1
Raisins icon1.png  Raisins   This item is guaranteed to drop. Meal 3 ABasic 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 icon1.png  Raisins Meal 3 ABasic 2 48
Wind shard icon1.png  Wind Shard Crystal N/A ABasic 1 3-80