Difference between revisions of "Template:Event"

From Dragalia Lost Wiki
Jump to navigation Jump to search
imported>Elaeagnifolia
(Created page with "<noinclude>{{doc}}Category:Templates<!-- // Cargo Declare -->{{#cargo_declare:_table=Events |Type=String |Description=String |StartDate=Date |EndDate=Date |ExclusiveAdven...")
>Eave
(for enemies that don't have a page, just display the name)
 
(629 intermediate revisions by 11 users not shown)
Line 3: Line 3:
 
// Cargo Declare
 
// Cargo Declare
 
-->{{#cargo_declare:_table=Events
 
-->{{#cargo_declare:_table=Events
 +
|Name=String
 +
|NameJP=String
 +
|NameSC=String
 +
|NameTC=String
 +
|Date=String
 
|Type=String
 
|Type=String
|Description=String
+
|Description=Wikitext (size=500)
|StartDate=Date
+
|EnemyElement1=String
|EndDate=Date
+
|EnemyElement2=String
 +
|EnemyAffliction=String
 +
|ThemeSong=String
 +
|StartDate=DateTime
 +
|EndDate=DateTime
 
|ExclusiveAdventurer=String
 
|ExclusiveAdventurer=String
 
|ExclusiveDragon=String
 
|ExclusiveDragon=String
|ExclusiveWyrmprint=String
+
|ExclusiveWyrmprint=List (,) of String
 
|ExclusiveFacility=String
 
|ExclusiveFacility=String
 +
|ExclusiveWeapon=List (,) of String
 
}}</noinclude><includeonly><!--
 
}}</noinclude><includeonly><!--
  
 
// Cargo Store
 
// Cargo Store
-->{{#cargo_store:_table=Events
+
-->{{#ifeq:{{PAGENAME}} | {{{Name|}}} | |
 +
{{#if:{{{EndDate|}}}
 +
| {{#cargo_store:_table=Events
 +
|Name={{{Name|}}}
 +
|NameJP={{{NameJP|}}}
 +
|NameSC={{{NameSC|}}}
 +
|NameTC={{{NameTC|}}}
 +
|Date={{{Date|}}}
 
|Type={{{Type|}}}
 
|Type={{{Type|}}}
 
|Description={{{Description|}}}
 
|Description={{{Description|}}}
|StartDate={{{StartDate|}}}
+
|EnemyElement1={{{EnemyElement1|}}}
|EndDate={{{EndDate|}}}
+
|EnemyElement2={{{EnemyElement2|}}}
 +
|EnemyAffliction={{{EnemyAffliction|}}}
 +
|ThemeSong={{{ThemeSong|}}}
 +
|StartDate={{#time:F d, Y h:i:s A e|{{{StartDate|}}}}}
 +
|EndDate={{#time:F d, Y h:i:s A e|{{{EndDate|}}}}}
 
|ExclusiveAdventurer={{{ExclusiveAdventurer|}}}
 
|ExclusiveAdventurer={{{ExclusiveAdventurer|}}}
 
|ExclusiveDragon={{{ExclusiveDragon|}}}
 
|ExclusiveDragon={{{ExclusiveDragon|}}}
|ExclusiveWyrmprint={{{ExclusiveWyrmprint|}}}
+
|ExclusiveWyrmprint={{{ExclusiveWyrmprint|}}}{{{CustomWyrmprintList|}}}
 
|ExclusiveFacility={{{ExclusiveFacility|}}}
 
|ExclusiveFacility={{{ExclusiveFacility|}}}
}}<!--
+
|ExclusiveWeapon={{{ExclusiveWeapon|}}}{{{CustomWeaponList|}}}
 +
}}
 +
| {{#cargo_store:_table=Events
 +
|Name={{{Name|}}}
 +
|NameJP={{{NameJP|}}}
 +
|NameSC={{{NameSC|}}}
 +
|NameTC={{{NameTC|}}}
 +
|Date={{{Date|}}}
 +
|Type={{{Type|}}}
 +
|Description={{{Description|}}}
 +
|EnemyElement1={{{EnemyElement1|}}}
 +
|EnemyElement2={{{EnemyElement2|}}}
 +
|EnemyAffliction={{{EnemyAffliction|}}}
 +
|ThemeSong={{{ThemeSong|}}}
 +
|StartDate={{#time:F d, Y h:i:s A e|{{{StartDate|}}}}}
 +
|ExclusiveAdventurer={{{ExclusiveAdventurer|}}}
 +
|ExclusiveDragon={{{ExclusiveDragon|}}}
 +
|ExclusiveWyrmprint={{{ExclusiveWyrmprint|}}}{{{CustomWyrmprintList|}}}
 +
|ExclusiveFacility={{{ExclusiveFacility|}}}
 +
|ExclusiveWeapon={{{ExclusiveWeapon|}}}{{{CustomWeaponList|}}}
 +
}}
 +
}}<!-- END if:EndDate -->
 +
}}</includeonly><!--
  
 
// Template Display Content
 
// Template Display Content
--><div class="panel" style="margin:auto;max-width:750px">
+
--><includeonly><div class="event"><div class="panel" style="margin:auto;max-width:750px">
 
<div class="panel-heading" style="padding:1em;">
 
<div class="panel-heading" style="padding:1em;">
<div>[[File:Banner {{PAGENAME}}.png|600px|link=]]</div>
+
<div>[[File:Banner {{#replace:{{{Name}}}|:|}}.png]]</div>
 
</div>
 
</div>
 
<div class="quest-container" style="margin-top:-5px;text-align:center">
 
<div class="quest-container" style="margin-top:-5px;text-align:center">
<div style="padding:0 20px;margin:auto;font-style:italic;font-size:.9em;max-width:600px;">{{{Description|}}}</div>
+
<div style="padding:0 20px;margin:auto;font-style:italic;font-size:.9em;max-width:600px;">{{{Description|}}}</div><!--
<div style="margin:10px auto 0;font-size:.9em;max-width:600px;font-weight:bold">{{{StartDate|}}} - {{{EndDate|}}}</div>
+
-->{{#if:{{{EnemyElement1|}}}|<div style="margin:10px auto 0;font-size:.9em;max-width:600px;font-weight:bold">
<div style="padding:1em 0.5em;">
+
Enemy Element: {{#switch:{{{EnemyElement1|}}}|All=[[File:Icon Element Flame.png|30px|link=]][[File:Icon Element Water.png|30px|link=]][[File:Icon Element Wind.png|30px|link=]][[File:Icon Element Light.png|30px|link=]][[File:Icon Element Shadow.png|30px|link=]] All|[[File:Icon Element {{{EnemyElement1|}}}.png|30px|link=]] {{{EnemyElement1|}}}}}{{#if:{{{EnemyElement2|}}}|, [[File:Icon Element {{{EnemyElement2|}}}.png|30px|link=]] {{{EnemyElement2|}}}}}
{{StylizedHeader|Tips and Recommendations}}
+
</div>|}}<!--
<div style="display:flex;justify-content:center">{{{Content|}}}</div>
+
-->{{#if:{{{EnemyAffliction|}}}|<div style="margin:10px auto 0;font-size:.9em;max-width:600px;font-weight:bold">
 +
Enemy Affliction: [[File:Affliction {{lc:{{{EnemyAffliction|}}}}} large icon.png|30px|link={{{EnemyAffliction|}}}]] {{{EnemyAffliction|}}}
 +
</div>}}<!--
 +
-->{{#if:{{{ThemeSong|}}}|<div style="margin:10px auto 0;font-size:.9em;max-width:600px;font-weight:bold">
 +
Theme Song:<br/>{{{ThemeSong|}}}
 +
</div>}}<!--
 +
--><div style="margin:10px auto 0;font-size:.9em;max-width:600px;font-weight:bold">
 +
{{#time:F d, Y h:i:s A e|{{{StartDate|}}}}} - {{#if:{{{EndDate|}}} | {{#time:F d, Y h:i:s A e|{{{EndDate|}}}}} | }}
 +
</div>
 +
{{#if:{{{EndDate|}}} | {{Countdown|EventName=EventPage|TimeStart={{{StartDate}}}|TimeEnd={{{EndDate}}}}} | }}
 +
{{#if: {{{Rerun|}}} | <div style="padding:1em 0.5em;margin:auto;font-weight:bold;font-size:.9em;max-width:600px;">This Event is a Rerun</div>
 +
|}}{{#if: {{{Content|}}} | <div style="padding:1em 0.5em;">{{StylizedHeader|Tips and Recommendations}}
 +
<div style="display:flex;justify-content:center">{{{Content|}}}</div></div>
 +
|}}{{#ifeq: {{{Type|}}} | Story | <div style="padding:1em 0.5em;">
 +
{{StylizedHeader|Story Event Mechanics}}
 +
<div style="display:flex;justify-content:center">
 +
{{StoryEventMechanics|{{{StoryEventMaterial|}}}}}</div>
 +
<div style="display:flex;justify-content:center">
 +
{{StoryEventCurrencyData|{{{StoryEventMaterial|}}}}}</div>
 
</div>
 
</div>
 +
|}}{{#if: {{{RaidBoosts|}}} |
 
<div style="padding:1em 0.5em;">
 
<div style="padding:1em 0.5em;">
 +
{{StylizedHeader|Raid Boosts}}
 +
<div style="display:flex;justify-content:space-around;flex-wrap:wrap">{{{RaidBoosts|}}}{{{RareRaidBoosts|}}}{{{PersonalPerks|}}}</div>
 +
|}}{{#if: {{{Battles|}}} | <div style="padding:1em 0.5em;">
 
{{StylizedHeader|Event Battles}}
 
{{StylizedHeader|Event Battles}}
 
<div style="display:flex;justify-content:center">{{{Battles|}}}</div>
 
<div style="display:flex;justify-content:center">{{{Battles|}}}</div>
 +
</div>
 +
|}}{{#if: {{{BattleQuestName1|}}} |
 +
<div class="battle-banner" style="padding:1em 0.5em;">
 +
{{StylizedHeader|Event Battles}}
 +
<div style="justify-content:center">
 +
<div style="margin:5px;">[[File:Banner {{{BattleQuestName1|}}}.png|link={{{BattleQuestName1|}}}]]</div>
 +
{{#if: {{{BattleQuestName2|}}} | <div style="margin:5px;">[[File:Banner {{{BattleQuestName2|}}}.png|link={{{BattleQuestName2|}}}]]</div> |}}
 +
{{#if: {{{BattleQuestName3|}}} | <div style="margin:5px;">[[File:Banner {{{BattleQuestName3|}}}.png|link={{{BattleQuestName3|}}}]]</div> |}}
 +
{{#if: {{{BattleQuestName4|}}} | <div style="margin:5px;">[[File:Banner {{{BattleQuestName4|}}}.png|link={{{BattleQuestName4|}}}]]</div> |}}
 +
{{#if: {{{BattleQuestName5|}}} | <div style="margin:5px;">[[File:Banner {{{BattleQuestName5|}}}.png|link={{{BattleQuestName5|}}}]]</div> |}}
 +
{{#if: {{{BattleQuestName6|}}} | <div style="margin:5px;">[[File:Banner {{{BattleQuestName6|}}}.png|link={{{BattleQuestName6|}}}]]</div> |}}
 +
{{#if: {{{BattleQuestName7|}}} | <div style="margin:5px;">[[File:Banner {{{BattleQuestName7|}}}.png|link={{{BattleQuestName7|}}}]]</div> |}}
 +
{{#if: {{{BattleQuestName8|}}} | <div style="margin:5px;">[[File:Banner {{{BattleQuestName8|}}}.png|link={{{BattleQuestName8|}}}]]</div> |}}
 +
{{#if: {{{BattleQuestName9|}}} | <div style="margin:5px;">[[File:Banner {{{BattleQuestName9|}}}.png|link={{{BattleQuestName9|}}}]]</div> |}}
 
</div>
 
</div>
<div style="padding:1em 0.5em;">
+
</div>
 +
|}}<div style="padding:1em 0.5em;">
 
{{StylizedHeader|Story Quests}}
 
{{StylizedHeader|Story Quests}}
 
<div style="display:flex;justify-content:center">{{{StoryQuests|}}}</div>
 
<div style="display:flex;justify-content:center">{{{StoryQuests|}}}</div>
 +
</div>{{#vardefine:castleStories|{{#invoke:CargoQuery|main
 +
|q?tables=CastleStories
 +
|q?fields=_pageName=Title,Event=Name,Id=Id
 +
|q?where=Event="{{{Name}}}/{{{Date}}}"
 +
|q?group by=_pageName
 +
|q?order by= ReleaseDate DESC, Id ASC
 +
|template=CastleStoriesMP
 +
|default=
 +
|delimiter=
 +
}}}}{{#if:{{#var:castleStories}}|
 +
<div style="padding:1em 0.5em;">
 +
{{StylizedHeader|{{Icon|Material|Looking Glass|size=32px}} Castle Stories}}
 +
{{#var:castleStories}}
 
</div>
 
</div>
{{#if:{{{ExclusiveAdventurer|}}} |  
+
}}{{#if:{{{ExclusiveAdventurer|}}} |  
 
<div style="padding:1em 0.5em;">
 
<div style="padding:1em 0.5em;">
 
{{StylizedHeader|Exclusive Adventurer}}
 
{{StylizedHeader|Exclusive Adventurer}}
 
<div style="display:flex;justify-content:center">{{Character info card|{{{ExclusiveAdventurer|}}}}}</div>
 
<div style="display:flex;justify-content:center">{{Character info card|{{{ExclusiveAdventurer|}}}}}</div>
 
</div>
 
</div>
}}
+
}}{{#if:{{{ExclusiveDragon|}}} |  
{{#if:{{{ExclusiveDragon|}}} |  
 
 
<div style="padding:1em 0.5em;">
 
<div style="padding:1em 0.5em;">
 
{{StylizedHeader|Exclusive Dragon}}
 
{{StylizedHeader|Exclusive Dragon}}
 
<div style="display:flex;justify-content:center">{{Dragon info card|{{{ExclusiveDragon|}}}}}</div>
 
<div style="display:flex;justify-content:center">{{Dragon info card|{{{ExclusiveDragon|}}}}}</div>
 
</div>
 
</div>
}}
+
}}{{#if:{{{ExclusiveWyrmprint|}}} |
{{#if:{{{ExclusiveWyrmprint|}}} |  
+
<div style="padding:1em 0.5em;">
 +
{{StylizedHeader|Exclusive Wyrmprints}}
 +
<div style="display:flex;justify-content:space-around;flex-wrap:wrap">{{#invoke:ListParserTooltip|Wyrmprints|{{{ExclusiveWyrmprint|}}}}}{{{CustomWyrmprint|}}}
 +
</div></div>
 +
}}{{#if:{{{ExclusiveWeapon|}}} |  
 
<div style="padding:1em 0.5em;">
 
<div style="padding:1em 0.5em;">
{{StylizedHeader|Exclusive Wyrmprint}}
+
{{StylizedHeader|Exclusive Weapons}}
<div style="display:flex;justify-content:center">{{Wrymprint info card|{{{ExclusiveWyrmprint|}}}}}</div>
+
<div style="display:flex;justify-content:space-around;flex-wrap:wrap">{{#invoke:ListParserTooltip|Weapons|{{{ExclusiveWeapon|}}}}}{{{CustomWeapon|}}}
</div>
+
</div></div>
}}
+
}}{{#if:{{{ExclusiveFacility|}}} |  
{{#if:{{{ExclusiveFacility|}}} |  
 
 
<div style="padding:1em 0.5em;">
 
<div style="padding:1em 0.5em;">
 
{{StylizedHeader|Exclusive Facility}}
 
{{StylizedHeader|Exclusive Facility}}
 
<div style="display:flex;justify-content:center">{{Facility info card|{{{ExclusiveFacility|}}}}}</div>
 
<div style="display:flex;justify-content:center">{{Facility info card|{{{ExclusiveFacility|}}}}}</div>
 +
{{#if: {{{Rerun|}}} |<nowiki>*</nowiki>If the player has already received the event facility, they will instead receive {{Wyrmite-}} x100.|}}
 +
</div>
 +
}}{{#if:{{{ExclusiveWeapon1|}}} |
 +
<div style="padding:1em 0.5em;">
 +
{{StylizedHeader|Exclusive Weapons}}
 +
<div style="display:flex;justify-content:center">{{Weapon info card|{{{ExclusiveWeapon1|}}}}}</div>
 +
}}{{#if:{{{ExclusiveWeapon2|}}} |
 +
<div style="display:flex;justify-content:center">{{Weapon info card|{{{ExclusiveWeapon2|}}}}}</div>
 
</div>
 
</div>
}}
+
}}{{#if:{{{TreasureTradeShop|}}} |  
{{#if:{{{TreasureTradeShop|}}} |  
 
 
<div style="padding:1em 0.5em;">
 
<div style="padding:1em 0.5em;">
 
{{StylizedHeader|Treasure Trade Shop}}
 
{{StylizedHeader|Treasure Trade Shop}}
 
<div style="display:flex;justify-content:center">{{{TreasureTradeShop|}}}</div>
 
<div style="display:flex;justify-content:center">{{{TreasureTradeShop|}}}</div>
 
</div>
 
</div>
}}
+
}}{{#if:{{{CollectionRewards|}}} |  
{{#if:{{{CollectionRewards|}}} |  
 
 
<div style="padding:1em 0.5em;">
 
<div style="padding:1em 0.5em;">
{{StylizedHeader|{{{EventMaterialCollection|}}} Collection Rewards}}
+
{{StylizedHeader|{{#ifeq:{{{EventMaterialCollection|}}}|Emblem|{{Icon|Material|Bronze Emblem|size=32px}}{{Icon|Material|Silver Emblem|size=32px}}{{Icon|Material|Gold Emblem|size=32px}} Emblem|{{Icon|Material|{{{EventMaterialCollection|}}}|size=32px|text=1}}}} Collection Rewards}}
 
<div style="display:flex;justify-content:center">{{{CollectionRewards|}}}</div>
 
<div style="display:flex;justify-content:center">{{{CollectionRewards|}}}</div>
 
</div>
 
</div>
}}
+
}}{{#if:{{{SummonRewards|}}} |  
{{#if:{{{SummonRewards|}}} |  
 
 
<div style="padding:1em 0.5em;">
 
<div style="padding:1em 0.5em;">
{{StylizedHeader|{{{EventMaterialSummon|}}} Summon Rewards}}
+
{{StylizedHeader|{{Icon|Material|{{{EventMaterialSummon|}}}|size=32px|text=1}} Summon Rewards}}
 
<div style="display:flex;justify-content:center">{{{SummonRewards|}}}</div>
 
<div style="display:flex;justify-content:center">{{{SummonRewards|}}}</div>
 +
{{#if:{{{5StarSummonWyrmprint|}}} |An assortment of random {{3*}} and {{4*}} Wyrmprints is available through the {{Wyrmprint-}} item in {{{EventMaterialSummon|}}} Summon, but this is the only {{5*}} Wyrmprint available:
 +
{{Wyrmprint info card|{{{5StarSummonWyrmprint|}}}}}}}
 
</div>
 
</div>
 
}}
 
}}
 +
<div style="padding:1em 0.5em;">
 +
{{StylizedHeader|Enemies}}
 +
<div style="max-height: 500px; overflow: auto;">
 +
{| class="wikitable sortable" style="width:100%;justify-content:center"
 +
|-
 +
! Name
 +
! Element
 +
! Class
 +
! HP
 +
! Str
 +
! Def
 +
! Quest
 +
{{#invoke:CargoQuery|main
 +
|q?tables=EnemyPageLinks,EnemiesTest,Quests
 +
|q?join= EnemiesTest.Name=EnemyPageLinks.Name,EnemiesTest.MissionType=Quests.QuestViewName
 +
|q?where=Quests.EventName="{{{Name}}}" AND EnemiesTest.MissionType NOT LIKE "%debug%" AND EnemiesTest.Def != 100000
 +
|q?fields=(CASE
 +
  WHEN EnemyPageLinks._pageName IS NOT NULL THEN CONCAT('[[', EnemyPageLinks._pageName, '|', EnemiesTest.Name, ']]')
 +
  ELSE EnemiesTest.Name
 +
  END)=Name,EnemiesTest.HP=HP,EnemiesTest.Atk=Str,EnemiesTest.Def=Def,EnemiesTest.ElementalType=Element,EnemiesTest.Tribe=Tribe,CONCAT('[[', Quests._pageName, '|', EnemiesTest.MissionType, ']]')=Quest
 +
|q?groupBy=EnemiesTest.MonsterId
 +
|q?orderBy=EnemiesTest.HP DESC,EnemiesTest.Name
 +
|template=EventEnemyTableEntry
 +
|default={{Row|-|-|-|-|-|-|-}}
 +
}}
 +
|}
 +
</div></div>
 +
 
<div style="padding:1em 0.5em;">
 
<div style="padding:1em 0.5em;">
 
{{StylizedHeader|Endeavors}}
 
{{StylizedHeader|Endeavors}}
<div style="display:flex;justify-content:center">{{{Endeavors|}}}</div>
+
<div style="display:flex;justify-content:center">
 +
<div style="width:100%">
 +
<div style="max-height: 500px; overflow: auto;">{{{Endeavors|}}}
 +
{{#invoke:CargoQuery|main
 +
|q?tables=EndeavorSets
 +
|q?fields=Name,Type,StartDate,EndDate,_rowID
 +
|q?orderBy=StartDate ASC, Name ASC
 +
|q?groupBy=
 +
|q?where=Type='EventDaily' AND Event="{{{Name|}}}/{{{Date|}}}"
 +
|template=EndeavorSetsEventDisplay
 +
|default=
 +
|more results text=
 +
}}
 +
{{#invoke:CargoQuery|main
 +
|q?tables=EndeavorSets
 +
|q?fields=Name,Type,StartDate,EndDate,_rowID
 +
|q?orderBy=StartDate ASC, Name ASC
 +
|q?groupBy=
 +
|q?where=Type='Event' AND Event="{{{Name|}}}/{{{Date|}}}"
 +
|template=EndeavorSetsEventDisplay
 +
|default=
 +
|more results text=
 +
}}
 +
{{#invoke:CargoQuery|main
 +
|q?tables=EndeavorSets
 +
|q?fields=Name,Type,StartDate,EndDate,_rowID
 +
|q?orderBy=StartDate ASC, Name ASC
 +
|q?groupBy=
 +
|q?where=Type='Compendium' AND Event="{{{Name|}}}/{{{Date|}}}"
 +
|template=EndeavorSetsCompendiumDisplay
 +
|default=
 +
|more results text=
 +
}}
 +
{{#if: {{{Rerun|}}} |If the player has already earned epithets or stickers from this event, those rewards will be replaced by {{Wyrmite-}} as follows:<br>
 +
[[File:Icon Profile 01 Frame.png|32px]] Rank 1 epithet: {{Wyrmite-}} x50.<br>
 +
[[File:Icon Profile 02 Frame.png|32px]] Rank 2 epithet: {{Wyrmite-}} x100.<br>
 +
[[File:Icon Profile 03 Frame.png|32px]] Rank 3 epithet: {{Wyrmite-}} x150.<br>
 +
[[File:Icon Profile 04 Frame.png|32px]] Rank 4 epithet: {{Wyrmite-}} x200.<br>
 +
[[File:10702 en.png|32px]] Sticker: {{Wyrmite-}} x25.|}}</div>
 +
</div>
 +
</div>
 +
</div>
 +
</div>
 
</div>
 
</div>
 
<div style="padding:1em 0.5em;">
 
{{StylizedHeader|Event Prologue}}
 
<div style="display:flex;justify-content:center">{{{EventPrologue|}}}</div>
 
 
</div>
 
</div>
 
+
</div>[[Category:Events]][[Category:{{{Type|}}} Events]]</includeonly><noinclude>[[Category:Templates]]</noinclude>
</div>[[Category:Events]][[Category:{{{Type|}}} Events]]</includeonly>
 

Latest revision as of 04:10, 30 July 2020

50px Documentation

Usage

{{Event
|Name=
|NameJP=
|NameSC=
|NameTC=
|Date=
|Type=
|Description=
|EnemyElement=
|EnemyAffliction=
|ThemeSong=
|StartDate=
|EndDate=
|Rerun=
|Content=
|RaidBoosts=
|RareRaidBoosts=
|PersonalPerks=
|Battles=
|BattleQuestName1=
|ExclusiveAdventurer=
|ExclusiveDragon=
|ExclusiveWyrmprint=
|ExclusiveFacility=
|ExclusiveWeapon=
|TreasureTradeShop=
|CollectionRewards=
|EventMaterialCollection=
|SummonRewards=
|EventMaterialSummon=
|5StarSummonWyrmprint=
}}

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