Difference between revisions of "Template:EndeavorSetsDisplayRow"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Boblers
(formatnum seems to work. implementing it into other fields.)
>Boblers
(adding Sticker handling, and Dragon handling. Re-ordered switch statements to match documentation order)
Line 9: Line 9:
 
  | Gift = {{{{{3|}}}-}} x{{{4|}}}
 
  | Gift = {{{{{3|}}}-}} x{{{4|}}}
 
  | Material = {{{{{3|}}}-}} x{{formatnum:{{{4|}}}}}
 
  | Material = {{{{{3|}}}-}} x{{formatnum:{{{4|}}}}}
 +
| Weapon = {{Icon|{{{2|}}}|{{{3|}}}|size=32px|text=1}} x{{{4|}}}
 +
| Wyrmprint = {{Icon|{{{2|}}}|{{{3|}}}|size=32px|text=1}} x{{{4|}}}
 +
| Dragon = {{Icon|{{{2|}}}|{{{3|}}}|size=32px|text=1}} x{{{4|}}}
 +
| Sticker = [[File:{{{StickerID|}}}.png|32px|link=Stickers]] {{{3|}}}
 
  | EpithetRank1 = [[File:Icon Profile 01 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
 
  | EpithetRank1 = [[File:Icon Profile 01 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
 
  | EpithetRank2 = [[File:Icon Profile 02 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
 
  | EpithetRank2 = [[File:Icon Profile 02 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
 
  | EpithetRank3 = [[File:Icon Profile 03 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
 
  | EpithetRank3 = [[File:Icon Profile 03 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
 
  | EpithetRank4 = [[File:Icon Profile 04 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
 
  | EpithetRank4 = [[File:Icon Profile 04 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
| Sticker = {{{3|}}} x{{{4|}}}
 
| Weapon = {{Icon|{{{2|}}}|{{{3|}}}|size=32px|text=1}} x{{{4|}}}
 
| Wyrmprint = {{Icon|{{{2|}}}|{{{3|}}}|size=32px|text=1}} x{{{4|}}}
 
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Revision as of 19:56, 5 April 2020

50px Documentation

This template behaves very similarly to Template:EndeavorRow, but switches its display method based on item type. This is primarily called by Template:EndeavorSetsDisplay rather than directly by users.

Usage

{{EndeavorTable|endeavors=
{{EndeavorSetsDisplayRow|Description|RewardType|RewardItem|RewardAmount}}
{{EndeavorSetsDisplayRow|Resource|Eldwater|1,500}}
{{EndeavorSetsDisplayRow|Consumable|Blessed Ethon Ashes|5}}
{{EndeavorSetsDisplayRow|Currency|Wyrmite|200}}
{{EndeavorSetsDisplayRow|Gift|Four-Leaf Clover|2}}
{{EndeavorSetsDisplayRow|Material|Meteorite|324}}
{{EndeavorSetsDisplayRow|Weapon|Zex's End|1}}
{{EndeavorSetsDisplayRow|Wyrmprint|Give Me Your Wounded|1}}
{{EndeavorSetsDisplayRow|Dragon|Mini Mids|1}}
{{EndeavorSetsDisplayRow|Sticker|Well, aren't you sweet?|StickerID=10702_en}}
{{EndeavorSetsDisplayRow|EpithetRank1|Dragonblood Prince}}
{{EndeavorSetsDisplayRow|EpithetRank2|Pumpkin Squasher}}
{{EndeavorSetsDisplayRow|EpithetRank3|Volcanic Fiendslayer}}
{{EndeavorSetsDisplayRow|EpithetRank4|Conqueror of Causality}}
}}

Template Fields

1: Description of the Endeavor. For example: "Defeat the Eolian Phantom 10 Times"

2: RewardType is the type of the item rewarded.

  • Type can be one of: Resource, Consumable, Currency, Gift, Material, Weapon, Wyrmprint, Dragon, Sticker, EpithetRank1, EpithetRank2, EpithetRank3, or EpithetRank4.
  • Item Type quick reference:
    • Resource: Eldwater, Mana, Rupies
    • Consumable: Ashes, Honey, Skip Ticket, Summon Voucher
    • Currency: Wyrmite
    • Gift: Clover
    • Material: (pretty much any other items)
    • Weapon: (self-explanatory)
    • Wyrmprint: (self-explanatory)
    • Dragon: (self-explanatory)
    • Sticker: (self-explanatory)
    • EpithetRank1: bronze medal epithets
    • EpithetRank2: silver medal epithets
    • EpithetRank3: gold medal epithets
    • EpithetRank4: gold medal w/crown epithets


3: RewardItem is the item rewarded. For example: Wyrmite

4: RewardAmount is the amount of the item rewarded. For example: 100 if we were given 100 Wyrmite

StickerID: is the image file name of a sticker. For example, 10702_en would grab 10702 en.png.