Difference between revisions of "Template:Event info card"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Seraii
>Kittymmeow
(remove use of extension:css. css moved to MediaWiki:Common.css)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly>{{#css:
+
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
@media screen and (min-width: 650px) {
 
.panel > .panel-heading img {
 
width: 500px;
 
height: 117px;
 
}
 
}
 
@media screen and (max-width: 649px) {
 
.panel > .panel-heading img {
 
width: 100%;
 
height: auto;
 
}
 
}
 
}}<!--
 
  
 
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=_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-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;">

Revision as of 01:53, 14 September 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.
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.
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.
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.
Error: Table Events not found.