Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:EventData: Difference between revisions

Template page
Created page with "<includeonly><!-- --------------------------- Navigation and patch status --------------------------- -->{{Prevnext |prev={{#if:{{{Prev|}}}|Update:{{{Prev}}}}} |prevTitle={{{Prev|}}} |prevDesc={{#if:{{#dpl:title=Update:{{{Prev}}}|include={PatchData}:publishdate}}|{{#dpl:title=Update:{{{Prev}}}|include={PatchData}:publishdate|format=,}}|Unknown}} |title=<span class="template-patchdata-status {{#if:{{{futurerelease|}}}|template-patchdata-status--upcoming|{{#if:{{{publishd..."
 
No edit summary
 
(43 intermediate revisions by the same user not shown)
Line 5: Line 5:
---------------------------
---------------------------
-->{{Prevnext
-->{{Prevnext
|prev={{#if:{{{Prev|}}}|Update:{{{Prev}}}}}
|prev={{#if:{{{Prev|}}}|{{{Prev}}}}}
|prevTitle={{{Prev|}}}
|prevTitle={{{Prev|}}}
|prevDesc={{#if:{{#dpl:title=Update:{{{Prev}}}|include={PatchData}:publishdate}}|{{#dpl:title=Update:{{{Prev}}}|include={PatchData}:publishdate|format=,}}|Unknown}}
|prevDesc={{#if:{{#dpl:title=Update:{{{Prev}}}|include={PatchData}:start date}}|{{#dpl:title=Update:{{{Prev}}}|include={PatchData}:start date|format=,}}|Unknown}}
|title=<span class="template-patchdata-status {{#if:{{{futurerelease|}}}|template-patchdata-status--upcoming|{{#if:{{{publishdate|}}}|template-patchdata-status--released}}}}">{{#if:{{{futurerelease|}}}|Upcoming|{{#if:{{{publishdate|}}}|Released}}|Unknown}}</span>
|title={{#ifexpr: {{#time:U|now}} > {{#time:U|{{{eventstarttime|0}}}}} |
|desc={{#if:{{{publishdate|}}}|{{#if:{{{futurerelease|}}}|est. }}{{{publishdate}}} - {{#if:{{{futurerelease|}}}|{{Time ago|{{{publishdate}}}|magnitude=days|ago=}}|{{Time ago|{{{publishdate}}}}}}}}}
    {{#ifexpr: {{#time:U|now}} > {{#time:U|{{{eventendtime|0}}}}} |
      <span class="template-patchdata-status--ended"> Finished </span> |
      <span class="template-patchdata-status--released"> Ongoing </span>
    }} |
<span class="template-patchdata-status--upcoming"> Upcoming </span>
  }}
</span>
|desc={{#if:{{{eventstarttime|}}}{{{eventendtime|}}}
|
  {{#ifexpr: {{#time:U|now}} > {{#time:U|{{{eventstarttime|0}}}}} |
    {{#ifexpr: {{#time:U|now}} > {{#time:U|{{{eventendtime|0}}}}} |
      Ended {{Time ago|{{{eventendtime}}}|min_magnitude=hours}} |
      Ends in {{Time ago|{{{eventendtime}}}|min_magnitude=hours}}
    }} |
    Starts in {{Time ago|{{{eventstarttime}}}|min_magnitude=hours}}
  }}
 
}}
|next={{#if:{{{Next|}}}|Update:{{{Next}}}}}
|next={{#if:{{{Next|}}}|Update:{{{Next}}}}}
|nextTitle={{{Next|}}}
|nextTitle={{{Next|}}}
|nextDesc={{#if:{{{Next|}}}|{{#if:{{#dpl:title=Update:{{{Next}}}|include={PatchData}:publishdate}}|{{#dpl:title=Update:{{{Next}}}|include={PatchData}:publishdate|format=,}}|Unknown}}}}
|nextDesc={{#if:{{{Next|}}}|{{#if:{{#dpl:title=Update:{{{Next}}}|include={PatchData}:start date}}|{{#dpl:title=Update:{{{Next}}}|include={PatchData}:start date|format=,}}|Unknown}}}}
}}<!--
}}<!--


Line 20: Line 37:
TODO: Fix capitalization on category name, it might be connected to multiple DPL templates
TODO: Fix capitalization on category name, it might be connected to multiple DPL templates


-->{{#ifeq:{{yesno|{{{Spectrum}}}|def=no}}|yes|[[Category:Spectrum Patch Notes]]|[[Category:{{#if: {{{futurerelease|}}}|Upcoming Patches|Patch Notes}}]]}}<!--
-->[[Category:Events]]<!--


-----------------
-----------------
Short description
Short description
-----------------
-----------------
-->{{Short description|{{#ifeq:{{yesno|{{{Spectrum}}}|def=no}}|yes|Spectrum|Outlands}} patch{{#if:{{{publishdate|}}}|{{#if:{{{futurerelease|}}}|{{nbsp}}scheduled for|{{nbsp}}released on}} {{{publishdate}}}}}}}<!--
-->{{Short description|{{#ifeq:{{yesno|{{{Spectrum}}}|def=no}}|yes|Spectrum|Outlands}} event{{#if:{{{publishdate|}}}|{{#if:{{{futurerelease|}}}|{{nbsp}}scheduled for|{{nbsp}}released on}} {{{publishdate}}}}}}}<!--


--------------
--------------

Latest revision as of 03:56, 15 March 2025