Difference between revisions of "Template:SecondaryEventsMP"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
m
>Canim44
(Added CSS to auto-adjust SecondaryEventsMP images (MIGRATE TO STYLE SHEET ALONG WITH OTHER INSTANCES OF CSS))
Line 1: Line 1:
<noinclude>(Secondary Events Main Page) - Parses secondary events cargo field into a formatted banner, used on the [[Main Page]]. [[Category:Templates]]</noinclude>
+
<noinclude>(Secondary Events Main Page) - Parses secondary events cargo field into a formatted banner, used on the [[Main Page]]. [[Category:Templates]]</noinclude><includeonly>{{#css:
<includeonly><div style="display:inline-block; padding-bottom:1em;">[[File:{{{ImageFile}}}|300x158px|link={{{PageLink}}}]]<br />[[{{{PageLink}}}|{{{Name}}}]]<br />{{Countdown|EventName={{{_rowID}}}|TimeStart={{#time:F d, Y h:i:s A e|{{{StartDate}}}}}|TimeEnd={{#time:F d, Y h:i:s A e|{{{EndDate}}}}}}}</div></includeonly>
+
@media screen and (min-width: 550px) {
 +
.SecondaryEventsMP img {
 +
width: 300px;
 +
height: auto;
 +
}
 +
}
 +
@media screen and (max-width: 549px) {
 +
.SecondaryEventsMP img {
 +
width: 100%;
 +
height: auto;
 +
}
 +
}
 +
}}<div class="SecondaryEventsMP" style="display:inline-block; padding-bottom:1em;">[[File:{{{ImageFile}}}|link={{{PageLink}}}]]<br />[[{{{PageLink}}}|{{{Name}}}]]<br />{{Countdown|EventName={{{_rowID}}}|TimeStart={{#time:F d, Y h:i:s A e|{{{StartDate}}}}}|TimeEnd={{#time:F d, Y h:i:s A e|{{{EndDate}}}}}}}</div></includeonly>

Revision as of 23:46, 3 November 2019

(Secondary Events Main Page) - Parses secondary events cargo field into a formatted banner, used on the Main Page.