Difference between revisions of "Template:Drops table row"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(creation)
 
 
(22 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|}}}|{{#if:{{{collapsed|}}}|&nbsp;
-->{{#if:{{{fate|}}}|&nbsp; [[File:Notorious monster FATE (map icon).png|24px|This item is dropped by the fate {{{fate}}}.|link={{{fate}}}]]}}<!--
{{{!}} class="expandable"
-->{{#if:{{{fixed|}}}|&nbsp; [[File:Starred Bag.png|20px|This item is guaranteed to drop.|link=]]}}
! style="text-align:left;font-weight:normal;" {{!}} ''(requires [[fate]])''
| {{#if:{{{type|}}}|{{#arraymap:{{{type}}}|, |@@@|[[{{ucfirst:{{lc:@@@}}}}]]|,&nbsp;}}|{{#arraymap:{{#show:{{{1}}}|?Has item type}}|, |@@@|[[@@@]]|,&nbsp;}}}}
{{!}}-
| {{#if:{{#show:{{{1}}}|?Has item level}}|{{#show:{{{1}}}|?Has item level}}|N/A}}
{{!}}''only drops from the [[FATE]] [[{{{fate}}}]]''
| {{#if:{{#show:{{{1}}}|?Has item rarity}}|{{rarity|{{#show:{{{1}}}|?Has item rarity}}}}}}
{{!}}}|<br /><small>(only drops if the [[{{{fate}}}]] [[fate]] is active)</small>}} |}}
| style="text-align:center;" | {{#var:drop_qty_min}}{{#ifeq:{{#var:drop_qty_max}}|0||-{{#var:drop_qty_max}}}}<!--
| {{#if:{{{type|}}}|{{#arraymap:{{{type}}}|, |@@@|[[{{ucfirst:{{lc:@@@}}}}]]|,&nbsp;}}|{{#arraymap:{{#show:{{{1}}}|?Has item type}}|, |@@@|[[@@@]]|,&nbsp;}}}}<!--
-->{{#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:{{#show:{{{1}}}|?Has item rarity}}|{{rarity|{{#show:{{{1}}}|?Has item rarity}}}}|<!--
-->{{#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}}}}}}}}}}}}<!--
-->|{{#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;" | {{#if:{{{2|}}}|{{{2}}}|1}}<!--
-->{{#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 21: 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.
;fixed
:Optional. Adds a line break to the item name column and adds information that this drop is fixed.
;rarity
;rarity
:Optional. Checks for the specified rarity of the subobjects of the given item, and will only display this rarity.
:Optional. Checks for the specified rarity of the subobjects of the given item, and will only display this rarity.
;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'' parameter.
== 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|collapsed=y}}
{{Drops table row|Frumenty|fate=Some FATE}}
|}</pre>
{{Drops table row|Raisins|fixed=y}}
{{Table footer}}</pre>


{{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|collapsed=y}}
{{Drops table row|Frumenty|fate=Some FATE}}
|}
{{Drops table row|Raisins|fixed=y}}
{{Table footer}}


== Example 2 ==
== Example 2 ==
Line 47: Line 53:
{{Drops table row|Raisins|2|level=48}}
{{Drops table row|Raisins|2|level=48}}
{{Drops table row|Wind Shard}}
{{Drops table row|Wind Shard}}
|}</pre>
{{Table footer}}</pre>


{{Drops table header|show-levels=y|levels=3-80}}
{{Drops table header|show-levels=y|levels=3-80}}
{{Drops table row|Raisins|2|level=48}}
{{Drops table row|Raisins|2|level=48}}
{{Drops table row|Wind Shard}}
{{Drops table row|Wind Shard}}
|}
{{Table footer}}


[[Category:Table formatting templates]]</noinclude>
[[Category:Table formatting templates]]</noinclude>

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