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.)
>Eave
(actually, I prefer to go with named args instead in that case)
 
(7 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
| {{#var:endeavorTotal}}
 
| {{#var:endeavorTotal}}
| {{{1|}}}
+
| {{{Description|}}}
| {{#switch: {{{2|}}}
+
| {{#switch: {{{RewardType|}}}
  | Resource = {{{{{3|}}}-}} x{{formatnum:{{{4|}}}}}
+
  | Resource = {{{{{RewardItem|}}}-}} x{{formatnum:{{{RewardAmount|}}}}}
  | Consumable = {{{{{3|}}}-}} x{{{4|}}}
+
  | Consumable = {{{{{RewardItem|}}}-}} x{{{RewardAmount|}}}
  | Currency = {{{{{3|}}}-}} x{{formatnum:{{{4|}}}}}
+
  | Currency = {{{{{RewardItem|}}}-}} x{{formatnum:{{{RewardAmount|}}}}}
  | Gift = {{{{{3|}}}-}} x{{{4|}}}
+
  | Gift = {{{{{RewardItem|}}}-}} x{{{RewardAmount|}}}
  | Material = {{{{{3|}}}-}} x{{formatnum:{{{4|}}}}}
+
  | Material = {{{{{RewardItem|}}}-}} x{{formatnum:{{{RewardAmount|}}}}}
  | EpithetRank1 = [[File:Icon Profile 01 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
+
  | Weapon = {{Icon|{{{RewardType|}}}|{{{RewardItem|}}}|size=32px|text=1}} x{{{RewardAmount|}}}
| EpithetRank2 = [[File:Icon Profile 02 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
+
  | Wyrmprint = {{Icon|{{{RewardType|}}}|{{{RewardItem|}}}|size=32px|text=1}} x{{{RewardAmount|}}}
| EpithetRank3 = [[File:Icon Profile 03 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
+
  | Dragon = {{Icon|{{{RewardType|}}}|{{{RewardItem|}}}|size=32px|text=1}} x{{{RewardAmount|}}}
  | EpithetRank4 = [[File:Icon Profile 04 Frame.png|19px|Epithet|link=Epithets]] {{{3|}}}
+
  | Sticker = [[File:{{{StickerID|}}}.png|32px|link=Stickers]] {{{RewardItem|}}}
| Sticker = {{{3|}}} x{{{4|}}}
+
| EpithetRank1 = [[File:Icon Profile 01 Frame.png|19px|Epithet|link=Epithets]] {{{RewardItem|}}}
  | Weapon = {{Icon|{{{2|}}}|{{{3|}}}|size=32px|text=1}} x{{{4|}}}
+
| EpithetRank2 = [[File:Icon Profile 02 Frame.png|19px|Epithet|link=Epithets]] {{{RewardItem|}}}
  | Wyrmprint = {{Icon|{{{2|}}}|{{{3|}}}|size=32px|text=1}} x{{{4|}}}
+
| EpithetRank3 = [[File:Icon Profile 03 Frame.png|19px|Epithet|link=Epithets]] {{{RewardItem|}}}
 +
| EpithetRank4 = [[File:Icon Profile 04 Frame.png|19px|Epithet|link=Epithets]] {{{RewardItem|}}}
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 06:32, 13 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.