Difference between revisions of "Template:Event info card"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>Canim44
(Restoring commented version; will adjust later)
 
(46 intermediate revisions by 6 users not shown)
Line 2: Line 2:
  
 
Content display
 
Content display
--><div class="panel" style="display:inline-block">
+
--><div class="panel info-card" style="display:inline-block">
<div class="panel-heading"><span style="font-size:.6em;">{{#cargo_query:tables=Events|where=Name="{{{1|{{{Name|}}}}}}"|fields=Type|no html|limit=1|more results text=|default=}} Event: [[{{{1|{{{Name|}}}}}}]]</span><br/>[[File:Banner {{{1|{{{Name|}}}}}}.png|500px|link={{{1|{{{Name|}}}}}}]]<br/><span style="font-size:.6em;">{{#time:F d, Y h:i:s A e|{{#cargo_query:tables=Events|where=Name="{{{1|{{{Name|}}}}}}"|fields=StartDate|no html|limit=1|more results text=}}}} <b>-</b> {{#time:F d, Y h:i:s A e|{{#cargo_query:tables=Events|where=Name="{{{1|{{{Name|}}}}}}"|fields=EndDate|no html|limit=1|more results text=}}}}</span></div>
+
<div class="panel-heading"><span style="font-size:.6em;">{{#cargo_query:tables=Events|where=_pageName="{{{1|{{{Name|}}}}}}"|fields=Type|no html|limit=1|more results text=|default=}} Event: [[{{{1|{{{Name|}}}}}}]]</span><br/>[[File:Banner {{{1|{{{GeneralEventName|}}}}}}.png|link={{{1|{{{Name|}}}}}}]]<br/><span style="font-size:.6em;">{{#time:F d, Y h:i:s A e|{{#cargo_query:tables=Events|where=_pageName="{{{1|{{{Name|}}}}}}"|fields=StartDate|no html|limit=1|more results text=}}}} <b>-</b> {{#time:F d, Y h:i:s A e|{{#cargo_query:tables=Events|where=_pageName="{{{1|{{{Name|}}}}}}"|fields=EndDate|no html|limit=1|more results text=}}}}</span></div>
 
<div class="panel-body" style="text-align:center;">
 
<div class="panel-body" style="text-align:center;">
  
<div style="max-width:496px; font-size:.9em;  font-style: italic;">{{#cargo_query:tables=Events|where=Name="{{{1|{{{Name|}}}}}}"|fields=Description|no html|limit=1|more results text=|default=}}</div>
+
<div style="max-width:496px; font-size:.9em;  font-style: italic;">{{#cargo_query:tables=Events|where=_pageName="{{{1|{{{Name|}}}}}}"|fields=Description|no html|limit=1|more results text=|default=}}</div>
  
 
<div>
 
<div>
 
'''Exclusive Event Rewards:'''<br/>
 
'''Exclusive Event Rewards:'''<br/>
{{#cargo_query:tables=Events|where=Name="{{{1|{{{Name|}}}}}}"|fields=CONCAT('<b>- Adventurer: </b>[[', ExclusiveAdventurer,']]<br/>')|default=|limit=1|more results text=}}{{#cargo_query:tables=Events|where=Name="{{{1|{{{Name|}}}}}}"|fields=CONCAT('<b>- Dragon: </b>[[', ExclusiveDragon,']]<br/>')|default=|limit=1|more results text=}}{{#cargo_query:tables=Events|where=Name="{{{1|{{{Name|}}}}}}"|fields=CONCAT('<b>- Wyrmprint: </b>[[', ExclusiveWyrmprint,']]<br/>')|default=|limit=1|more results text=}}{{#cargo_query:tables=Events|where=Name="{{{1|{{{Name|}}}}}}"|fields=CONCAT('<b>- Facility: </b>[[', ExclusiveFacility,']]<br/>')|default=|limit=1|more results text=}}
+
{{#cargo_query:tables=Events|where=_pageName="{{{1|{{{Name|}}}}}}"|fields=CONCAT('<b>- Adventurer: </b>[[', ExclusiveAdventurer,']]<br/>')|default=|limit=1|more results text=}}{{#cargo_query:tables=Events|where=_pageName="{{{1|{{{Name|}}}}}}"|fields=CONCAT('<b>- Dragon: </b>[[', ExclusiveDragon,']]<br/>')|default=|limit=1|more results text=}}
 +
<!-- {{#cargo_query:tables=Events|where=_pageName="{{{1|{{{Name|}}}}}}"|fields=CONCAT('<b>- Wyrmprint: </b>[[', ExclusiveWyrmprint,']]<br/>')|default=|limit=1|more results text=}} -->
 +
{{#cargo_query:tables=Events|where=_pageName="{{{1|{{{Name|}}}}}}"|fields=CONCAT('<b>- Facility: </b>[[', ExclusiveFacility,']]<br/>')|default=|limit=1|more results text=}}
 +
<!-- {{#cargo_query:tables=Events|where=_pageName="{{{1|{{{Name|}}}}}}"|fields=CONCAT('<b>- Facility: </b>[[', ExclusiveWeapon,']]<br/>')|default=|limit=1|more results text=}} -->
 
</div>
 
</div>
  
 
</div>
 
</div>
 
</div></includeonly>
 
</div></includeonly>

Latest revision as of 18:56, 29 November 2019

50px Documentation
Standard Use:
  {{Event info card|Name=Loyalty's Requiem/October 2018|GeneralEventName=Loyalty's Requiem}}
  {{Event info card|Name=The Accursed Archives/October 2019|GeneralEventName=The Accursed Archives}}
Multiple Exclusives:
  {{Event info card|Name=Fractured Futures/September 2019|GeneralEventName=Fractured Futures}}
  {{Event info card|Name=Mega Man Chaos Protocol/November 2019|GeneralEventName=Mega Man Chaos Protocol}}

Standard Use:

Error: Table Events not found.
Event: Loyalty's Requiem/October 2018

Banner Loyalty's Requiem.png
Error: Invalid time. - Error: Invalid time.
Error: Table Events not found.

Exclusive Event Rewards:

Error: Table Events not found.
Error: Table Events not found.
Error: Table Events not found.
Error: Table Events not found.
Event: The Accursed Archives/October 2019

Banner The Accursed Archives.png
Error: Invalid time. - Error: Invalid time.
Error: Table Events not found.

Exclusive Event Rewards:

Error: Table Events not found.
Error: Table Events not found.
Error: Table Events not found.

Multiple Exclusives:

Error: Table Events not found.
Event: Fractured Futures/September 2019

Banner Fractured Futures.png
Error: Invalid time. - Error: Invalid time.
Error: Table Events not found.

Exclusive Event Rewards:

Error: Table Events not found.
Error: Table Events not found.
Error: Table Events not found.
Error: Table Events not found.
Event: Mega Man Chaos Protocol/November 2019

Banner Mega Man Chaos Protocol.png
Error: Invalid time. - Error: Invalid time.
Error: Table Events not found.

Exclusive Event Rewards:

Error: Table Events not found.
Error: Table Events not found.
Error: Table Events not found.