Difference between revisions of "Template:Main Page event/core"
(Pushed changes from Template:Main Page event/core/Sandbox) |
m (+ margin-top to match mp spacing) |
||
(One intermediate revision by the same user not shown) | |||
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 | ||
Line 36: | Line 36: | ||
<div>{{#if: {{{end|}}} | <div>{{#if: {{{end|}}} | ||
| {{#if: {{{start|}}} | | {{#if: {{{start|}}} | ||
− | | {{#time: {{common string|mp event date fmt}} | {{{start}}} | {{SUBPAGENAME}} | + | | {{#time: {{common string|mp event date fmt part 1}} | {{{start}}} | {{SUBPAGENAME}} }}{{#time: {{common string|mp event date fmt part 2}} | {{{end}}} | {{SUBPAGENAME}} }} <!-- Start and End dates are set: [start date] - [end date] --> |
| {{#time: {{common string|mp event date fmt end}} | {{{end}}} | {{SUBPAGENAME}} }} <!-- No Start date set: "Until [end date]" --> | | {{#time: {{common string|mp event date fmt end}} | {{{end}}} | {{SUBPAGENAME}} }} <!-- No Start date set: "Until [end date]" --> | ||
}} | }} |