Difference between revisions of "Template:DropReward"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Seraii
>Canim44
m (Formatting (spaces))
 
(27 intermediate revisions by 3 users not shown)
Line 7: Line 7:
 
   |ItemType=String
 
   |ItemType=String
 
   |Item=String
 
   |Item=String
 +
  |Item2=String
 
   |MinDrop=Integer
 
   |MinDrop=Integer
 
   |MaxDrop=Integer
 
   |MaxDrop=Integer
Line 12: Line 13:
 
   |AvgDrop=Float
 
   |AvgDrop=Float
 
}}</noinclude><includeonly><!--
 
}}</noinclude><includeonly><!--
 
 
// Storing values to Cargo Table
 
// Storing values to Cargo Table
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#cargo_store:
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#cargo_store:
Line 19: Line 19:
 
   |ItemType={{{itemtype|}}}
 
   |ItemType={{{itemtype|}}}
 
   |Item={{{item|}}}
 
   |Item={{{item|}}}
 +
  |Item2={{{item2|}}}
 
   |MinDrop={{{min|}}}
 
   |MinDrop={{{min|}}}
 
   |MaxDrop={{{max|}}}
 
   |MaxDrop={{{max|}}}
Line 24: Line 25:
 
   |AvgDrop={{{avg|}}}
 
   |AvgDrop={{{avg|}}}
 
  }}
 
  }}
| }}<!--
+
|}}<!--
 
 
 
// Template Display Content
 
// Template Display Content
-->{{#if:{{{bullets|}}} |  
+
--><div>{{#if:{{{bullets|}}} |  
* }}{{#if:{{{itemtype|}}} | {{Icon|{{{itemtype|}}}|{{{item|}}}|text=1|size=36px}} | {{{{{item|}}}}} }} {{#if: {{{min|}}} | x{{{min|?}}}-{{{max|?}}} }}{{#if: {{{exact|}}} | x{{{exact|?}}} }}{{#if:{{{avg|}}} | (~{{{avg|}}} per run) }}<br/>
+
* }}
 +
{{#if:{{{itemtype|}}}|{{Icon|{{{itemtype|}}}|{{{item|}}}|text=1|size=36px}}|{{{{{item|}}}}}}}&nbsp;{{#if:{{{item2|}}}| OR {{#if:{{{itemtype}}}|{{Icon|{{{itemtype|}}}|{{{item2|}}}|text=1|size=36px}}|OR {{{{{item2|}}}}}}}&nbsp;}}{{#if: {{{min|}}} | x{{{min|?}}}-{{{max|?}}} }}{{#if: {{{exact|}}} | x{{{exact|?}}} }}{{#if:{{{avg|}}} |&nbsp;(~{{{avg|}}} per run) }}</div>
 
</includeonly>
 
</includeonly>

Latest revision as of 07:57, 14 November 2019

50px Documentation

Parameters

  • droptype - Common, Daily, Weekly, First
  • itemtype - Currency, Resource, Material, Weapon, Wyrmprint
  • item - The name of item dropped
  • item2 - The name of item dropped in place of item (i.e., augments in Astral Raids)
  • min - The minimum amount that can be obtained
  • max - The maximum amount that can be obtained
  • exact - The exact amount that can be obtained
  • avg - The average amount that can be obtained
  • bullets - Specifying this will add a bullet point at the beginning

Examples

{{DropReward|droptype=Common|itemtype=Material|item=Water Orb|avg=4}}
Error: Table Materials not found.
  (~4 per run)


{{DropReward|droptype=Daily|itemtype=Material|item=Royal Jade Insignia|min=3|max=5|avg=10}}
Error: Table Materials not found.
 x3-5 (~10 per run)


{{DropReward|droptype=Daily|itemtype=Material|item=Royal Jade Insignia|min=3|max=5|avg=10|bullets=1}}
Error: Table Materials not found.
 x3-5 (~10 per run)


{{DropReward|droptype=Daily|itemtype=Material|item=Fortifying Crystal|item2=Amplifying Crystal|exact=1}}
Error: Table Materials not found.
 OR
Error: Table Materials not found.
 x1

This template defines the table "DropRewards". This table has not been created yet.