PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

Template:Infobox/Event Info: Difference between revisions

From PC Gaming Shelter
No edit summary
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 5: Line 5:
     |multiple=1
     |multiple=1
     |links=1
     |links=1
    |form=Game
   }}
   }}
}}<!--
}}<!--
Line 19: Line 20:
-->{{#if: {{{Has start date|}}}
-->{{#if: {{{Has start date|}}}
   |{{Infobox/Generic
   |{{Infobox/Generic
     |Start
     |{{#ifeq: {{{Is recurring|}}}|Yes|From|Start}}
     |{{#time: d.m.Y H:i|{{{Has start date|}}}}}
     |{{#time: d.m.Y |{{{Has start date|}}}}} {{#ifeq: {{{Is recurring|}}}
        |Yes
        |<span class="text-warning px-3">''recurring''</span>
      }}
   }}
   }}
}}<!--
}}<!--
Line 26: Line 30:
-->{{#if: {{{Has end date|}}}
-->{{#if: {{{Has end date|}}}
   |{{Infobox/Generic
   |{{Infobox/Generic
     |End
     |{{#ifeq: {{{Is recurring|}}}|Yes|Until|End}}
     |{{#time: d.m.Y H:i|{{{Has end date|}}}}}
     |{{#time: d.m.Y|{{{Has end date|}}}}}
   }}
   }}
}}<!--
}}<!--
-->{{#ifeq: {{{Is recurring|}}}
    |Yes
    |{{#invoke: Event
        |setRecurringEvent
        |start={{{Has start date|}}}
        |end={{{Has end date|}}}
        |unit={{{Recurring unit|}}}
        |period={{{Recurring period|}}}
        |include={{#arraymap:{{{Include dates|}}}|\n|@@@|@@@|;}}
        |exclude={{#arraymap:{{{Exclude dates|}}}|\n|@@@|@@@|;}}
      }}<!--
  -->{{#ifexpr:{{#time:Ymd|{{{Has end date|}}}}} > {{#time:Ymd}}
      |{{Infobox/Generic
          |Next
          |<b>{{#ask:
            [[-Has subobject::{{FULLPAGENAME}}]]
            [[Has start date::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]]
            |sort=Has start date
            |order=asc
            |mainlabel=-
            |?Has start date#-F[d.m.Y H:i]
            |headers=hide
            |limit=1
            |searchlabel=
          }}</b>
        }}
    }}<!--
  -->{{#ifexpr:{{#time:Ymd|{{{Has start date|}}}}} < {{#time:Ymd}}
      |{{Infobox/Generic
          |Last
          |{{#ask:
            [[-Has subobject::{{FULLPAGENAME}}]]
            [[Has start date::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]]
            |sort=Has start date
            |order=desc
            |mainlabel=-
            |?Has start date#-F[d.m.Y H:i]
            |headers=hide
            |limit=1
            |searchlabel=
          }}
        }}
    }}
    |{{#invoke: Event|setDates|start={{{Has start date|}}}|end={{{Has end date|}}}}}
  }}<!--


-->{{#if: {{{Has tag|}}}
-->{{#if: {{{Has tag|}}}

Latest revision as of 11:11, 18 June 2026