Difference between revisions of "Template:Event"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Eave
(making enddate optional - when not supplied we should not attempt to store a blank value, doing so will cause cargo to use the current time instead)
>Eave
m (also conditionally render the enddate)
Line 63: Line 63:
 
<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">{{#time:F d, Y h:i:s A e|{{{StartDate|}}}}} - {{#time:F d, Y h:i:s A e|{{{EndDate|}}}}}</div>
+
<div style="margin:10px auto 0;font-size:.9em;max-width:600px;font-weight:bold">
{{Countdown|EventName=EventPage|TimeStart={{{StartDate}}}|TimeEnd={{{EndDate}}}}}
+
{{#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: {{{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}}
 
|}}{{#if: {{{Content|}}} | <div style="padding:1em 0.5em;">{{StylizedHeader|Tips and Recommendations}}

Revision as of 03:52, 28 March 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.