Difference between revisions of "Template:Main Page event/core"

From Team Fortress Wiki
Jump to: navigation, search
m (Puuush date changes)
m (+ margin-top to match mp spacing)
 
Line 1: Line 1:
 
{{#if:{{{event|}}}|
 
{{#if:{{{event|}}}|
{{{!}} class="mp-content-table mp-event-container plainlinks" data-mp-event="{{#switch:{{{event}}}|Summer=summer|Scream Fortress=scream-fortress|Smissmas=smissmas|#default=default}}" data-mp-event-video="{{#if:{{{video|}}}|true|false}}" {{#if:{{{video|}}}|{{#if:{{{video-url|}}}|data-video-url="{{#if:{{{video-external|}}}|{{{video-url}}}|{{filepath:Main Page event {{{video-url}}}}}}}"}}}}
+
{{{!}} class="mp-content-table mp-event-container plainlinks" style="margin-top: 7px;" data-mp-event="{{#switch:{{{event}}}|Summer=summer|Scream Fortress=scream-fortress|Smissmas=smissmas|#default=default}}" data-mp-event-video="{{#if:{{{video|}}}|true|false}}" {{#if:{{{video|}}}|{{#if:{{{video-url|}}}|data-video-url="{{#if:{{{video-external|}}}|{{{video-url}}}|{{filepath:Main Page event {{{video-url}}}}}}}"}}}}
 
{{!}} style="text-align: right; position: relative; overflow: hidden; background: #150302;" {{!}} <div style="position: relative; height: 15vw;" {{#ifeq: {{lc:{{{overlay|}}}}} | yes | class="mp-event-overlay" | }}>{{#if:{{{image|}}}|[[File:Main Page event {{{image}}}|class=mp-event-image|link={{{link-override|{{{event}}} {{CURRENTYEAR}}}}}{{if lang}}|{{#switch: {{lc:{{{event}}}}} <!-- Mouse hover text -->
 
{{!}} style="text-align: right; position: relative; overflow: hidden; background: #150302;" {{!}} <div style="position: relative; height: 15vw;" {{#ifeq: {{lc:{{{overlay|}}}}} | yes | class="mp-event-overlay" | }}>{{#if:{{{image|}}}|[[File:Main Page event {{{image}}}|class=mp-event-image|link={{{link-override|{{{event}}} {{CURRENTYEAR}}}}}{{if lang}}|{{#switch: {{lc:{{{event}}}}} <!-- Mouse hover text -->
 
  | summer           
 
  | summer           

Latest revision as of 17:01, 16 October 2024